Answering device and answering method

The answering device and method use a database and interactive AI to categorize and filter responses, ensuring accurate and socially appropriate answers by selecting appropriate categories and transmitting responses in a predetermined language.

JP2024157571AActive Publication Date: 2024-11-08SAKAI FINANCIAL ACCOUNTING CONTRACT CO LTD

Patent Information

Application Number
JP2023071911
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2024-11-08
Estimated Expiration
2043-04-26

AI Technical Summary

Technical Problem

Conversational AI systems directly responding to input messages on chat screens may provide incorrect or inappropriate information, lacking the ability to filter out socially inappropriate responses.

Method used

An answering device and method that utilize a database to categorize questions and store corresponding answers, using an interactive AI to select appropriate categories and transmit responses in a predetermined language, ensuring accurate and socially appropriate replies.

Benefits of technology

Prevents the transmission of incorrect or inappropriate information by filtering responses through categorized answers, providing accurate and socially appropriate replies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024157571000001_ABST
    Figure 2024157571000001_ABST
Patent Text Reader

Abstract

To provide an answering device and an answering method, preventing answers that include incorrect information and answers that are socially inappropriate to messages input to a chat screen in a chatbot using conversational AI.SOLUTION: In a system 1, an answering device includes: a database that stores a plurality of question categories and an answering message corresponding to each of the plurality of question categories; a receiving section that receives, from a web server, a message input to a chat screen displayed on a website; a reading section that sends, to conversational AI, a first question allowing the AI to select which of the plurality of question categories in the database corresponds to the received message, that receives the question category selected by the conversational AI, and that reads, from the database, the answering message corresponding to the received question category; and a sending section that sends, to the web server, the answering message having been read by the reading section, as an answer to the message to be displayed on the chat screen.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a reply device that automatically replies to an input message and a reply method using the reply device. [Background technology]

[0002] There is known an automatic response service that implements a computer program (chatbot) that automatically responds to messages entered on a chat screen on a website (see, for example, Patent Document 1). As one type of chatbot, there is also known an interactive automatic response service that uses an interactive AI (artificial intelligence) in which an AI (artificial intelligence) recognizes and responds to messages entered on the chat screen. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2018-81444 A Summary of the Invention [Problem to be solved by the invention]

[0004] In the above-mentioned conversational auto-response service using conversational AI, the conversational AI responds directly to the input message, which may result in the transmission of replies containing incorrect information or inappropriate terminology.

[0005] An object of the present invention is to provide a reply device and a reply method using the reply device that prevent replies containing erroneous information and replies that are socially inappropriate in response to messages entered on a chat screen in a chatbot using an interactive AI. [Means for solving the problem]

[0006] The reply device of the present invention is characterized in that it comprises a database that stores a plurality of question categories and reply messages corresponding to each of the plurality of question categories; a receiving unit that receives a message entered on a chat screen displayed on a website from a web server that provides the website; a reading unit that sends a first question to a dialogue AI (dialogue artificial intelligence) to allow the AI ​​to select which of the plurality of question categories in the database the message received by the receiving unit corresponds to, receives the question category selected by the dialogue AI, and reads the reply message corresponding to the received question category from the database; and a transmitting unit that transmits the reply message read by the reading unit to the web server as a reply to the message to be displayed on the chat screen.

[0007] In addition, the response device of the present invention is characterized in that, when two or more question categories are selected in the dialogue AI, the reading unit sends a second question to the dialogue AI asking about the probability of each of the selected question categories being applicable, receives the probability of application from the dialogue AI, and the transmission unit transmits the answer messages corresponding to each of the two or more question categories read by the reading unit so that they are displayed on the chat screen in order of the probability of application highest.

[0008] The response device of the present invention is characterized by further comprising a storage unit that stores the message received by the receiving unit and the response message transmitted by the transmitting unit as a response to the message in association with each other.

[0009] In addition, the response device of the present invention is characterized in that the reading unit sends the first question to the dialogue AI in a predetermined language and receives a response from the dialogue AI in the predetermined language.

[0010] Furthermore, the answering method of the present invention is characterized by including a receiving step of receiving a message entered on a chat screen displayed on a website from a web server providing the website, a first question being sent to an interactive AI (interactive artificial intelligence) to allow the AI ​​to select which of a plurality of question categories in a database storing a plurality of question categories and answer messages corresponding to each of the plurality of question categories to which the message received in the receiving step corresponds, a reading step of receiving the question category selected by the interactive AI, and reading from the database the answer message corresponding to the received question category, and a transmitting step of transmitting the answer message corresponding to the question category read in the reading step to the web server as a reply to the message to be displayed on the chat screen.

[0011] In addition, the answering method of the present invention is characterized in that, when two or more question categories are selected in the dialogue AI, the reading process sends a second question to the dialogue AI asking about the probability of each of the selected question categories being applicable, and receives the probability of application from the dialogue AI, and the transmitting process transmits the answer messages corresponding to each of the two or more question categories read in the reading process so that they are displayed on the chat screen in order of the probability of application highest.

[0012] The reply method of the present invention is characterized by further comprising a storage step of storing the message received in the receiving step and the reply message transmitted in the transmitting step as a reply to the message in association with each other.

[0013] In addition, the response method of the present invention is characterized in that the reading step includes sending the first question to the dialogue AI in a predetermined language and receiving a response from the dialogue AI in the predetermined language. Effect of the Invention

[0014] According to the present invention, it is possible to provide a reply device and a reply method using the reply device that prevent replies containing erroneous information and replies that are socially inappropriate in response to messages entered on a chat screen in a chatbot using an interactive AI. [Brief description of the drawings]

[0015] [Figure 1] 1 is a block diagram showing a configuration of a system including a response device according to an embodiment; [Diagram 2] FIG. 4 is a diagram illustrating an example of a database according to the embodiment. [Diagram 3] 10 is a flowchart for explaining a process executed to reply to a message input on a chat screen using the replying device according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] Hereinafter, a system including a response device according to an embodiment of the present invention will be described with reference to the drawings. Fig. 1 is a block diagram showing the configuration of a system including a response device according to an embodiment. As shown in Fig. 1, the system 1 includes a terminal 2, a web server 4, a response device 6, and an interactive AI (interactive artificial intelligence) application 8.

[0017] Terminal 2 is a smartphone, tablet, or PC, etc., and is connected to web server 4 via a network such as the Internet. A website provided by web server 4 via the network is displayed on a display unit (not shown) of terminal 2, and a user of terminal 2 inputs a text message into a chat screen displayed on the website using an input unit (not shown) of terminal 2.

[0018] The web server 4 is a server for displaying a website on the terminal 2, and is connected to the terminal 2 and the answering device 6 via a network such as the Internet. The web server 4 communicates with the terminal 2 and the answering device 6 via the network. Specifically, the web server 4 transmits screen information for displaying a website to the terminal 2, and receives text data of a message inputted from an input unit of the terminal 2. The web server 4 also transmits to the answering device 6 a site identification key (in this embodiment, "A") which is an identifier for identifying that the website is provided by the web server 4, and the text data received from the terminal 2, and receives text data of an answer message, which will be described later, from the answering device 6.

[0019] The answering device 6 is an API server for operating the interactive AI application 8 by linking with the interactive AI application 8 through an API (Application Programming Interface), and is connected to the web server 4 through a network such as the Internet. The answering device 6 is also connected to the network through the interactive AI application 8 and a server (not shown) that stores the application. Although FIG. 1 illustrates a case in which one web server 4 is connected to the answering device 6, in reality, multiple web servers are connected. In this embodiment, the answering device 6 is described as being connected to multiple web servers (the web server 4 and multiple web servers not shown). The answering device 6 receives a message input to a chat screen of the terminal 2 through the web server 4, and provides a reply message to the message. Similarly, the answering device 6 receives a message input to a chat screen of a terminal not shown from each of multiple web servers not shown, and provides a reply message to the message.

[0020] The response device 6 includes a control unit 10 that performs overall control of each unit of the response device 6, and the control unit 10 is connected to a database 12, a receiving unit 14, a reading unit 16, a transmitting unit 18, and a storage unit 20.

[0021] The database 12 stores a plurality of question categories and answer messages corresponding to each of the plurality of question categories. Fig. 2 is a diagram showing an example of the database 12. Site identification keys A, B, C, etc. shown in Fig. 2 are identifiers set for each website (each client) to identify the website connected to the answering device 6. Fig. 2 shows the question categories stored in table 12a of site identification key A (an identifier that identifies the website as provided by the web server 4) and the answer messages corresponding to the question categories.

[0022] Similarly, database 12 stores question categories of site identification key B, which is an identifier that identifies a website provided by a specific web server not shown, site identification key C, which is an identifier that identifies a website provided by another web server not shown, etc., as well as answer messages corresponding to the question categories.

[0023] In Figure 2, the question categories for site identification key A are exemplified as follows (1) "Fee", (2) "Trial", (3) "Available device", (4) "Start using", (5) "Tell mail or phone number" ... (n) "Other" (n is a natural number). In addition, the answer messages for each question category are exemplified as follows (1) "Regarding the fee...", (2) "Regarding the trial...", (3) "Available devices...", (4) "You are applying for use, right? We will contact you...", (5) "An operator will contact you later..." ... (n) "We will contact you, so please leave your contact information...".

[0024] The receiving unit 14 receives from the web server 4 (and other web servers not shown) the site identification key A (and B, C, etc.) for identifying the website provided by the web server 4 (and other web servers not shown), as well as text data of messages entered on the chat screen of the website on the terminal 2 (and other terminals connected to other web servers not shown).

[0025] The reading unit 16 sends a first question to the interactive AI app 8 to prompt the user to select which of multiple question categories in the database 12 the message received by the receiving unit 14 corresponds to, receives the question category selected in the interactive AI app 8, and reads the answer message corresponding to the received question category from the database 12.

[0026] For example, when the receiving unit 14 receives a site identification key A and a message M, the reading unit 16 reads the question category of the site identification key A stored in the table 12a of the database 12, and transmits a first question to the interactive AI application 8 asking which question category of the site identification key A the message M corresponds to (matches) with. When the question category selected in the interactive AI application 8 is returned from the interactive AI application 8, an answer message corresponding to the question category selected in the interactive AI application 8 is read from the database 12.

[0027] At this time, the first question is sent to the conversational AI application 8 in a predetermined language (English in this embodiment), and the response from the conversational AI application 8 is also in the predetermined language (English in this embodiment). Specifically, when the message M is "How do I apply?" in a language other than the predetermined language (Japanese in this embodiment), for example, the first question is sent to the conversational AI application 8 as "Which of the following categories does the question "How do I apply?" fall into? Answer short with number only. (1) Fee, (2) Trial, (3) Available device, (4) Application for use, (5) Contact registration... (n) Other."

[0028] The predetermined language is preferably a language that allows the AI ​​(artificial intelligence) of the conversational AI app 8 to easily clarify the intent of the question (due to the characteristics of the language, it is easier to clearly convey the intent of the question in English than in Japanese), and a language in which the AI ​​has been trained (learned) and can obtain a high level of understanding (for example, the native language of the country in which the conversational AI app 8 was developed). In addition, the predetermined language is preferably a language that allows the usage fee for the conversational AI app 8 to be kept low (in the case of pay-as-you-go charging, the first question and the response to the first question are converted into the number of tokens, and charges are based on the number of converted tokens. The number of tokens in English is less than the number of tokens in Japanese).

[0029] The transmitting unit 18 transmits the text data of the reply message read by the reading unit 16 to the web server 4 (and other web servers not shown) as a reply to the message to be displayed on the chat screen of the terminal 2 (and other terminals connected to other web servers not shown).

[0030] The memory unit 20 stores the site identification key and message received by the receiving unit 14, as well as the reply message sent by the sending unit 18 as a reply to the message, in association with the date of transmission and reception, etc. In response to a request from the web server 4 (and other web servers not shown) for the purpose of marketing, etc., the control unit 10 confirms that the web server 4 has the authority to access information including the site identification key, message, reply message, etc. that are linked and stored in the memory unit 20, and then authorizes the web server 4 (and other web servers not shown) to access the information stored in the memory unit 20.

[0031] Some of the answer messages stored in the database 12 include terms that prompt the input of contact information. After the answer message is sent by the sending unit 18, when the receiving unit 14 receives a message including contact information such as a phone number or email address entered on the chat screen of the terminal 2 (and other terminals connected to other web servers not shown), the interactive AI application 8 selects the question category (5) contact information registration (contact information registration category) as the question category corresponding to the message. In this way, when the contact information registration category is selected in the interactive AI application 8, the control unit 10 stores the message in the storage unit 20 together with a signal indicating that the corresponding message includes contact information such as a phone number or email address so that an operator or the like can contact the contact information. In response to a request from web server 4 (and other web servers not shown) intended for an operator to contact a user of terminal 2 (and other terminals connected to other web servers not shown), the control unit 10 verifies that web server 4 (and other web servers not shown) has permission to access a message including contact information stored in memory unit 20, and then grants web server 4 (and other web servers not shown) permission to access the message including contact information stored in memory unit 20.

[0032] Next, with reference to the drawings, a reply method for replying to a message M entered on a chat screen of a terminal 2 using a reply device 6 according to an embodiment will be described. Fig. 3 is a flowchart for explaining a process executed by the reply device 6 to reply to a message M entered on a chat screen of a terminal 2.

[0033] First, a message M is entered into a chat screen of a website displayed on a display unit (not shown) of terminal 2, and the text data of message M is sent from terminal 2 to web server 4. Then, control unit 10 receives site identification key A and the text data of message M from web server 4 via receiving unit 14 (step S1).

[0034] Next, the control unit 10 acquires a question category stored in the database 12 based on the site identification key A received in step S1 (step S2). Specifically, the control unit 10 reads the question category stored in the table 12a of the site identification key A shown in FIG. 2. Then, the control unit 10 transmits a first question to the dialogue AI application 8 to select which of the multiple question categories in the table 12a the message M corresponds to (step S3), and receives a response from the dialogue AI application 8, i.e., the question category selected in the dialogue AI application 8 (step S4). Note that the first question is transmitted to the dialogue AI application 8 in a predetermined language (English in this embodiment), and the response from the dialogue AI application 8 is also in a predetermined language (English in this embodiment).

[0035] Next, the control unit 10 causes the reading unit 16 to read an answer message corresponding to the question category selected by the dialogue AI application 8 from the table 12a of the database 12 (step S5).

[0036] Furthermore, the control unit 10 transmits the answer message corresponding to the question category read in step S5 to the web server 4 via the transmission unit 18 as a reply to the message M to be displayed on the chat screen of the terminal 2 (step S6). Next, the control unit 10 stores the site identification key A and message M received in step S1, and the answer message transmitted in step S6 as a reply to the message M, in association with the transmission and reception dates, etc. (step S7).

[0037] As described above, some of the answer messages sent by the transmission unit 18 include terms that prompt the user to input contact information, and in step S1, a message including contact information such as a phone number or email address may be received. In this case, the interactive AI application 8 selects the question category (5) contact information registration (contact information registration category) as the question category corresponding to the message. In this way, when the contact information registration category is selected in the interactive AI application 8 (step S8: Yes), the control unit 10 determines that the message M includes contact information such as a phone number or email address, and stores the message M in the storage unit 20 as a message including contact information together with a signal indicating that the message M includes contact information (step S9). On the other hand, if the contact information registration category is not selected in the interactive AI application 8 (step S8: No), the control unit 10 does not perform the process of step S8, and ends the process shown in the flowchart of FIG. 3.

[0038] The information stored in step S7 is obtained by the web server 4 accessing the information stored in the storage unit 20 after the control unit 10 has approved that the web server 4 has the authority to access the information stored in the storage unit 20 in response to a request from the web server 4 for the purpose of marketing or the like. Also, the information stored in step S9 (message M including contact information) is obtained by the web server 4 accessing the message M including contact information stored in the storage unit 20 in response to a request from the web server 4 for the purpose of an operator contacting the user of the terminal 2 after the control unit 10 has approved that the web server 4 has the authority to access the message M including contact information stored in the storage unit 20.

[0039] According to this embodiment, the interactive AI application 8 does not directly respond to a message entered on the chat screen, but responds via the answering device 6, so that it is possible to prevent the transmission of an answer containing erroneous information or inappropriate terms in response to the message. In addition, when the interactive AI application 8 responds directly, in order to obtain an accurate answer to the message entered on the chat screen, it is necessary to have the AI ​​respond after conveying knowledge of the product, etc. provided on the website in advance. Specifically, it is necessary to ask the AI ​​a question in a state in which information about the product (product name, product price, etc.) and an instruction to remember the information and then respond are added to the message entered on the chat screen. However, according to the answering device and answering method according to this embodiment, since the interactive AI application 8 selects a question category, it is not necessary to have the AI ​​learn knowledge of the product, etc. provided on the website in advance, and it is possible to obtain a more accurate answer than if the interactive AI application 8 were to respond directly.

[0040] In the above embodiment, if the message does not fall under any of the question categories (1) fee, (2) trial, (3) available devices, (4) application for use, (5) contact registration, ... (n-1) ..., the interactive AI application 8 is configured to select (n) "other". This may be subdivided into, for example, (n1) "small talk", (n2) "meaningless string", and (n3) "other", and a reply message corresponding to each question category may be provided. Specifically, an appropriate chat (fixed text) is provided as a reply message corresponding to chat, and a reply such as "I don't understand the meaning" is provided as a reply message corresponding to a meaningless string. Then, if the message does not fall under any of the categories (1) fee, (2) trial, (3) available devices, (4) application for use, (5) contact registration, ... (n-1) ... (n1) chat, and (n2) meaningless string, the interactive AI application 8 selects (n3) "other".

[0041] In the above embodiment, the case where the dialogue AI app 8 selects one question category for one message has been described as an example, but multiple question categories may be selected for one message. For example, a second question may be sent to the dialogue AI app 8, which selects multiple question categories and asks about the probability of each question category being applicable, and a predetermined number of question categories and the probability of each question category being applicable may be received from the dialogue AI app 8. In this case, the number of question categories to be selected by the dialogue AI app 8 may be specified in the second question, or the number of question categories to be selected may not be specified and an instruction may be given to determine the number of question categories to be selected by the dialogue AI app 8.

[0042] When multiple question categories are selected, the reading unit 16 reads answer messages corresponding to each question category from the database 12, and the sending unit 18 transmits the answer messages corresponding to each question category read by the reading unit 16 so that they are displayed on the chat screen of the terminal 2 in descending order of the probability of being relevant. Specifically, the sending unit 18 transmits "If the question intention is (the answer message with the highest probability of being relevant). Or (the question category with the second highest probability of being relevant), (the answer message with the second highest probability of being relevant)" so that it is displayed on the chat screen of the terminal 2. By answering in this manner, the user of the terminal 2 can be saved from having to ask the question again. [Explanation of symbols]

[0043] 1...system, 2...terminal, 4...web server, 6...response device, 8...interactive AI application, 10...control unit, 12...database, 14...receiving unit, 16...reading unit, 18...transmitting unit, 20...memory unit.

Claims

1. a database that stores a plurality of question categories and answer messages corresponding to each of the plurality of question categories; a receiving unit that receives a message input on a chat screen displayed on a website from a web server that provides the website; a reading unit that transmits a first question to a conversational AI (conversational artificial intelligence) to select which of the multiple question categories in the database the message received by the receiving unit corresponds to, receives the question category selected by the conversational AI, and reads the answer message corresponding to the received question category from the database; a sending unit that sends the reply message read by the reading unit to the web server as a reply to the message to be displayed on the chat screen; A reply device comprising:

2. When two or more of the question categories are selected in the conversational AI, the reading unit transmits a second question to the conversational AI inquiring about the probability of each of the selected question categories being applicable, and receives the probability of application from the conversational AI; The reply device according to claim 1, characterized in that the sending unit sends the reply messages corresponding to each of the two or more question categories read by the reading unit so that they are displayed on the chat screen in order of the probability of relevance.

3. 3. The reply device according to claim 1, further comprising a storage unit that stores the message received by the receiving unit and the reply message transmitted by the transmitting unit as a reply to the message in association with each other.

4. The response device according to claim 1 or 2, characterized in that the reading unit sends the first question to the conversational AI in a predetermined language and receives a reply from the conversational AI in the predetermined language.

5. a receiving step of receiving a message inputted on a chat screen displayed on a website from a web server providing the website; a reading process of transmitting a first question to an interactive AI (interactive artificial intelligence) to select which of a plurality of question categories in a database storing a plurality of question categories and answer messages corresponding to each of the plurality of question categories to which the message received in the receiving process corresponds, receiving the question category selected by the interactive AI, and reading the answer message corresponding to the received question category from the database; a sending step of sending the answer message corresponding to the question category read in the reading step to the web server as an answer to the message to be displayed on the chat screen; A method for answering, comprising:

6. The reading step includes, when two or more of the question categories are selected in the conversational AI, sending a second question to the conversational AI asking about the probability of each of the selected question categories being applicable, and receiving the probability of application from the conversational AI; 6. The answering method according to claim 5, wherein the sending step sends the answer messages corresponding to the two or more question categories read in the reading step so that the answer messages are displayed on the chat screen in order of the probability of being relevant.

7. 7. The reply method according to claim 5, further comprising a storage step of storing the message received in the receiving step and the reply message transmitted in the transmitting step as a reply to the message in association with each other.

8. The response method according to claim 5 or claim 6, characterized in that the reading step includes sending the first question to the conversational AI in a predetermined language and receiving a response from the conversational AI in the predetermined language.

Citation Information

Patent Citations

  • User support system, user support program, and user support method

    JP2018081444A

Cited By

  • AI Self-Improvement Control System

    JP7952493B1