Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7794405B2 - Scenario generation device, scenario generation method, and scenario generation program - Google Patents
[go: Go Back, main page]

JP7794405B2 - Scenario generation device, scenario generation method, and scenario generation program - Google Patents

Scenario generation device, scenario generation method, and scenario generation program

Info

Publication number
JP7794405B2
JP7794405B2 JP2024014821A JP2024014821A JP7794405B2 JP 7794405 B2 JP7794405 B2 JP 7794405B2 JP 2024014821 A JP2024014821 A JP 2024014821A JP 2024014821 A JP2024014821 A JP 2024014821A JP 7794405 B2 JP7794405 B2 JP 7794405B2
Authority
JP
Japan
Prior art keywords
scenario
user
service
data
product
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
JP2024014821A
Other languages
Japanese (ja)
Other versions
JP2025119798A (en
Inventor
正大 清水
Original Assignee
株式会社Zeals
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 株式会社Zeals filed Critical 株式会社Zeals
Priority to JP2024014821A priority Critical patent/JP7794405B2/en
Publication of JP2025119798A publication Critical patent/JP2025119798A/en
Application granted granted Critical
Publication of JP7794405B2 publication Critical patent/JP7794405B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Description

本発明は、シナリオ生成装置、シナリオ生成方法、およびシナリオ生成プログラムに関する。 The present invention relates to a scenario generation device, a scenario generation method, and a scenario generation program.

従来、チャット上でのユーザとの会話を自動的に行うことができるコミュニケーションロボットであるチャットボットが知られている。近年では、このようなチャットボットの技術を活用し、様々な商品やサービスの購買等の意思決定に有益な情報の提供、購入等に必要な手続きを自動的な会話により実現する取り組みが行われている。 Chatbots, communication robots that can automatically hold conversations with users over chat, have been known for some time. In recent years, efforts have been made to utilize chatbot technology to provide information useful for decision-making regarding the purchase of various products and services, and to carry out the procedures required for purchases through automated conversations.

特開2022-77779号公報Japanese Patent Application Laid-Open No. 2022-77779

従来技術において、ユーザとの会話をチャットボットにより実現するためには、設計者(コミュケーションデザイナー)が、手動で、ユーザとの一連の会話を規定したシナリオを事前に生成しておく必要があった(特許文献1参照)。このようなシナリオでは、ユーザからの会話の内容に応じてチャットボットが次に返す会話が可変となるように、設計者は、想定されるユーザの会話の内容に応じた条件分岐の構造(ツリー型の構造)を規定し、条件ごとに一連の会話の流れを別々に規定する必要があった。チャットボットの活用目的によっては、このように作成されるシナリオは極めて複雑なものとなるため、シナリオの準備の作業負担が増大していた。 In conventional technology, in order to use a chatbot to have a conversation with a user, a designer (communication designer) had to manually create in advance a scenario that specified a series of conversations with the user (see Patent Document 1). In such a scenario, the designer had to specify a conditional branching structure (tree-type structure) based on the expected content of the user's conversation, and specify a separate series of conversation flows for each condition, so that the next conversation the chatbot would respond to would be variable depending on the content of the user's conversation. Depending on the purpose of using the chatbot, scenarios created in this way could become extremely complex, which increased the workload of preparing the scenarios.

一方で、大規模言語モデル(Large Language Models;LLM)等の機械学習の技術を活用することで、ユーザからの問合せ等に対する回答を自動化する手法が知られている。しかしながら、この従来の手法では、ユーザからの単発の問合せに対する回答ができるのみであり、ユーザとの一連の会話を規定したシナリオを生成することはできなかった。 Meanwhile, there are known methods for automating responses to user inquiries by utilizing machine learning techniques such as Large Language Models (LLM). However, these conventional methods are only capable of responding to one-off inquiries from users, and are unable to generate scenarios that define a series of conversations with the user.

本発明は、このような事情を考慮してなされたものであり、チャットボットにより実行されるシナリオの準備に要する手間を軽減することができるシナリオ生成装置、シナリオ生成方法、およびプログラムを提供することを目的の一つとする。 The present invention was made in consideration of these circumstances, and one of its objectives is to provide a scenario generation device, a scenario generation method, and a program that can reduce the effort required to prepare scenarios to be executed by chatbots.

本発明の一態様は、チャットボットにより実行される、ユーザに商品またはサービスに関する情報を提供するための一連の会話内容を規定したシナリオを生成するシナリオ生成装置であって、過去に生成されたシナリオを学習することにより準備された第1学習モデルに対して、シナリオの設計者により指定された商品またはサービスを特定する特定情報を入力することで、前記特定情報に対応するシナリオを生成するシナリオ生成部を備える、シナリオ生成装置である。 One aspect of the present invention is a scenario generation device that generates a scenario that specifies a series of conversational content to be executed by a chatbot to provide a user with information about a product or service. The scenario generation device includes a scenario generation unit that inputs specific information that identifies a product or service specified by a scenario designer into a first learning model prepared by learning previously generated scenarios, and generates a scenario corresponding to the specific information.

本発明の一態様によれば、チャットボットにより実行されるシナリオの準備に要する手間を軽減することができる。さらに、過去に生成されたシナリオを学習することにより生成された学習モデルを用いてシナリオを生成する構成を採用することで、生成されるシナリオの品質を向上させることができる。 One aspect of the present invention can reduce the effort required to prepare scenarios to be executed by a chatbot. Furthermore, by adopting a configuration in which scenarios are generated using a learning model generated by studying previously generated scenarios, the quality of the generated scenarios can be improved.

第1の実施形態に係るチャットボットサービスが実現されるための構成の一例を示す図である。FIG. 1 is a diagram illustrating an example of a configuration for realizing a chatbot service according to a first embodiment. 第1の実施形態に係るチャットボットサーバ1の構成の一例を示す機能ブロック図である。FIG. 1 is a functional block diagram showing an example of the configuration of a chatbot server 1 according to a first embodiment. 第1の実施形態に係る第1学習モデル(シナリオ生成時)の入出力データを説明する図である。A figure explaining input and output data of the first learning model (at the time of scenario generation) according to the first embodiment. 第1の実施形態に係る第2学習モデル(オートチャット時)の入出力データを説明する図である。A figure explaining input and output data of the second learning model (during auto-chat) related to the first embodiment. 第1の実施形態に係る第3学習モデル(個別オファー生成)の入出力データを説明する図である。A figure explaining input and output data of the third learning model (individual offer generation) related to the first embodiment. 第1の実施形態に係るユーザ端末装置100の構成の一例を示す機能ブロック図である。FIG. 2 is a functional block diagram showing an example of the configuration of a user terminal device 100 according to the first embodiment. 第1の実施形態に係るユーザ端末装置100に表示される会話画面P1の一例を示す図である。FIG. 2 is a diagram showing an example of a conversation screen P1 displayed on the user terminal device 100 according to the first embodiment. 第1の実施形態に係るチャットボットサーバ1によるシナリオ生成処理の一連の流れの一例を示すフローチャートである。10 is a flowchart showing an example of a sequence of steps in a scenario generation process performed by the chatbot server 1 according to the first embodiment. 第1の実施形態に係る運用端末装置200に表示されるシナリオ条件設定画面P2の一例を示す図である。FIG. 10 is a diagram showing an example of a scenario condition setting screen P2 displayed on the operation terminal device 200 according to the first embodiment. 第1の実施形態に係る運用端末装置200に表示されるシナリオ確認画面(1)P3-1の一例を示す図である。A figure showing an example of a scenario confirmation screen (1) P3-1 displayed on the operation terminal device 200 according to the first embodiment. 第1の実施形態に係る運用端末装置200に表示されるシナリオ確認画面(2)P3-2の一例を示す図である。A figure showing an example of a scenario confirmation screen (2) P3-2 displayed on the operation terminal device 200 according to the first embodiment. 第1の実施形態に係る運用端末装置200に表示されるシナリオ確認画面(3)P3-3の一例を示す図である。A figure showing an example of a scenario confirmation screen (3) P3-3 displayed on the operation terminal device 200 according to the first embodiment. 第1の実施形態に係る運用端末装置200に表示されるシナリオ確認画面(4)P3-4の一例を示す図である。A figure showing an example of a scenario confirmation screen (4) P3-4 displayed on the operation terminal device 200 according to the first embodiment. 第1の実施形態に係るシナリオ表示処理の一例を示すシーケンス図である。FIG. 10 is a sequence diagram illustrating an example of a scenario display process according to the first embodiment. 第1の実施形態に係る回答データRDの一例を示す図である。FIG. 10 is a diagram showing an example of response data RD according to the first embodiment. 第2の実施形態に係るオブジェクト型シナリオデータSDの一例を示す図である。A figure showing an example of object type scenario data SD related to the second embodiment. 第2の実施形態に係るオブジェクト構造の一例を示す図である。FIG. 10 is a diagram illustrating an example of an object structure according to the second embodiment.

以下、図面を参照し、本発明のシナリオ生成装置、シナリオ生成方法、およびシナリオ生成プログラムの実施形態について説明する。実施形態のシナリオ生成装置は、大規模言語モデル(LLM)を用いたLangChain等の機械学習に基づく手法を用いることで、チャットボットにより実行される、ユーザに商品またはサービスに関する情報を提供するための一連の会話内容を規定したシナリオの準備に要する手間を軽減することができる。 Embodiments of the scenario generation device, scenario generation method, and scenario generation program of the present invention will be described below with reference to the drawings. The scenario generation device of the embodiment uses a machine learning-based technique such as LangChain that uses a large-scale language model (LLM), thereby reducing the effort required to prepare a scenario that defines a series of conversational content to be executed by a chatbot to provide users with information about products or services.

[第1の実施形態]
<チャットボットサービス>
図1は、第1の実施形態に係るチャットボットサービスが実現されるための構成の一例を示す図である。チャットボットサービスは、商品またはサービス(以下「商品等」という)を提供する事業者等のユーザとの間で、チャットボットにより自動で会話を行い、ユーザの趣味嗜好や個人的な背景をヒアリングし、ユーザに応じた商品等の情報を提案する。事業者には、例えば、化粧品販売業者、食品販売業者、病院、人材サービス業者、金融業者、保険業者、不動産業者、通信業者等が含まれる。チャットボットサービスは、チャットボットサーバ1を中心として実現される。チャットボットサーバ1は、例えば、一以上のサービスサーバ3、一以上のメッセージサーバ5、一以上のユーザ端末装置100、および一以上の運用端末装置200のそれぞれと通信ネットワークNWを介して通信する。通信ネットワークNWは、例えば、インターネット、LAN(Local Area Network)、無線基地局、プロバイダ装置等を含む。
[First embodiment]
<Chatbot service>
FIG. 1 illustrates an example of a configuration for implementing a chatbot service according to the first embodiment. The chatbot service uses a chatbot to automatically converse with users, such as businesses providing products or services (hereinafter referred to as "products, etc."), to learn about the user's hobbies, preferences, and personal background, and to suggest information on products, etc., tailored to the user. Examples of businesses include cosmetics retailers, food retailers, hospitals, human resources service providers, financial institutions, insurance companies, real estate agents, and telecommunications companies. The chatbot service is implemented primarily around a chatbot server 1. The chatbot server 1 communicates with, for example, one or more service servers 3, one or more message servers 5, one or more user terminal devices 100, and one or more operation terminal devices 200 via a communication network NW. The communication network NW includes, for example, the Internet, a local area network (LAN), a wireless base station, a provider device, and the like.

<装置構成>
<チャットボットサーバ1>
チャットボットサーバ1は、運用端末装置200を操作する設計者Dに対して、シナリオを生成するための機能を提供する。また、チャットボットサーバ1は、ユーザ端末装置100を操作するユーザUに対して、チャットボットサービスを提供する。図2は、第1の実施形態に係るチャットボットサーバ1の構成の一例を示す機能ブロック図である。チャットボットサーバ1は、例えば、通信部11と、制御部13と、記憶部15とを備える。チャットボットサーバ1は、「シナリオ生成装置」の一例である。通信部11は、通信ネットワークNWに接続するための通信インターフェースである。通信部11は、例えばネットワークインターフェースカードである。
<Device configuration>
<Chatbot Server 1>
The chatbot server 1 provides a function for generating a scenario to a designer D who operates an operation terminal device 200. The chatbot server 1 also provides a chatbot service to a user U who operates a user terminal device 100. Figure 2 is a functional block diagram showing an example of the configuration of the chatbot server 1 according to the first embodiment. The chatbot server 1 includes, for example, a communication unit 11, a control unit 13, and a memory unit 15. The chatbot server 1 is an example of a "scenario generation device." The communication unit 11 is a communication interface for connecting to a communication network NW. The communication unit 11 is, for example, a network interface card.

制御部13は、例えば、取得部131と、会話生成部132と、送信部133と、シナリオ生成部134と、オートチャット部135と、個別オファー生成部136と、表示制御部137と、学習部138とを備える。制御部13の構成要素は、例えば、CPU等のハードウェアプロセッサがプログラム(ソフトウェア)を実行することにより実現される。これらの構成要素のうち一部または全部は、LSI(Large Scale Integration)やASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)、GPU(Graphics Processing Unit)等のハードウェアによって実現されてもよいし、ソフトウェアとハードウェアの協働によって実現されてもよい。プログラムは、予めHDD(Hard Disk Drive)やフラッシュメモリ等の記憶装置(非一時的コンピュータ読み取り可能な記憶媒体)に格納されていてもよいし、DVDやCD-ROM等の着脱可能な記憶媒体(非一時的コンピュータ読み取り可能な記憶媒体)に格納されており、記憶媒体がドライブ装置に装着されることで記憶装置にインストールされてもよい。 The control unit 13 includes, for example, an acquisition unit 131, a conversation generation unit 132, a transmission unit 133, a scenario generation unit 134, an auto-chat unit 135, an individual offer generation unit 136, a display control unit 137, and a learning unit 138. The components of the control unit 13 are realized, for example, by a hardware processor such as a CPU executing a program (software). Some or all of these components may be realized by hardware such as an LSI (Large Scale Integration), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), or GPU (Graphics Processing Unit), or may be realized by a combination of software and hardware. The program may be stored in advance in a storage device (non-transitory computer-readable storage medium) such as an HDD (Hard Disk Drive) or flash memory, or may be stored in a removable storage medium (non-transitory computer-readable storage medium) such as a DVD or CD-ROM, and installed in the storage device by inserting the storage medium into a drive.

