Main points to consider when using custom payload in Dialogflow:
- Custom payloads work only when you add a default text response.
- It is mandatory to include at least one response for every included custom payload.
- You can refer to example for custom payload format [1]
[1] https://cloud.google.com/dialogflow/cx/docs/concept/integration/dialogflow-messenger#fulfillment