Replies: 1 comment
-
Hello @dcr31000, A story is triggered for every sentence of the user, yet it is possible to write a story checking if the information is in context, otherwise asking for it. Next sentence, provided more information has been added to context, the story triggered again will check again and follow another path, doing something with the information. Here a basic example of such a story, in Bot API mode:
The code would be very similar in Bot Integrated mode. The trickiest part is generally not to implement the logic in the story, but to build the intent/NLP model so that the story is triggered again once the information is given. In Bot Integrated mode, it is possible to apply constraint on the next sentence intent detection, which makes it really easier to implement funnels. Secondary intents are also a mean to implement Q/A in stories. An example in Bot Integrated mode is provided in the
Hth. Please let me know! :) |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm looking to make a system to ask the user for information (message, contact details) to send an email afterwards.
For this, I build my bot with the API (node).
But I don't understand how to request information from the user? (In the idea, do a bot.send("Your message?"), wait for its response and continue with bot.send("Your email?") etc.).
Thank you in advance for your help 🙂
Beta Was this translation helpful? Give feedback.
All reactions