取得部131は、通信ネットワークNWを介して、サービスサーバ3、メッセージサーバ5、ユーザ端末装置100、および運用端末装置200のそれぞれから、各種情報(データ)を取得する。例えば、取得部131は、ユーザ端末装置100から、ユーザUの操作に応じて入力された会話内容を示す会話情報を取得する。また、例えば、取得部131は、運用端末装置200から、設計者Dの操作に応じて入力されたシナリオ生成に関する指示情報を取得する。取得部131は、「取得部」の一例である。 The acquisition unit 131 acquires various information (data) from the service server 3, message server 5, user terminal device 100, and operation terminal device 200 via the communication network NW. For example, the acquisition unit 131 acquires conversation information indicating the content of the conversation entered in response to the operation of user U from the user terminal device 100. Also, for example, the acquisition unit 131 acquires instruction information regarding scenario generation entered in response to the operation of designer D from the operation terminal device 200. The acquisition unit 131 is an example of an "acquisition unit."

会話生成部132は、ユーザ端末装置100から取得された会話情報と、記憶部15に予め記憶された事業者ごとのシナリオデータSDとに基づいて、ユーザ端末装置100に送信する会話文(ユーザに提示する会話文)を生成する。会話生成部132は、「会話生成部」の一例である。 The conversation generation unit 132 generates conversation text to be sent to the user terminal device 100 (conversation text to be presented to the user) based on conversation information acquired from the user terminal device 100 and scenario data SD for each provider pre-stored in the storage unit 15. The conversation generation unit 132 is an example of a "conversation generation unit."

送信部133は、会話生成部132により生成された会話文を示す会話文データを、ユーザ端末装置100に送信する。送信部133は、「送信部」の一例である。 The transmission unit 133 transmits conversation sentence data indicating the conversation sentence generated by the conversation generation unit 132 to the user terminal device 100. The transmission unit 133 is an example of a "transmission unit."

シナリオ生成部134は、運用端末装置200から取得されたシナリオ生成に関する指示情報に基づき、記憶部15に予め記憶された第1学習モデルAI1を用いてシナリオを生成し、生成したシナリオをシナリオデータSDとして記憶部15に保管する。第1学習モデルAI1は、過去に人手またはシナリオ生成部134により生成された過去シナリオデータや過去のユーザとの会話履歴データ(過去チャットデータ)等の大量のデータを学習データとして学習することにより生成された大規模言語モデル(LLM)である。第1学習モデルAI1は、入力データであるテキストに基づいて、特定の言葉に続く確率が高い言葉を予測して並べたテキストを出力するモデルである。第1学習モデルAI1は、例えば、ChatGPT(登録商標)、LaMDA等を含む。シナリオに含まれる各会話文には絵文字が含まれていてもよい。 The scenario generation unit 134 generates a scenario using the first learning model AI1 pre-stored in the memory unit 15 based on instruction information related to scenario generation acquired from the operation terminal device 200, and stores the generated scenario as scenario data SD in the memory unit 15. The first learning model AI1 is a large-scale language model (LLM) generated by learning large amounts of data as learning data, such as past scenario data previously generated manually or by the scenario generation unit 134 and conversation history data with past users (past chat data). The first learning model AI1 is a model that outputs text in which words that are highly likely to follow specific words are predicted and arranged based on the input text data. Examples of the first learning model AI1 include ChatGPT (registered trademark), LaMDA, etc. Each conversational sentence included in the scenario may include emoticons.

図3は、第1の実施形態に係る第1学習モデルAI1(シナリオ生成時)の入出力データを説明する図である。図3に示すように、シナリオ生成に使用される場合、第1学習モデルAI1は、入力データが商品等を特定する特定情報(商品等を提供する事業者のホームページアドレス、商品等の内容を示す商品情報等)であり、出力データが生成されたシナリオデータである。ホームページアドレスを入力データとすることで、ウェブ上に提供されている会社やブランド、商品の情報がウェブスクレイピングにより読込まれ、商品情報としてチャット上で提案可能な商品が選定され、その価格や特徴が読込まれることとなる。第1学習モデルAI1は、入力データとして、さらに、商品等に関する情報をユーザに提供する目的を示す目的情報(例えば、商品等の購買に誘導するためのものなのか(セールス、コンバージョン)、商品等の広告のためのものなのか等)、商品等や事業者に関する画像情報、生成されたシナリオを提供する対象となるユーザの種別を示す対象情報(例えば、全会員、男性のみ、女性のみ等)、配信を行う会話アプリケーション基盤の種類(会話アプリケーションサービスA、会話アプリケーションサービスB等)、ユーザUの流入経路(ポップアップ、トリガーワード等)を含むものであってもよい。目的情報は、会話の全体的な目的がセールスなのかそれ以外なのかを判定するためのものである。画像情報は、使用可能な画像群を格納しておくことによりシナリオ中で適切な画像が選定されて、シナリオデータに反映されることとなる。第1学習モデルAI1の入力データは、API(Application Programming Interface)を介して、ウェブ上で公開されている情報(例えば、イーコマースストアの情報)から取得されるものであってもよい。シナリオ生成部134は、「シナリオ生成部」の一例である。すなわち、シナリオ生成部134は、過去に生成されたシナリオを学習することにより準備された第1学習モデルAI1に対して、シナリオの設計者Dにより指定された商品またはサービスを特定する特定情報を入力することで、特定情報に対応するシナリオを生成する。また、シナリオ生成部134は、第1学習モデルAI1に対して、さらに、操作者により指定された目的情報を入力することで、目的情報に応じたシナリオを生成する。また、シナリオ生成部134は、第1学習モデルAI1に対して、さらに、設計者Dにより指定された商品またはサービスに関する画像を入力することで、一連の会話内容に画像が組み込まれたシナリオを生成する。また、シナリオ生成部134は、表示部に表示されたシナリオの確認画面に対する設計者Dからの編集指示に応じて、生成されたシナリオを編集する。 Figure 3 is a diagram illustrating input and output data for the first learning model AI1 (during scenario generation) according to the first embodiment. As shown in Figure 3, when used for scenario generation, the first learning model AI1 receives input data as specific information identifying a product (e.g., the website address of the business providing the product, product information indicating the product details, etc.), and outputs the generated scenario data. By using the website address as input data, information about the company, brand, and product provided on the web is read via web scraping, and products that can be suggested in chat are selected as product information, and their prices and features are read. The first learning model AI1 may also receive input data such as purpose information indicating the purpose of providing users with information about the product (e.g., whether the information is intended to encourage purchases of the product (sales, conversion), or advertising the product), image information about the product or business, target information indicating the type of users to whom the generated scenario is to be provided (e.g., all members, men only, women only, etc.), the type of conversation application platform used for distribution (e.g., conversation application service A, conversation application service B, etc.), and the user U's entry path (e.g., pop-ups, trigger words, etc.). The purpose information is used to determine whether the overall purpose of the conversation is sales or something else. By storing a group of usable images, appropriate images are selected from the scenario and reflected in the scenario data. The input data for the first learning model AI1 may be obtained from information published on the web (e.g., information from an e-commerce store) via an API (Application Programming Interface). The scenario generation unit 134 is an example of a "scenario generation unit." That is, the scenario generation unit 134 inputs specific information identifying a product or service specified by the scenario designer D into the first learning model AI1, which is prepared by learning previously generated scenarios, to generate a scenario corresponding to the specific information. The scenario generation unit 134 also inputs purpose information specified by the operator into the first learning model AI1 to generate a scenario corresponding to the purpose information. The scenario generation unit 134 also inputs images related to a product or service specified by the designer D into the first learning model AI1 to generate a scenario in which images are incorporated into a series of conversational content. The scenario generation unit 134 also edits the generated scenario in response to editing instructions from designer D on the scenario confirmation screen displayed on the display unit.

図2に戻り、オートチャット部135は、第2学習モデルAI2に対して、シナリオをユーザUに提示したときにユーザUによりフリーテキストで入力されたユーザ入力テキストを入力することで、当該ユーザ入力テキストに対する回答文を生成する(スマートリプライ機能)。第2学習モデルAI2は、過去のユーザとの会話履歴データ(過去チャットデータ)、過去に人手またはシナリオ生成部134により生成された過去シナリオデータ、その他のテキストデータ等の大量のデータを学習データとして学習することにより生成された大規模言語モデル(LLM)である。第2学習モデルAI2は、入力データであるテキストに基づいて、特定の言葉に続く確率が高い言葉を予測して並べたテキストを出力するモデルである。第2学習モデルAI2は、例えば、ChatGPT(登録商標)、LaMDA等を含む。図4は、第1の実施形態に係る第2学習モデル(オートチャット時)の入出力データを説明する図である。図4に示すように、オートチャット生成に使用される場合、第2学習モデルAI2は、入力データがユーザUにより入力されたユーザ入力テキストであり、出力データが回答文である。オートチャット部135は、ハルシネーションを防止するために、第2学習モデルAI2から出力された回答文が商品等の売買に関係のないものである場合、この回答文を除外するようなチェック機能を有している。オートチャット部135は、「オートチャット部」の一例である。すなわち、オートチャット部135は、第2学習モデルAI2に対して、生成されたシナリオをユーザUに提示したときにユーザUにより指定されたフリーテキスト形式の会話文を入力することで、当該会話文に対する回答を生成する。 Returning to FIG. 2, the auto-chat unit 135 inputs the user input text entered as free text by the user U when presenting the scenario to the second learning model AI2, thereby generating a response to the user input text (smart reply function). The second learning model AI2 is a large-scale language model (LLM) generated by learning large amounts of data, such as past conversation history data with users (past chat data), past scenario data generated manually or by the scenario generation unit 134, and other text data, as learning data. The second learning model AI2 is a model that predicts and arranges words that are likely to follow specific words based on the input text data. Examples of the second learning model AI2 include ChatGPT (registered trademark) and LaMDA. FIG. 4 is a diagram explaining the input and output data of the second learning model (during auto-chat) according to the first embodiment. As shown in FIG. 4, when used to generate auto-chat, the input data of the second learning model AI2 is the user input text entered by the user U, and the output data is a response. To prevent hallucination, the auto-chat unit 135 has a checking function that excludes answer sentences output from the second learning model AI2 if the answer sentences are not related to the sale or purchase of goods, etc. The auto-chat unit 135 is an example of an "auto-chat unit." That is, the auto-chat unit 135 generates answers to the free-text conversation sentences specified by the user U when the generated scenario is presented to the user U, by inputting these conversation sentences into the second learning model AI2.

