- Reader question: Automating Dialogflow training
- App question: How to use the bot generator for Spanish?
- App question: how to add follow up intents using the Bot Generator app?
- Automatically generating a product lookup bot
I got a comment on my article on bulk uploading intents into Dialogflow from a CSV file. The commenter was asking if my Bot Generator tool could be used for creating a product info lookup bot.
But first, let us consider a few things that you need to understand before this question can be answered.
1 Entity annotation in Dialogflow
If you have worked inside of Dialogflow to create an entity, you know that when you type in a training phrase containing an entity, something happens automatically.
Dialogflow will attempt to annotate the word and try and figure out exactly what entity it is.
2 JSON format of the annotated entity
If you know how the Bot Generator tool works, you know that when you load a CSV file into it, it takes the contents of the CSV file, does some code magic, and makes sure that it produces a ZIP file that you can import into Dialogflow.
This is possible because the ZIP file consists of a set of JSON files.
Here is what the corresponding JSON format looks like for the annotation that Dialogflow did above.
Notice that Dialogflow stored the input as two chunks - with the second chunk containing the actual annotation of the word Seattle as a type @sys.geo-city.
3 Automating Dialogflow training requires an extra step
What does this mean?
When compared with creating a simple FAQ bot which doesn't have any entities, automating something like a product lookup bot is quite a bit more complex.
I wrote an article about what it would actually take to automate the training task.
If the majority of your questions are not entity dependent, one option is to use the Bot Generator to create an agent and import it into a different project (I have named this ScratchPadBot in my own Dialogflow console) in Dialogflow. Then you can bulk copy the intents and move them into your main project.
Once you do this, you would still have to manually create the intents in which you use entities.
The Bot Generator is useful if you wish to create a simple FAQ chatbot which doesn't contain any entities.
If you need to automatically generate a product lookup bot (or any other lookup-type bot for that matter), you will need to use some of the ideas I have presented here and build out your own.
- Dialogflow Messenger Interactive Learning Bot
- Dialogflow Messenger Checklist bot
- Dialogflow Messenger decision tree chatbot
- BotFlo relaunch update
- Dialogflow Messenger: How to respond to user clicking on suggestion chip
- When NOT to use follow up intents in DialogFlow
- Dialogflow Context Lifespan
- Reader Question: Creating Dialogflow agents in web UI vs using code
- Dialogflow Messenger tutorial
- Do I need to hire a developer to build MY chatbot idea?