Skip to main content

Add knowledge to your bot flow

Add knowledge to your bot flows or digital bot flows to create FAQ-style bots or context-aware Virtual Agents.

The knowledge workbench allows a knowledge author to create and manage knowledge documents, train the search algorithms, and view the performance of knowledge bases. Knowledge bases are sets of predefined knowledge documents that respond to questions by agents and customers. For more information, see .

Note: For more information about how to control the knowledge end-to-end in your bot flow using the custom mode, see .

Similarly, the knowledge fabric allows administrators to add content sources and knowledge configurations to their Virtual Agent-enabled flows. The knowledge configurations enable the Virtual Agents to understand and respond to conversations, and ensure that customers get the answers they need. For more information, see .

To add knowledge, follow one of these methods:

  • Using the knowledge workbench, create a knowledge base and then link it to your flow with or without Virtual Agent enabled. You can also use an existing knowledge base with a bot flow in Architect or open the knowledge workbench from Architect and then create and build a new knowledge base.
  • Using the knowledge fabric, create a knowledge configuration and then link it to your flow with Virtual Agent enabled. You can also use an existing knowledge configuration with a bot flow in Architect or open the knowledge fabric from Architect and then create and build a new knowledge configuration.

Find the Knowledge section from Architect’s Natural Language Understanding menu.

NLU Knowledge

Knowledge view

The Knowledge view contains the following information depending on whether Knowledge Base or Configuration is selected:

Knowledge overview

When you select a knowledge base or knowledge configuration, the system displays information about it. After you select a knowledge base or configuration, you can enable . You can only select published knowledge bases or configurations that you configure with the flow’s supported language.

FieldDescription
Default Knowledge BaseThe name and language of the current knowledge base.
Details section

For knowledge base:

  • The name and language of the knowledge base
  • If configured, the knowledge base description
  • The number of articles in the knowledge base
  • The date that the knowledge base was created
  • The date that the knowledge base was last updated

For knowledge configuration:

  • The name and language of the knowledge configuration
  • If configured, the knowledge configuration description
  • The date that the knowledge configuration was created
  • The date that the knowledge configuration was last updated
  • The content sources to which the knowledge configuration connects

General tab

Control the intent type that the bot is more likely to suggest in response to a participant’s input during response bias.

FieldDescription
Response Bias 
  • Intents – If an overlap happens, the bot favors the intent path.
  • Neutral (default setting) – The bot uses an equal weight between intents and knowledge paths.
  • Knowledge – If an overlap happens, the bot favors the knowledge path.

Answer tab

Choose how the bot presents the knowledge answer. For example, “I think this is what you’re looking for.” or “I found this information for you.” Add a word or phrase that the bot uses before it presents the surfaced answer to the participant.

Virtual Agent and answer highlight

If you , you can use the large language model (LLM) to help your customers reach the correct answer within an article quickly and with higher accuracy. In Virtual Agent, when a customer asks a question, your bot matches the question to an article and also displays the highlighted answer natively so that the customer does not need to search through or read the entire article. For more information, see .

Notes:
  • Answer highlight is useful if you have a well-structured, defined knowledge base.
  • Answer generation is useful if your articles are not well-structured or well-edited.
  • Feedback is unavailable with answer generation.
FieldDescription
Single Answer IntroductionThe wording that the bot uses before returning a single knowledge answer. For example, “I found the following information.” To add a word or phrase to introduce a single answer to the participant, follow these steps:
  1. Click Expression Mode .
  2. To build an answer, select one of these options:
  3. Click Save.
Search with context

Turn Search with context on or off depending on whether you want to keep context throughout different queries or not. Contextual answers are especially useful in multi-turn conversations while non-contextual search includes only the latest user query.

Notes:

  • This toggle condition overrides the equivalent setting defined in the
  • It is available only when the flow uses a knowledge fabric configuration.
Content Type: Select from Standard, Highlight, or Generative.

Standard: Select this option if you want to present the full article that best matches the customer query.

Note: The Standard type is not available when the flow uses a knowledge fabric configuration.

Highlight: Select this option if you want to match the question to an article and display the highlighted answer within the article. 

  1. Full Article Label. Enter the label that enables the user clicks to view the full article and not just the highlighted answer. Conversely, you can perform these steps to build an expression for the label:
    1. Click Expression Mode .
    2. To build an answer, select one of these options:
    3. Click Save.
  2. Flow Progression Label. Enter the label that the user clicks to continue to progress through the bot flow. Conversely, you can perform these steps to build an expression for the label:
    1. Click Expression Mode .
    2. To build an answer, select one of these options:
    3. Click Save.

Note: The Highlight type is not available when the flow uses a knowledge fabric configuration.

Generative: Select this option if you want to create an AI-generated answer based on the article that best matches the customer query.

  1. Full Article Label. Enter the label that the user clicks to view the full article and not just the highlighted answer. Conversely, you can perform these steps to build an expression for the label:
    1. Click Expression Mode .
    2. To build an answer, select one of these options:
  2. Flow Progression Label. Enter the label that the user clicks to continue to progress through the bot flow. Conversely, you can perform these steps to build an expression for the label:
    1. Click Expression Mode .
    2. To build an answer, select one of these options:
    3. Click Save.
Multiple Article Generation

If you choose Generative as the Content Type, you can also direct the bot to generate a single answer from multiple knowledge articles. To collect content from more than one source, when available, click Multiple Sources enabled.

Notes:

  • To use this feature, you must enable content search for the knowledge base. For more information, see .
  • The Disambiguation and Feedback tabs are not available for multiple sources.
  • When generative content gathering does not match multiple sources, the bot uses the top-ranking result.
  • This feature is not available when the flow uses a knowledge fabric configuration.
FieldDescription
Single answer introductionThe wording that the bot uses before returning a single knowledge answer. For example, “I found the following information.” To add a word or phrase to introduce a single answer to the participant, follow these steps:
  1. Click Expression Mode .
  2. To build an answer, select one of these options:
  3. Click Save.

Disambiguation tab

Use this tab to determine how the bot resolves uncertainty about the knowledge that it surfaces. For example, the bot can ask the participant for clarification, repeat the available options, or give the participant the option to reject all options that the bot presents.

Note: The Disambiguation tab is not available when the flow uses a knowledge fabric configuration.
FieldDescription
Maximum Number of Answers Returned

The maximum number of answers given for the caller’s question, when multiple possible matches exist.

  • Default: 3
  • Minimum value: 1
  • Maximum value: 20
Multiple answers introduction

The wording that the bot uses to introduce a numbered list of matching knowledge answers. Use this option for cases when multiple potential matches exist. To add an answer for multiple answers, follow these steps:

  1. Click Expression Mode .
  2. To build an answer, select one of these options:
  3. Click Save.
Reject all answersThe wording that the bot uses as the final option when it displays multiple answers; for example, “None of these.” When you choose this option, the system rejects all other proposed answers. To add an answer that enables the participant to reject all proposed answers, follow these steps:
  1. Click Expression Mode .
  2. To build an answer, select one of these options:
  3. Click Save.
Multiple answers retryThe wording that the bot uses to reintroduce a numbered list of matching knowledge answers. Use this option for cases when the user’s first try to choose a number was unsuccessful. To add an answer for when the participant’s first attempt to choose an option is not successful, follow these steps:
  1. Click Expression Mode .
  2. To build an answer, select one of these options:
  3. Click Save.

Feedback tab

Select whether to use a knowledge confirmation response after the bot presents an answer to the participant. Then, when applicable, add the wording that the bot must use. For example, “Did I answer your question?” If you enable Virtual Agent, then the Feedback tab is available for Standard and Answer Highlight.

Note: The Feedback tab is not available when the flow uses a knowledge fabric configuration.
FieldDescription
Knowledge confirmationEnable or disable the knowledge confirmation response after the system presents an answer. The default setting is “true.” 
Knowledge confirmation responseWhen you enable knowledge confirmation, this section enables you to enter the wording that the bot uses after it provides a single knowledge answer. To add a confirmation request that the bot asks the participant with a single knowledge answer, follow these steps:
  1. Click Expression Mode .
  2. To build an answer, select one of these options:
  3. Click Save.

Digital bots only: Follow-up tab

When you want the bot to follow up with the participant, you can control the customer experience by customizing the knowledge behavior. You can choose between a statement or task for the next steps. A statement gives wording to prompt the participant about what to do next, based on their last communication. For example, “How can I help you further?” or “What would you like to do next?” A task includes logic that can direct the customer to a new location, a digital menu, and other “next steps” to guide them to the proper path. This behavior enables you to take control of the conversation and how the customer moves through the bot flow. 

FieldDescription
Knowledge Follow-up

Select either Statement or Task. The next options that appear depend on the option that you select here.

Follow-up Statement