図2に戻り、個別オファー生成部136は、第3学習モデルAI3を用いて、ユーザUに応じてパーソナライズされた商品等の提案(以下「個別オファー」)を出力する。第3学習モデルAI3は、ユーザUのユーザデータが入力されたときに、当該ユーザUに応じてパーソナライズされた商品等(ユーザUが好んで購入する可能性が高い商品等)を出力するように学習されたニューラルネットワーク等の機械学習モデルである。ユーザデータには、例えば、性別、年齢、過去の購買履歴等が含まれている。ユーザデータは、例えば、サービスサーバ3を管理する事業者が過去にCRM(Customer Relationship Management)やCDP(Customer Data Platform)に蓄積した購買データ(例えば、過去の購買履歴に基づく氏名、住所、メールアドレス、電話番号、識別ID(ソーシャルハンドル)等、「ファーストパーティデータ」ともいう)である。チャットボットサーバ1は、例えば、APIを介して、サービスサーバ3に蓄積されたこれらの購買データを取り込むようにしてもよい。ユーザデータは、会話アプリケーションにおいて発行された個人を識別する識別ID(ソーシャルハンドル)に紐づけられるものであってよい。第3学習モデルAI3は、ニューラルネットワークに代えて、サポートベクターマシン、決定木、ランダムフォレスト、ロジスティクス回帰といったその他の機械学習モデルであってもよい。図5は、第1の実施形態に係る第3学習モデルAI3(個別オファー生成)の入出力データを説明する図である。図5に示すように、第3学習モデルAI3は、入力データがユーザUのユーザデータであり、出力データが個別オファーである。入力データには、シナリオに沿ったユーザUとの会話履歴が含まれていてもよい。個別オファー生成部136は、「個別オファー生成部」の一例である。すなわち、個別オファー生成部136は、特定ユーザのユーザデータが入力されたときに特定ユーザに応じた商品またはサービスに関する情報を出力するように学習された第3学習モデルAI3に対して、生成されたシナリオを提示したユーザUのユーザデータを入力することで、当該ユーザUに応じた商品またはサービスの提案を生成する。 Returning to FIG. 2 , the individual offer generation unit 136 uses the third learning model AI3 to output personalized product suggestions (hereinafter, "individual offers") for the user U. The third learning model AI3 is a machine learning model, such as a neural network, that is trained to output personalized products (products that the user U is likely to prefer and purchase) for the user U when the user data of the user U is input. The user data includes, for example, gender, age, and past purchase history. The user data is, for example, purchase data (e.g., name, address, email address, telephone number, identification ID (social handle), etc. based on past purchase history, also referred to as "first-party data") previously accumulated in a CRM (Customer Relationship Management) or CDP (Customer Data Platform) by the business operator managing the service server 3. The chatbot server 1 may import this purchase data accumulated in the service server 3, for example, via an API. The user data may be linked to an identification ID (social handle) issued in a conversation application to identify an individual. Instead of a neural network, the third learning model AI3 may be another machine learning model such as a support vector machine, a decision tree, a random forest, or a logistic regression. FIG. 5 is a diagram illustrating input and output data of the third learning model AI3 (individual offer generation) according to the first embodiment. As shown in FIG. 5, the input data of the third learning model AI3 is user data of a user U, and the output data is an individual offer. The input data may include a conversation history with the user U according to a scenario. The individual offer generation unit 136 is an example of an "individual offer generation unit." That is, the individual offer generation unit 136 generates a product or service proposal tailored to the user U by inputting the user data of the user U who presented the generated scenario to the third learning model AI3, which has been trained to output information about a product or service tailored to the specific user when the user data of the specific user is input.

表示制御部137は、シナリオを生成するための各種運用画面を表示させるための情報を生成し、運用端末装置200に送信し、運用端末装置200に各種運用画面を表示させる。表示制御部137は、「表示制御部」の一例である。すなわち、表示制御部137は、シナリオ生成部134により生成されたシナリオの確認画面を表示部に表示させる。 The display control unit 137 generates information for displaying various operation screens for generating a scenario, transmits this information to the operation terminal device 200, and causes the operation terminal device 200 to display the various operation screens. The display control unit 137 is an example of a "display control unit." In other words, the display control unit 137 causes the display unit to display a confirmation screen for the scenario generated by the scenario generation unit 134.

学習部138は、過去に生成された過去シナリオデータや過去会話履歴データ等の大量のデータを学習データとして使用して学習を行い、第1学習モデルAI1を生成し、記憶部15に保管する。また、学習部138は、過去のユーザとの会話履歴データ、過去に人手またはシナリオ生成部134により生成された過去シナリオデータ、その他のテキストデータ等の大量のデータを学習データとして使用して学習を行い、第2学習モデルAI2を生成し、記憶部15に保管する。学習部138は、学習データに含まれるテキストデータを最小単位に分離してトークン化し、得られたトークンから文脈や言葉の意味を学習して、第1学習モデルAI1および第2学習モデルAI2を生成する。 The learning unit 138 performs learning using large amounts of data, such as past scenario data and past conversation history data generated in the past, as learning data, to generate a first learning model AI1, which is stored in the memory unit 15. The learning unit 138 also performs learning using large amounts of data, such as past conversation history data with users, past scenario data generated in the past manually or by the scenario generation unit 134, and other text data, to generate a second learning model AI2, which is stored in the memory unit 15. The learning unit 138 separates and tokenizes the text data included in the learning data into its smallest units, learns the context and meaning of words from the obtained tokens, and generates the first learning model AI1 and the second learning model AI2.

また、学習部138は、過去に商品等を購入したユーザのユーザデータと当該ユーザが購入した商品等(購入履歴データ)との組である学習データを学習することで、第3学習モデルAI3を生成し、記憶部15に保管する。例えば、学習部138は、サービスサーバ3を管理する事業者が過去にCRMやCDPに蓄積した購買データ(ファーストパーティデータ)を学習データとして学習する。 The learning unit 138 also generates a third learning model AI3 by learning learning data that is a combination of user data of users who have purchased products, etc. in the past and the products, etc. purchased by those users (purchase history data), and stores this in the memory unit 15. For example, the learning unit 138 learns from purchasing data (first-party data) that the business operator managing the service server 3 has previously accumulated in CRM or CDP as learning data.

記憶部15は、HDDやフラッシュメモリ、RAM(Random Access Memory)等である。記憶部15は、チャットボットサーバ1がネットワークを介してアクセス可能なNAS(Network Attached Storage)装置であってもよい。記憶部15には、第1学習モデルAI1、第2学習モデルAI2、第3学習モデルAI3、シナリオデータSD、商品データID、ブランドデータBD、ユーザデータUD、回答データRD等を記憶する。商品データIDは、通信ネットワークNWを介して、サービスサーバ3やその他の販売管理サーバから取得されて記憶部15に保管される。ブランドデータBDは、サービスサーバ3から取得されて記憶部15に保管される。尚、ブランドデータBDは、事業者のホームページや事業者から提供されるCVS形式のリストから事業者のブランドに関する情報を収集されて記憶部15に保管されてもよい。ユーザデータUDは、サービスサーバ3から取得されて記憶部15に保管される。回答データRDは、シナリオに沿ったユーザとの会話内においてユーザから取得されて記憶部15に保管される。 The memory unit 15 is a hard disk drive (HDD), flash memory, RAM (Random Access Memory), etc. The memory unit 15 may be a NAS (Network Attached Storage) device accessible by the chatbot server 1 via a network. The memory unit 15 stores the first learning model AI1, the second learning model AI2, the third learning model AI3, scenario data SD, product data ID, brand data BD, user data UD, response data RD, etc. The product data ID is obtained from the service server 3 or another sales management server via the communication network NW and stored in the memory unit 15. The brand data BD is obtained from the service server 3 and stored in the memory unit 15. The brand data BD may also be stored in the memory unit 15 by collecting information about the business's brand from the business's homepage or a CVS-format list provided by the business. The user data UD is obtained from the service server 3 and stored in the memory unit 15. The response data RD is obtained from the user during a conversation with the user based on the scenario and stored in the memory unit 15.

<サービスサーバ3>
サービスサーバ3は、商品等を提供する事業者によって管理される。サービスサーバ3は、商品等の購入手続が可能なホームページ等のサイトをユーザ端末装置100に提供する。このサイト上において、ユーザUが予め設定されたトリガー操作を行うと、チャットボットサービスを提供するための処理が開始される。トリガー操作は、例えば、サイト上においてポップアップに表示されたチャットボットサービスを開始するボタンが押下されること、会話アプリケーション上に表示された広告バナーが押下されること、会話アプリケーションを利用する企業により出稿された広告表示が押下されること等である。
<Service Server 3>
The service server 3 is managed by a business that provides products and the like. The service server 3 provides the user terminal device 100 with a site such as a homepage where the user can complete the purchase procedure for the product and the like. When the user U performs a preset trigger operation on this site, processing for providing the chatbot service is initiated. Examples of the trigger operation include pressing a button that starts the chatbot service displayed in a pop-up on the site, pressing an advertising banner displayed on the conversation application, or pressing an advertising display placed by a company that uses the conversation application.

<メッセージサーバ5>
メッセージサーバ5は、メッセージの送受信により会話機能を実現するメッセージサービス(チャットサービス)を、ユーザ端末装置100、チャットボットサーバ1、およびサービスサーバ3に対して提供する。メッセージサーバ5は、ユーザ端末装置100にインストール可能な会話アプリケーションをユーザ端末装置100に提供し、ユーザ端末装置100は、この会話アプリケーションを実行することで、他のユーザ端末装置100や各種サーバとメッセージの送受信を行う。また、メッセージサーバ5は、外部装置(サーバ)からのメッセージサービスの利用を可能とするAPIを提供し、チャットボットサーバ1およびサービスサーバ3は、このAPIを利用することで、ユーザ端末装置100とメッセージの送受信を行う。
<Message Server 5>
The message server 5 provides a message service (chat service) that realizes a conversation function by sending and receiving messages to the user terminal device 100, the chatbot server 1, and the service server 3. The message server 5 provides a conversation application that can be installed in the user terminal device 100 to the user terminal device 100, and the user terminal device 100 sends and receives messages with other user terminal devices 100 and various servers by executing this conversation application. The message server 5 also provides an API that enables use of the message service from an external device (server), and the chatbot server 1 and the service server 3 send and receive messages with the user terminal device 100 by using this API.

<ユーザ端末装置100>
ユーザ端末装置100は、事業者により提供される商品等を購入・利用するユーザUにより操作される。ユーザ端末装置100は、例えば、スマートフォンやタブレット端末等の可搬型端末装置である。図6は、第1の実施形態に係るユーザ端末装置100の構成の一例を示す機能ブロック図である。ユーザ端末装置100は、例えば、通信部101と、表示部103と、操作部105と、制御部107と、記憶部109とを備える。
<User Terminal Device 100>
The user terminal device 100 is operated by a user U who purchases and uses products and the like provided by a business operator. The user terminal device 100 is, for example, a portable terminal device such as a smartphone or a tablet terminal. FIG. 6 is a functional block diagram showing an example of the configuration of the user terminal device 100 according to the first embodiment. The user terminal device 100 includes, for example, a communication unit 101, a display unit 103, an operation unit 105, a control unit 107, and a storage unit 109.

