GETTING STARTED
Kore.ai XO Platform
Virtual Assistants Overview
Natural Language Processing (NLP)
Concepts and Terminology
Quick Start Guide
Accessing the Platform
Working with the Builder
Building a Virtual Assistant
Using Workspaces
Release Notes
Current Version
Previous Versions
Deprecations

CONCEPTS
Design
Storyboard
Dialog Tasks
Overview
Dialog Builder
Node Types
Intent Node
Dialog Node
Entity Node
Form Node
Confirmation Node
Message Nodes
Logic Node
Bot Action Node
Service Node
Webhook Node
Script Node
Group Node
Agent Transfer
User Prompts
Voice Call Properties
Dialog Task Management
Connections & Transitions
Component Transition
Context Object
Event Handlers
Knowledge Graph
Introduction
Knowledge Extraction
Build Knowledge Graph
Add Knowledge Graph to Bot
Create the Graph
Build Knowledge Graph
Add FAQs
Run a Task
Build FAQs from an Existing Source
Traits, Synonyms, and Stop Words
Manage Variable Namespaces
Update
Move Question and Answers Between Nodes
Edit and Delete Terms
Edit Questions and Responses
Knowledge Graph Training
Knowledge Graph Analysis
Knowledge Graph Import and Export
Importing Knowledge Graph
Exporting Knowledge Graph
Creating a Knowledge Graph
From a CSV File
From a JSON file
Auto-Generate Knowledge Graph
Alert Tasks
Small Talk
Digital Skills
Digital Forms
Views
Introduction
Panels
Widgets
Feedback Survey
Train
Introduction
ML Engine
Introduction
Model Validation
FM Engine
KG Engine
Traits Engine
Ranking and Resolver
NLP Configurations
NLP Guidelines
Intelligence
Introduction
Contextual Memory
Contextual Intents
Interruption Management
Multi-intent Detection
Amending Entities
Default Conversations
Sentinment Management
Tone Analysis
Test & Debug
Talk to Bot
Utterence Testing
Batch Testing
Conversation Testing
Deploy
Channels
Publish
Analyze
Introduction
Conversations Dashboard
Performance Dashboard
Custom Dashboards
Introduction
Meta Tags
Dashboards and Widgets
Conversations History
Conversation Flows
Feedback Analytics
NLP Metrics
Containment Metrics
Usage Metrics
Smart Bots
Universal Bots
Introduction
Universal Bot Definition
Universal Bot Creation
Training a Universal Bot
Universal Bot Customizations
Enabling Languages
Store
Manage Assistant
Plan & Usage
Overview
Usage Plans
Support Plans
Invoices
Authorization
Multilingual Virtual Assistants
Masking PII Details
Variables
IVR Settings
General Settings
Assistant Management
Data Table
Table Views
App Definitions
Sharing Data Tables or Views

HOW TOs
Build a Flight Status Assistant
Design Conversation Skills
Create a Sample Banking Assistant
Create a Transfer Funds Task
Create a Update Balance Task
Create a Knowledge Graph
Set Up a Smart Alert
Design Digital Skills
Configure Digital Forms
Configure Digital Views
Add Data to Data Tables
Update Data in Data Tables
Add Data from Digital Forms
Train the Assistant
Use Traits
Use Patterns for Intents & Entities
Manage Context Switching
Deploy the Assistant
Configure an Agent Transfer
Use Assistant Functions
Use Content Variables
Use Global Variables
Web SDK Tutorial
Widget SDK Tutorial
Analyze the Assistant
Create a Custom Dashboard
Use Custom Meta Tags in Filters

APIs & SDKs
API Reference
API Introduction
API List
API Collection
koreUtil Libraries
SDK Reference
SDK Introduction
SDK Security
SDK Registration
Web Socket Connect and RTM
Using the BotKit SDK
BotKit SDK Tutorial - Blue Prism

ADMINISTRATION
Introduction
Assistant Admin Console
Administration Dashboard
User Management
Add Users
Manage Groups
Manage Roles
Assistant Management
Enrollment
Invite Users
Send Bulk Invites
Import User Data
Synchronize Users from AD
Security & Compliance
Using Single-Sign On
Security Settings
Cloud Connector
Analytics
Billing
  1. Home
  2. Docs
  3. Virtual Assistants
  4. Builder
  5. Alert Task
  6. Alert Task – Advanced Settings6 min read

Alert Task – Advanced Settings6 min read

As seen here, in the Advanced Settings section, you can define alert task settings for enabling and limiting the initial set of alert messages displayed to the end-user when the task is set up, define alert message reminders, and if required, prevent duplicate messages sent to the user.

Defined Advanced Settings

In the Advanced Settings section, you can define the initial polling results for a task, define an alert reminder, and specify keys the Bots Platform should use to prevent duplicate alert messages, for example, in a Twitter or Facebook feed.
To define advanced settings for a task, on the Settings tab, click the Expand  icon in the Advanced Settings section as shown in the following illustration.
AlertTask - Settings Tab - Advanced Settings Section

Initial Polling Setup

Initial polling is an option you can define to enable display of events to end-users immediately after they set up the task. For example, for a CNN News Bots, you can enable initial polling to show the last 10 news posts immediately after the end-user adds the task to their application. If initial polling is not defined, the task polling begins after the specified Trigger Interval has elapsed.
To enable and configure initial polling, in the Perform Initial Poll section, select Yes. In the No of posts field, enter the number of previous posts that should be posted immediately in the end-user application, as shown in the following illustration.
Initial Polling for a Task

Setting Up Alert Reminders

