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
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
Logic Node
Dialog Node
Bot Action Node
Service Node
Webhook Node
Script Node
Group Node
Agent Transfer
User Prompts
Voice Call Properties
Connections & Transitions
Component Transition
Context Object
Dialog Task Management
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
Term Types
Tags
Synonyms
Overview
Traits
Context
Stop Words
Test & Train
Thresholds and Configurations
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
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
Introdcution
NLP Metrics
Conversations Dashboard
Conversation Flows
Usage Metrics
Containment Metrics
Custom Dashboards
Introduction
Meta Tags
Dashboards and Widgets
Performance Dashboard
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

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

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

Context 개체는 대화 실행을 위해 및 모든 의도(예: 대화 작업, 조치, 알림 및 정보 작업, FAQ)에서 데이터를 유지하는 컨테이너 개체입니다. Kore.ai의 자연어 처리(NLP) 엔진은 식별된 의도, 추출된 엔티티, 기록을 이 개체에 채웁니다. Context 개체의 키는 대화 작업 및 의도 전환 조건에 사용됩니다. 또한, context 개체는 추가 시스템 변수와 세션 변수를 사용하여 액세스할 수 있습니다.  URL에서 Context 개체 키를 사용할 때 구문은 다음과 같이 이중 대괄호로 묶는 것입니다: https://quora.com/{{context.entities.topic}}/rss Context 개체는 스크립트 노드뿐만 아니라 엔티티 노드의 동적 값으로도 참조할 수 있으며 페이로드 응답을 Kore.ai SDK로 전달할 수 있습니다. Context 개체 키 값을 비즈니스 로직을 기반으로 업데이트하여 대화 작업 실행에 영향을 줄 수 있습니다. 플랫폼은 여기서 참조할 수 있는 세션 변수를 생성하고 유지합니다.

다음 표에서는 Context 개체 키를 설명합니다. 이 키는 생성 및 추가되는 시기에 따라 전역 컨텍스트 및 대화 컨텍스트로 분류할 수 있습니다. 자세한 내용은 여기를 참조하세요.

카테고리 설명 사용 예시
의도 대화 NLP 인터프리터가 인식한 의도입니다. 구문: context.intent.<< intent name >>
entities 대화 사용자 프롬프트와 해당 프롬프트에서 인식된 사용자 입력을 기반으로 하는 키/값 쌍의 배열입니다.

구문: context.entities.<< entity name >>다음 코드 예제에서 context.entities 개체는 금액과 계정 이름의 값을 액세스하여 계정 간 이체를 확인하는 데 사용됩니다

var today = new Date();
if(today.getHours() < 21)
 {
   print("You have requested to transfer " +context.entities.Amount + 
         " USD from " +context.entities.FromAccountName +
         " to " +context.entities.ToAccountName + " account. " +  
         " Your funds will be shown immediately though transfer will be shown in tomorrow's date in your transaction history. Shall I go ahead? ");
  }
 else
 {
  print("You have requested to transfer " +context.entities.Amount + 
        " USD from " +context.entities.FromAccountName +
        " to " +context.entities.ToAccountName + " account. Shall I go ahead? " +
         context.accdata[0].transactions.length);
  }
traits 대화 지정된 컨텍스트에 설정된 특성
currentLanguage(ver7.1에서 도입됨) 전역 현재 대화 언어
suggestedLanguages(ver7.1에서 도입됨) 전역 플랫폼이 사용자의 첫 번째 발화에서 감지한 모든 언어의 목록으로 신뢰도순으로 표시됩니다. 이 목록은 각 대화 시작 시 재설정됩니다.
history 전역 NLP 인터프리터를 사용하는 각 구성 요소의 nodeId를 포함하는 배열입니다.

대화 흐름에서 실행된 노드 경로를 순차적으로 기록해 정의하는 개체의 배열입니다.

  • nodeId – 노드 유형 및 증분 번호 지정을 사용한 노드의 대화 작업 흐름 ID입니다. 예: intent0, service2 등.
  • state – 표시된 타임스탬프에서 개체의 상태입니다. 다음 중 하나입니다.
    • processing – 봇 플랫폼이 노드 처리를 시작합니다
    • processed – 노드와 노드 연결이 처리되고 다음 노드를 찾았지만 대화가 해당 노드로 이동하지 않았습니다.
    • waitingForUserInput – 사용자에게 입력을 요청했지만 입력을 수신하지 못했습니다.
    • pause – 다른 작업이 시작되는 동안 현재 대화 작업이 일시 중지되었습니다.
    • resume – 일시 중지 상태의 현재 대화는 먼저 시작된 다른 작업이 완료된 후 흐름의 동일한 지점에서 계속됩니다.
    • waitingForServerResponse – 서버 요청이 비동기 응답을 보류하고 있습니다.
    • error – 오류가 발생했습니다. 예: 루프 제한에 도달했거나 서버 노드 또는 스크립트 노드를 실행하지 못했습니다.
    • end – 대화가 대화 흐름의 끝에 도달했습니다.
  • type – 대화 작업의 유형입니다. 다음 중 하나입니다.
    • intent – 대화 작업이 사용자 의도 또는 작업입니다.
    • faq – 대화 작업이 지식 그래프입니다.
  • componentName – 노드의 이름입니다.
  • timestamp – 노드 실행의 JSON 날짜 타임스탬프입니다. 예: 1492794646000.
onHoldTasks 대화 대화가 진행되는 동안 보류된 모든 작업의 배열입니다. 평가 용도로 사용할 수 있는 읽기 전용 목록입니다. (버전 7.1에서 도입됨)
서비스 노드 이름 대화 서비스 노드 실행을 위한 개체 모음입니다.
  • response – 요청 상태와 응답 본문을 JSON 페이로드로 반환합니다.
    • statusCode – HTTP 요청 상태 코드입니다. 예: 200 OK.
    • body – 서비스 요청의 JSON 페이로드 응답 본문입니다.
resultsFound 대화 결과가 반환되는 경우 True입니다
message_tone 전역 대화 작업의 현재 노드에 대해 인식된 어조 감정 및 점수 배열입니다.
  • tone_name – 감지된 어조 이름입니다. 다음 중 하나입니다.
    • angry
    • disgust
    • fear
    • sad
    • joy
    • positive – 발화의 전반적인 긍정성을 평가하는 데 사용되는 특별한 어조입니다.
  • count
  • level – 어조 감정의 수준은 -3에서 +3까지입니다. 다음 중 하나입니다.
    • +3 – 사용자가 어조 감정을 확실히 표현했습니다.
    • +2 – 사용자가 어조 감정을 표현했습니다.
    • +1 – 사용자가 어조 감정을 표현했을 가능성이 높습니다.
    • 0 – 사용자 어조 감정이 중립입니다.
    • -1 – 사용자가 어조 감정을 억제했을 가능성이 높습니다.
    • -2 – 사용자가 어조 감정을 억제했습니다.
    • -3 – 사용자가 어조 감정을 확실히 억제했습니다.
dialog_tone 전역 전체 대화 작업 세션에 대해 평균적인 인식된 어조 감정 및 점수의 배열입니다.
  • tone_name – 감지된 어조 이름입니다. 다음 중 하나입니다.
    • angry
    • disgust
    • fear
    • sad
    • joy
    • positive – 발화의 전반적인 긍정성을 평가하는 데 사용되는 특별한 어조입니다.
  • count
  • level – 어조 감정의 수준은 -3에서 +3까지입니다. 다음 중 하나입니다.
    • +3 – 사용자가 어조 감정을 확실히 표현했습니다.
    • +2 – 사용자가 어조 감정을 표현했습니다.
    • +1 – 사용자가 어조 감정을 표현했을 가능성이 높습니다.
    • 0 – 사용자 어조 감정이 중립입니다.
    • -1 – 사용자가 어조 감정을 억제했을 가능성이 높습니다.
    • -2 – 사용자가 어조 감정을 억제했습니다.
    • -3 – 사용자가 어조 감정을 확실히 억제했습니다.
<< nodename >>.response.body 대화 서비스 노드의 HTTP JSON 요청입니다. 구문: context.<< node name >>.response.body 다음 코드 예제에서는 서비스 노드의 응답이 메시지 노드의 최종 사용자에게 표시됩니다. print(JSON.stringify(context.fetchopportunitiesnode.response.body));
개발자가 정의한 키 대화 개발자가 정의한 키/값 쌍입니다. 구문: context.<< varName >> 예, context.customerId

샘플 컨텍스트 개체 컨텍스트 개체를 포함한 페이로드 응답은 다음과 같습니다.

"context":{
   "bot":"Kore Banking Documentation",
   "botid":"st-b4a22e86-XXXX-575c-b888-e106d083a251",
   "taskid":"dg-df510618-XXXX-5a0b-8370-ee042b3e5b47",
   "intent":"Agent",
   "intentType":"dialog",
   "entities":{
      "Name":12345,
      "number":1234
   },
   "userInputs":{
      "originalInput":{
         "sentence":" agent",
         "timestamp":1501244143000
      }
   },
   "history":[
      {
         "originalSentence":"agent",
         "timestamp":1501244143000
      },
      {
         "dialogState":"started",
         "timestamp":1501244143000
      },
      {
         "nodeId":"intent0",
         "state":"processed",
         "type":"intent",
         "componentName":"Agent",
         "timestamp":1501244143000
      },
      {
         "nodeId":"entity1",
         "state":"processing",
         "type":"entity",
         "componentName":"Name",
         "timestamp":1501244143000
      },
      {
         "nodeId":"entity1",
         "state":"waitingForUserInput",
         "type":"entity",
         "componentName":"Name",
         "timestamp":1501244143000
      },
      {
         "nodeId":"entity1",
         "state":"processed",
         "type":"entity",
         "componentName":"Name",
         "timestamp":1501244149000
      },
      {
         "nodeId":"entity4",
         "state":"processing",
         "type":"entity",
         "componentName":"number",
         "timestamp":1501244149000
      },
      {
         "nodeId":"entity4",
         "state":"waitingForUserInput",
         "type":"entity",
         "componentName":"number",
         "timestamp":1501244149000
      },
      {
         "nodeId":"entity4",
         "state":"processed",
         "type":"entity",
         "componentName":"number",
         "timestamp":1501244156000
      },
      {
         "nodeId":"agentTransfer3",
         "state":"processing",
         "type":"agentTransfer",
         "componentName":"agenttransfer",
         "timestamp":1501244156000
      },
      {
         "dialogState":"transferredToAgent",
         "timestamp":1501244156000
      }
   ],
   "dialog_tone":[
      {
         "tone_name":"positive",
         "level":1
      }
   ],
   "message_tone":[
      {
         "tone_name":"positive",
         "level":1
      }
   ],
  "currentTags": {
    "tags": [
      "name"
    ]
  },
  "historicTags": [
    {
      "tags": [
        "name"
      ]
    }
  ],
   "session":{
      "EnterpriseContext":{
         "5":"500",
         "TestData-Ent":"1000234",
         "ec1":"Enterprise Context session variable from processor",
         "Enterprise_G_Smith_Email":"george.smith@kore.com",
         "enterprisesessiondialog":"enterprisesessiondialogvalue",
         "enterprisecustomprocessor":"enterprisecustomprocessorvalue",
         "enterprisepreprocessor":"enterprisepreprocessorvalue",
         "EnterpriseContext":"EnterpriseContextvalueresponse",
         "Entersession123":"Entersession123value",
         "EnterpriseContext Summary":"TestingSpread",
         "enterprisecontext":"enterprisecontextvalue",
         "ec2":"Enterprise Context session variable from channel response",
         "EC":"ec session variable from intializer",
         "enterprisepreprocessorkey":"enterprisepreprocessorvalue"
      },
      "BotContext":{
      },
      "UserContext":{
         "profColour":"#3651fc",
         "workinghours":{
            "workdays":"Mon, Tue, Wed, Thu, Fri, Sat, Sun",
            "workstart":"12:00 AM",
            "workend":"12:00 PM"
         },
         "dept":"Product Development",
         "jTitle":"Documentation Manager",
         "profImage":"profile.png",
         "activationStatus":"active",
         "emailId":"help.docs@kore.com",
         "firstName":"Help",
         "lastName":"Docs",
         "orgId":"o-b30656ae-XXXX-XXXX-9181-065f7de34be9",
         "_id":"u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
         "customData":null,
         "identities":[
            {
               "val":"help.docs@kore.com",
               "type":"email"
            },
            {
               "val":"kore/u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
               "type":"mapped"
            }
         ]
      },
      "UserSession":{
      },
      "BotUserSession":{
         "isReturningUser": true,
         "lastMessage":{
            "channel":"rtm",
            "messagePayload":{
               "clientMessageId":1501244152843,
               "message":{
                  "body":"1234"
               },
               "resourceid":"/bot.message",
               "botInfo":{
                  "chatBot":"Kore Banking Documentation",
                  "taskBotId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251"
               },
               "client":"botbuilder",
               "meta":{
                  "timezone":"America/New_York",
                  "locale":"en-US"
               },
               "id":1501244152843
            }
         },
     "lastUserMessageTime": "2021-07-12T07:07:17.278Z"
      },
      "opts":{
         "userId":"u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
         "streamId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251"
      }
   }
},
"channel":{
   "_id":"dc-5b4a742a-XXXX-XXXX-938f-520912935456",
   "channelInfos":{
      "requestId":"ms-26aae382-XXXX-XXXX-8bf1-a9e076770956",
      "message":"The bot is not accessible via Web / Mobile Client.",
      "body":"1234",
      "client":"botbuilder",
      "handle":{
         "spanId":"8cab2ce2f6aabc47",
         "traceId":"8cab2ce2f6aabc47",
         "taskBotId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251",
         "clientId":"5a37bf24-XXXX-XXXX-a816-f9602db08149",
         "userId":"u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
         "handleId":"54e95c2b-XXXX-XXXX-ba6b-384d4166f1b2"
      },
      "botInfo":{
         "taskBotId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251",
         "chatBot":"Kore Banking Documentation"
      },
      "from":"u-4b9f02a3-3f6f-XXXX-XXXX-6df81c0af603",
      "type":"rtm"
   },
   "__v":0
},
"baseUrl":"https://bots.kore.ai/api/botsdk/stream/st-b4a22e86-XXXX-XXXX-b888-e106d083a251",
"sendUserMessageUrl":"https://bots.kore.ai/api/botsdk/stream/st-b4a22e86-e95b-XXXX-XXXX-e106d083a251/sendUserMessage/1501244156289",
"sendBotMessageUrl":"https://bots.kore.ai/api/botsdk/stream/st-b4a22e86-e95b-XXXX-XXXX-e106d083a251/sendBotMessage/1501244156289"
}

“lastUserMessageTime”: “2021-07-12T07:07:17.278Z”

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
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
Logic Node
Dialog Node
Bot Action Node
Service Node
Webhook Node
Script Node
Group Node
Agent Transfer
User Prompts
Voice Call Properties
Connections & Transitions
Component Transition
Context Object
Dialog Task Management
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
Term Types
Tags
Synonyms
Overview
Traits
Context
Stop Words
Test & Train
Thresholds and Configurations
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
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
Introdcution
NLP Metrics
Conversations Dashboard
Conversation Flows
Usage Metrics
Containment Metrics
Custom Dashboards
Introduction
Meta Tags
Dashboards and Widgets
Performance Dashboard
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

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

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

Contextオブジェクトは、ダイアログ実行のためのデータおよびすべてのインテント(ダイアログタスク、アクション、アラートと情報タスク、およびFAQ)にわたって保持するコンテナオブジェクトです。Kore.aiの自然言語処理(NLP)エンジンは、特定されたインテント、抽出されたエンティティ、および履歴をこのオブジェクトに入力します。Contextオブジェクトのキーは、ダイアログタスクとインテントの遷移条件において使用されます。また、contextオブジェクトには、システム変数およびセッション変数を追加してアクセスすることができます。 Context のオブジェクトキーをURLで使用するときの構文は、次のようにオブジェクト名を二重括弧で囲みます。https://quora.com/{{context.entities.topic}}/rss Context オブジェクトは、エンティティノードの動的な値と同様に、スクリプトノードでも参照でき、Kore.ai SDKへのペイロード応答に渡すことができます。ダイアログタスクの実行に影響を与えるために、ビジネスロジックに基づいて Context オブジェクトのキー値を更新することができます。このプラットフォームは、セッション変数も作成および管理しており、それは、こちらから参照できます。

次の表では、Contextのオブジェクトキーについて説明します。これらは、作成された時期と入力された時期に基づき、グローバルコンテキストとダイアログコンテキストに分類されています。詳細はこちらをご参照ください

キー カテゴリ 説明 使用例
インテント ダイアログ NLPインタプリターが認識するインテント。 構文: context.intent.<< intent name >>
エンティティ ダイアログ ユーザープロンプトと、そのプロンプトに対して認識されたユーザー入力に基づくキー/値ペアの配列。

構文:context.entities.<< entity name >>以下のコード例では、context.entitiesオブジェクトを使用して、口座間の資金振替の確認として、金額と口座名の値にアクセスしています。

var today = new Date();
if(today.getHours() < 21)
 {
   print("You have requested to transfer " +context.entities.Amount + 
         " USD from " +context.entities.FromAccountName +
         " to " +context.entities.ToAccountName + " account. " +  
         " Your funds will be shown immediately though transfer will be shown in tomorrow's date in your transaction history. Shall I go ahead? ");
  }
 else
 {
  print("You have requested to transfer " +context.entities.Amount + 
        " USD from " +context.entities.FromAccountName +
        " to " +context.entities.ToAccountName + " account. Shall I go ahead? " +
         context.accdata[0].transactions.length);
  }
特性 ダイアログ 指定されたコンテキストに設定された特性
currentLanguage (introduced in ver7.1) グローバル 現在の会話言語
suggestedLanguages (introduced in ver7.1) グローバル ユーザーの最初の発話からプラットフォームが検出したすべての言語のリスト、信頼度の高い順に表示。これは、各会話の開始時にリセットされます。
履歴 グローバル NLPインタプリターを使用した各コンポーネントの nodeId を含む配列。

ダイアログフローにおいて実行される順次的、履歴的なノードパスを定義するオブジェクトの配列。

  • nodeId – ノードタイプと増分番号を使用するこのノードのダイアログタスクフローID。例:intent0、service2など。
  • state – 指定されたタイムスタンプに対するオブジェクトのステータス。以下から1つ:
    • processing – ボットプラットフォームがノードの処理を開始します
    • processed – ノードとノードの接続が処理され、次のノードが見つかりましたが、ダイアログはまだそのノードに移動していません。
    • waitingForUserInput – ユーザーは入力を指示されましたが、まだ受信されていません。
    • pause – 現在のダイアログタスクを一時停止して、別のタスクを開始します。
    • resume – 一時停止のステータスにある現在のダイアログは、開始した別のタスクが完了した後、フローの同じ地点で継続しています。
    • waitingForServerResponse – サーバーのリクエストは、非同期の応答を待っています。
    • error – エラーが発生しました。例:ループ制限に達し、サーバーやスクリプトノードの実行が失敗。
    • end – ダイアログは、ダイアログフローの最後に達しました。
  • type – ダイアログタスクのタイプ。以下から1つ:
    • intent – ダイアログタスクとは、ユーザーのインテントやタスクのことです。
    • faq – ダイアログタスクはナレッジグラフです。
  • componentName – ノードの名前。
  • timestamp – ノード実行時のJSON日付タイムスタンプ。例:1492794646000
onHoldTasks ダイアログ 会話の進行中に保留されているすべてのタスクの配列。これは、評価目的で使用できる読み取り専用のリストです。(Ver 7.1で導入)
サービスノード名 ダイアログ サービスノード実行用のオブジェクトのコレクションです。
  • response – リクエストステータスと応答本文をJSONペイロードとして返します。
    • statusCode – リクエストのHTTPステータスコード。例:200 OK
    • body – サービスリクエストからのJSONペイロードの応答本文。
resultsFound ダイアログ 結果が返ってくる場合は、true
message_tone グローバル ダイアログタスクの現在のノードで認識された口調の喜怒哀楽とスコアの配列。
  • tone_name – 検出された口調の名前。以下から1つ:
    • angry
    • disgust
    • fear
    • sad
    • joy
    • positive – 発話の一般的な肯定性を評価するために使用される特別な口調。
  • count
  • level – く口調の喜怒哀楽のレベル:-3から+3まで。以下から1つ:
    • +3 – ユーザーは確かに口調の喜怒哀楽を表した。
    • +2 – ユーザーは口調の喜怒哀楽を表した。
    • +1 – ユーザーは口調の喜怒哀楽を表したようだ。
    • 0 – ユーザーの口調の喜怒哀楽はニュートラルだ。
    • -1 – ユーザーは口調の喜怒哀楽を抑え気味だ。
    • -2 – ユーザーは口調の喜怒哀楽を抑えた。
    • -3 – ユーザーは確かに口調の喜怒哀楽を抑えた。
dialog_tone グローバル [ダイアログタスク]セッション全体の平均的な認識された口調の喜怒哀楽とスコアの配列。
  • tone_name – 検出された口調の名前。以下から1つ:
    • angry
    • disgust
    • fear
    • sad
    • joy
    • positive – 発話の一般的な肯定性を評価するために使用される特別な口調。
  • count
  • level – く口調の喜怒哀楽のレベル:-3から+3まで。以下から1つ:
    • +3 – ユーザーは確かに口調の喜怒哀楽を表した。
    • +2 – ユーザーは口調の喜怒哀楽を表した。
    • +1 – ユーザーは口調の喜怒哀楽を表したようだ。
    • 0 – ユーザーの口調の喜怒哀楽はニュートラルだ。
    • -1 – ユーザーは口調の喜怒哀楽を抑え気味だ。
    • -2 – ユーザーは口調の喜怒哀楽を抑えた。
    • -3 – ユーザーは確かに口調の喜怒哀楽を抑えた。
<< nodename >>.response.body ダイアログ サービスノードからのHTTP JSONレ応答。 構文: context.<< node name >>.response.body 以下のコード例では、サービスノードからの応答をメッセージがノードでエンドユーザーに表示されています。
print(JSON.stringify(context.fetchopportunitiesnode.response.body));
定義済み開発者のキー ダイアログ 開発者が定義したキーと値のペア。 構文: context.<< varName >> 例: context.customerId

コンテキストオブジェクトの例 コンテキストオブジェクトを含むペイロード応答を以下に示します。

"context":{
   "bot":"Kore Banking Documentation",
   "botid":"st-b4a22e86-XXXX-575c-b888-e106d083a251",
   "taskid":"dg-df510618-XXXX-5a0b-8370-ee042b3e5b47",
   "intent":"Agent",
   "intentType":"dialog",
   "entities":{
      "Name":12345,
      "number":1234
   },
   "userInputs":{
      "originalInput":{
         "sentence":" agent",
         "timestamp":1501244143000
      }
   },
   "history":[
      {
         "originalSentence":"agent",
         "timestamp":1501244143000
      },
      {
         "dialogState":"started",
         "timestamp":1501244143000
      },
      {
         "nodeId":"intent0",
         "state":"processed",
         "type":"intent",
         "componentName":"Agent",
         "timestamp":1501244143000
      },
      {
         "nodeId":"entity1",
         "state":"processing",
         "type":"entity",
         "componentName":"Name",
         "timestamp":1501244143000
      },
      {
         "nodeId":"entity1",
         "state":"waitingForUserInput",
         "type":"entity",
         "componentName":"Name",
         "timestamp":1501244143000
      },
      {
         "nodeId":"entity1",
         "state":"processed",
         "type":"entity",
         "componentName":"Name",
         "timestamp":1501244149000
      },
      {
         "nodeId":"entity4",
         "state":"processing",
         "type":"entity",
         "componentName":"number",
         "timestamp":1501244149000
      },
      {
         "nodeId":"entity4",
         "state":"waitingForUserInput",
         "type":"entity",
         "componentName":"number",
         "timestamp":1501244149000
      },
      {
         "nodeId":"entity4",
         "state":"processed",
         "type":"entity",
         "componentName":"number",
         "timestamp":1501244156000
      },
      {
         "nodeId":"agentTransfer3",
         "state":"processing",
         "type":"agentTransfer",
         "componentName":"agenttransfer",
         "timestamp":1501244156000
      },
      {
         "dialogState":"transferredToAgent",
         "timestamp":1501244156000
      }
   ],
   "dialog_tone":[
      {
         "tone_name":"positive",
         "level":1
      }
   ],
   "message_tone":[
      {
         "tone_name":"positive",
         "level":1
      }
   ],
  "currentTags": {
    "tags": [
      "name"
    ]
  },
  "historicTags": [
    {
      "tags": [
        "name"
      ]
    }
  ],
   "session":{
      "EnterpriseContext":{
         "5":"500",
         "TestData-Ent":"1000234",
         "ec1":"Enterprise Context session variable from processor",
         "Enterprise_G_Smith_Email":"george.smith@kore.com",
         "enterprisesessiondialog":"enterprisesessiondialogvalue",
         "enterprisecustomprocessor":"enterprisecustomprocessorvalue",
         "enterprisepreprocessor":"enterprisepreprocessorvalue",
         "EnterpriseContext":"EnterpriseContextvalueresponse",
         "Entersession123":"Entersession123value",
         "EnterpriseContext Summary":"TestingSpread",
         "enterprisecontext":"enterprisecontextvalue",
         "ec2":"Enterprise Context session variable from channel response",
         "EC":"ec session variable from intializer",
         "enterprisepreprocessorkey":"enterprisepreprocessorvalue"
      },
      "BotContext":{
      },
      "UserContext":{
         "profColour":"#3651fc",
         "workinghours":{
            "workdays":"Mon, Tue, Wed, Thu, Fri, Sat, Sun",
            "workstart":"12:00 AM",
            "workend":"12:00 PM"
         },
         "dept":"Product Development",
         "jTitle":"Documentation Manager",
         "profImage":"profile.png",
         "activationStatus":"active",
         "emailId":"help.docs@kore.com",
         "firstName":"Help",
         "lastName":"Docs",
         "orgId":"o-b30656ae-XXXX-XXXX-9181-065f7de34be9",
         "_id":"u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
         "customData":null,
         "identities":[
            {
               "val":"help.docs@kore.com",
               "type":"email"
            },
            {
               "val":"kore/u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
               "type":"mapped"
            }
         ]
      },
      "UserSession":{
      },
      "BotUserSession":{
         "isReturningUser": true,
         "lastMessage":{
            "channel":"rtm",
            "messagePayload":{
               "clientMessageId":1501244152843,
               "message":{
                  "body":"1234"
               },
               "resourceid":"/bot.message",
               "botInfo":{
                  "chatBot":"Kore Banking Documentation",
                  "taskBotId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251"
               },
               "client":"botbuilder",
               "meta":{
                  "timezone":"America/New_York",
                  "locale":"en-US"
               },
               "id":1501244152843
            }
         },
     "lastUserMessageTime": "2021-07-12T07:07:17.278Z"
      },
      "opts":{
         "userId":"u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
         "streamId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251"
      }
   }
},
"channel":{
   "_id":"dc-5b4a742a-XXXX-XXXX-938f-520912935456",
   "channelInfos":{
      "requestId":"ms-26aae382-XXXX-XXXX-8bf1-a9e076770956",
      "message":"The bot is not accessible via Web / Mobile Client.",
      "body":"1234",
      "client":"botbuilder",
      "handle":{
         "spanId":"8cab2ce2f6aabc47",
         "traceId":"8cab2ce2f6aabc47",
         "taskBotId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251",
         "clientId":"5a37bf24-XXXX-XXXX-a816-f9602db08149",
         "userId":"u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
         "handleId":"54e95c2b-XXXX-XXXX-ba6b-384d4166f1b2"
      },
      "botInfo":{
         "taskBotId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251",
         "chatBot":"Kore Banking Documentation"
      },
      "from":"u-4b9f02a3-3f6f-XXXX-XXXX-6df81c0af603",
      "type":"rtm"
   },
   "__v":0
},
"baseUrl":"https://bots.kore.ai/api/botsdk/stream/st-b4a22e86-XXXX-XXXX-b888-e106d083a251",
"sendUserMessageUrl":"https://bots.kore.ai/api/botsdk/stream/st-b4a22e86-e95b-XXXX-XXXX-e106d083a251/sendUserMessage/1501244156289",
"sendBotMessageUrl":"https://bots.kore.ai/api/botsdk/stream/st-b4a22e86-e95b-XXXX-XXXX-e106d083a251/sendBotMessage/1501244156289"
}

“lastUserMessageTime”: “2021-07-12T07:07:17.278Z”

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
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
Logic Node
Dialog Node
Bot Action Node
Service Node
Webhook Node
Script Node
Group Node
Agent Transfer
User Prompts
Voice Call Properties
Connections & Transitions
Component Transition
Context Object
Dialog Task Management
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
Term Types
Tags
Synonyms
Overview
Traits
Context
Stop Words
Test & Train
Thresholds and Configurations
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
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
Introdcution
NLP Metrics
Conversations Dashboard
Conversation Flows
Usage Metrics
Containment Metrics
Custom Dashboards
Introduction
Meta Tags
Dashboards and Widgets
Performance Dashboard
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

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

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

The Context object is the container object that persists data for dialog execution and across all intents i.e. dialog tasks, action, alert & info tasks, and FAQs. Kore.ai’s natural language processing (NLP) engine populates the intent identified, entities extracted, and history into this object. Keys from the Context object are used in the dialog task and intent transition conditions. Also, the context object can be accessed with additional system and session variables. 

The syntax when using an Context object key in a URL is to enclose the object name in double brackets as shown next:
https://quora.com/{{context.entities.topic}}/rss

The Context object can also be referenced in a script node as well as for dynamic values in an entity node and passed in the payload response to the Kore.ai SDK. You can update the Context object key values based on business logic to influence the dialog task execution.

The platform also creates and maintains Session Variables which can be referred to from here.

The following table describes the Context object keys. These can be classified into Global and Dialog contexts based on when they are created and populated. Refer here for details.

Key Category Description Usage Example
intent Dialog The intent recognized by the NLP interpreter. Syntax: context.intent.<< intent name >>
entities Dialog An array of key/value pairs based on user prompts and recognized user input for those prompts. Syntax: context.entities.<< entity name >>In the following code example, the context.entities object is used to access values for the amount and account names as a confirmation for a funds transfer between accounts

var today = new Date();
if(today.getHours() < 21)
 {
   print("You have requested to transfer " +context.entities.Amount + 
         " USD from " +context.entities.FromAccountName +
         " to " +context.entities.ToAccountName + " account. " +  
         " Your funds will be shown immediately though transfer will be shown in tomorrow's date in your transaction history. Shall I go ahead? ");
  }
 else
 {
  print("You have requested to transfer " +context.entities.Amount + 
        " USD from " +context.entities.FromAccountName +
        " to " +context.entities.ToAccountName + " account. Shall I go ahead? " +
         context.accdata[0].transactions.length);
  }
traits Dialog Traits set for the given context
currentLanguage
(introduced in ver7.1)
Global the current conversation language
suggestedLanguages
(introduced in ver7.1)
Global list of all languages detected by the platform from the user’s first utterance, presented in the order of confidence level. This will be reset at the start of each conversation.
history Global An array that contains the nodeId for each component using the NLP interpreter. An array of objects defining the sequential and historical node path executed in the dialog flow.

  • nodeId – The dialog task flow ID for this node using node type and incremental numbering, for example, intent0, service2, and so forth.
  • state – The status of the object for the timestamp indicated. One of:
    • processing – The Bots Platform begins processing of the node
    • processed – The node and node connections are processed, the following node is found but the dialog has not yet moved to that node.
    • waitingForUserInput – The user was prompted for input but has not been received.
    • pause – The current dialog task is paused while another task is started.
    • resume – The current dialog with the status of pause continues at the same point in the flow after the completion of another task that was started.
    • waitingForServerResponse – The server request is pending an asynchronous response.
    • error – An error occurred, for example, the loop limit is reached, a server or script node execution fails.
    • end –  The dialog reached the end of the dialog flow.
  • type – The type of dialog task. One of:
    • intent – The dialog task is a user intent or task.
    • faq – The dialog task is a knowledge graph.
  • componentName – The name of the node.
  • timestamp – The JSON date timestamp of the node execution, for example, 1492794646000.
onHoldTasks Dialog an array of all tasks that are kept on hold while a conversation is in progress. This is a read-only list that you can use for evaluation purposes. (introduced in ver 7.1)
service node name Dialog A collection of objects for Service node executions.
  • response – Returns the request status and response body as a JSON payload.
    • statusCode – The HTTP status code of the request, for example, 200 OK.
    • body – The JSON payload response body from the service request.
resultsFound Dialog True, if results are returned
message_tone Global An array of recognized tone emotions and scores for the current node in a dialog task.
  • tone_name – The name of the tone detected. One of:
    • angry
    • disgust
    • fear
    • sad
    • joy
    • positive – A special tone used to evaluate the general positivity of an utterance.
  • count
  • level – The level of the tone emotion ranging from -3 to +3. One of:
    • +3 – The user definitely expressed the tone emotion.
    • +2 – The user expressed the tone emotion.
    • +1 – The user likely expressed the tone emotion.
    • 0 – The user tone emotion is neutral.
    • -1 – The user likely suppressed the tone emotion.
    • -2 – The user suppressed the tone emotion.
    • -3 –  The user definitely suppressed the tone emotion.
dialog_tone Global An array of average recognized tone emotions and scores for the entire dialog task session.
  • tone_name – The name of the tone detected. One of:
    • angry
    • disgust
    • fear
    • sad
    • joy
    • positive – A special tone used to evaluate the general positivity of an utterance.
  • count
  • level – The level of the tone emotion ranging from -3 to +3. One of:
    • +3 – The user definitely expressed the tone emotion.
    • +2 – The user expressed the tone emotion.
    • +1 – The user likely expressed the tone emotion.
    • 0 – The user tone emotion is neutral.
    • -1 – The user likely suppressed the tone emotion.
    • -2 – The user suppressed the tone emotion.
    • -3 –  The user definitely suppressed the tone emotion.
<< nodename >>.response.body Dialog The HTTP JSON response from the Service node. Syntax: context.<< node name >>.response.body
In the following code example, the response from a Service node is displayed to the end-user in a Message node.

print(JSON.stringify(context.fetchopportunitiesnode.response.body));
Developer Defined Key Dialog A key/value pair defined by the developer. Syntax: context.<< varName >>
For example, context.customerId

Sample Context Object

The following is a payload response that contains a context object:

"context":{
   "bot":"Kore Banking Documentation",
   "botid":"st-b4a22e86-XXXX-575c-b888-e106d083a251",
   "taskid":"dg-df510618-XXXX-5a0b-8370-ee042b3e5b47",
   "intent":"Agent",
   "intentType":"dialog",
   "entities":{
      "Name":12345,
      "number":1234
   },
   "userInputs":{
      "originalInput":{
         "sentence":" agent",
         "timestamp":1501244143000
      }
   },
   "history":[
      {
         "originalSentence":"agent",
         "timestamp":1501244143000
      },
      {
         "dialogState":"started",
         "timestamp":1501244143000
      },
      {
         "nodeId":"intent0",
         "state":"processed",
         "type":"intent",
         "componentName":"Agent",
         "timestamp":1501244143000
      },
      {
         "nodeId":"entity1",
         "state":"processing",
         "type":"entity",
         "componentName":"Name",
         "timestamp":1501244143000
      },
      {
         "nodeId":"entity1",
         "state":"waitingForUserInput",
         "type":"entity",
         "componentName":"Name",
         "timestamp":1501244143000
      },
      {
         "nodeId":"entity1",
         "state":"processed",
         "type":"entity",
         "componentName":"Name",
         "timestamp":1501244149000
      },
      {
         "nodeId":"entity4",
         "state":"processing",
         "type":"entity",
         "componentName":"number",
         "timestamp":1501244149000
      },
      {
         "nodeId":"entity4",
         "state":"waitingForUserInput",
         "type":"entity",
         "componentName":"number",
         "timestamp":1501244149000
      },
      {
         "nodeId":"entity4",
         "state":"processed",
         "type":"entity",
         "componentName":"number",
         "timestamp":1501244156000
      },
      {
         "nodeId":"agentTransfer3",
         "state":"processing",
         "type":"agentTransfer",
         "componentName":"agenttransfer",
         "timestamp":1501244156000
      },
      {
         "dialogState":"transferredToAgent",
         "timestamp":1501244156000
      }
   ],
   "dialog_tone":[
      {
         "tone_name":"positive",
         "level":1
      }
   ],
   "message_tone":[
      {
         "tone_name":"positive",
         "level":1
      }
   ],
  "currentTags": {
    "tags": [
      "name"
    ]
  },
  "historicTags": [
    {
      "tags": [
        "name"
      ]
    }
  ],
   "session":{
      "EnterpriseContext":{
         "5":"500",
         "TestData-Ent":"1000234",
         "ec1":"Enterprise Context session variable from processor",
         "Enterprise_G_Smith_Email":"george.smith@kore.com",
         "enterprisesessiondialog":"enterprisesessiondialogvalue",
         "enterprisecustomprocessor":"enterprisecustomprocessorvalue",
         "enterprisepreprocessor":"enterprisepreprocessorvalue",
         "EnterpriseContext":"EnterpriseContextvalueresponse",
         "Entersession123":"Entersession123value",
         "EnterpriseContext Summary":"TestingSpread",
         "enterprisecontext":"enterprisecontextvalue",
         "ec2":"Enterprise Context session variable from channel response",
         "EC":"ec session variable from intializer",
         "enterprisepreprocessorkey":"enterprisepreprocessorvalue"
      },
      "BotContext":{
      },
      "UserContext":{
         "profColour":"#3651fc",
         "workinghours":{
            "workdays":"Mon, Tue, Wed, Thu, Fri, Sat, Sun",
            "workstart":"12:00 AM",
            "workend":"12:00 PM"
         },
         "dept":"Product Development",
         "jTitle":"Documentation Manager",
         "profImage":"profile.png",
         "activationStatus":"active",
         "emailId":"help.docs@kore.com",
         "firstName":"Help",
         "lastName":"Docs",
         "orgId":"o-b30656ae-XXXX-XXXX-9181-065f7de34be9",
         "_id":"u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
         "customData":null,
         "identities":[
            {
               "val":"help.docs@kore.com",
               "type":"email"
            },
            {
               "val":"kore/u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
               "type":"mapped"
            }
         ]
      },
      "UserSession":{
      },
      "BotUserSession":{
         "isReturningUser": true,
         "lastMessage":{
            "channel":"rtm",
            "messagePayload":{
               "clientMessageId":1501244152843,
               "message":{
                  "body":"1234"
               },
               "resourceid":"/bot.message",
               "botInfo":{
                  "chatBot":"Kore Banking Documentation",
                  "taskBotId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251"
               },
               "client":"botbuilder",
               "meta":{
                  "timezone":"America/New_York",
                  "locale":"en-US"
               },
               "id":1501244152843
            }
         },
     "lastUserMessageTime": "2021-07-12T07:07:17.278Z"
      },
      "opts":{
         "userId":"u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
         "streamId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251"
      }
   }
},
"channel":{
   "_id":"dc-5b4a742a-XXXX-XXXX-938f-520912935456",
   "channelInfos":{
      "requestId":"ms-26aae382-XXXX-XXXX-8bf1-a9e076770956",
      "message":"The bot is not accessible via Web / Mobile Client.",
      "body":"1234",
      "client":"botbuilder",
      "handle":{
         "spanId":"8cab2ce2f6aabc47",
         "traceId":"8cab2ce2f6aabc47",
         "taskBotId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251",
         "clientId":"5a37bf24-XXXX-XXXX-a816-f9602db08149",
         "userId":"u-4b9f02a3-XXXX-XXXX-b5cc-6df81c0af603",
         "handleId":"54e95c2b-XXXX-XXXX-ba6b-384d4166f1b2"
      },
      "botInfo":{
         "taskBotId":"st-b4a22e86-XXXX-XXXX-b888-e106d083a251",
         "chatBot":"Kore Banking Documentation"
      },
      "from":"u-4b9f02a3-3f6f-XXXX-XXXX-6df81c0af603",
      "type":"rtm"
   },
   "__v":0
},
"baseUrl":"https://bots.kore.ai/api/botsdk/stream/st-b4a22e86-XXXX-XXXX-b888-e106d083a251",
"sendUserMessageUrl":"https://bots.kore.ai/api/botsdk/stream/st-b4a22e86-e95b-XXXX-XXXX-e106d083a251/sendUserMessage/1501244156289",
"sendBotMessageUrl":"https://bots.kore.ai/api/botsdk/stream/st-b4a22e86-e95b-XXXX-XXXX-e106d083a251/sendBotMessage/1501244156289"
}

“lastUserMessageTime”: “2021-07-12T07:07:17.278Z”