通信部101は、通信ネットワークNWに接続された無線基地局と無線通信を行う無線通信モジュールである。通信部101は、無線基地局を介して、チャットボットサーバ1、サービスサーバ3、メッセージサーバ5等と通信を行う。表示部103は、液晶表示装置などの表示装置である。操作部105は、ユーザUからの操作指示を受け付ける入力インターフェースである。尚、表示部103および操作部105は、タッチパネルディスプレイとして構成されてもよい。 The communication unit 101 is a wireless communication module that performs wireless communication with a wireless base station connected to the communication network NW. The communication unit 101 communicates with the chatbot server 1, service server 3, message server 5, etc. via the wireless base station. The display unit 103 is a display device such as a liquid crystal display device. The operation unit 105 is an input interface that accepts operation instructions from the user U. Note that the display unit 103 and operation unit 105 may be configured as touch panel displays.

制御部107は、ユーザ端末装置100の全体の動作を制御する。制御部13の機能は、例えば、CPUなどのハードウェアプロセッサがプログラム(ソフトウェア)を実行することにより実現される。制御部107は、記憶部109に記憶された会話アプリケーション(プログラム)APを起動し、ネットワークを介した会話機能を実現する。会話アプリケーションは、会話専用のアプリケーションであってもよいし、その他の機能(通話機能、画像アップロード機能、メッセージアップロード機能等)を兼ね備えるものであってもよい。例えば、会話アプリケーションは、商品等を提供する事業者によって提供されてユーザ端末装置100にインストールされた事業者側のアプリケーションに会話機能が搭載されたものであってもよい。或いは、会話アプリケーションは、ウェブブラウザ等の汎用的なアプリケーションプログラムを用いて実現されてもよい。例えば、会話アプリケーションは、事業者によって管理されるサービスサーバ3により提供される事業者側のホームページ上のチャット機能により実現されるものであってもよい。 The control unit 107 controls the overall operation of the user terminal device 100. The functions of the control unit 107 are realized, for example, by a hardware processor such as a CPU executing a program (software). The control unit 107 launches a conversation application (program) AP stored in the memory unit 109 to realize a conversation function via a network. The conversation application may be an application dedicated to conversation, or it may also have other functions (such as a call function, an image upload function, and a message upload function). For example, the conversation application may be an application on the provider's side that is provided by a business that provides products, etc. and installed on the user terminal device 100 and that incorporates a conversation function. Alternatively, the conversation application may be realized using a general-purpose application program such as a web browser. For example, the conversation application may be realized using a chat function on the provider's homepage provided by a service server 3 managed by the business.

図7は、第1の実施形態に係るユーザ端末装置100に表示される会話画面P1の一例を示す図である。図7の例では、事業者Aにより提供されるチャットボットサービスが開始され、シナリオとしてユーザUへの挨拶メッセージや質問等を行う会話画面P1を示している。ユーザUは、このようなシナリオに沿ったチャットボットとの会話を行うことで、自分に合った情報の提供や商品等の提案を受けることができる。 Figure 7 is a diagram showing an example of a conversation screen P1 displayed on the user terminal device 100 according to the first embodiment. The example in Figure 7 shows a conversation screen P1 in which a chatbot service provided by business operator A is started, and a scenario is presented in which a greeting message and questions are sent to user U. By conversing with the chatbot in accordance with this scenario, user U can receive information tailored to them and suggestions for products, etc.

<運用端末装置200>
運用端末装置200は、チャットボットサービスにおけるシナリオの設計を行う設計者Dにより操作される。運用端末装置200は、例えば、パーソナルコンピュータ、スマートフォン、タブレット端末等である。運用端末装置200は、少なくとも、表示機能、入力機能、保管機能等を備える。
<Operation Terminal Device 200>
The operation terminal device 200 is operated by a designer D who designs a scenario for a chatbot service. The operation terminal device 200 is, for example, a personal computer, a smartphone, a tablet terminal, etc. The operation terminal device 200 has at least a display function, an input function, a storage function, etc.

<処理フロー>
<シナリオ生成処理>
次に、チャットボットサービスにおいて実行される各種処理について説明する。まず、設計者Dがシナリオを生成する運用側の処理について説明する。図8は、第1の実施形態に係るチャットボットサーバ1によるシナリオ生成処理の一連の流れの一例を示すフローチャートである。図8に示す処理は、例えば、設計者Dが、運用端末装置200を操作してシナリオ生成の開始指示を入力し、この開始指示をチャットボットサーバ1が受信した場合に開始される。
<Processing flow>
<Scenario generation process>
Next, various processes executed in the chatbot service will be described. First, the process on the operation side in which designer D generates a scenario will be described. FIG. 8 is a flowchart showing an example of a series of scenario generation processes by the chatbot server 1 according to the first embodiment. The process shown in FIG. 8 is started, for example, when designer D operates the operation terminal device 200 to input an instruction to start scenario generation, and the chatbot server 1 receives this start instruction.

(ステップS101)まず、チャットボットサーバ1の表示制御部137は、シナリオ条件設定画面を運用端末装置200に表示させる。そして、取得部131は、運用端末装置200に表示されたシナリオ条件設定画面に対して設計者Dが入力した設定情報を、運用端末装置200から取得する。 (Step S101) First, the display control unit 137 of the chatbot server 1 displays a scenario condition setting screen on the operation terminal device 200. Then, the acquisition unit 131 acquires from the operation terminal device 200 the setting information entered by designer D into the scenario condition setting screen displayed on the operation terminal device 200.

図9は、第1の実施形態に係る運用端末装置200に表示されるシナリオ条件設定画面P2の一例を示す図である。図9に示すシナリオ条件設定画面P2の例では、シナリオ生成の対象となる事業者のURLの指定を受け付ける第1欄AR1、シナリオの目的情報の指定を受け付ける第2欄AR2、シナリオを提供する対象の指定を受け付ける第3欄AR3、ユーザからのフリーテキストでの入力の受け付け可否の指定を受け付ける第4欄AR4、シナリオにおいてユーザに提案する商品等の指定を受け付ける第5欄AR5、および商品またはサービスに関する画像(事業者或いは商品等の画像)を受け付ける第6欄AR6が設けられている。設計者Dは、運用端末装置200の入力インターフェース(キーボード、マウス等)を操作することで、これらの欄にシナリオ条件を入力することができる。その他のシナリオ条件として、シナリオに含まれる会話の文字数の設定やコンバージョン率を指定可能としてもよい。シナリオ生成ボタンBT1が押下されると、設計者Dが入力した設定情報が運用端末装置200からチャットボットサーバ1に送信される。 9 is a diagram showing an example of a scenario condition setting screen P2 displayed on the operation terminal device 200 according to the first embodiment. The example scenario condition setting screen P2 shown in FIG. 9 includes a first column AR1 for accepting the URL of the business for which the scenario is to be generated, a second column AR2 for accepting the objective information of the scenario, a third column AR3 for accepting the target for whom the scenario is to be provided, a fourth column AR4 for accepting whether or not to accept free text input from the user, a fifth column AR5 for accepting the designation of products, etc. to be proposed to the user in the scenario, and a sixth column AR6 for accepting images related to products or services (images of businesses, products, etc.). Designer D can enter scenario conditions into these columns by operating the input interface (keyboard, mouse, etc.) of the operation terminal device 200. Other scenario conditions may include the number of characters in the conversation included in the scenario and the conversion rate. When the scenario generation button BT1 is pressed, the setting information entered by designer D is sent from the operation terminal device 200 to the chatbot server 1.

(ステップS103)次に、シナリオ生成部134は、運用端末装置200から送信された設計者Dにより指定された設定情報に基づいて、記憶部15に予め記憶された第1学習モデルAI1を用いて、シナリオを生成する。シナリオ生成部134は、設定情報に含まれる事業者のホームページアドレス、商品情報、目的情報、画像情報、および対象情報を、第1学習モデルAI1に入力することで、シナリオを生成する。ここで生成されるシナリオには、例えば、2つの種類がある。第1のシナリオは、初期会話とも称されるものであり、ユーザUがチャットボットに流入してきた際に1度だけ表示される会話シナリオである。この会話シナリオでは、ユーザUの基本的情報(その後のセールス会話を組んでいくうえで最も大切な情報)を収集し、それに引き続いて商品提案やアドバイスをするものである。第2のシナリオは、プッシュ会話とも称されるものであり、チャットボットのアカウントに既に溜まっているユーザUに対して、追加的に情報を配信するものである。例えば、会話アプリケーションの利用が開始されてから1日目は第1の配信シナリオ、2日目は第2の配信シナリオ、5日目はさらに他の配信シナリオといったように、ユーザU毎に異なる時間軸をともない配信設定をされるものである(「トラックプッシュ」ともいう)。或いは、会話アプリケーションにおける特定の個人IDと紐付けられている(例えば、友達登録されている)すべてのユーザを何らかのセグメント分類し、そのなかの特定のセグメントに対して全員に同時に配信するシナリオである(「ショットプッシュ」ともいう)。 (Step S103) Next, the scenario generation unit 134 generates a scenario using the first learning model AI1 pre-stored in the memory unit 15 based on the setting information specified by the designer D transmitted from the operation terminal device 200. The scenario generation unit 134 generates a scenario by inputting the business's homepage address, product information, purpose information, image information, and target information contained in the setting information into the first learning model AI1. There are, for example, two types of scenarios generated here. The first scenario, also known as an initial conversation, is a conversation scenario that is displayed only once when the user U enters the chatbot. This conversation scenario collects basic information about the user U (the most important information for developing a subsequent sales conversation), followed by product suggestions and advice. The second scenario, also known as a push conversation, delivers additional information to the user U that has already accumulated in the chatbot's account. For example, delivery settings are made for each user U along a different time axis, such as a first delivery scenario on the first day after starting use of the conversation application, a second delivery scenario on the second day, and yet another delivery scenario on the fifth day (also known as "track push"). Alternatively, all users linked to a specific personal ID in the conversation application (e.g., registered as friends) are classified into some sort of segment, and a specific segment within that segment is delivered to everyone at the same time (also known as "shot push").

(ステップS105)次に、表示制御部137は、シナリオ生成部134により生成されたシナリオを表示するシナリオ確認画面を運用端末装置200に表示させる。図10~図12は、第1の実施形態に係る運用端末装置200に表示されるシナリオ確認画面P3を示す図である。図10のシナリオ確認画面(1)P3-1は、シナリオに含まれる一連の会話のうち、ユーザとの初期会話文を規定した会話を示す。図11のシナリオ確認画面(2)P3-2は、シナリオに含まれる一連の会話のうち、ユーザからの回答を要求する質問文を規定した会話を示す。図12のシナリオ確認画面(3)P3-3は、シナリオに含まれる一連の会話のうち、ユーザに対する商品等の提案文を規定した会話を示す。シナリオ確認画面(1)P3-1、シナリオ確認画面(2)P3-2、およびシナリオ確認画面(3)P3-3は、実際には1つの画面であり、画面内に設けられたスクロールバーを操作することで連続的に表示される。このように規定されたシナリオにおいて上から下に向かって会話が進行することとなる。尚、シナリオ確認画面(1)P3-1、シナリオ確認画面(2)P3-2、およびシナリオ確認画面(3)P3-3は、互いに異なる画面として切り替え可能に表示されてもよい。 (Step S105) Next, the display control unit 137 causes the operation terminal device 200 to display a scenario confirmation screen that displays the scenario generated by the scenario generation unit 134. Figures 10 to 12 are diagrams showing the scenario confirmation screen P3 displayed on the operation terminal device 200 according to the first embodiment. Scenario confirmation screen (1) P3-1 in Figure 10 shows a conversation that specifies an initial conversation with the user, among a series of conversations included in the scenario. Scenario confirmation screen (2) P3-2 in Figure 11 shows a conversation that specifies a question requesting an answer from the user, among a series of conversations included in the scenario. Scenario confirmation screen (3) P3-3 in Figure 12 shows a conversation that specifies a proposal for a product or the like to the user, among a series of conversations included in the scenario. Scenario confirmation screen (1) P3-1, scenario confirmation screen (2) P3-2, and scenario confirmation screen (3) P3-3 are actually a single screen, and are displayed consecutively by operating the scroll bar provided within the screen. In a scenario specified in this way, the conversation progresses from top to bottom. Note that scenario confirmation screen (1) P3-1, scenario confirmation screen (2) P3-2, and scenario confirmation screen (3) P3-3 may be displayed as different screens that can be switched between.

図10のシナリオ確認画面(1)P3-1では、ユーザとの初期会話文として、アクションAC1-1~AC1-5が順に設定された例を示している。アクションAC1-1は、遷移元の事業者側のサイトの設定を示すアクションである。アクションAC1-2は、挨拶文の表示を行うアクションである、アクションAC1-3は、画像1の表示を行うアクションである。アクションAC1-4は、質問文の表示を行うアクションである。アクションAC1-5は、アクションAC1-4の質問文に対する回答の選択肢の表示を行うアクションである。 Scenario confirmation screen (1) P3-1 in Figure 10 shows an example in which actions AC1-1 to AC1-5 are set in order as initial conversations with the user. Action AC1-1 is an action that indicates the settings of the provider's site from which the transition occurs. Action AC1-2 is an action that displays a greeting, and action AC1-3 is an action that displays image 1. Action AC1-4 is an action that displays a question. Action AC1-5 is an action that displays answer options for the question in action AC1-4.

図11のシナリオ確認画面(2)P3-2では、ユーザからの回答を要求する質問文として、アクションAC2-1~AC2-5が順に設定された例を示している。アクションAC2-1は、1つ目の質問文の表示を行うアクションである。アクションAC2-2は、アクションAC2-1の質問文に対する回答の選択肢の表示を行うアクションである。アクションAC2-3は、2つ目の質問文の表示を行うアクションである。アクションAC2-4は、アクションAC2-3の質問文に対する回答の選択肢の表示を行うアクションである。アクションAC2-5は、3つ目の質問文の表示を行うアクションである。 The scenario confirmation screen (2) P3-2 in Figure 11 shows an example in which actions AC2-1 to AC2-5 are set in order as questions requesting an answer from the user. Action AC2-1 is an action that displays the first question. Action AC2-2 is an action that displays answer options for the question of action AC2-1. Action AC2-3 is an action that displays the second question. Action AC2-4 is an action that displays answer options for the question of action AC2-3. Action AC2-5 is an action that displays the third question.

図12のシナリオ確認画面(3)P3-3では、ユーザに対する商品等の提案文として、アクションAC3-1~AC3-2が順に設定された例を示している。アクションAC3-1は、商品等の提案を行うことを示すメッセージの表示を行うアクションである。アクションAC3-2は、アクションAC3-1のメッセージに対応する提案商品A~Dの表示を行うアクションである。これらの提案文は、シナリオ確認画面(2)P3-2に含まれる質問文に対するユーザUからの回答に応じて可変となるように規定される。 The scenario confirmation screen (3) P3-3 in Figure 12 shows an example in which actions AC3-1 to AC3-2 are set in order as suggestions for products, etc. to the user. Action AC3-1 is an action that displays a message indicating that a product, etc. is being suggested. Action AC3-2 is an action that displays suggested products A to D corresponding to the message of action AC3-1. These suggestions are specified to be variable depending on the user U's response to the question included in the scenario confirmation screen (2) P3-2.

設計者Dは、運用端末装置200の入力インターフェースを操作することで、シナリオ確認画面P3に表示された各アクションの設定内容を変更することが可能である(文言修正、選択肢追加・削除、画像追加・変更等)。また、設計者Dは、アクション追加ボタンBT2を押下することで、新たなアクションを任意の位置に設定することが可能である。また、設計者Dは、シナリオ決定BT3を押下することで、シナリオを決定することが可能である。 By operating the input interface of the operation terminal device 200, designer D can change the settings of each action displayed on the scenario confirmation screen P3 (correcting wording, adding or deleting options, adding or changing images, etc.). Designer D can also set a new action at any position by pressing the add action button BT2. Designer D can also decide on a scenario by pressing the decide scenario BT3.

図10および図11に示す例では、質問文に対する回答の選択肢の表示を行うアクションを設定する場合を説明したが、質問文に対する回答方法としてユーザUによるフリーテキストでの入力を可能とする自由入力欄を表示するようにしてもよい。図13は、第1の実施形態に係る運用端末装置200に表示されるシナリオ確認画面(4)P3-4の一例を示す図である。図11のシナリオ確認画面(2)P3-2と比較して、図13のシナリオ確認画面(4)P3-4では、アクションAC2-1の質問文に対する回答を受け付けるアクションとして、自由入力欄のアクションAC2-6が設定される。 In the examples shown in Figures 10 and 11, we have described the case where an action is set to display answer options for a question, but it is also possible to display a free input field that allows the user U to enter free text as a response to the question. Figure 13 is a diagram showing an example of a scenario confirmation screen (4) P3-4 displayed on the operation terminal device 200 according to the first embodiment. Compared to the scenario confirmation screen (2) P3-2 in Figure 11, in the scenario confirmation screen (4) P3-4 in Figure 13, action AC2-6 in the free input field is set as the action that accepts a response to the question in action AC2-1.

(ステップS107)図8に戻り、シナリオ生成部134は、運用端末装置200から編集指示を受け付けたか否かを判定する。例えば、設計者Dが運用端末装置200に表示されたシナリオ確認画面P3に対して何らかの編集操作を行い、運用端末装置200から編集指示を受け付けた場合、シナリオ生成部134は、編集指示を受け付けたと判定する(ステップS107:YES)。一方、例えば、設計者Dが運用端末装置200に表示されたシナリオ確認画面P3に対して編集操作を行わずにシナリオ決定BT3を押下し、運用端末装置200からシナリオ決定指示を受け付けた場合、シナリオ生成部134は、編集指示を受け付けなかったと判定する(ステップS107:NO)。 (Step S107) Returning to FIG. 8, the scenario generation unit 134 determines whether or not an editing instruction has been received from the operation terminal device 200. For example, if designer D performs some editing operation on the scenario confirmation screen P3 displayed on the operation terminal device 200 and receives an editing instruction from the operation terminal device 200, the scenario generation unit 134 determines that an editing instruction has been received (Step S107: YES). On the other hand, if designer D presses the scenario decision BT3 without performing any editing operation on the scenario confirmation screen P3 displayed on the operation terminal device 200 and receives a scenario decision instruction from the operation terminal device 200, the scenario generation unit 134 determines that an editing instruction has not been received (Step S107: NO).

(ステップS111)編集指示を受け付けたと判定した場合(ステップS107:YES)、シナリオ生成部134は、編集指示に応じて、シナリオの編集を行う。その後、ステップS105に戻り、表示制御部137は、編集されたシナリオを表示するシナリオ確認画面を運用端末装置200に表示させ、以降の処理を繰り返す。 (Step S111) If it is determined that an editing instruction has been received (Step S107: YES), the scenario generation unit 134 edits the scenario in accordance with the editing instruction. Then, the process returns to step S105, where the display control unit 137 causes the operation terminal device 200 to display a scenario confirmation screen displaying the edited scenario, and the subsequent processing is repeated.

(ステップS109)編集指示を受け付けなかったと判定した場合(ステップS107:NO)、シナリオ生成部134は、シナリオを決定し(確定し)、記憶部15に保管する。以上により、本フローチャートの処理が終了する。 (Step S109) If it is determined that an editing instruction has not been received (Step S107: NO), the scenario generation unit 134 determines (confirms) the scenario and stores it in the memory unit 15. This completes the processing of this flowchart.

<シナリオ表示処理>
次に、ユーザUがチャットボットサービスを体験するサービス側の処理について説明する。図14は、第1の実施形態に係るシナリオ表示処理の一例を示すシーケンス図である。ここでは、ユーザUがユーザ端末装置100を操作し、ウェブブラウザにより事業者のサイトを閲覧している状況を例にあげて説明する。
<Scenario display process>
Next, the process on the service side where the user U experiences the chatbot service will be described. Fig. 14 is a sequence diagram showing an example of the scenario display process according to the first embodiment. Here, the process will be described taking as an example a situation where the user U operates the user terminal device 100 and browses a provider's website using a web browser.

(ステップS201)まず、ユーザUによる操作に応じてサイト上でトリガー操作が行われた場合、ユーザ端末装置100は、トリガー操作が行われたことを示すトリガー操作信号をサービスサーバ3に送信する。トリガー操作は、例えば、サイト上においてポップアップに表示されたチャットボットサービスを開始するボタンが押下されること等である。 (Step S201) First, when a trigger operation is performed on the site in response to an operation by user U, the user terminal device 100 transmits a trigger operation signal indicating that a trigger operation has been performed to the service server 3. An example of a trigger operation is pressing a button that starts a chatbot service displayed in a pop-up on the site.

(ステップS203)次に、サービスサーバ3は、ユーザ端末装置100から受信したトリガー操作信号に応じて、チャットボットサービスにおけるシナリオに沿った一連の会話を開始する会話開始指示を、チャットボットサーバ1に送信する。 (Step S203) Next, in response to the trigger operation signal received from the user terminal device 100, the service server 3 sends a conversation start instruction to the chatbot server 1 to start a series of conversations in accordance with a scenario in the chatbot service.

(ステップS205)次に、チャットボットサーバ1の会話生成部132は、サービスサーバ3から会話開始指示を受信すると、記憶部15に記憶されているシナリオデータSDに基づいて、会話を生成する。ここでは、例えば、会話生成部132は、事業者に関連付けられたシナリオにおけるユーザとの初期会話文に設定された1つ目の会話(第1会話)を生成する。 (Step S205) Next, when the conversation generation unit 132 of the chatbot server 1 receives a conversation start instruction from the service server 3, it generates a conversation based on the scenario data SD stored in the memory unit 15. Here, for example, the conversation generation unit 132 generates the first conversation (first conversation) set as the initial conversation sentence with the user in the scenario associated with the business operator.

(ステップS207)次に、チャットボットサーバ1の送信部133は、生成された会話を示す会話データの送信依頼を、メッセージサーバ5に送信する。チャットボットサーバ1は、例えば、メッセージサーバ5により提供されるAPIを利用することで、会話データの送信依頼をメッセージサーバ5に送信する。チャットボットサーバ1から会話データの送信依頼を受けたメッセージサーバ5は、この会話データをユーザ端末装置100に送信する(ステップS209)。 (Step S207) Next, the sending unit 133 of the chatbot server 1 sends a request to send conversation data indicating the generated conversation to the message server 5. The chatbot server 1 sends the request to send conversation data to the message server 5, for example, by using an API provided by the message server 5. Having received the request to send conversation data from the chatbot server 1, the message server 5 sends this conversation data to the user terminal device 100 (Step S209).

(ステップS211)次に、ユーザ端末装置100は、メッセージサーバ5を介してチャットボットサーバ1から受信した会話データに基づいて、会話アプリケーションAPを起動し、会話データに基づく会話文を表示部103に表示させる。これにより、ユーザUは、チャットボットサーバ1から自動送信された会話文を確認することができる。 (Step S211) Next, the user terminal device 100 launches the conversation application AP based on the conversation data received from the chatbot server 1 via the message server 5, and displays the conversational text based on the conversational data on the display unit 103. This allows the user U to check the conversational text automatically sent from the chatbot server 1.

(ステップS213)次に、ユーザ端末装置100は、メッセージサーバ5を介してチャットボットサーバ1から受信した会話データが回答を要求する質問文である場合には、ユーザUによる操作部105の操作に応じて決定された回答を示す回答データを、メッセージサーバ5に送信する。尚、ユーザ端末装置100は、メッセージサーバ5を介してチャットボットサーバ1から受信した会話データが回答を要求するものではない単純なメッセージや画像である場合には、受信したことを示す受信確認データを、メッセージサーバ5に送信するようにしてもよい。(ステップS215)ユーザ端末装置100から回答データを受信したメッセージサーバ5は、この回答データをチャットボットサーバ1に送信する。 (Step S213) Next, if the conversation data received from the chatbot server 1 via the message server 5 is a question requesting an answer, the user terminal device 100 transmits answer data indicating the answer determined in response to the user U's operation of the operation unit 105 to the message server 5. Note that if the conversation data received from the chatbot server 1 via the message server 5 is a simple message or image that does not request an answer, the user terminal device 100 may transmit receipt confirmation data indicating receipt to the message server 5. (Step S215) Having received the answer data from the user terminal device 100, the message server 5 transmits this answer data to the chatbot server 1.

(ステップS217)次に、チャットボットサーバ1の取得部131は、メッセージサーバ5を介してユーザ端末装置100から受信した回答データを、記憶部15の回答データRDに保管する。図15は、第1の実施形態に係る回答データRDの一例を示す図である。回答データRDには、各ユーザを識別するユーザIDに紐づけて、ユーザから取得された回答データが保管される。 (Step S217) Next, the acquisition unit 131 of the chatbot server 1 stores the response data received from the user terminal device 100 via the message server 5 in the response data RD of the storage unit 15. Figure 15 is a diagram showing an example of response data RD according to the first embodiment. The response data RD stores response data acquired from users, linked to a user ID that identifies each user.

尚、メッセージサーバ5を介してユーザ端末装置100から受信した回答データがフリーテキストで入力されたものである場合、受信した回答データを記憶部15に保管するとともに、オートチャット部135は、第2学習モデルAI2に対して、回答データ(ユーザ入力テキスト)を入力することで、当該ユーザ入力テキストに対する回答文を生成し、送信部133は、生成された回答文を、メッセージサーバ5を介して、ユーザ端末装置100に送信する。その他、チャットボットサーバ1からのユーザUへの質問に対する回答選択肢に適切なものが見当たらず、ユーザUが別の回答をフリーテキストとして入力した場合、会話生成部132は、その回答内容を記憶部15に記憶させ、その次のシナリオのステップに進む。この場合、フリーテキストとして入力されたユーザUの回答は、最終的に個別オファー生成部136により提案される商品の判定に利用される。 If the answer data received from the user terminal device 100 via the message server 5 is entered as free text, the received answer data is stored in the memory unit 15, and the auto-chat unit 135 generates an answer sentence for the user input text by inputting the answer data (user input text) to the second learning model AI2, and the transmission unit 133 transmits the generated answer sentence to the user terminal device 100 via the message server 5. In addition, if the user U cannot find an appropriate answer option in response to a question from the chatbot server 1 for the user U and inputs a different answer as free text, the conversation generation unit 132 stores the content of that answer in the memory unit 15 and proceeds to the next scenario step. In this case, the answer from the user U entered as free text is ultimately used to determine the product to be proposed by the individual offer generation unit 136.

上記のステップS205~S217の一連の処理QAは、シナリオに応じて繰り返し実行される。すなわち、シナリオにおいて順に設定されたオブジェクトの会話の送信および回答の受信が繰り返し実行される。(ステップS219)最終的に、チャットボットサーバ1の取得部131により商品等を提案する会話に対するユーザUからの回答データを受信されると、送信部133は、購入を希望することを示す購入希望データを、サービスサーバ3に送信する。 The series of processing QA from steps S205 to S217 above is repeatedly executed according to the scenario. That is, the transmission of conversations and reception of responses from objects set in order in the scenario are repeatedly executed. (Step S219) Finally, when the acquisition unit 131 of the chatbot server 1 receives response data from the user U in response to a conversation proposing a product, etc., the transmission unit 133 transmits purchase request data indicating a desire to purchase to the service server 3.

尚、設計者D等の指示に基づいて、対象のシナリオにおいて個別オファーが行われるように設定されている場合、個別オファー生成部136は、記憶部15に予め格納されたユーザデータUDから、ユーザUのユーザデータを取得し、取得したユーザデータを第3学習モデルAI3に入力することで、当該ユーザUに応じてパーソナライズされた商品等(ユーザUが好んで購入する可能性が高い商品等)を判定する。そして、会話生成部132は、このユーザUに応じてパーソナライズされた商品等を提案する会話文を生成し、送信部133は、生成された会話を示す会話データを、メッセージサーバ5を介して、ユーザ端末装置100に送信する。 When the target scenario is set to make an individual offer based on instructions from designer D or the like, the individual offer generation unit 136 acquires user data for user U from user data UD pre-stored in the memory unit 15, and inputs the acquired user data into the third learning model AI3 to determine products, etc. personalized for user U (products, etc. that user U is likely to prefer and purchase). The conversation generation unit 132 then generates a conversation proposing products, etc. personalized for this user U, and the transmission unit 133 transmits conversation data indicating the generated conversation to the user terminal device 100 via the message server 5.

(ステップS221)サービスサーバ3は、チャットボットサーバ1から購入希望データを受信すると、決済処理等を行うための購入画面を生成する。(ステップS223)次に、サービスサーバ3は、生成された購入画面を表示させるための購入画面データをユーザ端末装置100に送信する。 (Step S221) When the service server 3 receives the purchase request data from the chatbot server 1, it generates a purchase screen for performing payment processing, etc. (Step S223) Next, the service server 3 transmits purchase screen data for displaying the generated purchase screen to the user terminal device 100.

(ステップS225)次に、ユーザ端末装置100は、サービスサーバ3から受信した購入画面データに基づいて、購入画面を表示部103に表示させる。(ステップS227)次に、ユーザ端末装置100は、ユーザUによる操作部105の操作に応じて入力された購入データを、サービスサーバ3に送信する。 (Step S225) Next, the user terminal device 100 displays the purchase screen on the display unit 103 based on the purchase screen data received from the service server 3. (Step S227) Next, the user terminal device 100 transmits the purchase data entered by the user U in response to operation of the operation unit 105 to the service server 3.

(ステップS229)次に、サービスサーバ3は、ユーザ端末装置100から受信した購入データに基づいて、決済処理や発送処理等を含む購入処理を行う。以上により、本シーケンス図の処理が終了する。 (Step S229) Next, the service server 3 performs purchase processing, including payment processing and shipping processing, based on the purchase data received from the user terminal device 100. This completes the processing in this sequence diagram.

以上、説明した第1の実施形態によれば、機械学習の手法を用いてシナリオの準備に要する手間を軽減することができる。さらに、過去に生成されたシナリオを学習することにより生成された学習モデルを用いてシナリオを生成する構成を採用することで、生成されるシナリオの品質を向上させることができる。また、ユーザによりフリーテキストで入力された会話文に対してもオートチャット機能により対応可能とすることで、ユーザの利便性を向上させることができる。さらに、ユーザデータに基づいた商品等の提案を可能とすることで、よりユーザに適した商品等を提案することが可能となる。これら一連の処理を繰り返し行うことによりユーザの情報や嗜好に関するデータを蓄積しユーザの理解を深めることができる。 According to the first embodiment described above, it is possible to reduce the effort required to prepare a scenario using machine learning techniques. Furthermore, by adopting a configuration in which a scenario is generated using a learning model generated by studying previously generated scenarios, the quality of the generated scenario can be improved. Furthermore, by making it possible to respond to conversational text entered by the user in free text using the auto-chat function, it is possible to improve user convenience. Furthermore, by making it possible to suggest products, etc. based on user data, it is possible to suggest products, etc. that are more suitable for the user. By repeating this series of processes, data related to user information and preferences can be accumulated, and understanding of the user can be deepened.

[第2の実施形態]
次に、第2の実施形態について説明する。第2の実施形態は、シナリオが一連の会話内容を目的に応じて区分した複数のオブジェクトによって構成される点において第1の実施形態と異なる。以下、第1の実施形態との相違点を中心として、第2の実施形態のチャットボットサーバ1について説明する。
Second Embodiment
Next, a second embodiment will be described. The second embodiment differs from the first embodiment in that a scenario is composed of multiple objects that divide a series of conversational content according to purpose. The following describes the chatbot server 1 of the second embodiment, focusing on the differences from the first embodiment.

第2の実施形態において、シナリオは、一連の会話内容を目的(機能、役割)に応じて区分した(まとめた)複数のオブジェクトによって構成される。例えば、シナリオは、複数のオブジェクトが、互いに関連付けられてツリー型に配置された構造を持つ。複数のオブジェクトの各々は、順序が規定された複数の会話文を含む。 In the second embodiment, a scenario is composed of multiple objects that divide (group) a series of conversational content according to purpose (function, role). For example, a scenario has a structure in which multiple objects are related to each other and arranged in a tree structure. Each of the multiple objects contains multiple conversational sentences in a specified order.

図16は、第2の実施形態に係るオブジェクト型シナリオデータSDの一例を示す図である。オブジェクト型シナリオデータSDは、事業者ごとに定義された1以上のシナリオSCを含む。各シナリオSCは、複数のオブジェクトにより構成される。オブジェクトには、例えば、エントリーオブジェクトOB1と、クエスチョンオブジェクトOB2と、オファーオブジェクトOB3と、リテンションオブジェクトOB4等が含まれる。複数のオブジェクトは、これらの4つのオブジェクトに限定されず、その他の機能や目的に応じて設定された他のオブジェクトが含まれてもよい。複数のオブジェクトは、少なくとも、ユーザUとの初期会話文を規定したエントリーオブジェクトと、ユーザUからの回答を要求する質問文を規定したクエスチョンオブジェクトと、ユーザUに対する商品またはサービスの提案文を規定したオファーオブジェクトとを含む。 Figure 16 is a diagram showing an example of object-type scenario data SD according to the second embodiment. The object-type scenario data SD includes one or more scenarios SC defined for each business operator. Each scenario SC is composed of multiple objects. The objects include, for example, an entry object OB1, a question object OB2, an offer object OB3, and a retention object OB4. The multiple objects are not limited to these four objects, and may include other objects set according to other functions or purposes. The multiple objects include at least an entry object that specifies the initial conversation text with user U, a question object that specifies a question requesting an answer from user U, and an offer object that specifies a proposal for a product or service to user U.

エントリーオブジェクトOB1は、ユーザとの会話を開始するに際して行う初期会話文を規定したものである。エントリーオブジェクトOB1は、例えば、挨拶等のメッセージや、ユーザの属性を判定するための質問文等を含む。クエスチョンオブジェクトOB2は、ユーザに提案する商品等を判定するためのユーザからの回答を要求する会話文(質問文)を規定したものである。オファーオブジェクトOB3は、クエスチョンオブジェクトOB2により収集されたユーザの回答に基づいて、ユーザに商品等を提案する会話文(提案文)内容を規定したものである。リテンションオブジェクトOB4は、商品等の購入に至らなかったユーザを会話に引き戻すための会話文を規定したものである。リテンションオブジェクトOB4は、例えば、各ユーザに応じて設定されたプッシュ通知のための会話文が含む。 The entry object OB1 defines the initial conversation text to be used when starting a conversation with a user. The entry object OB1 includes, for example, a greeting message or a question to determine the user's attributes. The question object OB2 defines the conversation text (question text) that requests an answer from the user to determine a product or other item to be proposed to the user. The offer object OB3 defines the content of the conversation text (proposal text) that proposes a product or other item to the user based on the user's answer collected by the question object OB2. The retention object OB4 defines the conversation text to bring a user who did not end up purchasing a product or other item back into the conversation. The retention object OB4 includes, for example, conversation text for push notifications set for each user.

