ashubham / bot-context

Easy, powerful, functional way to maintain conversational context in chat bots.
https://chatbotsmagazine.com/maintaining-context-in-chatbots-2016b6a5b7c6
MIT License
46 stars 4 forks source link

Usage with Wit.ai and Messenger #2

Open jaambee opened 7 years ago

jaambee commented 7 years ago

Hi, I cannot figure out how to do the connection with the wit.ai API. I know that I have to make the outgoing messages with the Facebook endpoint but I don't know how to use with the wit.ai context. Thanks!

ashubham commented 7 years ago

@jaambee can you give more details how are you presently using the wit.ai context. You could actually not use it at all and just use bot-context. Some details would be helpful.

In the past I have used api.ai purely for intent classification. And use bot-context for predicting the next action.

jaambee commented 7 years ago

@ashubham I receive the message on an endpoint and the text is sended to Wit.ai. The response, send me a context object with all the entities detected and his metadata. With this information, I run wit.ai actions implemented on my backend and after I send the response via facebook message endpoint.