시작
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: Configuring Agent Transfer

Travel VA: Configuring Agent Transfer

One of the frequently asked questions is how to transfer a conversation to a human agent from a Virtual Assistant. This is especially necessary if your VA is in the space of customer service. Virtual Assistants are not meant to completely replace humans. Many times the assistant will fail to answer satisfactorily or the user would just want to talk/conversation to a human from the beginning. When this happens the assistant should transfer the conversation to a human agent.

In this article, we will provide an overview of how we can integrate a live conversation into our VA using Kore.ai Agent Transfer. The source code for the Agent Transfer is available at Kore.ai github repo: https://github.com/Koredotcom/BotKit.

Note: The configuration and steps listed on this page are guidelines only. The steps may have changed due to the changes introduced in the recent version of the third-party products, apps, or services. Contact support if the steps are not working for you.

The Role of the Virtual Assistant

Apart from performing business functionality, our VA would also act as a proxy between the user and agent.

  • Bot/VA: The Virtual Assistant that the Users interact with.
  • Users: Users are the customers who would be using this VA.
  • Agent: Agents are humans who would converse with the users. Agents will also need a conversation window. For this we will use LivePerson / LiveChat software.

Prerequisites

  1. A fully functional VA. See an example Travel Planning Assistant here.
  2. Download BotKit SDK from Kore’s github.
  3. Download and Install the Node.js (version 10 or above). The BotKit SDK requires node.js to run on the same server where the SDK is installed.
    1. Go to https://nodejs.org/en/download/ and select your OS as a .pkg file type for Mac and .msi file type for Windows.
    2. In a Terminal window, run the node -v command to verify installation and version, for example, v6.10.2..
  4. A test callback server application. We will be using NGROK from https://dl.equinox.io/ngrok/ngrok/stable to simulate the callback server application. Following are the steps to install NGROK:
    1. Open https://dl.equinox.io/ngrok/ngrok/stable.
    2. Download and install the ngrok file for your operating system.
      1. On Windows:
        1. Download the zip file for your Windows machine 32-bit or 64-bit.
        2. Unzip and run the ngrok.exe file to install ngrok.
      2. On MacOS:
        1. Press Command+Space and type Terminal and press enter/return key.
        2. Run in Terminal app:
          ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null and press enter/return key.
          If the screen prompts you to enter a password, please enter your Mac’s user password to continue. When you type the password, it won’t be displayed on the screen, but the system will accept it. So just type your password and press the ENTER/RETURN key. Then wait for the command to finish.
        3. Run brew cask install ngrok.
  5. A live agent software. We will be using LiveChatInc.com. You can use your own LiveChat subscription or set up a free 30-day trial account at LiveChatInc.com by entering your business email in the Start using LiveChat!. Sign up and create an account.

Design and Configuration

  1. Open the Kore.ai XO Platform – https://bots.kore.ai/botbuilder
  2. Select the VA for which Agent Transfer needs to be configured.
  3. Open or create a dialog task (Support Call Back) and add an Agent transfer node.

  4. Enter a Name (LiveAgent) and Description and Save.
  5. You will see a message ‘SDK is not currently configured/Subscribed. Please go to API Extensions to configure the SDK.’. For now ignore this message as we will be showing how to configure SDK, later in this article.
  6. From the XO Platform screen go to Build > Integrations > Agent Transfer.
  7. In the App Name section, select an existing app from the list or use the Create App option to create a new app.
  8. Make a note of the Bot ID, Client ID and Client Secret keys.
  9. Enter the Callback URL of your application, to be invoked by BotKIt SDK events. Since we are using NGROK, we will show how to obtain the callback URL:
    1. In a Terminal Window, start ngrok to monitor port 8003 using the following command: ngrok http 8003.
    2. Copy ngrok forwarding URL. It will be in the format – http://XXXXXXaa.ngrok.io
      .
    3. Use this forwarding URL as the call back URL and save.

      Note: The forwarding URL changes whenever the ngrok is restarted. Make sure you make the changes to the callback URL every time ngrok is restarted.


  10. The agent transfer is configured at the dialog level. You can open the dialog task, and open the agent transfer node to see that the configuration is saved. You can select the Events required.
  11. Install any live agent software eg Livechat, Liveperson, Concentrix, Vayusphere etc depending on your enterprise requirement and license availability. Since we are using LiveChat, we will should you how to obtain the license details needed for Agent Transfer:
    1. Sign in to your LiveChat account.
    2. Go to Settings from the left navigation and select Chat Link.
    3. Copy the URL and note the license code. If the URL is https://lc.chat/now/104xx297/ and then the license code is 104xx297.
  12. Open the downloaded BotKit SDK folder and do the following:
    1. Edit livechatapi.js.
      1. Give the respective botId and botName of your VA, which you have copied earlier.
      2. This JS file contains 3 API’s of Kore – Initialization, Send Message, Get Message. If required, any new API’s written for human agent transfer should be put in here.
        Example: If closing connection is required, then close connection api written needs to go into livechatapi.js
        .
    2. Edit config.json.
      1. Client ID, Client Secret key, respective server ports running and liveagent license of the third-party server goes here.
      2. Client Id, Client Secret can be copied from Events and Extensions – Agent Transfer.
      3. ngrok forwarding url can be copied from ngrok running instance. It is the call back url. This should be the URL entry.
      4. Liveagentlicense is the code given in the chatlink of livechat.

    3. Edit LiveChat.js
      1. Give the respective botId and botName, which you have copied earlier and save.

    4. Edit app.js
      1. Add the following line sdk.registerBot(require('./LiveChat.js')).
      2. Delete any existing sdk.registerBot statements, if not needed.

        .

Execution

  1. Open a terminal window and run the BotKit SDK by entering the command:
    node app.js
  2. Please make sure to install all the missing modules for running the server successfully without any errors as shown below.
    Example, if error “method url-template, node-schedule are missing” is shown, then install the above modules using command.
    npm install <module-name> for windows, sudo npm install <module-name> for mac.
  3. ngrok and node.js server will be running in different terminals.
  4. When a user initiates the conversation from the VA, it transfers the call to an agent and sends a message to the user.
  5. An agent receives a notification about this on the livechat.
  6. Now the connection between the agent and the user has been established and the conversation continues..

Events

Note: The events and methods required for sending messages from the User or the VA and transferring to Agent are outlined in LiveChat.JS.
  1. on_user_message event is triggered when a user sends a message and this message is sent to the VA using sendBotMessage method.
  2. on_bot_message is triggered when the VA sends a message and this message is sent to the user using SendUserMessage method.
  3. on_agent_transfer event is triggered when the service agentTransfer node is triggered in the VA. And this event connects to the agent using connectToAgent method, which internally calls initconversationAPI.
  4. gethistory method, gives the conversation history of the user with the VA to the transferred agent
  5. scheduleJob is run for every 5 secs and it polls for the pending messages from the Agent, which internally calls getPendingMessages.
  6. getPendingMessages gets all the pending messages from Agent and delivers it to the User.
  7. chat_closed gets triggered when the agent closes the conversation with the user.

Travel VA: Configuring Agent Transfer

One of the frequently asked questions is how to transfer a conversation to a human agent from a Virtual Assistant. This is especially necessary if your VA is in the space of customer service. Virtual Assistants are not meant to completely replace humans. Many times the assistant will fail to answer satisfactorily or the user would just want to talk/conversation to a human from the beginning. When this happens the assistant should transfer the conversation to a human agent.

In this article, we will provide an overview of how we can integrate a live conversation into our VA using Kore.ai Agent Transfer. The source code for the Agent Transfer is available at Kore.ai github repo: https://github.com/Koredotcom/BotKit.

Note: The configuration and steps listed on this page are guidelines only. The steps may have changed due to the changes introduced in the recent version of the third-party products, apps, or services. Contact support if the steps are not working for you.

The Role of the Virtual Assistant

Apart from performing business functionality, our VA would also act as a proxy between the user and agent.

  • Bot/VA: The Virtual Assistant that the Users interact with.
  • Users: Users are the customers who would be using this VA.
  • Agent: Agents are humans who would converse with the users. Agents will also need a conversation window. For this we will use LivePerson / LiveChat software.

Prerequisites

  1. A fully functional VA. See an example Travel Planning Assistant here.
  2. Download BotKit SDK from Kore’s github.
  3. Download and Install the Node.js (version 10 or above). The BotKit SDK requires node.js to run on the same server where the SDK is installed.
    1. Go to https://nodejs.org/en/download/ and select your OS as a .pkg file type for Mac and .msi file type for Windows.
    2. In a Terminal window, run the node -v command to verify installation and version, for example, v6.10.2..
  4. A test callback server application. We will be using NGROK from https://dl.equinox.io/ngrok/ngrok/stable to simulate the callback server application. Following are the steps to install NGROK:
    1. Open https://dl.equinox.io/ngrok/ngrok/stable.
    2. Download and install the ngrok file for your operating system.
      1. On Windows:
        1. Download the zip file for your Windows machine 32-bit or 64-bit.
        2. Unzip and run the ngrok.exe file to install ngrok.
      2. On MacOS:
        1. Press Command+Space and type Terminal and press enter/return key.
        2. Run in Terminal app:
          ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null and press enter/return key.
          If the screen prompts you to enter a password, please enter your Mac’s user password to continue. When you type the password, it won’t be displayed on the screen, but the system will accept it. So just type your password and press the ENTER/RETURN key. Then wait for the command to finish.
        3. Run brew cask install ngrok.
  5. A live agent software. We will be using LiveChatInc.com. You can use your own LiveChat subscription or set up a free 30-day trial account at LiveChatInc.com by entering your business email in the Start using LiveChat!. Sign up and create an account.

Design and Configuration

  1. Open the Kore.ai XO Platform – https://bots.kore.ai/botbuilder
  2. Select the VA for which Agent Transfer needs to be configured.
  3. Open or create a dialog task (Support Call Back) and add an Agent transfer node.

  4. Enter a Name (LiveAgent) and Description and Save.
  5. You will see a message ‘SDK is not currently configured/Subscribed. Please go to API Extensions to configure the SDK.’. For now ignore this message as we will be showing how to configure SDK, later in this article.
  6. From the XO Platform screen go to Build > Integrations > Agent Transfer.
  7. In the App Name section, select an existing app from the list or use the Create App option to create a new app.
  8. Make a note of the Bot ID, Client ID and Client Secret keys.
  9. Enter the Callback URL of your application, to be invoked by BotKIt SDK events. Since we are using NGROK, we will show how to obtain the callback URL:
    1. In a Terminal Window, start ngrok to monitor port 8003 using the following command: ngrok http 8003.
    2. Copy ngrok forwarding URL. It will be in the format – http://XXXXXXaa.ngrok.io
      .
    3. Use this forwarding URL as the call back URL and save.

      Note: The forwarding URL changes whenever the ngrok is restarted. Make sure you make the changes to the callback URL every time ngrok is restarted.


  10. The agent transfer is configured at the dialog level. You can open the dialog task, and open the agent transfer node to see that the configuration is saved. You can select the Events required.
  11. Install any live agent software eg Livechat, Liveperson, Concentrix, Vayusphere etc depending on your enterprise requirement and license availability. Since we are using LiveChat, we will should you how to obtain the license details needed for Agent Transfer:
    1. Sign in to your LiveChat account.
    2. Go to Settings from the left navigation and select Chat Link.
    3. Copy the URL and note the license code. If the URL is https://lc.chat/now/104xx297/ and then the license code is 104xx297.
  12. Open the downloaded BotKit SDK folder and do the following:
    1. Edit livechatapi.js.
      1. Give the respective botId and botName of your VA, which you have copied earlier.
      2. This JS file contains 3 API’s of Kore – Initialization, Send Message, Get Message. If required, any new API’s written for human agent transfer should be put in here.
        Example: If closing connection is required, then close connection api written needs to go into livechatapi.js
        .
    2. Edit config.json.
      1. Client ID, Client Secret key, respective server ports running and liveagent license of the third-party server goes here.
      2. Client Id, Client Secret can be copied from Events and Extensions – Agent Transfer.
      3. ngrok forwarding url can be copied from ngrok running instance. It is the call back url. This should be the URL entry.
      4. Liveagentlicense is the code given in the chatlink of livechat.

    3. Edit LiveChat.js
      1. Give the respective botId and botName, which you have copied earlier and save.

    4. Edit app.js
      1. Add the following line sdk.registerBot(require('./LiveChat.js')).
      2. Delete any existing sdk.registerBot statements, if not needed.

        .

Execution

  1. Open a terminal window and run the BotKit SDK by entering the command:
    node app.js
  2. Please make sure to install all the missing modules for running the server successfully without any errors as shown below.
    Example, if error “method url-template, node-schedule are missing” is shown, then install the above modules using command.
    npm install <module-name> for windows, sudo npm install <module-name> for mac.
  3. ngrok and node.js server will be running in different terminals.
  4. When a user initiates the conversation from the VA, it transfers the call to an agent and sends a message to the user.
  5. An agent receives a notification about this on the livechat.
  6. Now the connection between the agent and the user has been established and the conversation continues..

Events

Note: The events and methods required for sending messages from the User or the VA and transferring to Agent are outlined in LiveChat.JS.
  1. on_user_message event is triggered when a user sends a message and this message is sent to the VA using sendBotMessage method.
  2. on_bot_message is triggered when the VA sends a message and this message is sent to the user using SendUserMessage method.
  3. on_agent_transfer event is triggered when the service agentTransfer node is triggered in the VA. And this event connects to the agent using connectToAgent method, which internally calls initconversationAPI.
  4. gethistory method, gives the conversation history of the user with the VA to the transferred agent
  5. scheduleJob is run for every 5 secs and it polls for the pending messages from the Agent, which internally calls getPendingMessages.
  6. getPendingMessages gets all the pending messages from Agent and delivers it to the User.
  7. chat_closed gets triggered when the agent closes the conversation with the user.
메뉴