図17は、第2の実施形態に係るオブジェクト構造の一例を示す図である。オブジェクト構造とは、各シナリオに含まれるオブジェクトの種別や、オブジェクトの数、オブジェクト同士のつながり方等を規定したものである。図17に示す例では、エントリーオブジェクトOB1と、エントリーオブジェクトOB1と各々接続されたクエスチョンオブジェクト(男)OB2-1およびクエスチョンオブジェクト(女)OB2-2と、クエスチョンオブジェクト(男)OB2-1と接続されたオファーオブジェクト(男)OB3-1およびクエスチョンオブジェクト(女)OB2-2と接続されたオファーオブジェクト(女)OB3-2とを含むオブジェクト構造が示されている。シナリオにおいて、このように設定されたオブジェクト構造の上から下に向かって会話が進行することとなる。 Figure 17 is a diagram showing an example of an object structure according to the second embodiment. The object structure specifies the types of objects included in each scenario, the number of objects, how the objects are connected to each other, and so on. The example shown in Figure 17 shows an object structure including an entry object OB1, a question object (male) OB2-1 and a question object (female) OB2-2 each connected to the entry object OB1, an offer object (male) OB3-1 connected to the question object (male) OB2-1, and an offer object (female) OB3-2 connected to the question object (female) OB2-2. In a scenario, a conversation progresses from top to bottom through this object structure.

シナリオ生成部134は、運用端末装置200から取得されたシナリオ生成に関する指示情報に基づき、記憶部15に予め記憶された第1学習モデルAI1を用いて、オブジェクト型シナリオを生成し、生成したオブジェクト型シナリオをオブジェクト型シナリオデータSDとして記憶部15に保管する。第1学習モデルAI1は、過去に生成された過去オブジェクト型シナリオデータや過去のユーザとの会話履歴データ(過去チャットデータ)等の大量のデータを学習データとして使用して学習することにより生成された大規模言語モデル(LLM)である。すなわち、シナリオ生成部134は、一連の会話内容を目的に応じて区分した複数のオブジェクトによって構成されるシナリオを生成する。 The scenario generation unit 134 generates an object-type scenario using the first learning model AI1 pre-stored in the storage unit 15 based on instruction information related to scenario generation acquired from the operation terminal device 200, and stores the generated object-type scenario as object-type scenario data SD in the storage unit 15. The first learning model AI1 is a large-scale language model (LLM) generated by learning using large amounts of data as learning data, such as past object-type scenario data generated in the past and conversation history data with past users (past chat data). In other words, the scenario generation unit 134 generates a scenario composed of multiple objects that divide a series of conversation contents according to purpose.

以上、説明した第2の実施形態によれば、機械学習の手法を用いてシナリオの生成の負荷を軽減することができる。さらに、過去に生成されたシナリオを学習することにより生成された学習モデルを用いてシナリオを生成する構成を採用することで、生成されるシナリオの品質を向上させることができる。また、オブジェクト型シナリオデータを用いて、各オブジェクト単位で会話文を学習および生成可能とすることで、シナリオの精度を向上させることができる。 According to the second embodiment described above, the load of scenario generation can be reduced using machine learning techniques. Furthermore, by adopting a configuration in which scenarios are generated using a learning model generated by learning previously generated scenarios, the quality of the generated scenarios can be improved. Furthermore, by using object-type scenario data to enable learning and generation of dialogue sentences for each object, the accuracy of the scenario can be improved.

以上、本発明を実施するための形態について実施形態を用いて説明したが、本発明はこうした実施形態に何等限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々の変形及び置換を加えることができる。 The above describes the form for carrying out the present invention using an embodiment, but the present invention is in no way limited to such an embodiment, and various modifications and substitutions can be made without departing from the spirit of the present invention.

1…チャットボットサーバ,11…通信部,13…制御部,15…記憶部,131…取得部,132…会話生成部,133…送信部,134…シナリオ生成部,135…オートチャット部,136…個別オファー生成部,137…表示制御部,138…学習部,100…ユーザ端末装置,101…通信部,103…表示部,105…操作部,107…制御部,109…記憶部,200…運用端末装置,3…サービスサーバ,5…メッセージサーバ,NW…通信ネットワーク 1... Chatbot server, 11... Communication unit, 13... Control unit, 15... Memory unit, 131... Acquisition unit, 132... Conversation generation unit, 133... Transmission unit, 134... Scenario generation unit, 135... Auto chat unit, 136... Individual offer generation unit, 137... Display control unit, 138... Learning unit, 100... User terminal device, 101... Communication unit, 103... Display unit, 105... Operation unit, 107... Control unit, 109... Memory unit, 200... Operation terminal device, 3... Service server, 5... Message server, NW... Communication network

Claims (17)

チャットボットにより実行される、ユーザに商品またはサービスに関する情報を提供するための一連の会話内容を規定したシナリオを生成するシナリオ生成装置であって、
シナリオの設計者により指定された商品またはサービスを特定する特定情報の指定を受け付けるシナリオ条件設定画面を表示部に表示させる表示制御部と、
前記シナリオ生成装置に備えられ且つ過去に生成されたシナリオを学習することにより準備された第1学習モデルに対して、前記シナリオ条件設定画面において指定を受け付けた前記特定情報を入力することで、前記特定情報に対応するシナリオを生成するシナリオ生成部を備える、
シナリオ生成装置。
A scenario generation device that generates a scenario that defines a series of conversation contents to be executed by a chatbot to provide a user with information about a product or service,
a display control unit that displays on a display unit a scenario condition setting screen that accepts specification of specific information that identifies a product or service specified by a scenario designer;
a scenario generation unit that generates a scenario corresponding to the specific information by inputting the specific information specified on the scenario condition setting screen into a first learning model that is provided in the scenario generation device and that is prepared by learning a scenario that has been generated in the past;
Scenario generation device.
前記シナリオ生成部は、前記第1学習モデルに対して、さらに、前記設計者により指定された商品またはサービスに関する情報を提供する目的を示す目的情報を入力することで、前記目的情報に対応する前記シナリオを生成する、
請求項1に記載のシナリオ生成装置。
the scenario generation unit further inputs, into the first learning model, purpose information indicating a purpose of providing information about a product or service specified by the designer, thereby generating the scenario corresponding to the purpose information.
The scenario generation device according to claim 1 .
前記目的情報によって示される目的は、ユーザを商品またはサービスの購入に誘導することを含む、
請求項2に記載のシナリオ生成装置。
The purpose indicated by the purpose information includes guiding the user to purchase a product or service.
The scenario generation device according to claim 2 .
前記シナリオ生成部は、前記第1学習モデルに対して、さらに、前記設計者により指定された商品またはサービスに関する画像を入力することで、前記シナリオ内に前記画像が組み込まれた前記シナリオを生成する、
請求項1に記載のシナリオ生成装置。
the scenario generation unit further inputs an image relating to a product or service designated by the designer into the first learning model, thereby generating the scenario in which the image is incorporated into the scenario.
The scenario generation device according to claim 1 .
前記シナリオ生成部により生成された前記シナリオの確認画面を表示部に表示させる表示制御部をさらに備える、
請求項1から4の何れか一項に記載のシナリオ生成装置。
a display control unit that displays a confirmation screen of the scenario generated by the scenario generation unit on a display unit,
The scenario generation device according to any one of claims 1 to 4.
前記シナリオ生成部は、前記表示部に表示された前記シナリオの確認画面に対する前記設計者からの編集指示に応じて、生成された前記シナリオを編集する、
請求項5に記載のシナリオ生成装置。
the scenario generation unit edits the generated scenario in response to an editing instruction from the designer on the scenario confirmation screen displayed on the display unit.
The scenario generation device according to claim 5 .
前記シナリオ生成部は、前記一連の会話内容を目的に応じて区分した複数のオブジェクトによって構成される前記シナリオを生成する、
請求項1から4の何れか一項に記載のシナリオ生成装置。
the scenario generation unit generates the scenario composed of a plurality of objects in which the series of conversation contents are divided according to purpose.
The scenario generation device according to any one of claims 1 to 4.
前記複数のオブジェクトは、少なくとも、前記ユーザとの初期会話文を規定したエントリーオブジェクトと、前記ユーザからの回答を要求する質問文を規定したクエスチョンオブジェクトと、前記ユーザに対する前記商品またはサービスの提案文を規定したオファーオブジェクトとを含む、
請求項7に記載のシナリオ生成装置。
The plurality of objects include at least an entry object that defines an initial conversation with the user, a question object that defines a question to which the user is requested to respond, and an offer object that defines a proposal for the product or service to the user.
The scenario generation device according to claim 7.
前記シナリオ生成装置に備えられ且つ過去のユーザとの会話履歴データおよび過去のシナリオデータを含む学習データを使用して、テキストデータが入力されたときに前記テキストデータに対応する回答文を出力するように学習された第2学習モデルに対して、生成された前記シナリオを前記ユーザに提示したときに前記ユーザにより指定されたフリーテキスト形式の会話文を入力することで、当該会話文に対する回答文を生成するオートチャット部をさらに備える、
請求項1から4の何れか一項に記載のシナリオ生成装置。
The scenario generation device further includes an auto-chat unit that, when the generated scenario is presented to the user, inputs a free text conversational sentence designated by the user into a second learning model that is provided in the scenario generation device and that is trained to output a response sentence corresponding to the input text data using learning data including past conversation history data with the user and past scenario data, and generates a response sentence to the conversational sentence.
The scenario generation device according to any one of claims 1 to 4.
ネットワークを介してアクセス可能な装置に備えられ且つ過去のユーザとの会話履歴データおよび過去のシナリオデータを含む学習データを使用して、テキストデータが入力されたときに前記テキストデータに対応する回答文を出力するように学習された第2学習モデルに対して、生成された前記シナリオを前記ユーザに提示したときに前記ユーザにより指定されたフリーテキスト形式の会話文を入力することで、当該会話文に対する回答文を生成するオートチャット部をさらに備える、The system further includes an auto-chat unit that, when the generated scenario is presented to the user, inputs a conversational sentence in a free text format designated by the user into a second learning model that is provided in a device accessible via a network and that is trained to output a response sentence corresponding to the input text data using learning data including conversation history data with the user and past scenario data, and generates a response sentence to the conversational sentence.
請求項1から4の何れか一項に記載のシナリオ生成装置。The scenario generation device according to any one of claims 1 to 4.
前記シナリオ生成装置に備えられ且つ過去に商品またはサービスを購入したユーザのユーザデータと当該ユーザの購入履歴データとの組である学習データを使用して、特定ユーザのユーザデータが入力されたときに前記特定ユーザに応じた商品またはサービスに関する情報を出力するように学習された第3学習モデルに対して、生成された前記シナリオを提示した前記ユーザのユーザデータを入力することで、当該ユーザに応じた商品またはサービスの提案を生成する個別オファー生成部をさらに備える、
請求項1から4の何れか一項に記載のシナリオ生成装置。
The scenario generation device further includes an individual offer generation unit that generates a proposal for a product or service suited to a user by inputting user data of the user who presented the generated scenario into a third learning model that is provided in the scenario generation device and that is trained to output information on a product or service suited to a specific user when user data of the specific user is input, using learning data that is a set of user data of a user who has previously purchased a product or service and purchase history data of the user.
The scenario generation device according to any one of claims 1 to 4.
ネットワークを介してアクセス可能な装置に備えられ且つ過去に商品またはサービスを購入したユーザのユーザデータと当該ユーザの購入履歴データとの組である学習データを使用して、特定ユーザのユーザデータが入力されたときに前記特定ユーザに応じた商品またはサービスに関する情報を出力するように学習された第3学習モデルに対して、生成された前記シナリオを提示した前記ユーザのユーザデータを入力することで、当該ユーザに応じた商品またはサービスの提案を生成する個別オファー生成部をさらに備える、The system further comprises an individual offer generation unit that generates a proposal for a product or service tailored to a user by inputting the user data of the user who presented the generated scenario into a third learning model that is provided in a device accessible via a network and that is trained to output information about a product or service tailored to a specific user when the user data of the specific user is input, using learning data that is a set of user data of a user who has previously purchased a product or service and purchase history data of the user.
請求項1から4の何れか一項に記載のシナリオ生成装置。The scenario generation device according to any one of claims 1 to 4.
チャットボットにより実行される、ユーザに商品またはサービスに関する情報を提供するための一連の会話内容を規定したシナリオを生成するシナリオ生成装置であって、A scenario generation device that generates a scenario that defines a series of conversation contents to be executed by a chatbot to provide a user with information about a product or service,
シナリオの設計者により指定された商品またはサービスを特定する特定情報の指定を受け付けるシナリオ条件設定画面を表示部に表示させる表示制御部と、a display control unit that displays on a display unit a scenario condition setting screen that accepts specification of specific information that identifies a product or service specified by a scenario designer;
ネットワークを介してアクセス可能な装置に備えられ且つ過去に生成されたシナリオを学習することにより準備された第1学習モデルに対して、前記シナリオ条件設定画面において指定を受け付けた前記特定情報を入力することで、前記特定情報に対応するシナリオを生成するシナリオ生成部を備える、a scenario generation unit that generates a scenario corresponding to the specific information by inputting the specific information specified on the scenario condition setting screen into a first learning model that is provided in a device accessible via a network and that is prepared by learning a scenario that has been generated in the past;
シナリオ生成装置。Scenario generation device.
チャットボットにより実行される、ユーザに商品またはサービスに関する情報を提供するための一連の会話内容を規定したシナリオを生成するシナリオ生成方法であって、
シナリオ生成装置のコンピュータが、
シナリオの設計者により指定された商品またはサービスを特定する特定情報の指定を受け付けるシナリオ条件設定画面を表示部に表示させ、
前記シナリオ生成装置に備えられ且つ過去に生成されたシナリオを学習することにより準備された第1学習モデルに対して、前記シナリオ条件設定画面において指定を受け付けた前記特定情報を入力することで、前記特定情報に対応するシナリオを生成する、
シナリオ生成方法。
A scenario generation method for generating a scenario that defines a series of conversation contents to be executed by a chatbot to provide a user with information about a product or service, comprising:
The computer of the scenario generation device
displaying a scenario condition setting screen on the display unit for accepting specification of specific information for identifying a product or service specified by a scenario designer;
generating a scenario corresponding to the specific information by inputting the specific information specified on the scenario condition setting screen into a first learning model that is provided in the scenario generation device and that is prepared by learning a scenario that has been generated in the past;
Scenario generation method.
チャットボットにより実行される、ユーザに商品またはサービスに関する情報を提供するための一連の会話内容を規定したシナリオを生成するシナリオ生成方法であって、A scenario generation method for generating a scenario that defines a series of conversation contents to be executed by a chatbot to provide a user with information about a product or service, comprising:
シナリオ生成装置のコンピュータが、The computer of the scenario generation device
シナリオの設計者により指定された商品またはサービスを特定する特定情報の指定を受け付けるシナリオ条件設定画面を表示部に表示させ、displaying a scenario condition setting screen on the display unit for accepting specification of specific information for identifying a product or service specified by a scenario designer;
ネットワークを介してアクセス可能な装置に備えられ且つ過去に生成されたシナリオを学習することにより準備された第1学習モデルに対して、前記シナリオ条件設定画面において指定を受け付けた前記特定情報を入力することで、前記特定情報に対応するシナリオを生成する、generating a scenario corresponding to the specific information by inputting the specific information specified on the scenario condition setting screen into a first learning model that is provided in a device accessible via a network and that is prepared by learning a previously generated scenario;
シナリオ生成方法。Scenario generation method.
チャットボットにより実行される、ユーザに商品またはサービスに関する情報を提供するための一連の会話内容を規定したシナリオを生成するシナリオ生成プログラムであって、
シナリオ生成装置のコンピュータに、
シナリオの設計者により指定された商品またはサービスを特定する特定情報の指定を受け付けるシナリオ条件設定画面を表示部に表示させ、
前記シナリオ生成装置に備えられ且つ過去に生成されたシナリオを学習することにより準備された第1学習モデルに対して、前記シナリオ条件設定画面において指定を受け付けた前記特定情報を入力させることで、前記特定情報に対応するシナリオを生成させる、
シナリオ生成プログラム。
A scenario generation program that generates a scenario that defines a series of conversation contents to be executed by a chatbot to provide a user with information about a product or service,
The computer of the scenario generation device
displaying a scenario condition setting screen on the display unit for accepting specification of specific information for identifying a product or service specified by a scenario designer;
generating a scenario corresponding to the specific information by inputting the specific information specified on the scenario condition setting screen into a first learning model that is provided in the scenario generation device and that is prepared by learning a scenario that has been generated in the past;
Scenario generator.
チャットボットにより実行される、ユーザに商品またはサービスに関する情報を提供するための一連の会話内容を規定したシナリオを生成するシナリオ生成プログラムであって、A scenario generation program that generates a scenario that defines a series of conversation contents to be executed by a chatbot to provide a user with information about a product or service,
シナリオ生成装置のコンピュータに、The computer of the scenario generation device
シナリオの設計者により指定された商品またはサービスを特定する特定情報の指定を受け付けるシナリオ条件設定画面を表示部に表示させ、displaying a scenario condition setting screen on the display unit for accepting specification of specific information for identifying a product or service specified by a scenario designer;
ネットワークを介してアクセス可能な装置に備えられ且つ過去に生成されたシナリオを学習することにより準備された第1学習モデルに対して、前記シナリオ条件設定画面において指定を受け付けた前記特定情報を入力させることで、前記特定情報に対応するシナリオを生成させる、a first learning model that is provided in a device accessible via a network and that is prepared by learning a previously generated scenario, and that generates a scenario corresponding to the specific information by inputting the specific information that has been specified and accepted on the scenario condition setting screen;
シナリオ生成プログラム。Scenario generator.
JP2024014821A 2024-02-02 2024-02-02 Scenario generation device, scenario generation method, and scenario generation program Active JP7794405B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2024014821A JP7794405B2 (en) 2024-02-02 2024-02-02 Scenario generation device, scenario generation method, and scenario generation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2024014821A JP7794405B2 (en) 2024-02-02 2024-02-02 Scenario generation device, scenario generation method, and scenario generation program

