RapidAPI logo

WitAI

FREE
By dimashirokov
Updated 4 months ago
Machine Learning
4.6/10
Popularity Score
256ms
Latency
-
Success Rate

WitAI API Documentation

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

View API Details
POSTaddEntityValues
POSTcreateEntity
POSTcreateEntityExpression
POSTdeleteEntity
POSTgetAudioMeaning
POSTgetBotNextStep
POSTgetEntities
POSTgetEntityValues
POSTgetSentenceMeaning
POSTremoveEntityValue
POSTremoveExpression
POSTupdateEntityValues
POSTaddEntityValues

Add a possible value into the list of values for the entity.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
entityIdSTRING
REQUIREDID or name of the entity.
valueSTRING
REQUIREDCanonical value of the entity
accessTokenCREDENTIALS
REQUIREDThe api key obtained from wit.ai.
Optional Parameters
expressionsJSON
OPTIONALOptional: Ways of expressing this canonical value (JSON array)
metadataSTRING
OPTIONALOptional: Metadata you want to attach to this value, will be sent back in runtime.
Code Snippet
unirest.post("https://WitAIdimashirokovV1.p.rapidapi.com/addEntityValues")
.header("X-RapidAPI-Host", "WitAIdimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://WitAIdimashirokovV1.p.rapidapi.com/addEntityValues
Request Method: POST
Response Headers
Response Body
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://WitAIdimashirokovV1.p.rapidapi.com/addEntityValues")
.header("X-RapidAPI-Host", "WitAIdimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication