The Agent Assist Article Suggestion and FAQ Assist features follow a conversation between a human agent and an end-user and provide the human agent with relevant document suggestions. Both features make suggestions based on knowledge bases, collections of documents that you upload to Agent Assist. These documents are called knowledge documents and can be either articles (for use with Article Suggestion) or FAQ documents (for use with FAQ Assist). See the knowledge documents documentation for best practices information and the data overview page for more details on the types of data that can be uploaded to Agent Assist. This tutorial walks you through the steps required to create a knowledge base and add documents to it using the Agent Assist Console.
Before you begin
- Follow the Dialogflow setup instructions to enable Dialogflow on a Google Cloud Platform (GCP) project.
- Enable the Data Labeling API for your project. Agent Assist uses the Data Labeling API to create your knowledge base.
- We recommend that you read the Agent Assist basics page before starting this tutorial.
- If you are creating a knowledge base for use with
Article Suggestion, make sure that
your knowledge documents are in one of two formats:
- A public URL.
- A file stored in a Google Cloud Storage bucket.
If you are creating a knowledge base for use with FAQ Assist, make sure that your FAQ documents are in one of three formats:
- A public URL.
.csvfile saved in a Cloud Storage bucket.
- The contents of a
If your FAQ document is in
.csvformat, it must contain two columns. FAQ questions must be listed in the first column, and the answers to each question must be listed in the second column. Each FAQ question and its associated answer is called an FAQ pair. Make sure that the
.csvfile does not contain a header row.
Create a knowledge base
Navigate to the Agent Assist Console. Select your GCP project, then click on the Data menu option on the far left margin of the page:
The Data menu displays all of your data. There are two tabs, one each for conversation datasets and knowledge bases:
Click on knowledge bases, then the +Create new button at the top of the knowledge bases page:
In the menu that pops up enter a name for the knowledge base and choose a language:
You will see a list (currently empty) of all documents that are part of this knowledge base. To add a document, click +Create New. The following page appears:
Under choose a file source, choose the location of the document you're adding. See the before you begin section for details on supported locations and file formats.
Click Create to add the document.
Create a conversation profile using the Agent Assist Console.