Chatbot Overview
Conversational Bots
Intents & Entities
Intelligent Bots
Kore.ai's Approach
Kore.ai Conversational Platform
Bot Concepts and Terminology
Natural Language Processing (NLP)
Bot Types
Bot Tasks
Starting with Kore.ai Platform
How to Access Bot Builder
Working with Kore.ai Bot Builder
Building your first Bot
Getting Started with Building Bots
Using the Dialog Builder Tool
Creating a Simple Bot
Release Notes
Latest Updates
Older Releases
Bot Builder
Creating a Bot
Design
Develop
Dialog Task
Working with User Intent & Dialog Node
Working with Entity Node
Supported Entity Types
Working with Composite Entities
Supported Time Zones
Supported Colors
Supported Company Names
Working with Message & Confirmation Nodes
Working with Service Node
Implementing Custom Authentication
Enabling 2-way SSL for Service nodes
Working with Script Node
Working with Agent Transfer Node
Working with WebHook Node
Defining Connections & Transitions
Managing Dialogs
Prompt Editor
Action & Information Task
Working with Action Tasks
Working with Information Tasks
Establishing Flows
Alert Tasks
Working with Alert Tasks
Managing Ignore Words and Field Memory
Knowledge Tasks
Building Knowledge Graph
Importing and Exporting Bot Ontology
Knowledge Extraction
Natural Language
Overview
Machine Learning
ML Model
Fundamental Meaning
Knowledge Graph Training
Traits
Ranking and Resolver
NLP Detection
NLP Settings and Guidelines
Bot Intelligence
Overview
Dialog Management
Sub-Intents and Follow-Up Intents
Amend Entity
Multi-Intent Detection
Context Management
Session and Context Variables
Context Object
Sentiment Management
Tone Analysis
Sentiment Management
Default Conversations
Default Standard Responses
Channel Enablement
Test & Debug
Talking to Bot
Utterance Testing
Batch Testing
Recording Conversations
Publishing your Bot
Analyzing your Bot
Overview
Dashboard
Conversation Flows
Bot Metrics
Advanced Topics
Bot Authorization
Language Management
Collaborative Development
IVR Integration
Universal Bots
Defining
Creating
Customizing
Enabling Languages
Smart Bots
Defining
Sample Bots
Github
Asana
Travel Planning
Flight Search
Event Based Bot Actions
Bot Settings
Bot Functions
General Settings
PII Settings
Customizing Error Messages
Bot Management
Using Bot Variables
API Guide
API Overview
API List
SDKs
SDK Overview
SDK Configuration
SDK Security
SDK App Registration
Kore.ai Web SDK Tutorial
Message Formatting and Templates
Mobile SDK Push Notification
Using the BotKit SDK
Installing the BotKit SDK
Events for the BotKit SDK
Functions for the BotKit SDK
BotKit SDK Tutorial – Agent Transfer
BotKit SDK Tutorial – Flight Search Sample Bot
Using an External NLP Engine
Web Socket Connect & RTM
Bot Administration
Bots Admin Console
User Management
Managing Users
Managing Groups
Managing Role
Bots Management
Enrollment
Inviting Users
Sending Bulk Invites to Enroll Users
Importing Users and User Data
Synchronizing Users from Active Directory
Security & Compliance
Overview
Using Single Sign-On
Cloud Connector
Analytics
Billing
Bot Store
Overview
Creating a Kore.ai Bot Account
Adding a Kore.ai Bot
Choosing a Channel for a Bot
Interacting with a Kore.ai Bot
Setting Up Web Service Alerts
Setting Up RSS Alerts
Setting Up the Kore.ai Webhook Bot
Custom Kore.ai Bots
Bots for your Customers FAQs
Bots for your Workforce FAQs
Adding Bots
Contacting Kore.ai Support
Setting Up Filters
Bot Store Settings
  1. Home
  2. Docs
  3. Bots
  4. Intelligence
  5. Dialog Management

Dialog Management

Human conversations are characterized by twists and turns, and no two directions are ever the same. Natural conversations often tend to go beyond linear intent resolution paths defined in the bots. Ideally, a user would allow the bot to take a user intent to its logical conclusion before initiating another, but that’s not always the case.

Consider the following conversation for example:

It includes an entity value for the bot to proceed with the current intent, while also presenting a new user requirement or intent.

Bots should account for this by allowing users to pause a task, start and complete another task, and then seamlessly return to the original task – all without losing important contextual data and conversation continuity.

Kore.ai provides you with granular control over hold and resume functionality at the bot, task, and node levels, and allows to control context switching rules and behaviors. You can handle such interruptions in intent flows by providing a whole range of options to define the task-switching experience.

The Hold and Resume options, as the options are referred to as, can be set up at the bot, task, and node levels to ensure the configurations are layered to suit your various business requirements. You can also add conditional exceptions between tasks with the ability to pass contextual data between them.

The following sections describe

  • the various Hold & Resume configurations,
  • the hierarchy of the setups at bot, task, and node levels.

Hold and Resume

The Hold & Resume options allow you to select if and how a user can switch to another task and also the exit strategies. The configuration for Hold & Resume can be done either at the Bot Level or at the Task or Dialog level. We will discuss the settings at the Bot Level in this section. These settings can be overridden at the Task level as discussed in the Hold and Resume Hierarchy section.

You can access the Hold and Resume settings from Natural Language -> Intelligence -> Manage Interruptions page.

The platform provides options for Hold and Resume under the following three categories:

  • Allow Hold and Resume: Provides options for you to choose for holding a task and options to resume it later.
  • Do not Allow Hold and Resume: Stops new tasks from interrupting the current task.
  • Allow the End User to Select the Behavior: Seeks end user confirmation to switch to a new task and provides several resume options for you to pick from.

NOTE: When user input after a session has ended, i.e. after at least 15 minutes of inactivity, and if the input is within the previous session context it is treated as a Hold and Resume scenario. If instead, the user comes back with a new utterance, then the old context is discarded and a new conversation is started.

Allow Hold and Resume

Once you allow for task interruption, you need to specify the Bot behavior in such scenarios like what should happen to the current task, where should the conversation go once the interruption task has been completed, etc., etc..

Following are the options under Allow Hold and Resume.

Option Description
Hold the current task and resume back once the new task is completed This option lets the bot to switch to a new intent as soon as it is detected irrespective of the current intent flow. When you select this option, the Resume Options section appears providing further choices to define how to resume the on-hold task once the new intent task is completed.  Refer to Resume Options section below for details.
Discard the current task and switch to new When you select this option, the bot discards the current task and switches to a new task soon after it encounters another intent. The bot sends a message to notify the user before switching to the new task and the current task would be discarded. You can customize the message from the Manage Response setting.
Switch to new task without any notification to the user and discard current task When you select this option, the bot discards the current task and switches to a new task soon after it encounters another intent. The bot does not notify the user about the switch and does not resume the current task later.
Continue with the current task and add a new task to the follow-up task list When you select this option, the bot continues on the current task even if it encounters a new intent. It, however, adds the new intent to the Follow-up intents array. Refer to Follow-up Intents section below for more information.

Do not Hold and Resume

When you select this option, the bot level Hold & Resume is turned off. However, you may override this behavior for selected tasks, linked dialogs (exceptions) or node level. Refer to the Hold and Resume Hierarchy section below for more information.

Allow the End User to Select the Behavior

When you select this option, the bot presents the end user with a confirmation message asking if the user would like to switch to a new task. The bot switches to the new task only if the end user chooses to do so. You can customize the confirmation message sent to the user by clicking the Manage Response link next to the option.

You need to define a Resume Option that the bot should take if the user decides to switch the task. Refer to Resume Options section below for details.

Resume Options

Once you allow the task to be put on hold and proceed with the interruption task, you need to configure the Resume option i.e. how the on-hold task should be handled once the interrupting task is completed.

Option Description
Get confirmation with the user before resuming an on-hold task After executing the new task, the bot gives Yes or No options to the user to return to the last on-hold task. You can write a custom message for the user by clicking the Manage Response link next to the option.
Example:

User: Hi
Bot: Hello!
User: Can you book me a flight for tomorrow?
Bot: From which city are you flying?
User: Los Angeles
Bot: Where to?
User: By the way, what’s the weather forecast for tomorrow?
Bot: Please enter the name of the city for the forecast.
User: Los Angeles
Bot: Weather Forecast for Los Angeles
Date: March 15
Temperature: 25 C
Condition: Mostly Sunny
Bot: Should I continue with the task 'Book Flight'?
User: Yes
Bot: Enter the name of the destination airport
Notify the user with a message that the on hold task is being resumed Notifies the user with a message and resumes the last task that’s kept on hold without user confirmation.
You can customize the notification message by clicking the Manage Response link next to the option.
Example:

User: Hi
Bot: Hello!
User: Can you book me a flight for tomorrow?
Bot: From which city are you flying?
User: Los Angeles
Bot: Where to?
User: By the way, what’s the weather forecast for tomorrow?
Bot: Please enter the name of the city for the forecast.
User: Los Angeles
Bot: Weather Forecast for Los Angeles
Date: March 15
Temperature: 25 C
Condition: Mostly Sunny
Bot: Resuming interrupted task Book Flight
Bot: Enter the name the of the destination airport
Resume the on hold task without any specific message to the user Directly resumes the last task that’s kept on hold soon after the current task is executed.
Example:

User: Hi
Bot: Hello!
User: Can you book me a flight for tomorrow?
Bot: From which city are you flying?
User: Los Angeles
Bot: Where to?
User: By the way, what’s the weather forecast for tomorrow?
Bot: Please enter the name of the city for the forecast.
User: Los Angeles
Bot: Weather Forecast for Los Angeles
Date: March 15
Temperature: 25 C
Condition: Mostly Sunny
Bot: Enter the name of the destination airport
Always resume the on hold task without any specific message to the user if the task is ended in a single response Sometimes, the switched over tasks end with a single bot response. For example, in the weather forecast example above, if the user had directly entered “By the way, what’s the weather forecast for LA tomorrow?”, the bot would’ve merely responded with the forecast, with no further steps.
In such cases, if you select this option, the bot switches back to the task on hold without any confirmation or notification, regardless of the option you’ve chosen.

Note: The switching happens directly, without any notification to the end user.

 

On Hold Quantity
You can select the number of tasks that you want to keep on hold from the On Hold Quantity field. The Bot keeps a maximum of this number of tasks on hold and ignores the tasks once this value is reached.

For example, if you specify the On Hold Quantity as 1 and if a third intent comes into play, the bot wouldn’t allow the new task to be initiated regardless of Hold and Resume options.

Note: Tasks always resume in the reverse chronological order. So, if you kept task 2 on hold after task 1, task 2 resumes before task 1.

Manage Behavior for FAQs

You can choose whether FAQs should honor the Hold & Resume Settings or if FAQs should be always responded. This feature was introduced with ver 7.0.

The flag Interruption Behavior for FAQs will allow you to:

  • Always identify and respond to FAQs when interruptions are enabled. This is the default setting.
  • Always identify FAQs when interruptions are enabled and proceed as per the Hold & Resume settings.

Hold and Resume Hierarchy

Apart from defining the generic Hold and Resume options at the bot level, you can customize these options at Dialog task or Dialog node level. When you set up the Hold and Resume options in more than one levels, the order of precedence of the settings works as follows:

Node Level Settings

You can customize the Hold and Resume settings at a node level. If you customize the settings for a node, this configuration takes the highest precedence.

To customize the Hold and Resume settings for a node:

  1. Open the Dialog task and then hover over the node whose settings you want to change.
  2. Go to the Properties panel by clicking the gear icon and then click the instance tab.
  3. In the Instance Properties panel, select Advanced Controls.
  4. Under the Hold & Resume section, select Customize for this node and make the necessary configurations. These configurations are the same as discussed above for the Bot Level Hold and Resume settings.

Dialog Level Settings

The Dialog level Hold and Resume customizations have higher priority over Bot level settings but rank lower than the Node level customizations or any exceptions.

To customize the Hold and Resume settings for a Dialog:

  1. Open the Dialog task whose settings you want to customize.
  2. On the top right-hand corner of the Dialog Builder, click the more options icon and then click Manage Interruptions.
  3. Under Hold & Resume section, select Customize for this task and make the necessary configurations. These settings are the same as discussed above for the Bot Level Hold and Resume.
Note: If you do not customize Hold & Resume settings at Node or Task level, the bot level settings come into play.
Menu