theme
WitAI
FREE
By dimashirokov
Updated a year ago

WitAI API Documentation

Build an AI-powered bot that talks like a human.

Learn more about this API
POSTaddEntityValues
POSTcreateEntity
POSTcreateEntityExpression
POSTdeleteEntity
POSTgetAudioMeaning
POSTgetBotNextStep
POSTgetEntities
POSTgetEntityValues
POSTgetSentenceMeaning
POSTremoveEntityValue
POSTremoveExpression
POSTupdateEntityValues
POSTgetBotNextStep

Returns what your bot should do next. The next step can be either answering to the user, performing an action, or waiting for further requests.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
sessionIdSTRING
REQUIREDThe session_id is a unique ID you generate on your side to group messages from the same user request/conversation. When you start a new conversation, you should generate a new one. You should generate a new one, even when the user is the same.
accessTokenCREDENTIALS
REQUIREDThe api key obtained from wit.ai.
Optional Parameters
contextJSON
OPTIONALOptional: The object representing the session state. You can pass the context either as a URL param or in the body of your POST.
textSTRING
OPTIONALOptional: A message from the user. Length must be > 0 and < 256. This should only be set at the first call until you get type=”stop”
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication