Send rich response from Python webhook to Dialogflow Messenger

In this post I will explain how to send rich responses from your webhook code to Dialogflow Messenger.

I will explain the steps for the Description rich response type, and you should be able to follow the same steps and do it for the other rich response types.

Let us start with the agent we used for the beginner tutorial.

First, let us look at the Custom Payload response for the intent called “show.description”

Now trigger this intent in the simulator using the appropriate training phrase.

Go to the History tab and open the Diagnostic Info for this intent.

Click on the ellipsis (three dots) next to the Agent

Click on Raw Interaction Log