We started making use of webviews in Facebook Messenger and have Call-to-Action buttons in some of our webviews (for example, a button to “Schedule a viewing”). When a user click on this button, we want the bot to behave as if the user had said something with the intent
I understand we can use the HTTP API to trigger an action in Rasa which works fine. However, in this case, we would like to trigger an intent for which Rasa will predict the next action depending on the rest of the story.
Right now, we are able to insert user intents in the tracker and call specific actions from a custom endpoint. However, that means doing the story logic within this custom endpoint instead of relying on the stories to do so.
- Is there a way to trigger a user intent and let Rasa predict the next actions from the API?
- If not, can we force Rasa to predict the next actions through the code or API? (That way, we can just insert the intent in the tracker and force Rasa to predict the next steps)
Thanks a lot for your help! Cheers, Nicolas