Facebook custom payload stripped from webhook fulfillment

Viewed 60

Hoping someone can provide some guidance here. I have a fulfillment webhook in place which is preparing responses to send back to Facebook Messenger.

Text and images work fine, but I'm having trouble with audio files.

This is what my server outputs:

enter image description here

And this is what I see in the raw interaction log for Dialogflow. For some reason the custom payload is missing:

enter image description here

Does anyone know what might be causing this?

1 Answers

I have found the issue here. The Facebook custom payload should have been under the payload entity which I was missing. Below is the correct JSON structure:

enter image description here

Related