wit-ai / node-wit

Node.js SDK for Wit.ai
Other
2.05k stars 485 forks source link

FB Messenger integration - Generic Template as reponse from wit.ai #66

Open joshy opened 8 years ago

joshy commented 8 years ago

Can the response of wit.ai be a generic template?

I haven't figured out if the following is possible or not (yet?). I want to integrate the wit.ai to a fb messenger bot where the whole conversations should be run by wit.ai (via runActions). Some of the responses needs to be instances of the generic template some should be a video reponse. Is this possible? All the examples I have seen so far is, that the bot can return only strings (weather in XXX is sunny).

Thanks for reading, Joshy

kngatai commented 8 years ago

I to am interested in the answer. I have hacked it abit by using the context object to store the generic template JSON string but it looks rather messy.

l5t commented 8 years ago

Thanks for asking. This is currently not supported out of the box and you will have to rely on a Bot executes (aka an client-side action)