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 Time Zones
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
Prompt Editor
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
ML Model
Fundamental Meaning
NLP Settings and Guidelines
Knowledge Graph Training
Traits
Ranking and Resolver
NLP Detection
Bot Intelligence
Overview
Context Management
Session and Context Variables
Context Object
Dialog Management
Sub-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
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
Global Variables
Content Variables
Using Bot Functions
Configure Agent Transfer
  1. Home
  2. Docs
  3. Bots
  4. Bot Building
  5. Dialog Task
  6. Custom Meta Tags

Custom Meta Tags

While analyzing your Bot performances, you might want to give preference to or discard a particular scenario. For example, you might want to track how many people are booking tickets to Chicago. Or you might want to track how a specific user, a premium customer, requests are being catered to.

By adding Custom Meta Tags to the conversation flows, you will be able to profile bot user conversations and derive business-critical insights from your bot usage and execution metrics. Tags can be defined as part of the bot definition at any point of interest. When users interact with your bot, the platform will dynamically resolve these tags and adds them to chat transcripts so that you can later filter your conversations, and flows using those tags.

Defining Meta Tags

Kore.ai Bot builder platform allows you to add tags to various nodes in a dialog task like dialog node, entity node, etc.

This option is available from the Instance Properties tab

You can define these tags at three levels:

  • User Level: These tags can be added to the user’s profile information to capture user information. For example, to track conversations with a premium customer you will define a user-level tag with the user name or some qualifier as the value.
  • Message Level: These tags can be added to the message of the current node. If the current node is not associated with a message, then the tag gets added to the immediately previous node that has a message associated with it. From the above example, to track bookings to a specific city Chicago, you would be defining a Message Level tag.
    The platform will roll-up these message level tags to task level. That is if a task ends up as ‘Success/Failed Task’, then all the ‘message level’ tags emitted anywhere during the task execution will be associated with the Success/Failed Task event. You can filter Success Tasks as well as Failed Tasks using the message level tags emitted anywhere during the task execution
  • Session Level: These tags can be added at the current session of the user. These can be used to track the conversation sessions from a specific time frame say holiday season or a geographic domain.

The tag values will be emitted at run time:

  • For service, script, webhook and form nodes tags will be emitted on reaching the nodes;
  • For entity, message, confirmation, and other nodes tags will be emitted on the successful execution of the nodes.

You can also define Tags as key-value pairs from Script written anywhere in the application like Script node, Message, entity, confirmation prompts, error prompts, Knowledge Task responses, BotKit SDK, etc. This would be useful if you want conditional tagging.

Be aware that Script tagging would work only if the prompt where you added the tag script is triggered during the conversation.

Following script can be used for adding meta tags:

  • To add a User level tag:
    tags.addUserLevelTag("tagname","tagvalue")
  • To add a Session level tag:
    tags.addSessionLevelTag("tagname","tagvalue")
  • To add a Message level tag:
    tags.addMessageLevelTag("tagname","tagvalue")

The tagvalue can be a value or a variable name containing the value.

Updating Meta Tag Values

Chances are the Meta Tag values, once assigned, may be modified, for either business or other reasons. In such cases following points need to be noted:

  • The latest value assigned for a key will over-ride the previously assigned value.
  • The updates to the tags follow the following rules:
    • Message-level tags: You may set value for a tag multiple times within the script and the last set value will be assigned against the message. The value cannot be updated after the message is sent to the user
    • Session level tags: Value for a given tag can be set any number of times throughout the session. The last value assigned will be retained and this is the value that you should be using for all analytics purposes. Value cannot be updated after the session is closed.
    • User level tags: Value for a given tag can be set any number of times throughout the session. The last value assigned will be retained and this is the value that you should be using for all analytics purposes. Value can be edited at any time.

Using Meta Tags

Once you have defined the Meta Tags, you can:

  • Use the filter option from Bot Metrics to filter the conversations based upon the Meta Tag values. The export file for the Bot Metrics would include the Meta tag information, too. See here for more.
  • Use the filter option from Bot Builder Dashboard and Admin Console Dashboard to filter the Bot activity details based upon the Meta Tag values.
  • Use to filter the Chat History. Export of Chat History will also include the Meta Tag values. See here for more.
  • Filter the records from Conversation History API and Sessions API by meta tags.
Menu