I have created a Dialogflow messenger bot by integrating it to Facebook. Now FB send a request to Dialogflow and Dialogflow send the response to FB.
FB --> Dialogflow
Dialogflow --> FB
I want to put my server in the middle process. So that FB request will come to my server and my server will send a request to Dialogflow.
FB --> My Server --> Dialogflow
Dialogflow --> My Server --> FB
Is this possible? If so is there any PHP libraries or tutorials I can use?
For Future Readers this is the way I found to fulfill my requirement.
In here I want my server to act as the middleman and identify the intent.
FB --> My Server --> Dialogflow
Dialogflow --> My Server --> FB
In Dialogflow v2 you can use the DitectIntent to identify the Intent. https://dialogflow.com/docs/reference/api-v2/rest/v2/projects.agent.sessions/detectIntent
The SDKs available for different programming languages are available here. https://dialogflow.com/docs/sdks#detect_intent_and_agent_apis