This App lets you connect your CSML chatbot with wit.ai.
To use this App, you need to have a Wit app on wit.ai, and the corresponding access token, which can be found in your Wit app's settings (https://wit.ai/apps/$YOUR_APP_ID/settings).
Methods
analyze
This method returns the extracted meaning from a sentence.
do data = App(
"witai",
method = "analyze",
params = {
"text": "Hello, how are you?", // The sentence to parse.
}
)
Response:
{
"success": true,
"response": {
"text": "Hello how are you ?",
"intents"[{
"id": "2759796990942181",
"name": "greet",
"confidence": 1,
}],
"entities": {
"greetWord:greetWord": [{
"id": "181772170302403",
"name": "greetWord",
"role": "greetWord",
"start": 0,
"end": 5,
"body": "Hello",
"confidence": 1,
"entities": [],
"value": "Hello",
"type": "value"
}],
},
"traits": {}
}
}