One of my training course students asked me this question about their Dialogflow Messenger bot:
Your videos and courses helped me a lot to understand dialogflow. To finish my project i’m facing a specific issue, to return a dynamic hyperlink through fullfilment or webhook.
First of all, I don’t recommend using the fulfillment library for doing this task.
If you don’t use the fulfillment library, you need to construct the JSON response in your code. It is not very hard, and it is actually very flexible once you understand the nitty gritty details of how it works.
Here is the basic idea:
1 Create an intent in your Dialogflow Messenger bot which triggers the rich response that you want (static)
2 Get the response object from your History
3 Using the response object as a reference, construct this object in your code with appropriate dynamic information
I have explained how to do this in this series of videos. I use Python, but the code is very simple and you can use it as a reference for the programming language you are using.
<— End of article —>
This website contains affiliate links. See the disclosure page for more details.
Check out the Learn Dialogflow ES and Learn Dialogflow CX courses if you would like to learn Dialogflow in depth.
"The magic key I needed as a non-programmer" The custom payload generator was the magic key I needed (as a non-programmer) to build a good demo with rich responses in DialogFlow Messenger. I've only used it for 30 minutes and am thrilled. I've spent hours trying to figure out some of the intricacies of DialogFlow on my own. Over and over, I kept coming back to Aravind's tutorials available on-line. I trust the other functionalities I learn to use in the app will save me additional time and heartburn. - Kathleen R Cofounder, gathrHealth