node-wit icon indicating copy to clipboard operation
node-wit copied to clipboard

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

Open joshy opened this issue 8 years ago • 2 comments

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

joshy avatar Jul 22 '16 14:07 joshy

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.

kngatai avatar Aug 03 '16 10:08 kngatai

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)

l5t avatar Aug 03 '16 12:08 l5t