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
Deprecations
Bot Builder
Creating a Bot
Design
Develop
Storyboard
Dialog Task
User Intent Node
Dialog Node
Entity Node
Supported Entity Types
Composite Entities
Supported Colors
Supported Company Names
Form Node
Logic Node
Message Nodes
Confirmation Nodes
Service Node
Custom Authentication
2-way SSL for Service nodes
Script Node
Agent Transfer Node
WebHook Node
Grouping Nodes
Connections & Transitions
Managing Dialogs
User Prompts
Alert Tasks
Alert Tasks
Ignore Words and Field Memory
Digital Forms
Digital Views
Knowledge Graph
Terminology
Building
Generation
Importing and Exporting
Analysis
Knowledge Extraction
Small Talk
Action & Information Task
Action Tasks
Information Tasks
Establishing Flows
Natural Language
Overview
Machine Learning
Model Validation
Fundamental Meaning
NLP Settings and Guidelines
Knowledge Graph Training
Traits
Ranking and Resolver
NLP Detection
Advanced NLP Configurations
Bot Intelligence
Overview
Context Management
Session and Context Variables
Context Object
Dialog Management
Sub-Intents & Follow-up Intents
Amend Entity
Multi-Intent Detection
Sentiment Management
Tone Analysis
Sentiment Management
Default Conversations
Default Standard Responses
Channel Enablement
Test & Debug
Talk to Bot
Utterance Testing
Batch Testing
Record Conversations
Publishing your Bot
Analyzing your Bot
Overview
Dashboard
Custom Dashboard
Conversation Flows
Bot Metrics
Advanced Topics
Bot Authorization
Language Management
Collaborative Development
IVR Integration
Data Table
Universal Bots
Defining
Creating
Training
Customizing
Enabling Languages
Smart Bots
Defining
Sample Bots
Github
Asana
Travel Planning
Flight Search
Event Based Bot Actions
koreUtil Libraries
Bot Settings
Bot Functions
General Settings
PII Settings
Customizing Error Messages
Manage Sessions
Bot Management
Bot Versioning
Using Bot Variables
API Guide
API Overview
API List
API Collection
SDKs
SDK Overview
SDK Security
SDK App Registration
Web SDK Tutorial
Message Formatting and Templates
Mobile SDK Push Notification
Widget SDK Tutorial
Widget SDK – Message Formatting and Templates
Web Socket Connect & RTM
Using the BotKit SDK
Installing
Configuring
Events
Functions
BotKit SDK Tutorial – Agent Transfer
BotKit SDK Tutorial – Flight Search Sample Bot
Using an External NLP Engine
Bot Administration
Bots Admin Console
Dashboard
User Management
Managing Users
Managing Groups
Managing Role
Bots Management
Enrollment
Inviting Users
Bulk Invites
Importing Users
Synchronizing Users from AD
Security & Compliance
Using Single Sign-On
Security Settings
Cloud Connector
Analytics
Billing
How Tos
Creating a Simple Bot
Creating a Banking Bot
Transfer Funds Task
Update Balance Task
Context Switching
Using Traits
Schedule a Smart Alert
Configure Digital Forms
Add Form Data into Data Tables
Configuring Digital Views
Add Data to Data Tables
Update Data in Data Tables
Custom Dashboard
Custom Tags to filter Bot Metrics
Patterns for Intents & Entities
Build Knowledge Graph
Using nlMeta
Global Variables
Content Variables
Using Bot Functions
Configure Agent Transfer
  1. Home
  2. Docs
  3. Bots
  4. Bot Building
  5. Dialog Task
  6. Grouping Nodes

Grouping Nodes

Grouping nodes is primarily used for defining a group of nodes and representing the same in the dialog canvas. Note that it is not a part of the dialog flow.

The Group Node functionality has been enhanced in v8.1 with the objective of improving user experience with follow-ups, digressions, and amending entity values. For an use case example, refer here.

Adding

To add a group node to the dialog task, follow the below steps:

  1. Open the Dialog Task where you want to add the Group node.
  2. Create a group using the mouse action of selection covering one or more nodes in the dialog definition.
  3. You can rename, configure (post v8.1) or delete a group.
  4. Once created, you can not add or remove specific nodes from the group.
    • Any node you add is added outside the group.
    • Any node you delete is deleted from the entire dialog.
    • Deleting a group will not delete the nodes within the group from the dialog.

Configuring

From v8.1 of the platform, the Group Node functionality has been enhanced with the following capabilities:

  • Scoping of Intents – ability to define the sub-intents to be made available when the user is waiting at any of the nodes in the group;
  • Sub-intent Training – the ability to train the sub-intent;
  • Sub-intents Properties – ability to define the behavior of the sub-intent.

For a use case example, with step-by-step instructions in achieving the intent scoping, refer here

Scoping of Intents

Using Group Nodes you can scope the sub-intents that are to be allowed to be identified from the user utterance and executed while the user is at one of the nodes within the group.

  1. Hover over the group you want to scope the intents for and click the settings (gear) icon.
  2. From the Group Node window, select Add Intent to add intents that should be part of this group’s scope.
  3. From the Add Intent window, select the intent to be scoped as sub-intent for this Group node. This would be the intent that a user might ask for when the conversation is at any of the nodes in this group. For example, asking “How is the weather at XYZ city” when prompted for destination entity or asking for “Flight times” when prompted for the travel date.
  4. You can choose to add new sub-intents using the Create Intent button.
  5. Once added you can train, set behavioral properties and/or delete a scoped intent.

Training of Intents

Once added, each of the sub-intent can be trained for recognition within this group. This would ensure that the sub-intent is identified in the group’s context.

  1. From the Group settings page, select the sub-intent you want to train.
  2. You can train the sub-intent with the following:
    • Machine Learning – Add the user utterances that should identify this sub-intent. You can also use the NER approach to annotate entities in the utterances.
    • Patterns – Identify patterns in the user utterance related to this sub-intent
    • Rules – Define intent identification rules to trigger this intent
  3. You can also set the Intent Preconditions i.e. the sub-intent would get identified only when any of the preconditions defined are available in the context at the time of intent detection. These pre-conditions will be considered as instance level and would take precedence over the component level pre-conditions.

Properties of Intents

The fulfillment section can be used to define the actions when this particular sub-intent is identified from the user input. It includes the following properties:

  • Context Variables – Set the key-value pairs to define the session or context variables to be updated when this sub-intent is identified.
    If you want to reset the values, you need to use the keyword “null”, spaces would be ignored by the platform.
  • Message – Optionally, define a message to be presented to the user when this sub-intent is identified. As with other responses, you can define the message as plain text, or JavaScript format.
  • Context Output – Define the context tags to be set when this intent is identified. The intent name is always set as output context by the system.
    If you want to reset the values, you need to use the keyword “null”, spaces would be ignored by the platform.
  • Transition Flow – Use this option to define how the dialog should resume after executing this sub-intent. Two behaviors you can define:
    • Jump To A Node – The dialog will resume from the node selected here.
    • Resume The Dialog – The dialog will resume from the node where this intent was identified.

Implementation

Following are the changes in sub-intent behavior within a group

  • For every sub-intent identified, the context object will be updated with an array of objects with the identified sub-intent details with the latest on the top. The following information is captured:
    • Name of the sub-intent;
    • Entities that are identified along with the sub-intent;
    • Name of the group to which the sub-intent belongs, where applicable;
    • Name of the node at which the sub-intent is identified.
      "identifiedSubIntents": [
        {
          "intent": "Change Destination",
          "entities": {
            "destcity": "Delhi"
          },
          "groupName": "Entity Group",
          "identifiedAt": "to_date"
        },
        {
          "intent": "Weather Report",
          "groupName": "Entity Group",
          "identifiedAt": "destcity"
        }
      ]
  • The intent would be executed if the sub-intent identified from the user utterance is within the group scope and all the input preconditions are satisfied and the transition flow directs to the concerned node.
  • The execution of sub-intent would involve:
    • Updation of the context variables as per the defined mapping
    • Setting the Output Context as per the defined mapping
    • Presenting the message to the user, if applicable
  • The current dialog execution should continue as per the transition flow defined
    • Jump to the specified node; or
    • Resume from the point where the sub-intent was identified.
Menu