시작
Kore.ai 대화형 플랫폼
챗봇 개요
자연어 처리(NLP)
봇 개념 및 용어들
빠른 시작 가이드
봇 빌더 접근 방법
사용 고지 사항 (영어)
Kore.ai 봇 빌더로 작업하기
봇 구축 시작하기
릴리스 정보
현재 버전 (영어)
이전 버전 (영어)

개념
디자인
스토리보드
대화 작업
개요
Using the Dialog Builder Tool
노드 유형
사용자 의도 노드
대화 노드
엔티티 노드
양식 노드
확인 노드
서비스 노드
봇 조치 노드
Service Node
WebHook 노드
스크립트 노드
노드 그룹화하기
Agent Transfer Node
사용자 프롬프트
음성 통화 속성
대화 관리
노드 및 전환
구성 요소 전환
컨텍스트 개체
이벤트 기반 봇 조치
지식 그래프
소개
지식 추출
지식 그래프 생성
봇에 지식 그래프 추가
그래프 생성
지식 그래프 작성
FAQ 추가
작업 실행
기존 소스에서 FAQ 구축
특성, 동의어 및 불용어
변수 네임스페이스 관리
수정
용어 편집 및 삭제
용어 편집 및 삭제
질문과 응답 편집
Knowledge Graph Training
지식 그래프 분석
봇 온톨로지 가져오기 및 내보내기
지식 그래프 가져오기
지식 그래프 내보내기
지식 그래프 생성
CSV 파일에서
JSON 파일
지식 그래프 생성
경고 작업
스몰 토크
Digital Skills
디지털 양식
Views
Digital Views
Panels
Widgets
기차
봇 성능 향상 – NLP 최적화
기계 학습
소개
모델 검증
기초 의미
지식 그래프 학습
특성
순위 및 해결
고급 NLP 설정
NLP 설정 및 지침
봇 인텔리전스
소개
컨텍스트 관리
컨텍스트 관리
대화 관리
다중 – 의도 탐지
엔티티 수정
기본 대화
정서 관리
어조 분석
Test & Debug
봇과 대화
발화 테스트
배치 테스트하기
대화 테스트
배포
채널 활성화
봇 게시
분석
봇 분석하기
Conversations Dashboard
Performance Dashboard
사용자 정의 대시보드
소개
맞춤형 메타 태그
사용자 정의 대시보드 생성 방법
Conversation Flows
NLP 지표
Containment Metrics
사용량 지표
스마트 봇
소개
범용 봇
소개
범용 봇 정의
범용 봇 생성
범용 봇 학습
범용 봇 커스터마이징
범용 봇용 추가 언어 활성화
스토어
Manage Assistant
플랜 및 사용량
Overview
Usage Plans
Support Plans
플랜 관리
봇 인증
다국어 봇
개인 식별 정보 삭제하기
봇 변수 사용
IVR 통합
일반 설정
봇 관리

방법
간단한 봇 생성하기
Design Conversation Skills
뱅킹 봇 생성
뱅킹 봇 – 자금 이체
뱅킹 봇 – 잔액 업데이트
Knowledge Graph (KG) 구축
스마트 경고를 예약하는 방법
Design Digital Skills
디지털 양식 설정 방법
디지털 보기 설정 방법
데이터 테이블에 데이터를 추가하는 방법
데이터 테이블 내 데이터 업데이트 방법
UI 양식에서 데이터 테이블에 데이터를 추가하는 방법
Train the Assistant
특성 사용 방법
의도와 엔티티에 대한 패턴 사용 방법
컨텍스트 전환 관리 방법
Deploy the Assistant
상담사 전환을 설정하는 방법
봇 기능 사용 방법
콘텐츠 변수 사용 방법
전역 변수 사용 방법
Kore.ai 웹 SDK 튜토리얼
Kore.ai 위젯 SDK 튜토리얼
Analyze the Assistant
사용자 정의 대시보드 생성 방법
사용자 지정 태그를 사용하여 봇 메트릭을 필터링하는 방법

API 및 SDK
API 참조
Kore.ai API 사용
API 목록
API 컬렉션
koreUtil Libraries
SDK 참조
상담사 전환을 설정하는 방법
봇 기능 사용 방법
콘텐츠 변수 사용 방법
전역 변수 사용 방법
소개
Kore.ai 웹 SDK 튜토리얼
Kore.ai 위젯 SDK 튜토리얼

관리
소개
봇 관리자 콘솔
대시보드
사용자 관리
사용자 관리
그룹 관리
역할 관리
봇 관리 모듈
등록
사용자 초대
사용자 등록을 위한 대량 초대 보내기
사용자 및 사용자 데이터 가져오기
Active Directory에서 사용자 동기화
보안 및 준수
싱글 사인 온 사용
보안 설정
Kore.ai 커넥터
봇 관리자용 분석
Billing (지원하지 않음)
  1. Docs
  2. Virtual Assistants
  3. How Tos
  4. Travel Planing Assistant
  5. Travel VA: Configure Digital Views

Travel VA: Configure Digital Views

In this How-To, we will explore a scenario in a Travel Planning Assistant, where with just one click a user can view upcoming bookings. We will see how this Digital View can be presented using Panels and Widgets. Widgets can be used to trigger Dialog Tasks and display appropriate messages; while Panels can be used as containers to hold these Widgets.

We will also see how the Panel can be hosted on a Web/Mobile Client using the Widget SDK.

For details on what Digital Views are and how they are implemented in the Kore.ai XO Platform, refer here.

Problem Statement

Consider a Travel Planning assistant helping a user retrieve upcoming bookings. Rather than displaying this in text form, the assistant can use Digital Views to provide the information more effectively and in a more visually appealing manner.

Prerequisites

To go through these configurations, you need to know at least the basics of the following XO Platform features:

You also need a Dialog Task that handles upcoming bookings. Read more about working with the Dialog Builder.

Configurations

Let us consider each of the following scenarios one by one:

  1. Dialog Task to display Upcoming Bookings, using the Widget SDK Channel.
  2. Widgets to trigger the above dialog task and a Panel set with the widgets.
  3. A Panel to hold a widget displaying a static JSON template message.

Message Template

First, the Dialog task which would be triggered from the Widget should have a message definition for the Widget SDK channel.

We are using the following message to display the upcoming bookings.

var lastBooking, dateAfterFifteenDays
lastBooking = BotUserSession.get('bookedFlightInfo')
if(lastBooking === undefined || lastBooking === null) {
lastBooking = {}
dateAfterFifteenDays = koreUtil.moment().add(15, 'days').format('D MMM YYYY')
lastBooking['travelDate'] = dateAfterFifteenDays
lastBooking['passengerCount'] = 1
lastBooking['flyingFrom'] = 'Orlando, FL, USA'
lastBooking['flyingTo'] = 'New York, NY, USA'
}
var message = {
"templateType": "List",
"widgetName": "Upcoming Bookings",
"description": "Shows future bookings",
"headerOptions": {
},
"elements": [
{
"image": {
"image_type": "image",
"image_src": "https://demo.kore.ai/barefoot/sites/default/files/demo_uploads/panelwidgetupcoming.png"
},
"title": "Date of Journey: " + lastBooking['travelDate'],
"subtitle": "Passengers: " + lastBooking['passengerCount'],
"value":
{
"layout":
{
"align": "centre",
"colSize": "25%"
},
"type":"button",
"text":"",
"button":
{
"title": "Web CheckIn",
"theme": "#3377FF",
"type": "postback",
"payload": "I want to do web check-in",//+title,
"utterance": "I want to do web check-in"//+title
}
},
"details": [
{
"image": {
"image_type": "image",
"image_src": "https://demo.kore.ai/barefoot/sites/default/files/demo_uploads/Panelfrom.png"
},
"description": "Flying from: " + lastBooking['flyingFrom']
},
{
"image": {
"image_type": "image",
"image_src": "https://demo.kore.ai/barefoot/sites/default/files/demo_uploads/Panelto.png"
},
"description": "Flying to: " + lastBooking['flyingTo']
}
]
}
]
}
print(JSON.stringify(message));

Widget Configuration

We will be creating a Widget that triggers a Dialog Task in order to display upcoming bookings for a user. To do so, let us follow the steps below:

  • Ensure that Build is selected from the top menu.
  • From under Digital Skills open Digital Views.
  • Click the Create Widget button.
  • Provide a Widget Name and a Display Name.
  • Set the Source, we are triggering Dialog Task, hence select Dialog Task.
  • Select Dialog Task as Upcoming Bookings, as per our use case
  • Save the widget.
  • Edit the widget and click Run & Preview to see the widget output.
  • Save as preview will set the output as the thumbnail against the widget.

Once configured, your Widget might look like this:

Panel Configuration

The Widgets thus created need to be attached to a Panel for runtime display and execution.

  1. Click the Create Panel button to create a Panel. We will be creating a Bookings Panel, within which to integrate the Widget we just created.
  2. In the New Panel window, enter Panel Name, Display Name and a URL for its Icon.

  3. Click the Add Widget button to open the Panel Management window.

  4. Use the Add Widget option to select and add the Widgets that we want to display, in this case the Upcoming Bookings widget. You can use this window to add further widgets to the Bookings panel if you like.

  5. Use the Test button to see the widget in action. This will open the Talk to Bot feature, where you can ask the VA for Upcoming Bookings. If your setup is successful, you should be shown the widget we just created. 

Panel with JSON Widgets

Next, we will see how to create Widgets with static JSON content. We will use a JSON to display a pie chart.

  1. Create a Widget and call it Travel Spend.
  2. In the New Widget dialog, enter the Name, and set the source to JSON.

    Enter the following in the JavaScript Editor. This is a message template to display a pie chart with a break up for amounts spent under various heads like travel, food, and accommodation. For more on supported message templates, refer here.

    var message =
    {
          "templateType": "piechart",
          "pie_type": "regular",
          "title": "Summary",
          "description": "monthly report",
          "elements": [
            {
              "title": "Airlines",
              "value": "1264.0",
              "displayValue": "$ 1,234"
            },
            {
              "title": "Hotels",
              "value": "568.10",
              "displayValue": "$ 568"
            },
            {
              "title": "Food",
              "value": "324.50",
              "displayValue": "$ 324"
            }
          ]
        };
    print(JSON.stringify(message));
  3. Create a Panel and name it Travel Spend Breakdown.
  4. Add the Travel Spend Widget to the Travel Spend Breakdown Panel.

  5. Test the panel and you will see it in action.

Publishing

To publish the Assistant, first enable channels:

  1. From the left navigation menu, select Channel for publishing. For our use case we will select both Web/Mobile Client and Widget SDK channels.
  2. Select the channels and from the Configurations tab, make a note of the Bot Name, Bot Id, Client Id and Client Secret.
  3. From the left navigation menu, select the Publish option. Under the Tasks & languages section, ensure that the Widget and Panels we developed are selected for publication.
  4. Proceed with the Publish.

Learn more about publishing your Virtual Assistant

Hosting

We will be hosting the Panels in the web/mobile client. See here for more details on the Widget SDK usage.

  1. Download the Kore.ai Widget SDK, go to https://github.com/Koredotcom/web-kore-sdk, and then click Download.
  2. Extract all files to the …/SDKApp/sdk folder.
  3. Open the above SDK folder, and traverse to the UI folder.
  4. Open the kore-config.js
  5. Configure your botOptions with the ‘web/mobile client’ channel configurations copied  in the above section.
    1. botOptions.botInfo
    2. botOptions.clientId
    3. botOptions.clientSecret
  6. Make other changes as per your requirements.
  7. Open the kore-widgets-config.js
  8. Configure your botOptionsWiz with the ‘Widget SDK’ channel configurations copied in the above  section.
    1. botOptionsWiz.botInfo
    2. botOptionsWiz.clientId
    3. botOptionsWiz.clientSecret
  9. Make other changes as per your requirements.
  10. Open the index_widgets_chat.html file in the browser and see the chat window along with the widgets.
  11. If you want to host the Panels individually use the index_widgets.html file.

Travel VA: Configure Digital Views

In this How-To, we will explore a scenario in a Travel Planning Assistant, where with just one click a user can view upcoming bookings. We will see how this Digital View can be presented using Panels and Widgets. Widgets can be used to trigger Dialog Tasks and display appropriate messages; while Panels can be used as containers to hold these Widgets.

We will also see how the Panel can be hosted on a Web/Mobile Client using the Widget SDK.

For details on what Digital Views are and how they are implemented in the Kore.ai XO Platform, refer here.

Problem Statement

Consider a Travel Planning assistant helping a user retrieve upcoming bookings. Rather than displaying this in text form, the assistant can use Digital Views to provide the information more effectively and in a more visually appealing manner.

Prerequisites

To go through these configurations, you need to know at least the basics of the following XO Platform features:

You also need a Dialog Task that handles upcoming bookings. Read more about working with the Dialog Builder.

Configurations

Let us consider each of the following scenarios one by one:

  1. Dialog Task to display Upcoming Bookings, using the Widget SDK Channel.
  2. Widgets to trigger the above dialog task and a Panel set with the widgets.
  3. A Panel to hold a widget displaying a static JSON template message.

Message Template

First, the Dialog task which would be triggered from the Widget should have a message definition for the Widget SDK channel.

We are using the following message to display the upcoming bookings.

var lastBooking, dateAfterFifteenDays
lastBooking = BotUserSession.get('bookedFlightInfo')
if(lastBooking === undefined || lastBooking === null) {
lastBooking = {}
dateAfterFifteenDays = koreUtil.moment().add(15, 'days').format('D MMM YYYY')
lastBooking['travelDate'] = dateAfterFifteenDays
lastBooking['passengerCount'] = 1
lastBooking['flyingFrom'] = 'Orlando, FL, USA'
lastBooking['flyingTo'] = 'New York, NY, USA'
}
var message = {
"templateType": "List",
"widgetName": "Upcoming Bookings",
"description": "Shows future bookings",
"headerOptions": {
},
"elements": [
{
"image": {
"image_type": "image",
"image_src": "https://demo.kore.ai/barefoot/sites/default/files/demo_uploads/panelwidgetupcoming.png"
},
"title": "Date of Journey: " + lastBooking['travelDate'],
"subtitle": "Passengers: " + lastBooking['passengerCount'],
"value":
{
"layout":
{
"align": "centre",
"colSize": "25%"
},
"type":"button",
"text":"",
"button":
{
"title": "Web CheckIn",
"theme": "#3377FF",
"type": "postback",
"payload": "I want to do web check-in",//+title,
"utterance": "I want to do web check-in"//+title
}
},
"details": [
{
"image": {
"image_type": "image",
"image_src": "https://demo.kore.ai/barefoot/sites/default/files/demo_uploads/Panelfrom.png"
},
"description": "Flying from: " + lastBooking['flyingFrom']
},
{
"image": {
"image_type": "image",
"image_src": "https://demo.kore.ai/barefoot/sites/default/files/demo_uploads/Panelto.png"
},
"description": "Flying to: " + lastBooking['flyingTo']
}
]
}
]
}
print(JSON.stringify(message));

Widget Configuration

We will be creating a Widget that triggers a Dialog Task in order to display upcoming bookings for a user. To do so, let us follow the steps below:

  • Ensure that Build is selected from the top menu.
  • From under Digital Skills open Digital Views.
  • Click the Create Widget button.
  • Provide a Widget Name and a Display Name.
  • Set the Source, we are triggering Dialog Task, hence select Dialog Task.
  • Select Dialog Task as Upcoming Bookings, as per our use case
  • Save the widget.
  • Edit the widget and click Run & Preview to see the widget output.
  • Save as preview will set the output as the thumbnail against the widget.

Once configured, your Widget might look like this:

Panel Configuration

The Widgets thus created need to be attached to a Panel for runtime display and execution.

  1. Click the Create Panel button to create a Panel. We will be creating a Bookings Panel, within which to integrate the Widget we just created.
  2. In the New Panel window, enter Panel Name, Display Name and a URL for its Icon.

  3. Click the Add Widget button to open the Panel Management window.

  4. Use the Add Widget option to select and add the Widgets that we want to display, in this case the Upcoming Bookings widget. You can use this window to add further widgets to the Bookings panel if you like.

  5. Use the Test button to see the widget in action. This will open the Talk to Bot feature, where you can ask the VA for Upcoming Bookings. If your setup is successful, you should be shown the widget we just created. 

Panel with JSON Widgets

Next, we will see how to create Widgets with static JSON content. We will use a JSON to display a pie chart.

  1. Create a Widget and call it Travel Spend.
  2. In the New Widget dialog, enter the Name, and set the source to JSON.

    Enter the following in the JavaScript Editor. This is a message template to display a pie chart with a break up for amounts spent under various heads like travel, food, and accommodation. For more on supported message templates, refer here.

    var message =
    {
          "templateType": "piechart",
          "pie_type": "regular",
          "title": "Summary",
          "description": "monthly report",
          "elements": [
            {
              "title": "Airlines",
              "value": "1264.0",
              "displayValue": "$ 1,234"
            },
            {
              "title": "Hotels",
              "value": "568.10",
              "displayValue": "$ 568"
            },
            {
              "title": "Food",
              "value": "324.50",
              "displayValue": "$ 324"
            }
          ]
        };
    print(JSON.stringify(message));
  3. Create a Panel and name it Travel Spend Breakdown.
  4. Add the Travel Spend Widget to the Travel Spend Breakdown Panel.

  5. Test the panel and you will see it in action.

Publishing

To publish the Assistant, first enable channels:

  1. From the left navigation menu, select Channel for publishing. For our use case we will select both Web/Mobile Client and Widget SDK channels.
  2. Select the channels and from the Configurations tab, make a note of the Bot Name, Bot Id, Client Id and Client Secret.
  3. From the left navigation menu, select the Publish option. Under the Tasks & languages section, ensure that the Widget and Panels we developed are selected for publication.
  4. Proceed with the Publish.

Learn more about publishing your Virtual Assistant

Hosting

We will be hosting the Panels in the web/mobile client. See here for more details on the Widget SDK usage.

  1. Download the Kore.ai Widget SDK, go to https://github.com/Koredotcom/web-kore-sdk, and then click Download.
  2. Extract all files to the …/SDKApp/sdk folder.
  3. Open the above SDK folder, and traverse to the UI folder.
  4. Open the kore-config.js
  5. Configure your botOptions with the ‘web/mobile client’ channel configurations copied  in the above section.
    1. botOptions.botInfo
    2. botOptions.clientId
    3. botOptions.clientSecret
  6. Make other changes as per your requirements.
  7. Open the kore-widgets-config.js
  8. Configure your botOptionsWiz with the ‘Widget SDK’ channel configurations copied in the above  section.
    1. botOptionsWiz.botInfo
    2. botOptionsWiz.clientId
    3. botOptionsWiz.clientSecret
  9. Make other changes as per your requirements.
  10. Open the index_widgets_chat.html file in the browser and see the chat window along with the widgets.
  11. If you want to host the Panels individually use the index_widgets.html file.
메뉴