I want to get payload from flow to backend on complete screen of the flow. There is a option to add payload in the On Click Action of the button.
"on-click-action": { "name": "complete", "payload": { "dummy":"Hello" } } Can someone help!!
I recommend walking through one of the end-to-end tutorials in the dev docs, for example: https://developers.facebook.com/docs/whatsapp/flows/gettingstarted/pre-approved-loan
This should walk you through how to send up an Endpoint, and how to trigger data_exchanges between screen transitions within a Flow.
If you only want to received the data upon the completion of the full Flow (i.e. last screen), this is much simpler. Check out these docs: https://developers.facebook.com/docs/whatsapp/flows/reference/responsemsgwebhook