Indicate the messaging channel for Dialogflow Webhook.
complete
Henry Lo
The payload sent along the Dialogflow Webhook should include the a source that looks like so:
"originalDetectIntentRequest": {"source": "facebook",}
The user suggest we use something like below, so that it is known that it is coming from Rocketbots.
"originalDetectIntentRequest": {
"source": "rocketbots_fb",
}
or
"originalDetectIntentRequest": {
"source": "rocketbots_wa",
}
I
Iaroslav Kudritskiy
complete
Data is now being passed from the channel provider using the originalIntentDetectRequest field.
More info available here: https://docs.rocketbots.io/dialogflow-integration/original-detect-intent-request
C
Clément Beaujoin
Iaroslav Kudritskiy: Thank you so much ! It's working fine with facebook !
Hassan Ahmed
in progress
Jerry (CEO)
under review
C
Clément Beaujoin
Hi,
I have the same requirement.
It could be further improve by adding the channel name.
For FB the fb page id will also be great !
I
Iaroslav Kudritskiy
Another user has made a suggestion about the form this could be implemented in.
The payload sent along the Dialogflow Webhook should include the a source that looks like so:
"originalDetectIntentRequest": {"source": "facebook",}
The user suggest we use something like below, so that it is know that it is coming from Rocketbots.
"originalDetectIntentRequest": {
"source": "rocketbots_fb",
}
or
"originalDetectIntentRequest": {
"source": "rocketbots_wa",
}
M
Mentors Rock
This would be great when creating different automations - (tigger condition) depending on the channel the user got in touch!
Jerry (CEO)
Hello Henry Lo, we did this so you can add Quick Replies and other Response formats that the Dialogflow Default Response Format doesn't allow you to build unless you write a custom payload.
How would you suggest we handle it instead? ☺️
C
Clément Beaujoin
Jerry (CEO):
All that kind of rocketbots metadata may be added in :
"originalDetectIntentRequest": {
"payload": {
"rocketbots": {
"source": "facebook",
"channel": "channel_name",
"fbPageId": "123456789"
}
}
}
If the payload is not cleaned on Dialogflow side it should be fine.
If it is ... you'll have to find a "free" field.
C
Clément Beaujoin
Hi,
For Facebook It would also be fine to add the Page-scoped ID (PSID).
With native dialogflow integration the psid is available in :
It will allow to access the Facebook Graph API.
Or alternativly you could add basic information on the user ( User Profile API => https://developers.facebook.com/docs/messenger-platform/identity/user-profile/) first_name,last_name, ....