GETTING STARTED
Kore.ai XO Platform
Virtual Assistants Overview
Natural Language Processing (NLP)
Concepts and Terminology
Quick Start Guide
Accessing the Platform
Navigating the Kore.ai XO Platform
Building a Virtual Assistant
Help & Learning Resources
Release Notes
Current Version
Recent Updates
Previous Versions
Deprecations
Request a Feature
CONCEPTS
Design
Storyboard
Overview
FAQs
Conversation Designer
Overview
Dialog Tasks
Mock Scenes
Dialog Tasks
Overview
Navigate Dialog Tasks
Build Dialog Tasks
Node Types
Overview
Intent Node
Dialog Node
Dynamic Intent Node
GenAI Node
GenAI Prompt
Entity Node
Form Node
Confirmation Node
Message Nodes
Logic Node
Bot Action Node
Service Node
Webhook Node
Script Node
Process Node
Agent Transfer
Node Connections
Node Connections Setup
Sub-Intent Scoping
Entity Types
Entity Rules
User Prompts or Messages
Voice Call Properties
Knowledge AI
Introduction
Knowledge Graph
Introduction
Terminology
Build a Knowledge Graph
Manage FAQs
Knowledge Extraction
Import or Export Knowledge Graph
Prepare Data for Import
Importing Knowledge Graph
Exporting Knowledge Graph
Auto-Generate Knowledge Graph
Knowledge Graph Analysis
Answer from Documents
Alert Tasks
Small Talk
Digital Skills
Overview
Digital Forms
Digital Views
Introduction
Widgets
Panels
Session and Context Variables
Context Object
Intent Discovery
Train
NLP Optimization
ML Engine
Overview
Model Validation
FM Engine
KG Engine
Traits Engine
Ranking and Resolver
Training Validations
NLP Configurations
NLP Guidelines
LLM and Generative AI
Introduction
LLM Integration
Kore.ai XO GPT Module
Prompts & Requests Library
Co-Pilot Features
Dynamic Conversations Features
Intelligence
Introduction
Event Handlers
Contextual Memory
Contextual Intents
Interruption Management
Multi-intent Detection
Amending Entities
Default Conversations
Conversation Driven Dialog Builder
Sentinment Management
Tone Analysis
Default Standard Responses
Ignore Words & Field Memory
Test & Debug
Overview
Talk to Bot
Utterance Testing
Batch Testing
Conversation Testing
Conversation Testing Overview
Create a Test Suite
Test Editor
Test Case Assertion
Test Case Execution Summary
Glossary
Health and Monitoring
NLP Health
Flow Health
Integrations
Actions
Actions Overview
Asana
Configure
Templates
Azure OpenAI
Configure
Templates
BambooHR
Configure
Templates
Bitly
Configure
Templates
Confluence
Configure
Templates
DHL
Configure
Templates
Freshdesk
Configure
Templates
Freshservice
Configure
Templates
Google Maps
Configure
Templates
Here
Configure
Templates
HubSpot
Configure
Templates
JIRA
Configure
Templates
Microsoft Graph
Configure
Templates
Open AI
Configure
Templates
Salesforce
Configure
Templates
ServiceNow
Configure
Templates
Stripe
Configure
Templates
Shopify
Configure
Templates
Twilio
Configure
Templates
Zendesk
Configure
Templates
Agents
Agent Transfer Overview
Custom (BotKit)
Drift
Genesys
Intercom
NiceInContact
NiceInContact(User Hub)
Salesforce
ServiceNow
Configure Tokyo and Lower versions
Configure Utah and Higher versions
Unblu
External NLU Adapters
Overview
Dialogflow Engine
Test and Debug
Deploy
Channels
Publishing
Versioning
Analyze
Introduction
Dashboard Filters
Overview Dashboard
Conversations Dashboard
Users Dashboard
Performance Dashboard
Custom Dashboards
Introduction
Custom Meta Tags
Create Custom Dashboard
Create Custom Dashboard Filters
LLM and Generative AI Logs
NLP Insights
Task Execution Logs
Conversations History
Conversation Flows
Conversation Insights
Feedback Analytics
Usage Metrics
Containment Metrics
Universal Bots
Introduction
Universal Bot Definition
Universal Bot Creation
Training a Universal Bot
Universal Bot Customizations
Enabling Languages
Store
Manage Assistant
Team Collaboration
Plan & Usage
Overview
Usage Plans
Templates
Support Plans
Invoices
Authorization
Conversation Sessions
Multilingual Virtual Assistants
Get Started
Supported Components & Features
Manage Languages
Manage Translation Services
Multiingual Virtual Assistant Behavior
Feedback Survey
Masking PII Details
Variables
Collections
IVR Settings
General Settings
Assistant Management
Manage Namespace
Data
Overview
Data Table
Table Views
App Definitions
Data as Service
HOW TOs
Build a Travel Planning Assistant
Travel Assistant Overview
Create a Travel Virtual Assistant
Design Conversation Skills
Create an ‘Update Booking’ Task
Create a Change Flight Task
Build a Knowledge Graph
Schedule a Smart Alert
Design Digital Skills
Configure Digital Forms
Configure Digital Views
Train the Assistant
Use Traits
Use Patterns
Manage Context Switching
Deploy the Assistant
Use Bot Functions
Use Content Variables
Use Global Variables
Use Web SDK
Build a Banking 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
Composite Entities
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
Intent Scoping using Group Node
Analyze the Assistant
Create a Custom Dashboard
Use Custom Meta Tags in Filters
Migrate External Bots
Google Dialogflow Bot
APIs & SDKs
API Reference
API Introduction
Rate Limits
API List
koreUtil Libraries
SDK Reference
SDK Introduction
Web SDK
How the Web SDK Works
SDK Security
SDK Registration
Web Socket Connect and RTM
Tutorials
Widget SDK Tutorial
Web SDK Tutorial
BotKit SDK
BotKit SDK Deployment Guide
Installing the BotKit SDK
Using the BotKit SDK
SDK Events
SDK Functions
Tutorials
BotKit - Blue Prism
BotKit - Flight Search Sample VA
BotKit - Agent Transfer
  1. ホーム
  2. Docs
  3. Virtual Assistants
  4. How Tos
  5. nlMetaの使用

nlMetaの使用

ユーザー体験を向上させるため、場合によっては、いつもとは違ったやり方でバーチャルアシスタントのフローを制御したいこともあります。
以下のようなシナリオを考えてみましょう。

  1. NLPエンジンは、ユーザーの発話に基づいてインテントを特定したのかもしれません。しかし、バックエンドシステムやSDKが設置されているWebページなどの外部情報から得られた追加情報に基づいて、別のタスクが適している場合もあります。
  2. たとえば、フライト予約のバーチャルアシスタントでは、ウェルカムメッセージの一部として、現在進行中のお得な取引情報をユーザーに提供します。ユーザーの選択に基づいて、ユーザーに提示された取引情報から出発地、目的地、旅行などの旅行詳細情報を事前に入力することで、「フライトの予約」タスクをプログラムで呼び出すことができます。

Kore.aiは、nlMetaデータを利用してプログラム的に仮想アシスタントに情報を渡す方法を提供しています。これは、BotKit SDK、Widget SDK、およびWeb SDKで使用され、必要に応じて、エンティティ値および他のタスク設定とともにトリガーされるインテントなどの情報を渡すことができます。

nlMeta

nlMeta は、ボットに情報を渡すために使用できるオブジェクトです。ボットは、他の情報を解読しようとする前に、この情報を使用してそこに指定されたインテントを実行します。

サンプル

以下は、 nlMeta オブジェクトにどのように入力する必要があるかに関するサンプルです。

      'nlMeta': {
            'intent': '<intent_name>',  
            'childBotName': '<child_bot_name>',
            'isRefresh': <true/false>, 
            'entities': {      
			'<entity1_value>': value1,
                        '<entity2_value>': value2,
			},
      	    'interruptionOptions': {
               'hr': {
                 'h': 1;
                 'r': 1;
                 'nn': true
                }
              }
      }

パラメータ

このオブジェクトで使用できるパラメータは以下のとおりです。

パラメータ 説明
nlMeta ボット用の自然言語情報のためのオブジェクト
インテント ボットがトリガーする必要のあるサードパーティによって特定されたインテント
childBotName(ユニバーサルボットの場合) ユニバーサルボットの場合にのみ使用され、トリガーする子ボットのインテントを特定します。これは、子ボットからのウィジェットをユニバーサルボットパネルで使用する際にも必要です。
エンティティ トリガーとなるインテントが必要とするエンティティとバリューのペアを持つオブジェクト
isRefresh
  • 現在のタスクを終了し、次のタスクの実行を開始する場合は、trueに設定します。
  • 設定されていない場合、またはfalseに設定されている場合、着信したタスクは一時停止と再開の設定に従って実行されます。
interruptionOptions

ボットがこのnlMeta情報を受け取ったときに何らかのタスクが進行中の場合、中断の動作を示すために、値は以下が可能:

  • discardAll – 現在のタスクと前のタスクがあれば、それらを破棄します。
  • hr – 一時停止と再開のオプションについて
    h

    一時停止オプションについては、以下のようなオプションがあります。

    • 1 – 「現在のタスクを保持し、新しいタスクが完了したら元に戻す」
    • 2 – 「現在のタスクを破棄し、新しいタスクに切り替える」
    • 3 – 「ユーザーに何も通知せず新しいタスクに切り替え、現在のタスクを破棄する」
    • 4 – 「現在のタスクを継続し、新しいタスクをフォローアップタスクリストに追加する」
    • 5 – 「エンドユーザーが動作を選択できるようにする」
    r

    再開オプションについては、以下のようなオプションがあります。

    • 1 – 「保留中のタスクを再開する前に、ユーザーに確認を取る」
    • 2 – 「保留中のタスクが再開されたことをメッセージでユーザーに通知する」
    • 3 – 「ユーザーに特定のメッセージを出さずに保留タスクを再開する」
    nn

    neverNotify – ユーザーへの通知

    • True – タスクが単一の応答で終了した場合、ユーザーに特定のメッセージを表示せずに、常に保留タスクを再開します。
    • False – ユーザーに知らせます

リクエストされたタスクが見つからなかった場合、ボットは「会話をリクエストされたダイアログタスクは利用できません」という標準的な応答を返します。

使用状況

前述の通り、BotKit SDKおよびWeb/ウィジェットSDKを介して、nlMetaを入力し、バーチャルアシスタントに送信することができます。実現方法を以下の図に示します。

  • BotKit SDK – metaInfoオブジェクトの一部として。
    data.metaInfo = {
          'nlMeta': {
                'intent': 'Authenticate User', 
                'isRefresh': true, 
        	     'entities': {
    		"Name": "John"
    		},
     	    'interruptionOptions': 'discardAll'
          }
    }
  • Web SDK – nlMeta情報は、sendMessage関数を使用してパラメータとして送信することができます。この関数は chatWindow.jsファイルの中にあります。nlMetaデータが以下のように消費される必要がある場合、条件を追加します。
    if(_this.text() == “Existing”){
    me.sendMessage(_this, attachmentinfo, {'nlMeta': {
                'intent': 'Authenticate User'}}); 
    }
        	else{
    		me.sendMessage(_this, attachmentinfo);
    		}

    上記の例では、テキストフィールドに「既存」という値が含まれている場合、認証ユーザーインテントがトリガーされます。

  • Widget SDK – nlMeta 情報は、ボタン、メニュー、リストなどのさまざまなテンプレートのペイロードの一環として送信することができます。詳細はこちらをご覧ください。

nlMetaの使用

ユーザー体験を向上させるため、場合によっては、いつもとは違ったやり方でバーチャルアシスタントのフローを制御したいこともあります。
以下のようなシナリオを考えてみましょう。

  1. NLPエンジンは、ユーザーの発話に基づいてインテントを特定したのかもしれません。しかし、バックエンドシステムやSDKが設置されているWebページなどの外部情報から得られた追加情報に基づいて、別のタスクが適している場合もあります。
  2. たとえば、フライト予約のバーチャルアシスタントでは、ウェルカムメッセージの一部として、現在進行中のお得な取引情報をユーザーに提供します。ユーザーの選択に基づいて、ユーザーに提示された取引情報から出発地、目的地、旅行などの旅行詳細情報を事前に入力することで、「フライトの予約」タスクをプログラムで呼び出すことができます。

Kore.aiは、nlMetaデータを利用してプログラム的に仮想アシスタントに情報を渡す方法を提供しています。これは、BotKit SDK、Widget SDK、およびWeb SDKで使用され、必要に応じて、エンティティ値および他のタスク設定とともにトリガーされるインテントなどの情報を渡すことができます。

nlMeta

nlMeta は、ボットに情報を渡すために使用できるオブジェクトです。ボットは、他の情報を解読しようとする前に、この情報を使用してそこに指定されたインテントを実行します。

サンプル

以下は、 nlMeta オブジェクトにどのように入力する必要があるかに関するサンプルです。

      'nlMeta': {
            'intent': '<intent_name>',  
            'childBotName': '<child_bot_name>',
            'isRefresh': <true/false>, 
            'entities': {      
			'<entity1_value>': value1,
                        '<entity2_value>': value2,
			},
      	    'interruptionOptions': {
               'hr': {
                 'h': 1;
                 'r': 1;
                 'nn': true
                }
              }
      }

パラメータ

このオブジェクトで使用できるパラメータは以下のとおりです。

パラメータ 説明
nlMeta ボット用の自然言語情報のためのオブジェクト
インテント ボットがトリガーする必要のあるサードパーティによって特定されたインテント
childBotName(ユニバーサルボットの場合) ユニバーサルボットの場合にのみ使用され、トリガーする子ボットのインテントを特定します。これは、子ボットからのウィジェットをユニバーサルボットパネルで使用する際にも必要です。
エンティティ トリガーとなるインテントが必要とするエンティティとバリューのペアを持つオブジェクト
isRefresh
  • 現在のタスクを終了し、次のタスクの実行を開始する場合は、trueに設定します。
  • 設定されていない場合、またはfalseに設定されている場合、着信したタスクは一時停止と再開の設定に従って実行されます。
interruptionOptions

ボットがこのnlMeta情報を受け取ったときに何らかのタスクが進行中の場合、中断の動作を示すために、値は以下が可能:

  • discardAll – 現在のタスクと前のタスクがあれば、それらを破棄します。
  • hr – 一時停止と再開のオプションについて
    h

    一時停止オプションについては、以下のようなオプションがあります。

    • 1 – 「現在のタスクを保持し、新しいタスクが完了したら元に戻す」
    • 2 – 「現在のタスクを破棄し、新しいタスクに切り替える」
    • 3 – 「ユーザーに何も通知せず新しいタスクに切り替え、現在のタスクを破棄する」
    • 4 – 「現在のタスクを継続し、新しいタスクをフォローアップタスクリストに追加する」
    • 5 – 「エンドユーザーが動作を選択できるようにする」
    r

    再開オプションについては、以下のようなオプションがあります。

    • 1 – 「保留中のタスクを再開する前に、ユーザーに確認を取る」
    • 2 – 「保留中のタスクが再開されたことをメッセージでユーザーに通知する」
    • 3 – 「ユーザーに特定のメッセージを出さずに保留タスクを再開する」
    nn

    neverNotify – ユーザーへの通知

    • True – タスクが単一の応答で終了した場合、ユーザーに特定のメッセージを表示せずに、常に保留タスクを再開します。
    • False – ユーザーに知らせます

リクエストされたタスクが見つからなかった場合、ボットは「会話をリクエストされたダイアログタスクは利用できません」という標準的な応答を返します。

使用状況

前述の通り、BotKit SDKおよびWeb/ウィジェットSDKを介して、nlMetaを入力し、バーチャルアシスタントに送信することができます。実現方法を以下の図に示します。

  • BotKit SDK – metaInfoオブジェクトの一部として。
    data.metaInfo = {
          'nlMeta': {
                'intent': 'Authenticate User', 
                'isRefresh': true, 
        	     'entities': {
    		"Name": "John"
    		},
     	    'interruptionOptions': 'discardAll'
          }
    }
  • Web SDK – nlMeta情報は、sendMessage関数を使用してパラメータとして送信することができます。この関数は chatWindow.jsファイルの中にあります。nlMetaデータが以下のように消費される必要がある場合、条件を追加します。
    if(_this.text() == “Existing”){
    me.sendMessage(_this, attachmentinfo, {'nlMeta': {
                'intent': 'Authenticate User'}}); 
    }
        	else{
    		me.sendMessage(_this, attachmentinfo);
    		}

    上記の例では、テキストフィールドに「既存」という値が含まれている場合、認証ユーザーインテントがトリガーされます。

  • Widget SDK – nlMeta 情報は、ボタン、メニュー、リストなどのさまざまなテンプレートのペイロードの一環として送信することができます。詳細はこちらをご覧ください。
メニュー