Publications (2)

Publication Number Publication Date
JP2025119798A JP2025119798A (en) 2025-08-15
JP7794405B2 true JP7794405B2 (en) 2026-01-06

Family

ID=96702019

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2024014821A Active JP7794405B2 (en) 2024-02-02 2024-02-02 Scenario generation device, scenario generation method, and scenario generation program

Country Status (1)

Country Link
JP (1) JP7794405B2 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019518292A (en) 2016-04-11 2019-06-27 フェイスブック,インク. A technique for responding to user requests using natural language machine learning based on speech samples
JP2019220115A (en) 2018-06-22 2019-12-26 株式会社日立製作所 Voice interactive system, and model creation device and method thereof
JP2021096693A (en) 2019-12-18 2021-06-24 Jeインターナショナル株式会社 Chatbot server device, learning device, chatbot system, operation method of chatbot server device, operation method of learning device, program, and recording medium
JP2023008860A (en) 2021-07-01 2023-01-19 ソニー・インタラクティブエンタテインメント エルエルシー Automated purchase of content of digital wish list based on threshold set by user
JP2023081207A (en) 2021-11-30 2023-06-09 株式会社リコー Information processing device, information processing method, program, and information processing system
JP2023112307A (en) 2022-02-01 2023-08-14 株式会社日立製作所 Development support system and development support method
JP2023158547A (en) 2022-04-18 2023-10-30 株式会社ネスパ Service proposal system, service proposal method, and service proposal program
US20230394247A1 (en) 2022-06-01 2023-12-07 Alibaba Damo (Hangzhou) Technology Co., Ltd. Human-machine collaborative conversation interaction system and method
JP2023181204A (en) 2021-07-02 2023-12-21 株式会社リコー Information processing system, chatbot system, information management method, program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230044729A (en) * 2021-09-27 2023-04-04 인포뱅크 주식회사 An apparatus for chatbot making and diagnosis services and a method for operating it
KR102766334B1 (en) * 2021-11-16 2025-02-14 네이버 주식회사 Method, computer device, and computer program for building open-domain dialogue system using language model
KR102714913B1 (en) * 2021-11-23 2024-10-07 네이버 주식회사 Method and system for creating persona conversation data using hyperscale language model

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019518292A (en) 2016-04-11 2019-06-27 フェイスブック,インク. A technique for responding to user requests using natural language machine learning based on speech samples
JP2019220115A (en) 2018-06-22 2019-12-26 株式会社日立製作所 Voice interactive system, and model creation device and method thereof
JP2021096693A (en) 2019-12-18 2021-06-24 Jeインターナショナル株式会社 Chatbot server device, learning device, chatbot system, operation method of chatbot server device, operation method of learning device, program, and recording medium
JP2023008860A (en) 2021-07-01 2023-01-19 ソニー・インタラクティブエンタテインメント エルエルシー Automated purchase of content of digital wish list based on threshold set by user
JP2023181204A (en) 2021-07-02 2023-12-21 株式会社リコー Information processing system, chatbot system, information management method, program
JP2023081207A (en) 2021-11-30 2023-06-09 株式会社リコー Information processing device, information processing method, program, and information processing system
JP2023112307A (en) 2022-02-01 2023-08-14 株式会社日立製作所 Development support system and development support method
JP2023158547A (en) 2022-04-18 2023-10-30 株式会社ネスパ Service proposal system, service proposal method, and service proposal program
US20230394247A1 (en) 2022-06-01 2023-12-07 Alibaba Damo (Hangzhou) Technology Co., Ltd. Human-machine collaborative conversation interaction system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
マーケティング,[online],2024年01月04日,[2025年4月25日検索],インターネット,<URL:https://aqsh.co.jp/sales-talk-script-prompt/>

Also Published As

Publication number Publication date
JP2025119798A (en) 2025-08-15

Similar Documents

Publication Publication Date Title
Ikumoro et al. Intention to use intelligent conversational agents in e-commerce among Malaysian SMEs: an integrated conceptual framework based on tri-theories including unified theory of acceptance, use of technology (UTAUT), and TOE
US20180234367A1 (en) User transition from messaging interface to web-based interface
IL267521B2 (en) Actionable widget cards
Briva-Iglesias et al. The impact of traditional and interactive post-editing on machine translation user experience, quality, and productivity
Bhattacharyya et al. Investigation of customer churn insights and intelligence from social media: A netnographic research
US20140074589A1 (en) System and method for the selection and delivery of a customized consumer offer or engagement dialog by a live customer service representative in communication with a consumer
US20130282595A1 (en) Method and apparatus for optimizing web and mobile self-serve apps
CN104123661A (en) System and method for data processing
CN106648688B (en) Information display method and device
CN104123580A (en) System and method for booking an online advertising campaign
WO2022124339A1 (en) Information processing device, information processing method, and program
Raghunath et al. eKichabi v2: Designing and scaling a dual-platform agricultural technology in rural Tanzania
Pereira et al. How artificial intelligence can improve digital marketing
CN111787042B (en) Method and device for pushing information
JP7794405B2 (en) Scenario generation device, scenario generation method, and scenario generation program
Daniel E-commerce Get It Right!: Essential Step-by-Step Guide for Selling and Marketing Products Online. Insider Secrets, Key Strategies and Practical Tips-Simplified for Start-Ups and Small Businesses
Español et al. Shop buddy enhanced automated chatbot for any e-commerce website with data analytics functionalities
Al-Aamri et al. The Role of Artificial Intelligence and Chatbots in Customer Engagement in Tourism
CA2839464A1 (en) System and method for categorizing postings in a social media computer system
JP7813012B2 (en) Chatbot control device, chatbot control method, and program
US20250111414A1 (en) Apparatus and method for automated user interactions utilizing an artificial intelligence model trained on a large language model prompted with company data and sales guidelines
US11734733B2 (en) Conversational mapping of web items for mediated group decisions
Herwandito et al. Can the credibility judgement model address mobile commerce challenges?
JP7624637B1 (en) SCENARIO GENERATION DEVICE, SCENARIO GENERATION METHOD, AND SCENARIO GENERATION PROGRAM
US20240119461A1 (en) System and method for facilitating prospect and reference engagement through smart matching

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250507

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20250703

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250908

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20251111

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20251210

R150 Certificate of patent or registration of utility model

Ref document number: 7794405

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150