For some tasks, for example, the Google Calendar Event Updates task, you may want to add a reminder to the task. The reminder sends a reminder message to the end-user after receipt of the original task message. For example, the end-user may want to set up a 30-minute and 15-minute reminder before an event with the task message.
To enable and configure reminders, in the Enable Alert Reminder section, click Yes. The reminder configuration section is displayed as shown in the following illustration.
Task Reminder
Task Reminder Part 2
To configure an alert reminder:

  1. In the Enable Alert Reminder section, click Yes to display the alert reminder settings.
  2. In the Reminder Frequency section, click in the text box to display and select one or more intervals for the frequency of the reminder ranging from 5 mins to 7 days.
  3. In the Reminder Message text area, enter the message to display to the end-user for the event reminder. For example,
    print('Event starts in '+__frequency__);
    To use system generated keys, click Select any key and choose a key from the dropdown list.
  4. In the Identity Event Modification section, enter one or more keys in a comma-separated list used to identify new events. For example, id, LastModifiedDateTime, subject.
  5. In the Event Start Time section, enter the message to display to the end-user for the start date and time of the event using the alert task payload field that contains the event start time. For example,
      if (due_at) {
           print(due_at);
       } else if (due_on) {
           var dt = new Date(created_at);
           var dtt = new Date(due_on);
           dt.setYear(dtt.getFullYear());
           dt.setMonth(dtt.getMonth());
           dt.setDate(dtt.getDate());
           dt.setHours(00);
           dt.setMinutes(00);
           dt.setSeconds(00)
           print(dt.toISOString());
       }
  6. In the Format to Identify Recurrence section, select the type of recurrence pattern format used in the payload as one of RRule or Cron.
    • RRule – A JavaScript library for working with recurrence rules for calendar dates. Use this for iCalendar events. For more information, see Recurrence Rule.
    • Cron – Used for scheduling tasks in the future. For more information, see Cron Expressions.
  7. In the Recurrence Pattern section, define the string displayed to the end-user to show the frequency of a repeating event, such as a recurring weekly meeting. For example,
    if (typeof(Recurrence) !== 'undefined' && Recurrence) {
        var map = new Object();
        map['Daily'] = "DAILY";
        map['Weekly'] = "WEEKLY";
        map['AbsoluteMonthly'] = "MONTHLY";
        map['RelativeMonthly'] = "MONTHLY";
        map['AbsoluteYearly'] = "YEARLY";
        map['AbsoluteYearly'] = "YEARLY";
        map['First'] = 1
        map['Second'] = 2
        map['Third'] = 3
        map['Fourth'] = 4
        map['Last'] = -1
        map['Sunday'] = 'SU'
        map['Monday'] = 'MO'
        map['Tuesday'] = 'TU'
        map['Wednesday'] = 'WE'
        map['Thursday'] = 'TH'
        map['Friday'] = 'FR'
        map['Saturday'] = 'SA'
        var rrule = '';
        if (typeof(Recurrence.Pattern.Type) !== 'undefined') {
            var freq = map[Recurrence.Pattern.Type];
            rrule = rrule + 'FREQ=' + freq + ';';
        }
        if (typeof(Recurrence.Range.StartDate) !== 'undefined') {
            var stDate = new Date(Recurrence.Range.StartDate).toISOString();
            rrule = rrule + 'DTSTART=' + stDate + ';';
        }
        if (typeof(Recurrence.Pattern.Interval) !== 'undefined') {
            var interval = Recurrence.Pattern.Interval
            rrule = rrule + 'INTERVAL=' + interval + ';';
        }
        if (typeof(Recurrence.Range.EndDate) !== 'undefined' && Recurrence.Range.Type !== 'NoEnd') {
            var edDate = new Date(Recurrence.Range.EndDate).toISOString();
            rrule = rrule + 'UNTIL=' + edDate + ';';
        }
        if (typeof(Recurrence.Pattern.Month) !== 'undefined' && Recurrence.Pattern.Month !== 0) {
            rrule = rrule + 'BYMONTH=' + Recurrence.Pattern.Month + ';';
        }
        if (typeof(Recurrence.Pattern.DayOfMonth) !== 'undefined' && Recurrence.Pattern.DayOfMonth !== 0) {
            rrule = rrule + 'BYMONTHDAY=' + Recurrence.Pattern.DayOfMonth + ';';
        }
        if (typeof(Recurrence.Pattern.Index) !== 'undefined') {
            var wno = map[Recurrence.Pattern.Index];
            rrule = rrule + 'BYSETPOS=' + wno + ';';
        }
        if (typeof(Recurrence.Pattern.DaysOfWeek) !== 'undefined') {
            var arr = [];
            for (var i = 0; i < Recurrence.Pattern.DaysOfWeek.length; i++) {
                arr.push(map[Recurrence.Pattern.DaysOfWeek[i]])
            }
            rrule = rrule + 'BYDAY=' + arr.join(',') + ';';
        }
        print(rrule);
    }
  8. If the Format to Identify Recurrence field is set to Cron, then define the Event End section to define the string displayed to the end-user to show the date and time of the last recurring event.

Click Save to save the settings.

Preventing Duplicate Message Alerts

After you add your filters for the response object, you should determine if you need to apply a strategy to prevent the display of duplicate messages to the end-user. For example, if you set up an RSS task, you may want to prevent duplicate messages for the same subject, or for Facebook, prevent duplicate messages each time a comment is added to a post.
In Kore.ai, you can choose one of two options for Deduplicate Strategy:

  • None – This is the default method to prevent duplicate alert messages. Each incoming task payload is hashed and the latest 500 task hash values are persisted. Each new task payload is compared against the list to prevent duplicate task alert messages. This option works for most tasks.
  • ExcludeByCachedIds – Select to enter one or more response identifier keys in a comma-separated list used to filter Kore.ai task alert messages and prevent duplication based on the cached hash value of the key for up to 500 hash values. If any of the key hash values match the response object, then the alert message is filtered and not displayed. For RSS Alert Types, RSS XML payloads are parsed as JSON. To filter by RSS item, enter $..guid[0]._ to prevent duplicate messages using the XML < GUID > tag parsed to JSON as:
    {
        "guid": [
            "_": "some link"
        ]
    }

To define settings to prevent duplication messages for a task, on the Settings tab, click the Expand  icon in the Advanced Settings section to display the Deduplicate Strategy section as shown in the following illustration.
Deduplicate Strategy Settings

Menu