Home / Website Bots / How to quickly create a large Dialogflow Messenger bot
Website Bots

How to quickly create a large Dialogflow Messenger bot

Check out my courses Learn Dialogflow ES and Learn Dialogflow CX if you would like to learn Dialogflow in depth. 

If you have been using Dialogflow ES for a while, you might have noticed that it can be quite tedious to create large FAQ chatbots because the interface gets slower as you keep adding more intents.

Bulk upload intents from a spreadsheet

One of the easiest ways to create a large FAQ chatbot is to type everything into a spreadsheet file and then convert it into an agent ZIP file which you can import directly into Dialogflow. You could already do this using the CSV to ZIP file converter in my BotFlo app.

This approach has many benefits – it is much faster, it is easier to get a quick overview of your bot training phrases and it is also better suited for collaborative editing.

Dialogflow Messenger custom payload

The big downside to this approach is that it is very hard to type the rich responses for suggestion chips, clickable hyperlinks etc (which need to be specified in JSON format) into a CSV file.

I have recently figured out a workaround – remove all whitespace from the JSON (it is still valid when you do that) and add this compressed (minified) JSON into the spreadsheet cell. The Dialogflow agent ZIP file also accepts this minified JSON as a payload.

Link to the tool

How to generate the custom payload JSON

In addition, you can use the visual editor for generating the custom payload JSON in BotFlo. This automatically creates a minified (i.e. compressed) version of the custom payload JSON which you can copy and paste directly into the spreadsheet. You can see an example below.

The BotFlo app gives you many tools which can speed up your Dialogflow bot development

This website contains affiliate links. See the disclosure page for more details. 
"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
Check out my YouTube courses

Dialogflow CX Beginner Tutorial

Dialogflow ES vs CX using a Decision Tree Bot

Intro to NLU for technical non-programmers

Better Dialogflow ES Bots Using the CTFS Framework

Search the autogenerated transcripts of all my YouTube videos
In this free course, I provide some tips for managing large Dialogflow ES bots without compromising on accuracy.

Similar Posts

One Comment