Partial Outageshare-external
I am trying to make a flow using the "Get a quote" template. I want to know what type of response does whatsapp want from me. I am unable to configure it out.
1

Whenever whatsapp sends me a payload , i need to respond with some data, I am unable to configure what exactly do I need to return.

Shriansh
Asked about 6 months ago
Selected Answer
2

This flow template uses an endpoint to populate flow data dynamically. You can follow this guide to implement your endpoint https://developers.facebook.com/docs/whatsapp/flows/guides/implementingyourflowendpoint

To see what data you need to send from your endpoint to show a specific screen, you can find the right snippet from Flow Builder by going to "..." > "Endpoint" > "Snippets" > "Responses"

For example, for the first screen "DETAILS", you need to return a response like this { "version": "3.0", "screen": "DETAILS", "data": { "city": [ { "id": "1", "title": "Light City, SO" } ] }

Don't forget to encrypt the response before returning it. You can refer to the encryption code examples here https://developers.facebook.com/docs/whatsapp/flows/guides/implementingyourflowendpoint#code-examples

June 6 at 3:18 PM
Mostafa