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

About this website

BotFlo1 was created by Aravind Mohanoor as a website which provided training and tools for non-programmers who were2 building Dialogflow chatbots.

This website has now expanded into other topics in Natural Language Processing, including the recent Large Language Models (GPT etc.) with a special focus on helping non-programmers identify and use the right tool for their specific NLP task.

1 BotFlo was previously called MiningBusinessData. That is why you see that name in many videos

2 And still are building Dialogflow chatbots. Dialogflow ES first evolved into Dialogflow CX, and Dialogflow CX itself evolved to add Generative AI features in mid-2023