i created a bot with messenger and dialogflow, This works good
but the problem comes when i try to implement the handover protocol
First approach : Pass thread control to PAGE INBOX
i set up an intent on dialogflow with 'input.handover' action then when i type handover i call my webhook and make a call to fb api with pass_thread_control and i passe the control to the page inbox, i get a success response and the conversation pass from the BOT to PAGE INBOX. But here a stuck to PAGE INBOX and i cant take_thread_control to the BOT because the PAGE INBOX not linked with the dialogflow or any other webhook.
Second approach : Pass thread control to another app
with the same setup of first approach but this time i pass the thread control to a facebook APP i created and linked with a webhook (with nodejs hosted on heroku), i get a success response but this time no message come to this APP inbox and on heroku console i can see the message come to webhook but not APP inbox.
And now i just stuck here. if any one have an idea how to implement the handover protocol with dialogflow or any help, i appreciate that.
Thanks.