New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle Postback / Suggestion Messages / Button Click Events #848
Comments
@steffh some points/questions: Currently we only support WhatsApp via Twilio and get the data in an URL encoded format. So the integration that you linked is not there yet and I suppose we would need another issue for it. Could you detail a bit where you would like the source-specific payloads to show up in the current payload? {
"conversation_id": "4242424242",
"id": "7560bf66-d9c4-48f8-b7f1-27ab6c40a40a",
"sender": {
"id": "adac9220-fe7b-40a8-98e5-2fcfaf4a53b5",
"type": "source_contact"
},
"source": "facebook",
"sent_at": "2020-07-20T14:18:08.584Z",
"content": '{"text":"Hello World"}'
} Currently, the payload looks like so and since the improvement to our data model - which you kickstarted - the |
We had an offline conversation about this and decided that because of the points raised above, the backend part of this ticket is already done. |
The google part of this ticket was implemented in #1040 |
I will now fix the missing Facebook renderer for the postbacks. As dicussed above we don't have a real whatsapp integration and will need to cover that in a separate ticket. |
As an Airy developer trying to consume relevant events via the webhook,
WHEN a postback event (Facebook standard) or Suggestion Messages event (Google standard) or Button Click event (WhatsApp standard) is received by the Airy ingestion layer because an end user clicked on a button at any source supporting such feature,
THEN I want to receive the relevant
postback.payload
(Facebook standard) orsuggestionResponse.postbackData
(Google standard) ormessages.button.payload
(WhatsaApp standard) from such event via the webhookAs an Airy messaging UI user trying to see which buttons an end user has clicked on at any source supporting such feature,
WHEN a postback event (Facebook standard) or Suggestion Messages event (Google standard) is received by the Airy ingestion layer,
THEN I want to see a rendered message in the Airy messaging UI containing the
postback.title
(Facebook standard) orsuggestionResponse.text
(Google standard) ormessages.button.title
(WhatsaApp standard)Developer Notes:
Postback Event (Facebook standard):
https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/messaging_postbacks/
Suggestion Messages event (Google Standard):
https://developers.google.com/business-communications/business-messages/guides/build/receive#suggestion
Button Click event (WhatsApp Standard):
https://developers.facebook.com/docs/whatsapp/api/messages/message-templates/interactive-message-templates#callback-from-a-quick-reply-button-click
The text was updated successfully, but these errors were encountered: