JP7456344B2 - Information processing device, information processing system, information processing method and program - Google Patents

Information processing device, information processing system, information processing method and program Download PDF

Info

Publication number
JP7456344B2
JP7456344B2 JP2020163650A JP2020163650A JP7456344B2 JP 7456344 B2 JP7456344 B2 JP 7456344B2 JP 2020163650 A JP2020163650 A JP 2020163650A JP 2020163650 A JP2020163650 A JP 2020163650A JP 7456344 B2 JP7456344 B2 JP 7456344B2
Authority
JP
Japan
Prior art keywords
information
information processing
mode
input
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020163650A
Other languages
Japanese (ja)
Other versions
JP2021093133A (en
Inventor
尚也 鬼頭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to US17/097,357 priority Critical patent/US11762937B2/en
Publication of JP2021093133A publication Critical patent/JP2021093133A/en
Application granted granted Critical
Publication of JP7456344B2 publication Critical patent/JP7456344B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明は、情報処理装置、情報処理システム、情報処理方法及びプログラムに関する。 The present invention relates to an information processing device, an information processing system, an information processing method, and a program.

従来、コンピュータ等の装置が質問等の入力に対して答弁を行う、いわゆるチャットボット(単に「ボット」等と呼ばれる場合もある。)が知られている。 2. Description of the Related Art Conventionally, so-called chatbots (sometimes simply called "bots" or the like) have been known, in which a device such as a computer answers questions and the like in response to input.

例えばチャットボットシステムにおいて、質問が入力されると、質問が属する分野を推論する方法は従来から知られている(例えば、特許文献1等を参照)。また、チャットボットシステムにおいて、ボットによる答弁が行われた後に、ボットの答弁に対する満足度をユーザに入力させる方法は従来から知られている。 For example, in a chatbot system, when a question is input, a method of inferring the field to which the question belongs has been known (see, for example, Patent Document 1). Furthermore, in a chatbot system, a method is conventionally known in which, after the bot has given an answer, the user is asked to input their level of satisfaction with the bot's answer.

また、チャットボットシステムにおいて、ボットによるチャットの履歴を保存して、例えば、履歴に対して統計処理等の解析を行い、解析結果に基づいて回答の精度を向上させる方法は従来から知られている。 In addition, in chatbot systems, methods have long been known in which the history of chats by the bot is saved, the history is analyzed through statistical processing, etc., and the accuracy of answers is improved based on the analysis results. .

しかしながら、従来の方法では、例えば、ボットを実際に運用する前等に、ボットの動作確認又はデバッグ等を目的としてテストが行われる等、実際の運用とは異なる形態でボットが運用される場合が多い。従来の方法では、複数の形態のそれぞれで運用されるときのボットの履歴を区別せずに保存してしまう問題があった。その結果、従来の方法では、例えば、ボットの運用履歴に対する統計処理の精度が低下する場合がある。 However, with conventional methods, the bot may be operated in a manner different from the actual operation, for example, before the bot is actually operated, a test is conducted for the purpose of confirming the bot's operation or debugging. many. Conventional methods have the problem of storing the history of bots without distinguishing between them when they are operated in multiple forms. As a result, in the conventional method, for example, the accuracy of statistical processing of the bot's operation history may decrease.

本発明の一実施形態は、上記課題に鑑みてなされたものであり、ボットの運用形態を区別可能に、ボットの履歴を保存することを目的とする。 One embodiment of the present invention has been made in view of the above-mentioned problems, and aims to save the history of a bot so that the operation mode of the bot can be distinguished.

本発明の一実施形態による情報処理装置は、ユーザから入力を受け付けるユーザ端末に接続する情報処理装置であって、
前記ユーザ端末に入力される入力情報を取得する入力情報取得部と、
前記入力情報に対する応答情報を検索する検索部と、
前記入力情報に対して、前記応答情報に基づく応答メッセージを前記ユーザ端末に応答する応答部と、
前記入力情報取得部、前記検索部、及び、前記応答部による対話を実行する複数のモードを設定するモード設定部と、
前記対話が実行されるときのモードごとに前記対話の履歴を保存する保存部とを備える。
An information processing device according to an embodiment of the present invention is an information processing device connected to a user terminal that receives input from a user, and includes:
an input information acquisition unit that acquires input information input to the user terminal;
a search unit that searches for response information to the input information;
a response unit that responds to the input information with a response message based on the response information to the user terminal;
a mode setting unit that sets a plurality of modes in which interactions are executed by the input information acquisition unit, the search unit, and the response unit;
and a storage unit that stores a history of the interaction for each mode in which the interaction is executed.

ボットの運用形態を区別して、ボットの履歴を保存できる。 You can distinguish between bot operation modes and save bot history.

全体構成例を示す図である。FIG. 3 is a diagram showing an example of the overall configuration. ユーザ端末のハードウェア構成例を示す図である。FIG. 2 is a diagram illustrating an example of a hardware configuration of a user terminal. 管理者端末のハードウェア構成例を示す図である。It is a diagram showing an example of the hardware configuration of an administrator terminal. サーバ装置のハードウェア構成例を示す図である。It is a diagram showing an example of the hardware configuration of a server device. シナリオ情報に基づく対話の流れの例を示す図である。FIG. 3 is a diagram illustrating an example of the flow of dialogue based on scenario information. カテゴリ情報の例を示す図である。FIG. 3 is a diagram showing an example of category information. 質問-回答情報の例を示す図である。FIG. 3 is a diagram showing an example of question-answer information. 問い合わせ履歴情報の例を示す図である。FIG. 3 is a diagram showing an example of inquiry history information. 対話履歴情報の例を示す図である。FIG. 3 is a diagram illustrating an example of dialogue history information. 機能構成例を示す図である。It is a diagram showing an example of a functional configuration. 全体処理例を示す図である。FIG. 3 is a diagram showing an example of overall processing. モードに基づく設定例を示す図である。It is a figure which shows the example of a setting based on a mode. モード設定部による判断例を示す図である。FIG. 6 is a diagram illustrating an example of determination by a mode setting unit. 統計結果の表示例を示す図である。It is a figure which shows the example of a display of a statistical result.

<全体構成例>
図1は、全体構成例を示す図である。例えば、情報処理システムの例であるチャットボットシステム100は、情報処理装置の例であるサーバ装置1、及び、ユーザ端末2等を有するシステム構成である。なお、図示するように、チャットボットシステム100は、管理者端末3等のように、サーバ装置1及びユーザ端末2以外の装置を更に有してもよい。
<Example of overall configuration>
FIG. 1 is a diagram showing an example of the overall configuration. For example, a chatbot system 100, which is an example of an information processing system, has a system configuration that includes a server device 1, which is an example of an information processing device, a user terminal 2, and the like. Note that, as illustrated, the chatbot system 100 may further include devices other than the server device 1 and the user terminal 2, such as the administrator terminal 3.

サーバ装置1は、チャットボットサービスを提供する情報処理装置の例である。 The server device 1 is an example of an information processing device that provides a chatbot service.

ユーザ端末2は、チャットボットサービスにおいて、ユーザが質問を入力する等の操作を行う情報処理装置である。なお、チャットボットシステム100は複数のユーザ端末2を有する構成であってもよい。また、ユーザ端末2は、常に通信網4に接続された状態でなくともよい。 The user terminal 2 is an information processing device through which a user performs operations such as inputting questions in a chatbot service. Note that the chatbot system 100 may have a configuration including a plurality of user terminals 2. Further, the user terminal 2 does not need to be always connected to the communication network 4.

管理者端末3は、サーバ装置1等を管理するため、管理者等が入力等の操作を行う情報処理装置である。 The administrator terminal 3 is an information processing device on which an administrator or the like performs operations such as input in order to manage the server device 1 and the like.

サーバ装置1、ユーザ端末2、及び管理者端末3は、例えば、通信網4等を介して互いに接続する。 The server device 1, user terminal 2, and administrator terminal 3 are connected to each other via, for example, a communication network 4.

例えば、通信網4は、インターネット等である。通信網4は、有線通信又は無線を行う、LAN(Local Area Network)、WAN(Wide Area Network)、近距離通信、又はこれらの組み合わせとなる通信網等でもよい。 For example, the communication network 4 is the Internet or the like. The communication network 4 may be a LAN (Local Area Network), a WAN (Wide Area Network), a short-range communication, or a combination thereof, which performs wired or wireless communication.

サーバ装置1は、ユーザ端末2及び管理者端末3等と通信を行う。例えば、サーバ装置1は、ユーザが入力する質問等を示す入力情報に対して、回答等となる応答メッセージを応答する、いわゆるチャットボットサービス等を提供する。 The server device 1 communicates with a user terminal 2, an administrator terminal 3, and the like. For example, the server device 1 provides a so-called chatbot service that responds with a response message, such as an answer, to input information indicating a question or the like input by a user.

また、サーバ装置1は、複数のユーザ間においてメッセージの送受信を行う、いわゆるチャット等のサービスを提供する。サーバ装置1は、複数のユーザ間においてインスタントメッセージサービス等を提供する。なお、様々なサービスは、複数の情報処理装置が提供してもよい。以下では、1台の情報処理装置であるサーバ装置1がサービスを提供する例を説明する。 Further, the server device 1 provides a service such as a so-called chat service in which messages are sent and received between a plurality of users. The server device 1 provides instant message services and the like between a plurality of users. Note that various services may be provided by multiple information processing devices. In the following, an example will be described in which the server device 1, which is one information processing device, provides a service.

チャットボットサービスでは、ユーザが質問等を示す文字等(以下「入力情報」という。)をユーザ端末2に入力する。サーバ装置1は、ユーザ端末2に入力された入力情報を、通信網4等を介して、ユーザ端末2から取得する。次に、サーバ装置1は、入力情報が示す質問に対する回答等となる情報(以下「応答情報」という。)を検索する。サーバ装置1は、入力情報に対する応答情報に基づいて応答メッセージを生成し、応答メッセージをユーザ端末2に通信網4等を介して応答する。ユーザ端末2は、入力情報に対する応答情報をメッセージ等の形式で表示する。チャットボットサービスを利用したユーザは、表示されたメッセージ等を確認することで、質問に対する回答を得る。 In the chatbot service, a user inputs characters or the like (hereinafter referred to as "input information") indicating a question or the like into the user terminal 2. The server device 1 acquires input information input to the user terminal 2 from the user terminal 2 via the communication network 4 or the like. Next, the server device 1 searches for information such as an answer to the question indicated by the input information (hereinafter referred to as "response information"). The server device 1 generates a response message based on response information to the input information, and sends the response message to the user terminal 2 via the communication network 4 or the like. The user terminal 2 displays response information to the input information in the form of a message or the like. A user who uses a chatbot service obtains answers to questions by checking displayed messages and the like.

チャットボットサービスを実現するのに用いられるサーバ装置1、ユーザ端末2、及び管理者端末3は、例えば、以下のようなハードウェア構成である。 The server device 1, user terminal 2, and administrator terminal 3 used to implement the chatbot service have, for example, the following hardware configuration.

<ユーザ端末の例>
図2は、ユーザ端末のハードウェア構成例を示す図である。例えば、ユーザ端末2は、CPU(Central Processing Unit)201、ROM(Read Only Memory)202、RAM(Random Access Memory)203、メモリ204、通信I/F205、操作I/F206、及び、表示装置207を含むハードウェア構成である。また、ユーザ端末2が有するハードウェアは、例えば、バス等を介して互いに接続する。なお、ユーザ端末2が有するハードウェアは、有線又は無線の通信によって他の装置等と接続してもよい。
<Example of user terminal>
FIG. 2 is a diagram showing an example of the hardware configuration of a user terminal. For example, the user terminal 2 includes a CPU (Central Processing Unit) 201, a ROM (Read Only Memory) 202, a RAM (Random Access Memory) 203, a memory 204, a communication I/F 205, an operation I/F 206, and a display device 207. This is the hardware configuration including. Further, the hardware included in the user terminal 2 is connected to each other via, for example, a bus or the like. Note that the hardware included in the user terminal 2 may be connected to other devices through wired or wireless communication.

ユーザ端末2は、例えば、PC(Personal Computer)、スマートフォン又はタブレット等の情報処理装置である。 The user terminal 2 is, for example, an information processing device such as a PC (Personal Computer), a smartphone, or a tablet.

CPU201は、演算部及び制御部等の機能を実現する。また、CPU201は、制御装置及び演算装置の例である。 The CPU 201 implements functions such as a calculation section and a control section. Further, the CPU 201 is an example of a control device and an arithmetic device.

ROM202は、不揮発性半導体による記憶装置等である。 The ROM 202 is a nonvolatile semiconductor storage device or the like.

RAM203は、揮発性半導体による記憶装置等である。 The RAM 203 is a volatile semiconductor storage device or the like.

メモリ204は、主記憶装置の例である。例えば、メモリ204は、通信網4を介して取得された情報を記憶する。なお、ユーザ端末2は、ハードディスク又はSSD(Solid State Drive)等の補助記憶装置を更に有してもよい。また、ROM202、RAM203及びメモリ204等は、記憶部の機能を実現する。 Memory 204 is an example of main storage. For example, the memory 204 stores information obtained via the communication network 4. Note that the user terminal 2 may further include an auxiliary storage device such as a hard disk or an SSD (Solid State Drive). Further, the ROM 202, RAM 203, memory 204, etc. realize the function of a storage unit.

通信I/F205は、通信部等の機能を実現する。例えば、通信I/F205は、接続端子及び通信回路等である。 The communication I/F 205 implements functions such as a communication section. For example, the communication I/F 205 is a connection terminal, a communication circuit, and the like.

操作I/F206は、入力部等の機能を実現する。例えば、操作I/F206は、ボタン、キーボード、ダイヤル、キー、タッチパネル及びマイク等の入力装置である。 The operation I/F 206 realizes functions such as an input unit. For example, the operation I/F 206 is an input device such as a button, a keyboard, a dial, a key, a touch panel, and a microphone.

表示装置207は、出力部の機能を実現する。例えば、表示装置207は、液晶パネル、有機EL(Electroluminescence)及び無機EL等の出力装置である。なお、表示装置207及び操作I/F206は、タッチパネルのように一体の構成でもよい。 The display device 207 realizes the function of an output section. For example, the display device 207 is an output device such as a liquid crystal panel, an organic EL (electroluminescence), an inorganic EL, or the like. Note that the display device 207 and the operation I/F 206 may have an integrated configuration like a touch panel.

なお、プログラムは、ROM202及びメモリ204に限らず、例えば、補助記憶装置等に格納されもよい。また、プログラムは、通信網4等を介して取得されてもよい。 Note that the program is not limited to the ROM 202 and the memory 204, but may be stored in, for example, an auxiliary storage device. Further, the program may be acquired via the communication network 4 or the like.

<管理者端末の例>
図3は、管理者端末のハードウェア構成例を示す図である。例えば、管理者端末3は、CPU301、ROM302、RAM303、メモリ304、通信I/F305、操作I/F306、及び、表示装置307を含むハードウェア構成である。以下では、管理者端末3がユーザ端末2と同一のハードウェア構成である例を説明し、重複する説明を省略する。ただし、管理者端末3は、ユーザ端末2及びサーバ装置1等と異なるハードウェア構成でもよい。
<Example of administrator terminal>
FIG. 3 is a diagram showing an example of the hardware configuration of the administrator terminal. For example, the administrator terminal 3 has a hardware configuration including a CPU 301, a ROM 302, a RAM 303, a memory 304, a communication I/F 305, an operation I/F 306, and a display device 307. In the following, an example in which the administrator terminal 3 has the same hardware configuration as the user terminal 2 will be described, and redundant explanation will be omitted. However, the administrator terminal 3 may have a different hardware configuration from the user terminal 2, the server device 1, and the like.

<サーバ装置の例>
図4は、サーバ装置のハードウェア構成例を示す図である。例えば、サーバ装置1は、CPU101、ROM102、RAM103、メモリ104、通信I/F105、操作I/F106、及び、表示装置107を含むハードウェア構成である。以下では、サーバ装置1がユーザ端末2と同一のハードウェア構成である例を説明し、重複する説明を省略する。ただし、サーバ装置1は、ユーザ端末2及び管理者端末3等と異なるハードウェア構成でもよい。
<Example of server device>
FIG. 4 is a diagram showing an example of the hardware configuration of the server device. For example, the server device 1 has a hardware configuration including a CPU 101, a ROM 102, a RAM 103, a memory 104, a communication I/F 105, an operation I/F 106, and a display device 107. In the following, an example in which the server device 1 has the same hardware configuration as the user terminal 2 will be described, and redundant explanation will be omitted. However, the server device 1 may have a different hardware configuration from the user terminal 2, administrator terminal 3, and the like.

<データベース(以下「DB」という。)の例>
チャットボットシステム100がチャットボットサービスを行う場合、サーバ装置1は、例えば、以下のようなDBをあらかじめ構築する。以下では、サーバ装置1が、キーワードDB、類義語DB、対話シナリオDB、カテゴリDB、質問-回答DB、問い合わせ履歴DB、対話履歴DB、及び、契約情報DBを有する例を説明する。
<Example of database (hereinafter referred to as "DB")>
When the chatbot system 100 provides a chatbot service, the server device 1 builds, for example, the following DB in advance. In the following, an example will be described in which the server device 1 includes a keyword DB, a synonym DB, a dialogue scenario DB, a category DB, a question-answer DB, an inquiry history DB, a dialogue history DB, and a contract information DB.

キーワードDBは、質問及び回答の特徴を示す文字例を、いわゆるキーワードとして記憶する。なお、キーワードは、単語、フレーズ及び文であってもよい。また、キーワードDBは、質問-回答情報以外に関連するキーワードを記憶してもよい。 The keyword DB stores character examples indicating characteristics of questions and answers as so-called keywords. Note that the keyword may be a word, phrase, or sentence. Further, the keyword DB may store related keywords other than question-answer information.

例えば、サーバ装置1は、質問を構成する文字列を単語に分解する。次に、サーバ装置1は、それぞれの単語をキーワードDBが記憶する単語と照合して、質問のキーワードを検索する。次に、サーバ装置1は、質問-回答DBにおける「質問」の文字列から、キーワードと一致する単語を検索して、質問に対応する質問-回答情報を検索する。このように、サーバ装置1は質問が示すキーワードを抽出するためにキーワードDBを用いる。 For example, the server device 1 breaks down a character string that constitutes a question into words. Next, the server device 1 searches for the keyword of the question by comparing each word with the words stored in the keyword DB. Next, the server device 1 searches the character string of "question" in the question-answer DB for a word that matches the keyword, and searches for question-answer information corresponding to the question. In this way, the server device 1 uses the keyword DB to extract the keyword indicated by the question.

類義語DBは、キーワード等に対する類義語情報を記憶する。例えば、類義語情報は、互いに意味が類似する文字列を対応付けする情報である。なお、文字列は、単語、フレーズ及び文であってもよい。また、互いに意味が類似する文字列は、意味が類似する文字列に限定されない。例えば、互いに意味が類似する文字列は、一方から他方を推定可能な文字列、一方が他方の一部である文字列、又は。使用される場面が類似する文字列でもよい。また、ユーザ等は類義語情報を、使用環境に応じて任意に定義してもよい。 The synonym DB stores synonym information for keywords and the like. For example, the synonym information is information that associates character strings that are similar in meaning to each other. Note that the character strings may be words, phrases, and sentences. Furthermore, character strings that are similar in meaning to each other are not limited to character strings that are similar in meaning. For example, character strings that are similar in meaning to each other may be character strings in which one can be inferred from the other, character strings in which one is a part of the other, or character strings that are used in similar situations. Furthermore, users, etc. may define synonym information arbitrarily depending on the usage environment.

サーバ装置1は、入力情報が示す質問を構成する文字列を単語に分解する。次に、サーバ装置1は、それぞれの単語を類義語DBと照合し、類義語となる文字列を抽出する。このように、サーバ装置1は、質問に含まれる単語及び単語の類義語をキーワードDB等に照合して、質問のキーワードを推定する。 The server device 1 breaks down the character string that constitutes the question indicated by the input information into words. Next, the server device 1 compares each word with the synonym DB and extracts character strings that are synonyms. In this way, the server device 1 estimates the keyword of the question by checking the words and synonyms of the words included in the question with a keyword database or the like.

対話シナリオDBは、入力情報に応じた対話を実現するシナリオ情報を記憶する。例えば、サーバ装置1は、対話シナリオDBにあらかじめ入力されるシナリオに沿って、ユーザとの対話が実現するようにシナリオ情報を生成する。 The dialogue scenario DB stores scenario information for realizing dialogue according to input information. For example, the server device 1 generates scenario information in accordance with a scenario input in advance into the dialogue scenario DB so that a dialogue with the user can be realized.

図5は、シナリオ情報に基づく対話の流れの例を示す図である。例えば、ユーザが質問を行う入力情報を受け付け、質問に対する応答メッセージを応答する流れは、シナリオ情報によって以下のようになる。 FIG. 5 is a diagram showing an example of the flow of dialogue based on scenario information. For example, the flow of accepting input information for a user to ask a question and responding with a response message to the question is as follows depending on the scenario information.

<シナリオ情報に基づく対話の流れの例>
例えば、管理者は、図示するような流れとなるように、あらかじめチャットボットシステム100にシナリオ情報を入力する。チャットボットシステム100は、シナリオ情報に基づいて、ユーザと対話を行う。具体的に、管理者は図示するような流れに従ってコミュニケーションができるように、チャットボットシステム100に、シナリオ情報、データベース及びGUI(Graphical User Interface)等を、あらかじめ設定する。以下では図5に示した流れの詳細を説明する。
<Example of dialogue flow based on scenario information>
For example, the administrator inputs scenario information into the chatbot system 100 in advance so as to follow the flow shown in the figure. The chatbot system 100 interacts with the user based on scenario information. Specifically, the administrator presets scenario information, a database, a GUI (Graphical User Interface), etc. in the chatbot system 100 so that communication can occur according to the flow shown in the figure. The details of the flow shown in FIG. 5 will be explained below.

ステップS31では、まず、チャットボットシステム100は、質問の検索方法となる選択メニューをユーザ端末2に表示する。例えば、選択メニューは、「全てのカテゴリから検索」、「カテゴリから選んで検索」及び「よくある質問から検索」の3つの選択肢のうちの1つを選択する操作をユーザから受け付けるGUIである。なお、チャットボットシステム100は、4つ以上の選択肢又は2つ以下の選択肢の選択メニューを表示してもよい。 In step S31, the chatbot system 100 first displays a selection menu on the user terminal 2, which is a search method for questions. For example, the selection menu is a GUI that accepts an operation from the user to select one of three options: "Search from all categories," "Search by selecting a category," and "Search from Frequently Asked Questions." Note that the chatbot system 100 may display a selection menu with four or more options or two or less options.

選択メニューによって「全てのカテゴリから検索」が選択されると(図における「全てのカテゴリから検索」である。)、チャットボットシステム100は、ステップS32の処理に進む。また、選択メニューによって「よくある質問から検索」が選択されると(図における「よくある質問から選ぶ」である。)、チャットボットシステム100は、ステップS37の処理に進む。選択メニューによって「カテゴリから選んで検索」(図における「カテゴリから選ぶ」である。)が選択されると、チャットボットシステム100は、ステップS39の処理に進む。 When "Search from all categories" is selected from the selection menu (this is "Search from all categories" in the figure), the chatbot system 100 advances to step S32. Furthermore, when "Search from Frequently Asked Questions" is selected from the selection menu (this is "Select from Frequently Asked Questions" in the figure), the chatbot system 100 advances to step S37. When "Search by category" ("Select by category" in the figure) is selected from the selection menu, the chatbot system 100 advances to step S39.

ステップS32では、チャットボットシステム100は、ユーザに文字を使用して質問を入力するように促すメッセージをユーザ端末2に表示する。また、チャットボットシステム100は、テキストボックス等のGUIをユーザ端末2に表示し、質問となる文字を入力する操作をユーザから受け付ける。次に、質問が入力されると(図における「任意の質問文字を入力」である。)、チャットボットシステム100は、ステップS33の処理に進む。 In step S32, the chatbot system 100 displays on the user terminal 2 a message prompting the user to input a question using characters. The chatbot system 100 also displays a GUI such as a text box on the user terminal 2, and receives an operation from the user to input characters for a question. Next, when a question is input ("input any question characters" in the figure), the chatbot system 100 advances to step S33.

ステップS33では、チャットボットシステム100は、質問を示す文字列を解析する。そして、チャットボットシステム100は、質問-回答DBを検索して、質問に対して回答となりうる候補(以下単に「候補」という。)を抽出する。なお、チャットボットシステム100は、検索の結果、候補を複数取得してもよい。 In step S33, the chatbot system 100 analyzes the character string indicating the question. The chatbot system 100 then searches the question-answer DB and extracts candidates (hereinafter simply referred to as "candidates") that can be answers to the questions. Note that the chatbot system 100 may obtain a plurality of candidates as a result of the search.

ステップS33による検索の結果、候補が1つ(図における「候補が1つ」である。)であると、チャットボットシステム100は、検索された候補を応答情報にして応答する。また、ステップS33による検索の結果、候補が2つ以上(図における「候補が2つ以上」である。)であると、チャットボットシステム100は、ステップS34の処理に進む。ステップS33による検索の結果、候補が検出できない場合(図における「候補が検出できなかった」である。)であると、チャットボットシステム100は、ステップS36の処理に進む。 As a result of the search in step S33, if there is one candidate (“one candidate” in the figure), the chatbot system 100 responds by using the searched candidate as response information. Further, as a result of the search in step S33, if there are two or more candidates (“two or more candidates” in the figure), the chatbot system 100 proceeds to the process of step S34. As a result of the search in step S33, if a candidate cannot be detected ("no candidate could be detected" in the figure), the chatbot system 100 proceeds to processing in step S36.

ステップS34では、チャットボットシステム100は、複数の候補のうち、いずれかを選択させる操作、又は、いずれの候補も非選択とする操作のうち、いずれかの操作をユーザに行わせるGUIをユーザ端末2に表示する。 In step S34, the chatbot system 100 displays a GUI on the user terminal that allows the user to select one of the plurality of candidates or to deselect any of the candidates. Display on 2.

ステップS35では、チャットボットシステム100は、候補のうち、いずれかを選択する操作が行われると(図における「候補を選択」である。)、選択された候補を応答情報にして応答する。一方で、非選択を選択する操作が行われると(図における「該当するものが存在しない」である。)、チャットボットシステム100は、例えば、今の段階では質問に対する回答を表示できない等を示す謝罪のメッセージをユーザ端末2に表示する。 In step S35, when an operation for selecting one of the candidates is performed ("select candidate" in the figure), the chatbot system 100 responds by using the selected candidate as response information. On the other hand, when an operation to select non-selection is performed ("no matching item exists" in the figure), the chatbot system 100 indicates, for example, that the answer to the question cannot be displayed at this stage. An apology message is displayed on the user terminal 2.

ステップS36では、チャットボットシステム100は、謝罪を示すメッセージ及び再検索を行う促すメッセージをユーザ端末2に表示して、ステップS31の処理に戻る。 In step S36, the chatbot system 100 displays on the user terminal 2 a message indicating an apology and a message urging re-search, and returns to the process of step S31.

ステップS37では、チャットボットシステム100は、問い合わせ履歴DBを参照して、他のユーザ等から問い合わせ頻度の高い1つ以上の質問(例えば、3つ程度である。)を抽出する。そして、チャットボットシステム100は、質問を一覧にしてユーザ端末2に表示する。さらに、チャットボットシステム100は、他の検索方法を選択させるためのGUIをユーザ端末2に表示する。 In step S37, the chatbot system 100 refers to the inquiry history DB and extracts one or more questions (for example, about three questions) that are frequently asked by other users. The chatbot system 100 then displays a list of questions on the user terminal 2. Furthermore, the chatbot system 100 displays a GUI on the user terminal 2 to allow the user to select another search method.

ステップS38では、質問が選択されると(図における「よくある質問を選択」である。)、チャットボットシステム100は、選択された質問に対する回答を質問-回答DBから検索した結果を応答情報として応答する。一方で、ステップS38では他の検索方法が選択されると(図における「別の方法で検索を選択」である。)、チャットボットシステム100は、ステップS31の処理に戻る。 In step S38, when a question is selected ("Select a frequently asked question" in the figure), the chatbot system 100 responds by searching the question-answer DB for an answer to the selected question as response information. On the other hand, when another search method is selected in step S38 ("Select a different search method" in the figure), the chatbot system 100 returns to the processing of step S31.

ステップS39では、チャットボットシステム100は、カテゴリ名を一覧にしてユーザ端末2に表示する。そして、カテゴリ名の一覧からカテゴリを選択する操作が行われると(図における「カテゴリを選択」である。)、チャットボットシステム100は、ステップS40の処理に進む。 In step S39, the chatbot system 100 displays a list of category names on the user terminal 2. Then, when an operation for selecting a category from the list of category names is performed (this is "select category" in the figure), the chatbot system 100 advances to step S40.

ステップS40では、チャットボットシステム100は、質問となる文字を入力する操作をユーザから受け付ける。次に、質問が入力されると(図における「任意の質問文字を入力」である。)、チャットボットシステム100は、質問を示す入力情報を取得する。そして、チャットボットシステム100は、ステップS41の処理に進む。 In step S40, the chatbot system 100 receives an operation from the user to input characters for a question. Next, when a question is input ("input any question characters" in the figure), the chatbot system 100 acquires input information indicating the question. The chatbot system 100 then proceeds to the process of step S41.

ステップS41では、チャットボットシステム100は、質問-回答DBを検索して、候補を抽出する。次に、チャットボットシステム100は、候補が1つ(図における「回答が1つ」である。)であると、検索された候補を応答情報にして応答する。また、候補が2つ以上(図における「候補が2つ以上」である。)であると、チャットボットシステム100は、ステップS42の処理に進む。候補が検出できない場合(図における「候補が検出できなかった」である。)、チャットボットシステム100は、ステップS44の処理に進む。 In step S41, the chatbot system 100 searches the question-answer DB and extracts candidates. Next, if there is one candidate (“one answer” in the diagram), the chatbot system 100 responds by using the searched candidate as response information. Further, if there are two or more candidates (“two or more candidates” in the figure), the chatbot system 100 proceeds to the process of step S42. If the candidate cannot be detected (“No candidate could be detected” in the figure), the chatbot system 100 proceeds to the process of step S44.

ステップS42では、チャットボットシステム100は、複数の候補のうち、いずれかを選択させる操作、又は、いずれの候補も非選択とする操作のうち、いずれかの操作をユーザに行わせるGUIをユーザ端末2に表示する。 In step S42, the chatbot system 100 displays a GUI on the user terminal that allows the user to select one of a plurality of candidates or to deselect any of the candidates. Display on 2.

ステップS43では、チャットボットシステム100は、候補のうち、いずれかを選択する操作がユーザにより行われると(図における「候補を選択」である。)、選択された候補を応答情報にして応答する。一方で、非選択を選択する操作がユーザにより行われると(図における「該当するものが存在しない」である。)、チャットボットシステム100は、例えば、今の段階では質問に対する回答を表示できない等を示す謝罪のメッセージをユーザ端末2に表示する。 In step S43, when the user performs an operation to select one of the candidates ("select candidate" in the figure), the chatbot system 100 responds by using the selected candidate as response information. . On the other hand, if the user performs an operation to select non-selection ("No matching item exists" in the figure), the chatbot system 100 may, for example, not be able to display the answer to the question at this stage. An apology message indicating the following is displayed on the user terminal 2.

ステップS44では、チャットボットシステム100は、謝罪を示すメッセージ及び再検索を行う促すメッセージをユーザ端末2に表示して、ステップS31の処理に戻る。 In step S44, the chatbot system 100 displays a message apologizing and a message urging re-search on the user terminal 2, and returns to the process of step S31.

ユーザは、例えば、以上のような対話の流れを想定してシナリオ情報を入力する。すなわち、シナリオ情報は、対話の流れの中で用いられるGUIの種類、メッセージ及びGUI等を出力させる順序等を管理者が設定した結果等を示す。 For example, the user inputs scenario information assuming the flow of the dialogue as described above. That is, the scenario information indicates the results of settings made by the administrator, such as the type of GUI used in the flow of dialogue, the order in which messages, GUIs, and the like are output.

カテゴリDBは、質問を分類するためのカテゴリ情報を記憶する。例えば、カテゴリ情報は、以下のような情報である。 The category DB stores category information for classifying questions. For example, the category information is the following information.

図6は、カテゴリ情報の例を示す図である。例えば、図示するように、カテゴリ情報は、「ID」、「カテゴリ名」及び「更新日時」を含む情報である。 FIG. 6 is a diagram showing an example of category information. For example, as shown in the figure, the category information is information including "ID", "category name", and "update date and time".

「カテゴリ名」は、質問が該当するカテゴリを示す。 "Category name" indicates the category to which the question falls.

「ID」は、ID(Identification)、すなわち、それぞれのカテゴリの識別情報を示す。 “ID” indicates ID (Identification), that is, identification information of each category.

「更新日時」は、各情報が更新された日時を示す。 "Updated date and time" indicates the date and time when each piece of information was updated.

質問-回答DBは、質問と、質問に対する回答を対応付けした情報(以下「質問-回答情報」という。)を記憶する。例えば、質問-回答情報は、あらかじめ管理者等によって作成され、質問-回答DBに記憶される。例えば、質問-回答情報は、以下のような情報である。 The question-answer DB stores information in which questions and answers to the questions are associated with each other (hereinafter referred to as "question-answer information"). For example, question-answer information is created in advance by an administrator or the like and stored in a question-answer DB. For example, the question-answer information is the following information.

図7は、質問-回答情報の例を示す図である。例えば、図示するように、質問-回答情報は、「ID」、「質問」、「類似質問」、「回答」、「カテゴリID」及び「更新日時」を含む情報である。 FIG. 7 is a diagram showing an example of question-answer information. For example, as shown in the figure, the question-answer information includes "ID", "question", "similar question", "answer", "category ID", and "update date and time".

「ID」は、ID、すなわち、それぞれの質問-回答情報の識別情報を示す。 "ID" indicates ID, that is, identification information of each question-answer information.

「質問」は、質問の内容を示す。 "Question" indicates the content of the question.

「類似質問」は、「質問」に入力される質問と類似の内容となる質問を示す。 "Similar question" indicates a question with similar content to the question input in "Question."

「回答」は、質問に対する回答を示す。 "Answer" indicates the answer to the question.

「カテゴリID」は、質問が該当するカテゴリを特定できるカテゴリのIDを示す。 “Category ID” indicates a category ID that allows specifying the category to which the question corresponds.

「更新日時」は、各情報が更新された日時を示す。 “Updated date and time” indicates the date and time when each piece of information was updated.

問い合わせ履歴DBは、以前にユーザによって入力された質問を示す情報(以下「問い合わせ履歴情報」という。)を記憶する。例えば、問い合わせ履歴情報は、以下のような情報である。 The inquiry history DB stores information indicating questions previously input by the user (hereinafter referred to as "inquiry history information"). For example, the inquiry history information is the following information.

図8は、問い合わせ履歴情報の例を示す図である。図示するように、問い合わせ履歴情報は、「ID」、「セッションID」、「ヒットした質問に紐づくカテゴリのID」、「ヒットした質問のID」、「ユーザ入力」、「フィードバック」及び「日時」を含む情報である。 FIG. 8 is a diagram showing an example of inquiry history information. As shown in the figure, the inquiry history information includes "ID", "session ID", "ID of the category associated with the hit question", "ID of the hit question", "user input", "feedback", and "date and time". ” is included.

「ID」は、ID、すなわち、それぞれの問い合わせ履歴情報の識別情報を示す。 “ID” indicates an ID, that is, identification information of each inquiry history information.

「セッションID」は、質問が行われた対話セッションを特定できる識別情報を示す。 "Session ID" indicates identification information that can identify the dialogue session in which the question was asked.

「ヒットした質問に紐づくカテゴリのID」は、質問が該当するカテゴリを特定できるカテゴリのIDを示す。 “ID of category associated with hit question” indicates the ID of the category that allows specifying the category to which the question corresponds.

「ヒットした質問のID」は、質問のIDを示す。 "ID of hit question" indicates the ID of the question.

「ユーザ入力」は、ユーザが入力した質問を示す。 "User input" indicates a question input by a user.

「フィードバック」は、質問に対する回答に、ユーザがフィードバックをしたか否かを示す。 "Feedback" indicates whether the user provided feedback on the answer to the question.

「日時」は、対話が行われた日時を示す。 "Date and time" indicates the date and time when the conversation took place.

対話セッションは、ユーザ端末2とサーバ装置1の間で行われた対話の集合である。例えば、同一の対話セッションとなる対話は、ユーザ端末2において、チャット形式等の対話に用いる画面が立ち上げられてから閉じられるまでの間に行われた対話である。また、同一の対話セッションとなる対話は、ユーザ端末2において、当該画面が立ち上げられてからセッションタイムアウトにより当該画面が強制的に閉じられるまでの間に行われた対話等である。 An interaction session is a collection of interactions conducted between the user terminal 2 and the server device 1. For example, the conversations that are part of the same conversation session are conversations that take place on the user terminal 2 between when a screen used for a chat-style conversation or the like is launched and when it is closed. Furthermore, the conversations that constitute the same conversation session are conversations that take place on the user terminal 2 between when the screen is launched and when the screen is forcibly closed due to session timeout.

なお、セッションタイムアウトは、あらかじめ設定される所定時間内に、ユーザ端末2に対してアクションがない場合に発生する。そして、セッションタイムアウトは、対話に用いる画面等を終了させる処理である。 Note that session timeout occurs when there is no action on the user terminal 2 within a predetermined time set in advance. The session timeout is a process of terminating the screen used for dialogue.

なお、対話セッションは、上記の例に限定されない。例えば、対話セッションは質問の入力から、回答の応答が行われた後、回答に対してユーザがフィードバックを入力するまでが1つの対話セッションでもよい。この場合、対話セッションは、ユーザからフィードバックが得られると、1つの対話セッションが完了する。 Note that the interactive session is not limited to the above example. For example, one interaction session may include inputting a question, providing an answer, and then inputting feedback for the answer by the user. In this case, one interaction session is completed once feedback is obtained from the user.

対話履歴DBは、ユーザ端末2とサーバ装置1の間で行われる対話において、ユーザ端末2に入力された発言内容及びサーバ装置1が出力した内容の履歴を示す情報(以下「対話履歴情報」という。)を記憶する。例えば、対話履歴情報は、以下のような情報である。 The dialogue history DB stores information (hereinafter referred to as "dialogue history information") indicating the history of the contents of comments input to the user terminal 2 and the contents output by the server apparatus 1 in the dialogue conducted between the user terminal 2 and the server apparatus 1. ). For example, the dialogue history information is the following information.

図9は、対話履歴情報の例を示す図である。図示するように、対話履歴情報は、「ID」、「セッションID」、「発言種別」、「発言内容」、「発言タイプID」、「コンテントID」、「日時」及び「モード」を含む情報である。 FIG. 9 is a diagram showing an example of dialogue history information. As shown in the figure, the dialogue history information includes information including "ID", "session ID", "utterance type", "utterance content", "utterance type ID", "content ID", "date and time", and "mode". It is.

「ID」は、ID、すなわち、それぞれの対話履歴情報の識別情報を示す。 "ID" indicates an ID, that is, identification information of each dialogue history information.

「セッションID」は、対話が行われた対話セッションを特定できるIDを示す。 “Session ID” indicates an ID that can identify the conversation session in which the conversation took place.

「発言種別」は、発言者の種別を示す。具体的に、図9の「発言種別」に入力される値は、「0」又は「1」のいずれかである。「0」は、管理者による発言であることを示す。一方で、「1」は、ユーザによる発言であることを示す。 “Speech type” indicates the type of speaker. Specifically, the value input to the "speech type" in FIG. 9 is either "0" or "1". "0" indicates that the comment was made by the administrator. On the other hand, "1" indicates that the comment is made by the user.

「発言内容」は、発言された内容を示す。 "Content of utterance" indicates the content of the utterance.

「発言タイプID」は、例えば、「5-0」、「5-1」及び「5-2」のように入力される。これらの入力に基づいて、「発言タイプID」は、「カテゴリ」、「質問-回答情報」及び「シナリオ」のうち、「発言内容」がいずれかに対応して発言されたかを示す。 The "utterance type ID" is inputted as "5-0", "5-1", and "5-2", for example. Based on these inputs, the "utterance type ID" indicates which one of the "category", "question-answer information", and "scenario" was uttered in response to the "utterance content".

「コンテントID」は、発言タイプがシナリオである場合に、シナリオで設定された発言を示す。また、「コンテントID」は、発言タイプが質問-回答情報である場合に、質問-回答情報のIDを示す。さらに、「コンテントID」は、発言タイプがカテゴリである場合に、カテゴリを選択する発言を示す。 "Content ID" indicates a comment set in a scenario when the comment type is a scenario. Moreover, "content ID" indicates the ID of question-answer information when the comment type is question-answer information. Furthermore, "content ID" indicates a comment for which a category is selected when the comment type is a category.

「日時」は、対話が行われた日時を示す。 "Date and time" indicates the date and time when the conversation took place.

「モード」は、対話がどのモードで行われたかを示す。モードの詳細は後述する。 "Mode" indicates in which mode the interaction was performed. Details of the mode will be described later.

契約情報DBは、ユーザとあらかじめ結ばれた契約の内容を記憶する。例えば、契約の内容には、有人対応を行うか否か、及び、対応を行う期間等の情報が含まれる。また、サーバ装置1は、取得された契約の内容等の情報をテナントID等と対応付けて保持してもよい。 The contract information DB stores the contents of contracts concluded with users in advance. For example, the contents of the contract include information such as whether or not manned support will be provided and the period during which the support will be provided. Further, the server device 1 may hold information such as the acquired contract details in association with the tenant ID and the like.

なお、DBの種類、及び、構成は、上記の例に限られない。すなわち、DBは、他の形式であってもよい。また、DBは、複数の装置が分散してデータを保持して構成してもよい。さらに、各DBは、必須でない。すなわち、シナリオを実現できるデータが揃うのであれば、DBの形式等は問わない。 The type and configuration of the DB are not limited to the above example. That is, the DB may be in another format. Also, the DB may be configured with multiple devices storing data in a distributed manner. Furthermore, each DB is not essential. That is, as long as the data that can realize the scenario is available, the format of the DB, etc. does not matter.

<機能ブロック図>
図10は、機能構成例を示す図である。例えば、チャットボットシステム100は、入力情報取得部1001、検索部1002、応答部1003、モード設定部1004、保存部1005、生成部1006、及び、統計処理部1007等を備える機能構成である。
<Functional block diagram>
FIG. 10 is a diagram showing an example of a functional configuration. For example, the chatbot system 100 has a functional configuration including an input information acquisition section 1001, a search section 1002, a response section 1003, a mode setting section 1004, a storage section 1005, a generation section 1006, a statistical processing section 1007, and the like.

入力情報取得部1001は、ユーザ端末2に入力される入力情報を取得する入力情報取得手順を行う。 The input information acquisition unit 1001 performs an input information acquisition procedure for acquiring input information input to the user terminal 2.

検索部1002は、入力情報に対する応答情報を検索する検索手順を行う。 The search unit 1002 performs a search procedure to search for response information to input information.

応答部1003は、入力情報に対して応答情報をユーザ端末2に応答する応答手順を行う。 The response unit 1003 performs a response procedure to respond to the input information by sending response information to the user terminal 2.

入力情報取得部1001、検索部1002、及び、応答部1003は、入力部2001を介して入力される入力情報に対する応答情報を出力部2002から出力することで、対話、すなわち、ボットを実現する。 The input information acquisition unit 1001, the search unit 1002, and the response unit 1003 realize dialogue, that is, a bot, by outputting response information from the output unit 2002 to the input information input via the input unit 2001.

例えば、入力情報取得部1001は、通信I/F105等によって、入力情報をユーザ端末2から取得する。また、検索部1002は、例えば、CPU101等によって、入力情報に対する応答情報を検索する。さらに、応答部1003は、通信I/F105等によって、応答情報をユーザ端末2に応答する。 For example, the input information acquisition unit 1001 acquires input information from the user terminal 2 through the communication I/F 105 or the like. Further, the search unit 1002 searches for response information to the input information using, for example, the CPU 101 or the like. Furthermore, the response unit 1003 responds with response information to the user terminal 2 via the communication I/F 105 or the like.

モード設定部1004は、入力情報取得部1001、検索部1002、及び、応答部1003による対話を複数のモードで実行するモード設定手順を行う。例えば、モード設定部1004は、CPU101等によって、モード情報を取得し、保持しているモード情報に基づいて、モードが第1モードであるか第2モードであるかを判断する。そして、モード設定部1004は、以降に行われる対話の履歴を保存するように設定するか、又は、以降に行われる対話が履歴を保存せず、除外されるように設定する。 The mode setting unit 1004 performs a mode setting procedure in which the input information acquisition unit 1001, the search unit 1002, and the response unit 1003 perform dialogue in a plurality of modes. For example, the mode setting unit 1004 acquires mode information using the CPU 101 or the like, and determines whether the mode is the first mode or the second mode based on the held mode information. Then, the mode setting unit 1004 sets the history of subsequent interactions to be saved, or sets the interactions to be excluded from subsequent interactions without saving the history.

保存部1005は、対話の履歴をモードに基づいて分けて保存する保存手順を行う。例えば、保存部1005は、メモリ104等によって、対話の内容等の履歴を記憶する。 The storage unit 1005 performs a storage procedure for storing the history of dialogues in a divided manner based on the mode. For example, the storage unit 1005 stores history such as the contents of dialogues using the memory 104 or the like.

生成部1006は、モードを分けて対話を実行するためのコードを生成する生成手順を行う。例えば、生成部1006は、CPU101等によって、モード設定部1004が実行する複数のモードに応じて、それぞれのモードごとに、コードを生成する。 The generation unit 1006 performs a generation procedure to generate codes for executing interactions in different modes. For example, the generation unit 1006 generates a code for each mode according to a plurality of modes executed by the mode setting unit 1004 by the CPU 101 or the like.

統計処理部1007は、履歴を統計処理して、第1モードにおける統計結果を示す統計処理手順を行う。例えば、統計処理部1007は、CPU101等によって、保存部1005によって記憶された履歴等に基づいて統計処理を行う。 The statistical processing unit 1007 performs statistical processing on the history and performs a statistical processing procedure showing statistical results in the first mode. For example, the statistical processing unit 1007 uses the CPU 101 or the like to perform statistical processing based on the history stored in the storage unit 1005.

なお、サーバ装置1には、CPU101等で実現する、演算部、及び、制御部等の機能が更にあってもよい。ほかにも、サーバ装置1には、入力部、出力部、記憶部及び通信部等の機能が更にあってもよい。さらに、ユーザ端末2には、演算部、制御部、記憶部、入力部、出力部及び通信部等の機能があってもよい。 Note that the server device 1 may further include functions such as a calculation section and a control section, which are realized by the CPU 101 and the like. In addition, the server device 1 may further have functions such as an input section, an output section, a storage section, and a communication section. Furthermore, the user terminal 2 may have functions such as a calculation section, a control section, a storage section, an input section, an output section, and a communication section.

<全体処理例>
図11は、全体処理例を示す図である。以下では、チャットボットサービスを実現する処理をサーバ装置1が単独で行う例を説明する。
<Overall processing example>
FIG. 11 is a diagram showing an example of overall processing. In the following, an example will be described in which the server device 1 independently performs processing for realizing a chatbot service.

ステップS101では、ユーザ端末2の入力部2001は、ボットを起動させる操作を受け付ける。例えば、ユーザ端末2の入力部2001は、表示中のWebページに含まれる所定のアイコンを押下する操作、ユーザ端末2にインストールされた対話アプリケーションを起動する操作、又は対話アプリケーションの所定のボタンを押下する操作を受け付ける。 In step S101, the input unit 2001 of the user terminal 2 receives an operation to start the bot. For example, the input unit 2001 of the user terminal 2 can perform an operation of pressing a predetermined icon included in a currently displayed web page, an operation of starting an interactive application installed on the user terminal 2, or a pressing of a predetermined button of the interactive application. accepts operations to do.

ステップS102では、ホームページ500は、ユーザ端末2に対して、ボットの起動要求に応答する。具体的に、ホームページ500は、あらかじめコードがホームページのソースコードに埋め込まれる。そして、ステップS102では、ユーザ端末2は、埋め込まれたコードに基づいて処理が実行可能な状態となる。 In step S102, the home page 500 responds to the bot activation request to the user terminal 2. Specifically, in the homepage 500, code is embedded in the source code of the homepage in advance. Then, in step S102, the user terminal 2 becomes ready to execute processing based on the embedded code.

コードは、モードごとに異なるように生成される。具体的に、第1モードの例である実行モードと、第2モードの例であるテストモードでは、異なるURL(Uniform Resource Locator)が生成されるのが望ましい。生成部1006は、モード設定部1004が実行する複数のモードに応じて、それぞれのモードごとに、コードを生成する。 The code is generated differently for each mode. Specifically, it is desirable to generate different URLs (Uniform Resource Locators) for the execution mode, which is an example of the first mode, and the test mode, which is an example of the second mode. The generation unit 1006 generates code for each of the multiple modes executed by the mode setting unit 1004.

なお、モードは、3種類以上あってもよい。以下では、モードが2種類である例で説明する。 Note that there may be three or more types of modes. An example in which there are two types of modes will be described below.

そして、テストを行う場合に、ホームページ500は、テストモード用の埋め込みコードが埋め込まれる。一方で、実際に運用する場合に、ホームページ500は、実行モード用のコードが埋め込まれる。 When performing a test, the homepage 500 is embedded with an embedded code for the test mode. On the other hand, in the case of actual operation, the home page 500 has code for the execution mode embedded therein.

ステップS103では、ユーザ端末2の演算部は、コードを実行する。例えば、ユーザ端末2の演算部は、ホームページ500にあらかじめ埋め込まれたテストモード用の埋め込みコードを実行する。 In step S103, the calculation unit of the user terminal 2 executes the code. For example, the calculation unit of the user terminal 2 executes a test mode embedded code embedded in the home page 500 in advance.

コードは、生成部1006がモードごとに異なるように生成する。このため、モード設定部1004は、コードに基づいて、実行するモードを切り替えることができる。したがって、以降の処理において、モード設定部1004は、対話等がどのモードにおいて行われているかを識別できる。 The generation unit 1006 generates different codes for each mode. Therefore, the mode setting unit 1004 can switch the execution mode based on the code. Therefore, in subsequent processing, the mode setting unit 1004 can identify in which mode the dialogue etc. are being performed.

ステップS104では、ユーザ端末2の通信部は、コードに基づいて、JavaScript(登録商標)等で作成されるスクリプトデータを要求する。ユーザ端末2の通信部は、例えば、サーバ装置1に対して、テストモード用のスクリプトデータを要求する。 In step S104, the communication unit of the user terminal 2 requests script data created using JavaScript (registered trademark) or the like based on the code. The communication unit of the user terminal 2 requests the server device 1 for test mode script data, for example.

ステップS105では、サーバ装置1の通信部は、ステップS104で要求されるスクリプトデータをユーザ端末2に送信する。例えば、サーバ装置1の通信部はテストモード用のスクリプトデータをユーザ端末2に送信する。 In step S105, the communication unit of the server device 1 transmits the script data requested in step S104 to the user terminal 2. For example, the communication unit of the server device 1 transmits script data for test mode to the user terminal 2.

ステップS106では、ユーザ端末2の演算部は、スクリプトデータを実行する。例えば、ユーザ端末2の演算部はテストモード用のスクリプトデータを実行する。 In step S106, the calculation unit of the user terminal 2 executes the script data. For example, the calculation unit of the user terminal 2 executes script data for test mode.

ステップS107では、ユーザ端末2の通信部は、ボットのコンテンツ要求及びボットの契約者(テナント)を識別するテナントIDをサーバ装置1に送信する。ユーザ端末2の通信部は、テストモードを示すモード情報を送信する。また、モード設定部1004は、送信されたモード情報を保持しておく。 In step S107, the communication unit of the user terminal 2 transmits the bot's content request and the tenant ID for identifying the bot's contractor (tenant) to the server device 1. The communication unit of the user terminal 2 transmits mode information indicating the test mode. Furthermore, the mode setting unit 1004 holds the transmitted mode information.

テナントIDは、ユーザ端末2があらかじめ保持している情報である。なお、テナントIDは、ボットに用いられるブラウザが保持してもよいし、又は、チャット機能を実現するアプリケーションが保持してもよい。 The tenant ID is information held in advance by the user terminal 2. Note that the tenant ID may be held by a browser used for a bot, or may be held by an application that implements a chat function.

ステップS108では、サーバ装置1の演算部は、テナントIDに対応する契約等の情報を契約情報DBから取得する。そして、サーバ装置1の演算部は、テナントIDに基づいて契約状態等を判断する。以下では、契約がチャットボットサービスを利用可能な状態であると判断した例を説明する。 In step S108, the calculation unit of the server device 1 acquires information such as a contract corresponding to the tenant ID from the contract information DB. Then, the calculation unit of the server device 1 determines the contract status etc. based on the tenant ID. Below, an example will be described in which it is determined that the contract is in a state where the chatbot service can be used.

ステップS109では、サーバ装置1は、例えば、モードに基づいて以下のように処理を行う。 In step S109, the server device 1 performs the following processing based on the mode, for example.

図12は、モードに基づく設定例を示す図である。なお、図示するような処理が実行されるタイミングは、ステップS109のタイミングに限られない。例えば、図示するような処理が実行されるタイミングは、ステップS103又はボットが起動するタイミング等でもよい。 FIG. 12 is a diagram showing an example of settings based on the mode. Note that the timing at which the illustrated process is executed is not limited to the timing of step S109. For example, the timing at which the illustrated process is executed may be step S103 or the timing at which the bot is activated.

ステップS901では、モード設定部1004は、モード情報を取得する。実行されるコードに基づいてモードが識別されるため、モード設定部1004は、どのモードを実行するかを把握できる。 In step S901, the mode setting unit 1004 acquires mode information. Because the mode is identified based on the code to be executed, the mode setting unit 1004 knows which mode to execute.

ステップS902では、モード設定部1004は、保持しているモード情報に基づいて、モードが第1モードであるか第2モードであるかを判断する。生成部1006はテストモード用の埋め込みコード及び実行モード用の埋め込みコードを、あらかじめ以下のように生成する。 In step S902, the mode setting unit 1004 determines whether the mode is the first mode or the second mode based on the held mode information. The generation unit 1006 generates the embedded code for the test mode and the embedded code for the execution mode in advance as follows.

図13は、コードを生成する画面の例を示す図である。図示する画面は、テスト用の埋め込みコードを生成する操作画面の一例である。 FIG. 13 is a diagram showing an example of a screen for generating a code. The illustrated screen is an example of an operation screen for generating an embedded code for testing.

第1コードCD1は、実行モード用の埋め込みコードの例である。第2コードCD2は、テストモード用の埋め込みコードの例である。図示するように、第1コードCD1は、URLの末尾が「chat.js」である。第2コードCD2は、URLの末尾が「chat_test3.js」である。このように、生成部1006はモードごとにURLの末尾が異なるコードを生成する。 The first code CD1 is an example of an embedded code for the execution mode. The second code CD2 is an example of an embedded code for test mode. As shown in the figure, the URL of the first code CD1 ends with "chat.js". In the second code CD2, the end of the URL is "chat_test3.js". In this way, the generation unit 1006 generates codes with different URL endings for each mode.

生成部1006は第2コードCD2を、例えば、以下のように生成する。 The generation unit 1006 generates the second code CD2, for example, as follows.

まず、テナントを管理する管理者は管理者端末3を操作してテストケース名等を入力する。図における「作成」ボタンがクリックされると、生成部1006は埋め込みコードを生成する。そして、管理者は埋め込みコードをホームページ500に埋め込み、ホームページ500を公開する。すると、図11に示すステップS103において、ユーザ端末2はホームページ500に埋め込まれたテストモード用の埋め込みコードを実行する。その結果、ステップS104において、ユーザ端末2はサーバ装置1からテストモード用のスクリプトデータ(この例の場合は「chat_test3.js」を取得する)。 First, the administrator who manages the tenant operates the administrator terminal 3 to input the test case name and the like. When the "Create" button in the figure is clicked, the generation unit 1006 generates an embedded code. Then, the administrator embeds the embedding code into the homepage 500 and makes the homepage 500 public. Then, in step S103 shown in FIG. 11, the user terminal 2 executes the test mode embedded code embedded in the home page 500. As a result, in step S104, the user terminal 2 acquires test mode script data (in this example, "chat_test3.js") from the server device 1.

ステップS106では、ユーザ端末2はテストモード用のスクリプトデータを実行する。次に、ステップS107では、ユーザ端末2はチャットボットコンテンツを要求、かつ、テストモードであることを、サーバ装置1に通知する。モード設定部1004は、通知されたモード情報に基づいて実行モードであるかテストモードであるかを判断する。 In step S106, the user terminal 2 executes the script data for test mode. Next, in step S107, the user terminal 2 requests chatbot content and notifies the server device 1 that it is in test mode. The mode setting unit 1004 determines whether the mode is execution mode or test mode based on the notified mode information.

また、テスト用の埋め込みコードを埋め込むホームページ500は、本番のホームページとは限らない。管理者は、一般ユーザに公開しないテスト用のホームページ等にテスト用の埋め込みコードを埋め込み、テストを行ってもよい。 Further, the homepage 500 in which the test embedding code is embedded is not necessarily the actual homepage. The administrator may conduct a test by embedding a test embedded code in a test homepage or the like that is not open to general users.

なお、管理者は複数のテストモード用のスクリプトを作成し、複数のテスト用の埋め込みコードを異なるホームページに埋め込むことで、複数のテストを同時に行うこともできる。例えば、管理者は作成済みのテストモード用の埋め込みコードとコードIDと対応付けて登録しておくことで、登録済みのコードIDを、図13の画面の作成済みテスト用埋め込みコード欄に表示する。管理者が、作成済みテスト用埋め込みコード「test1」と「test2」のうち、いずれかを選択すると、管理者端末3は選択されたコードIDに対応するテストモード用の埋め込みコードをテキストボックスに表示する。また、この場合、図9の対話履歴のモード項目に記憶されるテストごとの識別情報は、例えば、テストモード「1」、テストモード「2」等である。 Administrators can also run multiple tests at the same time by creating scripts for multiple test modes and embedding the embedded codes for multiple tests on different homepages. For example, by registering the created test mode embed code and code ID in association with each other, the administrator can display the registered code ID in the created test embed code field on the screen shown in Figure 13. . When the administrator selects either of the created test embedded codes "test1" and "test2", the administrator terminal 3 displays the test mode embedded code corresponding to the selected code ID in the text box. do. Further, in this case, the identification information for each test stored in the mode item of the dialog history in FIG. 9 is, for example, test mode "1", test mode "2", etc.

次に、モードが第1モードであると判断すると(ステップS902で「第1モード」)、モード設定部1004は、ステップS903の処理に進む。一方で、モードが第2モードであると判断すると(ステップS902で「第2モード」)、モード設定部1004は、ステップS904の処理に進む。 Next, when determining that the mode is the first mode ("first mode" in step S902), the mode setting unit 1004 proceeds to processing in step S903. On the other hand, if it is determined that the mode is the second mode ("second mode" in step S902), the mode setting unit 1004 proceeds to processing in step S904.

ステップS903では、モード設定部1004は、以降に行われる対話の履歴を保存するように設定する。 In step S903, the mode setting unit 1004 sets the history of subsequent interactions to be saved.

ステップS904では、モード設定部1004は、以降に行われる対話の履歴を保存せず、対話の履歴から除外するように設定する。 In step S904, the mode setting unit 1004 sets the history of subsequent conversations to be excluded from the history of conversations without saving them.

なお、モード設定部1004は、第1モードと第2モードで分けて履歴を保存できるように設定すればよく、第2モードで発生した対話の履歴を第1モードの履歴と分けて保存してもよいし、破棄してもよい。 Note that the mode setting unit 1004 may be configured so that the history can be saved separately in the first mode and the second mode, and the history of interactions that occurred in the second mode can be saved separately from the history in the first mode. You can also discard it.

モード設定部1004は、第1モードと第2モードに分けて対話の履歴を保存する場合に、例えば、図9のように各履歴のモード項目に、いずれかのモードを示す情報を登録する。 When storing the interaction history in the first mode and the second mode, the mode setting unit 1004 registers information indicating one of the modes in the mode item of each history, as shown in FIG. 9, for example.

また、モード設定部1004は、モードに基づいて、対話の履歴の保存以外について設定してもよい。すなわち、テスト環境は、実際の運用される環境と異なるように設定してもよい。例えば、DB、スクリプト、UI、FAQ、又は、シナリオ等はモードによって切り替わるように設定してもよい。 Furthermore, the mode setting unit 1004 may set settings other than saving the dialogue history based on the mode. That is, the test environment may be set to be different from the actual operating environment. For example, the DB, script, UI, FAQ, scenario, etc. may be set to change depending on the mode.

一方で、第2モードでは、第1モードと同一の入力、検索、及び、応答が行われるのが望ましい。テストは、できるだけ実際の運用と同一の処理が実行されるのが望ましい場合が多いためである。このように、第2モードにおいて第1モードと同一の処理を行うことで、テストでは実際の運用中に発生する不具合又はバグ等を発見しやすくできる。 On the other hand, in the second mode, it is desirable that the same input, search, and response as in the first mode be performed. This is because in many cases, it is desirable that the test process be as similar to the actual operation as possible. In this way, by performing the same processing as in the first mode in the second mode, it is possible to easily discover defects, bugs, etc. that occur during actual operation in the test.

例えば、以上のように、サーバ装置1はステップS109の処理を行う。 For example, as described above, the server device 1 performs the process of step S109.

ステップS110では、サーバ装置1の通信部は、ボットによる対話を行うため、コンテンツの情報等をユーザ端末2に送信する。 In step S110, the communication unit of the server device 1 transmits content information and the like to the user terminal 2 in order to have a dialogue with the bot.

ステップS111では、ユーザ端末2の出力部2002は、ボットによる対話を行うためのコンテンツ等を表示する。 In step S111, the output unit 2002 of the user terminal 2 displays content and the like for dialogue by the bot.

あらかじめ管理者は、チャットボットサービスを開始させる操作用のアイコンを表示するように設定できる。チャットボットサービスを開始させる操作用のアイコンを表示する設定の場合(図における「アイコンを表示する場合」である。)には、チャットボットシステム100は、ステップS112の処理に進む。一方で、アイコンを表示しない設定である場合には、チャットボットシステム100は、ステップS114の処理に進む。 The administrator can set in advance to display an icon for starting the chatbot service. In the case of setting to display an icon for operation to start the chatbot service (this is "the case of displaying an icon" in the figure), the chatbot system 100 proceeds to the process of step S112. On the other hand, if the setting is not to display the icon, the chatbot system 100 advances to step S114.

ステップS112では、ユーザURは、例えば、チャットボットサービスを開始するアイコンを押す操作を行う。したがって、ユーザ端末2の入力部2001は、アイコンを押す操作を受け付ける。 In step S112, the user UR performs, for example, an operation of pressing an icon to start a chatbot service. Therefore, the input unit 2001 of the user terminal 2 accepts the operation of pressing the icon.

ステップS113では、ユーザ端末2の出力部2002は、シナリオ等に基づいてボットによる対話を開始する。以下では、シナリオをユーザが選択して対話を開始する場合の例を説明する。 In step S113, the output unit 2002 of the user terminal 2 starts a dialogue by the bot based on a scenario or the like. An example in which a user selects a scenario and starts a dialogue will be described below.

ステップS114では、ユーザURは、シナリオを選択する操作を行う。シナリオが複数設定される場合には、ユーザ端末2の出力部2002は、複数のシナリオのうち、1つをユーザURに選択させるGUIを表示する。 In step S114, the user UR performs an operation to select a scenario. When multiple scenarios are set, the output unit 2002 of the user terminal 2 displays a GUI that allows the user UR to select one of the multiple scenarios.

ステップS115では、サーバ装置1の入力部2001は、ステップS114で行われるシナリオを選択する操作を受け付ける。そして、サーバ装置1の通信部は、選択されたシナリオを示す通知をサーバ装置1に対して行う。 In step S115, the input unit 2001 of the server device 1 receives the operation to select the scenario performed in step S114. Then, the communication unit of the server device 1 notifies the server device 1 of the selected scenario.

ステップS116では、サーバ装置1の制御部は、設定情報により特定されるシナリオに基づいて、対話で表示する内容を特定する。 In step S116, the control unit of the server device 1 specifies the content to be displayed in the dialog based on the scenario specified by the setting information.

例えば、「全てのカテゴリから選ぶ」という選択肢がステップS114で選ばれると、サーバ装置1の制御部はステップS109で切り替えられた設定情報における「カテゴリID」等で設定されるカテゴリの「カテゴリ名」等を応答するように内容を特定する。 For example, when the option "Select from all categories" is selected in step S114, the control unit of the server device 1 selects the "category name" of the category set by the "category ID" etc. in the setting information switched in step S109. Specify the content so that it responds with, etc.

また、「よくある質問から選ぶ」という選択肢がステップS114で選ばれると、サーバ装置1の制御部は、まず、所定期間内に発生した問い合わせ履歴情報に基づいて、例えば、上位5位程度の質問等を抽出する。 When the option "Choose from frequently asked questions" is selected in step S114, the control unit of the server device 1 first extracts, for example, the top five questions based on inquiry history information generated within a specified period of time.

例えば、「内線電話を調べる」というシナリオ等がステップS114では選択されると、サーバ装置1の制御部は、例えば、「名前を入力してください」等のようなあらかじめ設定されるメッセージを応答するように、内容を特定する。 For example, when a scenario such as "Check the telephone extension" is selected in step S114, the control unit of the server device 1 responds with a preset message such as "Please enter your name". Identify the content.

ステップS117では、サーバ装置1の通信部は、表示させるコンテンツ等をユーザ端末2に送信する。 In step S117, the communication unit of the server device 1 transmits the content to be displayed to the user terminal 2.

ステップS118では、ユーザ端末2の出力部2002は、ステップS117で送信されるコンテンツ等を表示する。以下では、ステップS109の処理等で定まるシナリオ等によって、例えば、図5に示すように、質問、検索、及び、応答が行われるとする。 In step S118, the output unit 2002 of the user terminal 2 displays the content etc. transmitted in step S117. In the following, it is assumed that a question, a search, and a response are performed, for example, as shown in FIG. 5, according to a scenario etc. determined by the process of step S109.

ステップS119では、ユーザURは、ユーザ端末2に対して質問を入力する操作を行う。したがって、ステップS119では、ユーザ端末2の入力部2001は、質問の入力を受け付ける。そして、ユーザ端末2の入力部2001は受け付けた質問等を示す入力情報を生成する。 In step S119, the user UR performs an operation to input a question into the user terminal 2. Therefore, in step S119, the input unit 2001 of the user terminal 2 accepts input of a question. Then, the input unit 2001 of the user terminal 2 generates input information indicating the received question and the like.

ステップS120では、サーバ装置1の入力情報取得部1001は、入力情報をユーザ端末2から取得する。 In step S120, the input information acquisition unit 1001 of the server device 1 acquires input information from the user terminal 2.

ステップS121では、検索部1002は、入力情報に対する応答情報を検索する。 In step S121, the search unit 1002 searches for response information to the input information.

ステップS122では、応答部1003は、応答情報をユーザ端末2に応答する。ここで、応答部1003は、応答情報に対して所定の加工を施した応答メッセージをユーザ端末2に応答してもよい。すなわち、応答部1003は応答情報に基づく応答メッセージをユーザ端末2に応答してもよい。 In step S122, the response unit 1003 responds to the user terminal 2 with response information. Here, the response unit 1003 may respond to the user terminal 2 with a response message obtained by performing predetermined processing on the response information. That is, the response unit 1003 may respond to the user terminal 2 with a response message based on the response information.

ステップS123では、ユーザ端末2の出力部2002は、応答情報に基づいて、質問に対する回答等を表示する。 In step S123, the output unit 2002 of the user terminal 2 displays the answer to the question, etc. based on the response information.

上記ステップS119乃至ステップS123の処理は、繰り返し行われてもよい。なお、回答が応答された後、すなわち、ステップS123の処理が行われた後、チャットボットシステム100はステップS124乃至ステップS128の処理を行ってもよい。 The processing from step S119 to step S123 may be repeated. Note that after the answer is received, that is, after the process of step S123 is performed, the chatbot system 100 may perform the processes of steps S124 to S128.

ステップS124では、ユーザ端末2の出力部2002は、ボットに対する満足度を調査するための入力項目を表示する。すなわち、ユーザ端末2の出力部2002は、ステップS123等で得られた回答についてユーザURの満足度を調査するため、アンケート等によりユーザURに満足度を入力させるGUIを表示する。 In step S124, the output unit 2002 of the user terminal 2 displays input items for investigating the degree of satisfaction with the bot. That is, the output unit 2002 of the user terminal 2 displays a GUI that allows the user UR to input the satisfaction level through a questionnaire or the like in order to investigate the satisfaction level of the user UR regarding the answers obtained in step S123 and the like.

ステップS125では、ユーザURは、満足度を入力する操作を行う。 In step S125, the user UR performs an operation to input the satisfaction level.

ステップS126では、ユーザ端末2の通信部は、ステップS125でユーザURにより入力された内容、すなわち、アンケートの結果等をサーバ装置1に通知する。 In step S126, the communication unit of the user terminal 2 notifies the server device 1 of the content input by the user UR in step S125, that is, the results of the questionnaire.

ステップS127では、保存部1005は、ステップS126で通知された内容又は対話の内容等の履歴を記憶する。 In step S127, the storage unit 1005 stores the content notified in step S126 or the history of the content of the dialogue, etc.

ステップS128では、ユーザ端末2の制御部は、例えば、ステップS112又はステップS114の処理に戻る。すなわち、ユーザ端末2の制御部は、チャットボットサービスの初期画面に戻る。なお、ステップS128では、チャットボットシステム100は、ボットを終了させてもよい。 In step S128, the control unit of the user terminal 2 returns to the process of step S112 or step S114, for example. That is, the control unit of the user terminal 2 returns to the initial screen of the chatbot service. Note that in step S128, the chatbot system 100 may terminate the bot.

以上のように、履歴等が保存された後、チャットボットシステム100はステップS129以降の処理を行う。例えば、管理者ADが統計結果を表示させる操作を行うと、チャットボットシステム100はステップS129以降の処理を行う。 As described above, after the history and the like are saved, the chatbot system 100 performs the processes from step S129 onwards. For example, when the administrator AD performs an operation to display statistical results, the chatbot system 100 performs the processing from step S129 onwards.

ステップS129では、管理者端末3の通信部は、統計処理の実行開始をサーバ装置1に通知する。 In step S129, the communication unit of the administrator terminal 3 notifies the server device 1 of the start of execution of statistical processing.

ステップS130では、統計処理部1007は、ステップS127等で記憶された履歴等に基づいて統計処理を行う。 In step S130, the statistical processing unit 1007 performs statistical processing based on the history stored in step S127 and the like.

ステップS131では、統計処理部1007は、統計結果を管理者端末3に送信する。その後、管理者端末3の出力部は、統計結果を出力する。例えば、管理者端末3の出力部は、統計結果を以下のように出力する。 In step S131, the statistical processing unit 1007 transmits the statistical results to the administrator terminal 3. Then, the output unit of the administrator terminal 3 outputs the statistical results. For example, the output unit of the administrator terminal 3 outputs the statistical results as follows:

図14は、統計結果の表示例を示す図である。例えば、管理者端末3は、図示するようなグラフ等によって、統計結果を表示する。 FIG. 14 is a diagram showing an example of displaying statistical results. For example, the administrator terminal 3 displays the statistical results using a graph as shown in the figure.

「チャットボットの回答状況」は、ステップS125でユーザURが入力した満足度を統計処理した結果の例である。具体的に、管理者端末3は、管理者AD等に対して、所定の期間におけるボットによる対話の満足度をグラフ等によって表示する。例えば、ユーザURは「満足した」、「不満足があった」、「回答できなかった」又は「評価無し」等のような満足度を入力する。このような満足度を統計処理した結果がフィードバックされると、管理者AD等は客観的にボットに対する満足度を知ることができる。 "Chatbot response status" is an example of the result of statistical processing of the satisfaction level input by the user UR in step S125. Specifically, the administrator terminal 3 displays to the administrator AD, etc., the satisfaction level with the conversation by the bot over a specified period of time using a graph or the like. For example, the user UR inputs satisfaction levels such as "Satisfied," "Dissatisfied," "Could not respond," or "No rating." When the results of statistical processing of such satisfaction levels are fed back, the administrator AD, etc. can know the level of satisfaction with the bot objectively.

統計処理部1007は、どういったカテゴリの質問が多くされるか、又は、どういった種類の質問が多いか等のように、履歴が示す質問の内容を分析した結果等を統計処理によってまとめてもよい。統計処理部1007は「カテゴリ別の質問数の推移(件数)」及び「問い合わせの多い質問」等から、どういったカテゴリの質問が多くされるか、又は、どういった種類の質問が多いか等を、統計処理してもよい。また、「カテゴリ別の回答状況(件数)」のように、統計処理部1007はカテゴリごとに統計処理を行ってもよい。 The statistical processing unit 1007 uses statistical processing to summarize the results of analyzing the content of questions indicated by the history, such as what categories of questions are asked frequently or what types of questions are asked frequently. It's okay. The statistical processing unit 1007 determines which categories of questions are frequently asked, or what types of questions are frequently asked, based on "trends in the number of questions by category (number of questions)" and "frequently asked questions". etc., may be statistically processed. Furthermore, the statistical processing unit 1007 may perform statistical processing for each category, such as "response status (number of responses) by category".

以上のように、本実施形態に係るチャットボットシステム100は履歴をモードに基づいて分けて保存する。例えば、上記のように統計処理をするのに、履歴からテストの対話が除外されているため、本実施形態に係るチャットボットシステム100は実際の運用でユーザURが入力した満足度等を統計処理できる。すなわち、本実施形態に係るチャットボットシステム100はテスト中に入力された満足度等を含まない統計結果を生成できる。 As described above, the chatbot system 100 according to this embodiment stores history separately based on the mode. For example, since test dialogues are excluded from the history when performing statistical processing as described above, the chatbot system 100 according to this embodiment can perform statistical processing on the satisfaction level, etc., input by the user UR during actual operation. In other words, the chatbot system 100 according to this embodiment can generate statistical results that do not include the satisfaction level, etc., input during the test.

テストは、管理者又はテストのための作業者等が対話等を行う。また、テストでは、満足度等も管理者又はテストのための作業者等が入力する場合がある。このような履歴又は入力は、テスト用であるため、除外されるのが望ましい。つまり、統計処理は、ユーザUR以外の満足度等が混ざると、統計結果の精度が悪化する場合がある。 The test involves dialogue between the administrator or the test worker. Furthermore, in the test, the satisfaction level and the like may be input by the administrator, the test worker, or the like. Since such history or input is for testing purposes, it is desirable to exclude it. That is, in statistical processing, if satisfaction levels other than the user UR are mixed, the accuracy of the statistical results may deteriorate.

また、統計処理の結果、満足度が低い場合には、FAQ等がユーザURの質問等に対して適切でない場合がある。そのため、満足度が低い場合には管理者ADに通知するようにしてもよい。満足度等の精度が高いと、管理者ADはユーザURの満足度が高くなるようにFAQ等を適切に改善できる。したがって、本実施形態に係るチャットボットシステム100は、ユーザURのボットに対する満足度を高くすることができる。 Furthermore, if the statistical processing results in a low satisfaction level, the FAQ or the like may not be appropriate for the user's UR question. Therefore, if the satisfaction level is low, the administrator AD may be notified. If the accuracy of the satisfaction level etc. is high, the administrator AD can appropriately improve the FAQ etc. so that the satisfaction level of the user UR will be high. Therefore, the chatbot system 100 according to the present embodiment can increase user UR's satisfaction with the bot.

一方で、チャットボットシステム100はテスト用に別途ボットを設置する、又は、統計結果からユーザURの入力を取り除く等の作業を行うようにすると、作業が増え、テストを行う負荷が大きくなる。そこで、上記のような構成により、本実施形態に係るチャットボットシステム100はモードに基づいて、履歴等を分けて保存する。そのため、本実施形態に係るチャットボットシステム100は、テストの後、実際に運用された場合に、テストで入力された履歴等を容易に取り除くことができる。そして、本実施形態に係るチャットボットシステム100はテストで入力された履歴等を除外する作業がなくとも、統計結果を精度よく生成できる。そのため、本実施形態に係るチャットボットシステム100はテスト等を簡易に実行しやすくなり、ボットのテストを簡易化できる。 On the other hand, if the chatbot system 100 installs a separate bot for testing or performs tasks such as removing user UR input from statistical results, the amount of work increases and the load of testing increases. Therefore, with the above configuration, the chatbot system 100 according to the present embodiment stores history and the like separately based on the mode. Therefore, when the chatbot system 100 according to the present embodiment is actually operated after a test, the history input during the test can be easily removed. The chatbot system 100 according to the present embodiment can generate statistical results with high accuracy even without the need to exclude history input in a test. Therefore, the chatbot system 100 according to the present embodiment can easily perform tests, etc., and can simplify testing of the bot.

また、ボットは動作確認又はデバッグ等を目的として、テストが行われる等の実際の運用とは異なる形態で運用される場合がある。このように、複数の形態で運用されたボットの履歴を区別せずに保存してしまうと、例えば、履歴に対する統計処理の精度は低下する場合がある。そこで、本実施形態に係るチャットボットシステム100はボットの運用形態をモード等によって区別可能にして、ボットの履歴を保存する。すなわち、上記のような構成の情報処理システムは、ボットの運用形態を区別して、ボットの履歴を保存できる。 In addition, bots may be operated in a manner different from their actual operation, such as by being tested, for the purpose of confirming operation or debugging. In this way, if the histories of bots operated in multiple forms are stored without distinction, the accuracy of statistical processing of the histories may decrease, for example. Therefore, the chatbot system 100 according to the present embodiment makes it possible to distinguish the operation mode of the bot by mode, etc., and saves the history of the bot. That is, the information processing system configured as described above can distinguish the operation mode of the bot and store the history of the bot.

<その他の実施形態>
情報処理システムで行う、上記に示す情報処理方法における各手順は、複数の情報処理装置等で、並列、分散又は冗長して行われてもよい。また、情報処理システムは、いわゆるクラウドコンピューティング等を利用する構成でもよい。
<Other embodiments>
Each procedure in the information processing method described above performed by the information processing system may be performed in parallel, distributed, or redundantly by a plurality of information processing devices. Further, the information processing system may have a configuration that utilizes so-called cloud computing.

また、各装置は、1つの装置でなくともよい。すなわち、各装置は、複数の装置の組み合わせであってもよい。なお、情報処理システムには、上記に説明する装置以外の装置が更に含まれる構成であってもよい。 Moreover, each device does not need to be one device. That is, each device may be a combination of multiple devices. Note that the information processing system may be configured to further include devices other than the devices described above.

また、情報処理システム及び情報処理装置は、AI(Artificial Intelligence)等を利用してもよい。例えば、情報処理システム及び情報処理装置は、文字の入力等において、機械学習等を行い、認識精度を向上させる構成等でもよい。 Further, the information processing system and the information processing device may utilize AI (Artificial Intelligence) or the like. For example, the information processing system and the information processing device may be configured to perform machine learning or the like when inputting characters to improve recognition accuracy.

なお、本発明に係る各処理の全部又は一部は、コンピュータ言語で記述され、コンピュータに情報処理方法を実行させるためのプログラムによって実現されてもよい。すなわち、プログラムは、情報処理装置又は情報処理システム等のコンピュータに情報処理方法を実行させるためのコンピュータプログラムである。 Note that all or part of each process according to the present invention may be written in a computer language and realized by a program for causing a computer to execute an information processing method. That is, the program is a computer program for causing a computer such as an information processing device or an information processing system to execute an information processing method.

したがって、プログラムに基づいて情報処理方法が実行されると、コンピュータが有する演算装置及び制御装置は、各手順を実行するため、プログラムに基づいて演算及び制御を行う。また、コンピュータが有する記憶装置は、各手順を実行するため、プログラムに基づいて、処理に用いられるデータを記憶する。 Therefore, when the information processing method is executed based on the program, the arithmetic device and control device included in the computer perform calculations and control based on the program in order to execute each procedure. Furthermore, a storage device included in the computer stores data used in processing based on a program in order to execute each procedure.

また、プログラムは、コンピュータが読み取り可能な記憶媒体に記録されて頒布することができる。なお、記憶媒体は、磁気テープ、フラッシュメモリ、光ディスク、光磁気ディスク又は磁気ディスク等のメディアである。さらに、プログラムは、電気通信回線を通じて頒布することができる。 Further, the program can be recorded on a computer-readable storage medium and distributed. Note that the storage medium is a medium such as a magnetic tape, a flash memory, an optical disk, a magneto-optical disk, or a magnetic disk. Additionally, the program may be distributed over telecommunications lines.

以上、実施形態における一例について説明したが、本発明は、上記実施形態に限定されない。すなわち、本発明の範囲内で種々の変形及び改良が可能である。 Although an example of the embodiment has been described above, the present invention is not limited to the above embodiment. That is, various modifications and improvements are possible within the scope of the present invention.

1 サーバ装置
2 ユーザ端末
3 管理者端末
4 通信網
100 チャットボットシステム
500 ホームページ
1001 入力情報取得部
1002 検索部
1003 応答部
1004 モード設定部
1005 保存部
1006 生成部
1007 統計処理部
UR ユーザ
AD 管理者
1 Server device 2 User terminal 3 Administrator terminal 4 Communication network 100 Chatbot system 500 Home page 1001 Input information acquisition section 1002 Search section 1003 Response section 1004 Mode setting section 1005 Storage section 1006 Generation section 1007 Statistical processing section UR User AD Administrator

特開2018-195298号公報Japanese Patent Application Publication No. 2018-195298

Claims (11)

ユーザから入力を受け付けるユーザ端末に接続する情報処理装置であって、
前記ユーザ端末に入力される入力情報を取得する入力情報取得部と、
前記入力情報に対する応答情報を検索する検索部と、
前記入力情報に対して、前記応答情報に基づく応答メッセージを前記ユーザ端末に応答する応答部と、
前記入力情報取得部、前記検索部、及び、前記応答部による対話を実行する複数のモードを設定するモード設定部と、
前記対話が実行されるときのモードごとに前記対話の履歴を保存する保存部とを備える
情報処理装置。
An information processing device connected to a user terminal that receives input from a user,
an input information acquisition unit that acquires input information input to the user terminal;
a search unit that searches for response information to the input information;
a response unit that responds to the input information with a response message based on the response information to the user terminal;
a mode setting unit that sets a plurality of modes in which interactions are executed by the input information acquisition unit, the search unit, and the response unit;
An information processing device comprising: a storage unit that stores a history of the interaction for each mode in which the interaction is executed.
前記対話を実行するための埋め込みコードを前記モードごとに生成する生成部とを備え、
前記モード設定部は、
前記埋め込みコードに基づいて前記対話を実行する前記モードを設定する
請求項1に記載の情報処理装置。
a generation unit that generates an embedded code for executing the interaction for each of the modes;
The mode setting section includes:
The information processing apparatus according to claim 1, wherein the mode for executing the interaction is set based on the embedded code.
前記埋め込みコードは、
前記モードごとに異なるURLである
請求項2に記載の情報処理装置。
The embed code is
The information processing apparatus according to claim 2, wherein the URL is different for each of the modes.
前記複数のモードには、
前記ユーザが用いる第1モードと、前記対話をテストする第2モードとが含まれ、
前記保存部は、
前記第1モードで生じる前記履歴を保存する
請求項1乃至3のいずれか1項に記載の情報処理装置。
The plurality of modes include:
a first mode for use by the user and a second mode for testing the interaction;
The storage section is
The information processing apparatus according to any one of claims 1 to 3, wherein the history generated in the first mode is saved.
前記対話が実行されるときのモードに基づき、前記対話の履歴に対する統計処理を実行する統計処理部を更に有する
請求項4に記載の情報処理装置。
The information processing apparatus according to claim 4, further comprising a statistical processing unit that performs statistical processing on the history of the interaction based on a mode in which the interaction is executed.
前記統計処理部は、
前記第1モードにおける前記対話の履歴のみに対する統計処理を実行した結果を示す
請求項5に記載の情報処理装置。
The statistical processing unit includes:
6. The information processing apparatus according to claim 5, which shows the result of performing statistical processing only on the history of the interaction in the first mode.
前記結果には、前記ユーザの満足度が含まれる
請求項6に記載の情報処理装置。
The information processing device according to claim 6, wherein the result includes the user's satisfaction level.
前記第1モード及び前記第2モードのいずれでも、
前記入力情報取得部、前記検索部、及び、前記応答部は、同一の処理を行う
請求項4乃至7のいずれか1項に記載の情報処理装置。
In either the first mode or the second mode,
The information processing apparatus according to any one of claims 4 to 7, wherein the input information acquisition section, the search section, and the response section perform the same processing.
ユーザから入力を受け付けるユーザ端末と、前記ユーザ端末と接続する1以上の情報処理装置とを有する情報処理システムであって、
前記ユーザ端末に入力される入力情報を取得する入力情報取得部と、
前記入力情報に対する応答情報を検索する検索部と、
前記入力情報に対して、前記応答情報に基づく応答メッセージを前記ユーザ端末に応答する応答部と、
前記入力情報取得部、前記検索部、及び、前記応答部による対話を実行する複数のモードを設定するモード設定部と、
前記対話が実行されるときのモードごとに前記対話の履歴を保存する保存部とを備える
情報処理システム。
An information processing system comprising a user terminal that receives input from a user, and one or more information processing devices connected to the user terminal,
an input information acquisition unit that acquires input information input to the user terminal;
a search unit that searches for response information to the input information;
a response unit that responds to the input information with a response message based on the response information to the user terminal;
a mode setting unit that sets a plurality of modes in which interactions are executed by the input information acquisition unit, the search unit, and the response unit;
An information processing system comprising: a storage unit that stores a history of the interaction for each mode in which the interaction is executed.
ユーザから入力を受け付けるユーザ端末に接続する情報処理装置が行う情報処理方法であって、
情報処理装置が、前記ユーザ端末に入力される入力情報を取得する入力情報取得手順と、
情報処理装置が、前記入力情報に対する応答情報を検索する検索手順と、
情報処理装置が、前記入力情報に対して、前記応答情報に基づく応答メッセージを前記ユーザ端末に応答する応答手順と、
情報処理装置が、前記入力情報取得手順、前記検索手順、及び、前記応答手順による対話を実行する複数のモードを設定するモード設定手順と、
情報処理装置が、前記対話が実行されるときのモードごとに前記対話の履歴を保存する保存手順とを含む
情報処理方法。
An information processing method performed by an information processing device connected to a user terminal that receives input from a user, the method comprising:
an input information acquisition procedure in which the information processing device acquires input information input to the user terminal;
a search procedure in which the information processing device searches for response information to the input information;
a response procedure in which the information processing device responds to the input information with a response message based on the response information to the user terminal;
a mode setting procedure in which the information processing device sets a plurality of modes in which the information processing device executes interactions according to the input information acquisition procedure, the search procedure, and the response procedure;
An information processing method comprising: a storage procedure in which an information processing apparatus stores a history of the interaction for each mode in which the interaction is executed.
請求項10に記載の情報処理方法をコンピュータに実行させるためのプログラム。 A program for causing a computer to execute the information processing method according to claim 10.
JP2020163650A 2019-11-29 2020-09-29 Information processing device, information processing system, information processing method and program Active JP7456344B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/097,357 US11762937B2 (en) 2019-11-29 2020-11-13 Information processing apparatus, information processing system, and method of processing information

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019217394 2019-11-29
JP2019217394 2019-11-29

Publications (2)

Publication Number Publication Date
JP2021093133A JP2021093133A (en) 2021-06-17
JP7456344B2 true JP7456344B2 (en) 2024-03-27

Family

ID=76312550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020163650A Active JP7456344B2 (en) 2019-11-29 2020-09-29 Information processing device, information processing system, information processing method and program

Country Status (1)

Country Link
JP (1) JP7456344B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160308799A1 (en) 2015-04-20 2016-10-20 Oracle International Corporation Virtual assistance for chat agents
JP2019185614A (en) 2018-04-16 2019-10-24 Jeインターナショナル株式会社 Chatbot search system and program
WO2019220520A1 (en) 2018-05-14 2019-11-21 富士通株式会社 Analysis program, analysis method, and analysis device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160308799A1 (en) 2015-04-20 2016-10-20 Oracle International Corporation Virtual assistance for chat agents
JP2019185614A (en) 2018-04-16 2019-10-24 Jeインターナショナル株式会社 Chatbot search system and program
WO2019220520A1 (en) 2018-05-14 2019-11-21 富士通株式会社 Analysis program, analysis method, and analysis device

Also Published As

Publication number Publication date
JP2021093133A (en) 2021-06-17

Similar Documents

Publication Publication Date Title
US10963525B2 (en) Artificial intelligence system for providing relevant content queries across unconnected websites via a conversational environment
US20220150251A1 (en) Invoking an Automatic Process in a Web-Based Target System Using a Chat-Bot
US10872104B2 (en) Method and apparatus for natural language query in a workspace analytics system
US9524291B2 (en) Visual display of semantic information
US11416211B2 (en) Database systems and methods for conversation-driven dynamic updates
US11163778B2 (en) Integrating virtual and human agents in a multi-channel support system for complex software applications
US10839168B2 (en) Dynamic automation of pipeline creation
US11762937B2 (en) Information processing apparatus, information processing system, and method of processing information
US20240080283A1 (en) Information processing system and information processing method
US20200258045A1 (en) System and method for assessing skill and trait levels
US11417337B1 (en) Initiating conversation monitoring system action based on conversational content
US11735061B2 (en) Dynamic response entry
JP7456344B2 (en) Information processing device, information processing system, information processing method and program
Tavichaiyuth et al. Developing chatbots in higher education: A case study of academic program chatbot in Thailand
US11500956B2 (en) Information processing apparatus, information processing system, information processing method, and program
US20220189460A1 (en) Task-oriented dialog system and method through feedback
JP7413736B2 (en) Information processing device, information processing system, information processing method and program
US10809887B2 (en) Evaluating user interface efficiency
WO2022062612A1 (en) Determining diagnostic information utilizing program code
WO2023248289A1 (en) Dialogue device, dialogue method, and dialogue program
JP2021093139A (en) Information processing apparatus, information processing system, information processing method, and program
Lommatzsch et al. Combining Information Retrieval and Large Language Models for a Chatbot that Generates Reliable, Natural-style Answers.
CN117494073A (en) Training method, device, equipment and storage medium of dialogue recommendation model
WO2023027813A1 (en) Performing quality-based action(s) regarding engineer-generated documentation associated with code and/or application programming interface
CN117806967A (en) Method for processing code and training method of code processing model

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230224

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240207

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240213

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240226

R151 Written notification of patent or utility model registration

Ref document number: 7456344

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151