Cloudkibo / ChatBot

AI Chat Bot
0 stars 1 forks source link

Study the REST API of Api.AI #11

Open sojharo opened 7 years ago

sojharo commented 7 years ago

In this task, I would study the REST API of Api.Ai and see what we can do with this and what capabilities they have given to developers.

sojharo commented 7 years ago

I have looked into the API reference document of API.AI and found that they have very limited API exposed. However, it is enough for us to train the bot and submit the queries to it. They are being careful to not to expose all the features of their dashboard through their API so that people might not make their complete clones. We can not create a new bot using API call and we would need to do this manually from dashboard. Following are the endpoints summary that they provide us:

Intents(Create,Edit,Delete,Update)

We would be able to create, edit, delete and update an intent through the API. Intent is bot response or number responses for any given "statement" or number of statements by user.

Submit Query

We would use this API to send the user query to the bot.

Entities

These can be used to train bot about products and other named entities e.g. dates, days of months etc.