I've set up a simple webhook with Python/Flask to deal with various Dialogflow fullfilments. Everything is working quite well on that point. The bot is integrated to Facebook Messenger with API V2 of DialogFlow
The problem is that, in regards of the output of my webhook logic, I want to "bring" my user to an intent or another (for example, bring it back to an explanation intent or something similar). I understood that I can do that thanks to concept of "followupEventInput". The triggering works so that's OK. BUT, the thing is that I want to display a text before moving the user so I define one into "fulfillmentText" but this one doesn't show up before the user is sent to the triggered intent.
Visually :
User : Hello
Bot : Hello
User : I want to send a picture
Bot : Okay ! Do it like that ... and like that
User : ====> Send file
** Webhook triggered ** and apply logic. It's not an image file so I send a response which contains :
{
'fulfillmentText': "You haven't send a image.. I bring you back to the explanations ",
'followupEventInput': {
"name": "Event_That_Trigger_Explanations"
}
}
Thus, I expect :
User : ====> Send file
**Webhook magic**
Bot : You haven't send a image.. I bring you back to the explanations
Bot : Okay ! Do it like that ... and like that ***
BUT, I have :
User : ====> Send file
**Webhook magic**
Bot : Okay ! Do it like that ... and like that ***
Thank you very much for your help ! I guess I misunderstand something in Dialogflow :P