Skip to main content

NLP Direct API

NLP Direct API provides methods for:

  • Project management: export and import projects.
  • Working with entities and intents: add, modify, and delete intents and entities.
  • Model re-training: re-train the model based on changes.

Working with the API

Let’s consider working with the API by an example of a method:

https://<host_name>/cailapub/api/caila/p/{accessToken}/export
  • host_name you can copy from the address line.

For example, for https://platform.tovie.ai/ the method will look like this:

https://platform.tovie.ai/cailapub/api/caila/p/{accessToken}/export
  • accessToken — NLP Direct API key, which is used for access control.

To get the key, go to editing the Tovie Platform project. Select the Classifier tab > press Generate in the NLP Direct API key field > copy the value.

To get the API key of the current project from a bot script, use the method:

$jsapi.cailaService.getCurrentClassifierToken()