Lab 6: Creating a FAQ in Dialogflow
Table of Contents
Introduction
In this lab we are going to import a FAQ in Google Dialogflow from an existing website, which will act similarly to the Q&A bot in Webex Connect. We will then select some Questions and transform them into intents.
Enabling FAQ in Dialogflow
- In the Dialogflow portal:
- Click the Cog next to the name of your bot
- Under General Toggle “Enable beta features and API” and click save.
Importing FAQ
- We are going to import our FAQ from the CDC’s Covid-19 FAQ.
- Click on the Knowledge (Beta) menu option
- Click Create Knowledge base and name if Covid and click Save
- Next to “No knowledge document has been created yet” click create the first one.
Document Name: Covid FAQ
Knowledge Type: FAQ
Mime Type: text/html
Data Source: URL:
https://www.cdc.gov/coronavirus/2019-ncov/faq.html
Enable Automatic Reload: True
Click Create
- Now we need so allow Dialogflow to respond to out customers.
- Click the Add Response button
- You will see that a response string automatically populates that looks like
$Knowledge.Answer[1]
-
Click Save at the top of the page
- You will see that a response string automatically populates that looks like
- Click the Add Response button
Testing from within Dialogflow
- In the upper right corner, you will see a try it now prompt
- Using one of the questions from the FAQ, ask a question or a variation of the question.
Testing via Webex Connect chat
- Launch your chat from your website
- Using one of the questions from the FAQ, ask a question or a variation of the question.