Enter the wording that you want the bot to use as a follow-up question.

Use a follow-up statement to prompt the caller for what to do next. For example, “How can I help you further?” or “What would you like to do next?”

Follow-up Task

Use a follow-up task to guide the participant to their preferred next steps. For example, a new location, a digital menu, or another flow. 

Perform one of these steps:

  • Click the task list and select an existing task.
  • Click Go to Task to open the task and review or edit it.
  • Click Create New Task to create a new task and, after you add a name, click Create New Task. To open the task and configure it, expand Reusable Tasks and click the new task. 

Use a knowledge base in a bot flow

To use a knowledge base in a bot flow, follow these steps:

  1. Create a bot flow or open an existing one. The Bot Flow page opens.
  2. Under Natural Language Understanding, click Knowledge.
  3. Under Knowledge Base, create a new knowledge base or select an existing one:
    • To create a new knowledge base, click the open button to open the knowledge workbench V2 in a new tab, and then .
    • To use an existing knowledge base, select it from the list.
  4. On the General tab, in the Response Bias section, select the type of interpretation that you want the bot to most likely suggest in response to the participant’s input:
    • Intents
    • Neutral
    • Knowledge
  5. Click the Answer tab and under Single answer introduction, click the  output value button and create the response. The default setting is No Value.
  6. Click the Disambiguation tab and choose how the bot resolves uncertainty with the answers it finds for the participant:
    1. For Maximum Number of Answers Returned, enter the maximum number of answers given for the caller’s question, if multiple possible matches exist.
    2. For Multiple answers introduction, click statement and create the response.
    3. For Reject all answers, click statement and create the response.
    4. For Multiple answers retry, click statement and create the response.
  7. Click the Feedback tab and select feedback configuration for knowledge answers or NLU intents:
    1. Under Knowledge confirmation, click statement and create the response.
  8. Click the Follow-up tab and choose how to guide the participant to the next step. 
    1. Under Knowledge Follow-up, to determine how the bot responds after the participant receives a knowledge answer, select either Statement or Task.
    2. If you choose to follow up with a statement, then in the Follow-up Statement box, configure the wording that the bot uses to reply to the participant.
      Note: You can enter an expression or use the .
    3. If you choose to follow up with a task, then in the Follow-up Task box, do one of these steps:
      1. Click the task list and select an existing task.
      2. Click Go to Task to open the task and review or edit it.
      3. Click Create New Task to create a new task and, after you add a name, click Create New Task. To open the task and configure it, expand Reusable Tasks and click the new task. 
  9. according to your organization’s specifications.
    Note: Knowledge appears under the paths.

Use a knowledge configuration in a Virtual Agent-enabled flow

To use a knowledge configuration in a Virtual Agent-enabled flow, follow these steps:

  1. Create a bot flow or open an existing one. The Bot Flow page opens.
  2. Upgrade the bot flow to Virtual Agent. For more information, see .

  3. Under Natural Language Understanding, click Knowledge.

  4. To switch to knowledge fabric configuration, click Configuration. Then, click Switch to confirm it.
  5. Under Knowledge Configuration, create a new knowledge configuration or select an existing one:
    • To create a new knowledge configuration, click the open button to open the knowledge fabric in a new tab, and then .
    • To use an existing knowledge configuration, select it from the list.
  6. On the General tab, in the Response Bias section, select the type of interpretation that you want the Virtual Agent to most likely suggest in response to the participant’s input:
    • Intents
    • Neutral
    • Knowledge
  7. Click the Answer tab and under Single answer introduction, click the  output value button and create the response. The default setting is No Value.
  8. Turn Search with context on or off depending on whether you want to keep context throughout different queries or not.
  9. Click the Follow-up tab and choose how to guide the participant to the next step. 
    1. Under Knowledge Follow-up, to determine how the bot responds after the participant receives a knowledge answer, select either Statement or Task.
    2. If you choose to follow up with a statement, then in the Follow-up Statement box, configure the wording that the Virtual Agent uses to reply to the participant.
      Note: You can enter an expression or use the .
    3. If you choose to follow up with a task, then in the Follow-up Task box, do one of these steps:
      1. Click the task list and select an existing task.
      2. Click Go to Task to open the task and review or edit it.
      3. Click Create New Task to create a new task and, after you add a name, click Create New Task. To open the task and configure it, expand Reusable Tasks and click the new task. 
  10. according to your organization’s specifications.
    Note: Knowledge appears under the paths.