I have created a free tool which allows you to turn your WordPress website into a Dialogflow FAQ chatbot with a single click.
This article assumes you understand how Dialogflow works, at least at a basic level.
To be able to use this tool, there are a few more concepts you should understand.
The basic idea
Inside a Dialogflow intent, you need 3 things (at the minimum):
- the name of the intent
- a set of training phrases
- a set of responses
And the name of the intent should be unique.
When you are creating an FAQ bot out of your WordPress website, you need to figure out the following:
- how to name the intents?
- how to generate the training phrases?
- how to generate the responses?
Now, it is quite likely that the response is just a link to the post or article you have written.
For the name, we will use the Slug which is auto-generated by WordPress when you try to publish the post. Since WordPress takes care of keeping the slug unique, plus the slug is usually quite readable, that would be a good option for the intent name.
So let us first see how you might do this manually.
Take any website and use its web pages to create a spreadsheet with the following structure: the first column will be a list of URLs, and the second column will be the corresponding page title.
For example, consider the most recent 5 articles on this website:
In my spreadsheet (I am using Airtable, you can use the spreadsheet software of your choice) it looks like this:
Let us convert the first article into an intent in Dialogflow.
The intent name will be the "slug" - which is the part which comes after https://miningbusinessdata.com.
So we will just use the following as the intent name: dialogflow-mega-agent-tutorial
For the training phrase, we will simply use the title.
And the response will be the complete URL.
This is what the intent definition looks like inside Dialogflow.
And you can check that even though this is a very basic bot, it works. When you use the 1-click web demo integration, you see the correct response coming back from the agent when you type "mega agent".
Now, all you have to do is repeat the same step for each URL you want to use for your Dialogflow agent.
You might have noticed that in the web demo, the hyperlinks are not automatically clickable.
In contrast, here is a bot I created for my website which does have clickable hyperlinks.
The bot uses BotCopy, which is a service which allows you to create Dialogflow website chatbots which have buttons, clickable hyperlinks, cards etc (basically rich content).
If you are the admin of a WordPress website, you can use a free tool I have created inside BotFlo to automate the manual process I have described above.
- 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?
- Website chatbot using Dialogflow Messenger: Pros and Cons
- Three types of Dialogflow contexts
- Dialogflow vs RASA NLU