Dialog system
The dialogue system simplifies the integration and use of third-party services by employing an interactive interface and definition bodies, addressing the complexity and cost issues of existing dialogue systems, thereby facilitating easy and cost-effective service incorporation and user-friendly interaction.
Patent Information
- Application Number
- JP2023059775
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-16
AI Technical Summary
The complexity and cost of developing extended applications for third-party services in dialogue systems, such as Alexa's skills, pose a barrier for third parties due to the need for advanced programming and understanding of platform-specific specifications, making it impractical for dialogue system operators to support numerous third-party services.
A dialogue system with an utterance reception unit, interaction processing unit, and an interactive interface that simplifies the integration and use of third-party services by using standardized query statements and definition bodies, allowing seamless interaction between the dialogue system and third-party services.
Enables easy incorporation and use of third-party services by dialogue system operators and users, reducing development costs and complexity, and enhancing user experience through intuitive and readable interaction.
Smart Images

Figure 2024147011000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a technique for providing interactive services. [Background technology]
[0002] In recent years, dialogue systems using chatbots, smart speakers, etc. have been put to practical use. A dialogue system is a system that responds to questions or requests from users in a voice or text-based dialogue format, and is expected to become more widespread in the future because it can be easily used without special IT skills. For example, Amazon's Alexa (registered trademark) is a cloud-based dialogue system that can be used with a smart speaker, and has functions such as music playback and calling in addition to voice dialogue functions such as chatting. Furthermore, it has the extensibility to enable external web services (hereinafter also referred to as "third-party services") to be used via Alexa by installing an extension app called a "skill." Patent Document 1 proposes a method for facilitating access to third-party services via a dialogue system. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2023-017956 A Summary of the Invention [Problem to be solved by the invention]
[0004] Because extension apps such as Alexa's "skills" are computer programs created according to specifications set by the dialogue system operator (platformer), their development requires advanced program development skills and a thorough understanding of the platform operator's specifications, etc. The difficulty and complexity of such app development has been a hurdle for third parties to deploy their own services on platforms centered around dialogue systems.
[0005] It is conceivable that dialogue system providers could develop their own extension apps for third-party services that they want to incorporate into their own platforms, but in that case, they would have to develop the apps individually to match the APIs (Application Programming Interfaces) that each third party defines. It is necessary to create an extended application. Therefore, it is not realistic for dialogue system providers to deal with the numerous third-party services available on the Internet individually, and the development costs are not negligible.
[0006] The present invention has been made in view of the above-mentioned circumstances. From the viewpoint of a dialogue system operator or a third party, it is an object of the present invention to provide a technique for simplifying the incorporation of third-party services into a dialogue system. Also, from the viewpoint of a user of a dialogue system, it is an object of the present invention to provide a technique for simplifying the use of third-party services via a dialogue system. [Means for solving the problem]
[0007] The present invention includes an utterance receiving unit that receives an utterance sentence from a user, a dialogue processing unit that outputs a response sentence to the received utterance sentence to the user, and a definition body storage unit that stores a definition body including a definition of a query statement specification for a third-party service having an interactive interface that returns a return sentence when a query statement is input. The dialogue processing unit includes a determination unit that determines whether the received utterance sentence is an utterance sentence that should be passed to the third-party service, and a determination unit that determines whether the received utterance sentence is an utterance sentence that should be passed to the third-party service. The dialogue system includes an intermediary dialogue unit that, when it is determined that an utterance sentence is an utterance sentence with content to be passed to a third-party service, generates a query sentence from the utterance sentence in accordance with the specifications of the query sentence included in the definition body, sends the query sentence to the third-party service, and generates a reply sentence to the user from a return sentence returned from the third-party service, and a spontaneous dialogue unit that, when it is determined that the received utterance sentence is not an utterance sentence with content to be passed to the third-party service, generates a reply sentence to the utterance sentence by itself.
[0008] The definition storage unit may include a registration unit for additionally registering a definition unit of a new third party service.
[0009] The system may have a corpus generation unit that generates a corpus by collecting specifications of query sentences contained in the definition body registered in the definition body memory unit, and the determination unit may determine that the received utterance sentence is an utterance sentence whose content should be passed on to a third-party service when a query sentence similar to the received utterance sentence exists in the corpus.
[0010] The specification of the query may be defined by a description including variables as part of a sentence in a natural language, and the intermediary dialogue unit may generate the query by replacing the variables with words extracted from the spoken sentence.
[0011] The dialogue processing unit may play back the response sentence generated by the intermediary dialogue unit and the response sentence generated by the spontaneous dialogue unit in the same voice or output them as text in the same writing style on the user's terminal.
[0012] The dialogue processing unit may play back the response sentence generated by the intermediary dialogue unit and the response sentence generated by the spontaneous dialogue unit in different voices or output them as text in different writing styles on the user's terminal.
[0013] The present invention includes an interactive processing method for a third-party service having an interactive interface that returns a return sentence in response to an input of a query sentence, the method comprising the steps of: a step of receiving a user's spoken sentence by a computer storing a definition body including a definition of the query sentence specifications; a step of determining whether the received spoken sentence is a spoken sentence having a content to be passed to a third-party service; a step of generating a query sentence from the spoken sentence in accordance with the query sentence specifications included in the definition body and sending it to the third-party service when it is determined that the received spoken sentence is a spoken sentence having a content to be passed to the third-party service, and generating a reply sentence to the user from the return sentence returned from the third-party service; a step of generating a reply sentence to the spoken sentence by the computer itself when it is determined that the received spoken sentence is not a spoken sentence having a content to be passed to the third-party service; and a step of outputting the generated reply sentence to the user.
[0014] The present invention includes a program for causing a computer storing a definition body including a definition of the specifications of a query statement to execute the following steps for a third-party service having an interactive interface that returns a return statement in response to an input of a query statement: accepting a user's spoken statement in a computer that stores a definition body including a definition of the query statement specifications; determining whether the accepted spoken statement is a spoken statement having a content to be passed to a third-party service; if it is determined that the accepted spoken statement is a spoken statement having a content to be passed to a third-party service, generating a query statement from the spoken statement in accordance with the specifications of the query statement included in the definition body and sending it to the third-party service, and generating a reply statement to the user from the return statement returned by the third-party service; if it is determined that the accepted spoken statement is not a spoken statement having a content to be passed to a third-party service, generating a reply statement to the spoken statement by the computer itself; and outputting the generated reply statement to the user.
[0015] The present invention can be understood as an interactive system, an interactive processing system, a service providing system, a service intermediation system, a platform system, etc., having at least a part of the configurations described above or the configurations described below. The present invention may also be understood as an interactive processing method, an interactive system control method, a service providing method, a service intermediation method, etc., having at least a part of the processes described above or the processes described below. The present invention may also be understood as a program that causes a computer to function as these systems, a program that causes a computer to execute these methods, or a computer-readable storage medium that non-temporarily stores such a program. Effect of the Invention
[0016] According to the present invention, a dialogue system operator or a third party can easily incorporate a third-party service into the dialogue system, and a user of the dialogue system can easily use the third-party service via the dialogue system. [Brief description of the drawings]
[0017] [Figure 1] FIG. 1 is a diagram showing an outline of the configuration of a dialogue system and dialogue services. [Diagram 2] Figure 2A is an example of a definition body for an online food ordering and delivery service, and Figure 2B is an example of a definition body for a plumbing work request service. [Diagram 3] FIG. 3 shows an example of a definition body registration screen. [Figure 4] FIG. 4 is a diagram showing a flow of spontaneous dialogue processing. [Diagram 5] FIG. 5 is a diagram showing a flow of the mediated dialogue process. [Figure 6] FIG. 6 is a diagram showing a flow of determining whether to switch between spontaneous dialogue processing and mediated dialogue processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] (System Configuration) FIG. 1 shows an outline of the configuration of a dialogue system 1 according to an embodiment of the present invention and a dialogue service.
[0019] The dialogue system 1 is a computer system for providing a dialogue service to a user. A user can use the dialogue service by accessing the dialogue system 1 from a user terminal 2 via the Internet. Possible services provided by the dialogue system 1 include, for example, voice dialogue, text dialogue, music playback, radio and podcasts, a scheduler, weather forecasts, video calls and voice calls, message sending, and translation. The dialogue system 1 also has a "service intermediation function" (also called a "service platform function") that mediates between various third-party services.
[0020] A third-party service is a web service provided by an external service provider (third party) different from the provider of the dialogue system 1. There are various third-party services, such as online ordering and delivery of food, e-commerce, construction estimates and requests, home delivery, and online supermarkets. Reference numeral 3 (3a, 3b) in Fig. 1 indicates a service providing server operated by each service provider.
[0021] Users can directly access the service providing server 3 from the user terminal 2 and use the Web services of each company. However, users may not have the opportunity to use Web services for reasons such as not knowing which Web service to choose from the many available, the hassle of registering for a new service, or not even knowing the existence of the Web service. In addition, it is a difficult task for service providers to acquire and attract many users (especially those who are not familiar with the Internet).
[0022] The service intermediary function of dialogue system 1 allows users to register any web service in advance, matches users with web services, recommends web services to users, and sends customers to web services. This has the advantage for users that they can use third-party services as an extension of the dialogue services they normally use, and for service providers that they can attract users of dialogue services as customers of their own services. In addition, for providers of dialogue system 1, it is possible to expand and enhance the functions of the dialogue service, which can benefit them by acquiring more users of the dialogue service and improving customer satisfaction.
[0023] (Dialogue System) The dialogue system 1 has, as its main functions, an utterance reception unit 10, a dialogue processing unit 11, a definition body storage unit 12, a definition body registration unit 13, and a corpus generation unit 14. The utterance reception unit 10 is a function that receives a user's utterance from the user terminal 2. The dialogue processing unit 11 is a function that generates a response sentence to the utterance sentence received from the user and outputs it to the user. The definition body storage unit 12 is a database that stores definition bodies of third-party services. The definition body registration unit 13 is a function that is responsible for registering new definition bodies of third-party services in the definition body storage unit 12. The corpus generation unit 14 is a function that is responsible for generating a query sentence corpus 113 from the definition bodies registered in the definition body storage unit 12. The "definition body" is a framework for simplifying the registration and use of third-party services. A detailed explanation will be given later.
[0024] The dialogue processing unit 11 has a determination unit 110, an intermediary dialogue unit 111, a spontaneous dialogue unit 112, and a query corpus 113. The determination unit 110 has a function of determining whether an utterance received from a user is an utterance that should be passed to a third-party service. The intermediary dialogue unit 111 has a function of generating a reply to the utterance by the user using the function of the third-party service, and the spontaneous dialogue unit 112 has a function of generating a reply by itself (i.e., without using the function of the third-party service) to the user in response to the utterance. In short, the dialogue processing unit 11 adaptively switches between a process of replying by using the function of the third-party service and a process of replying by itself, depending on the content of the utterance by the user. With this mechanism, the user can use the third-party service as if it were one function of the dialogue service.
[0025] The dialogue system 1 can be configured, for example, by a general-purpose computer equipped with a processor (CPU), memory, storage, a communication device, and the like, and the above-mentioned functions are realized by the processor executing a program deployed from the storage to the memory. The dialogue system 1 may be a computer installed locally, or a computer installed on the Internet (cloud). The dialogue system 1 may be configured by a single computer, or may be configured by the cooperation of multiple computers as in distributed computing, or may be dynamically allocated resources as in cloud computing. Alternatively, some or all of the functions provided by the dialogue system 1 may be configured by circuits such as FPGAs and ASICs, or dedicated hardware.
[0026] (User terminal) The user terminal 2 is a computer used by a user. The user terminal 2 is configured with, for example, a processor (CPU), memory, storage, a communication device, a microphone, a speaker, etc., and the functions of the user terminal 2 described below are realized by the processor executing a program expanded from the storage to the memory. Specifically, a smartphone, a tablet terminal, a smart speaker, etc. can be preferably used as the user terminal 2. However, a personal computer, a game device, a home appliance equipped with a computer, a wearable device, or the like may be used as the user terminal 2. The man-machine interface between the user and the user terminal 2 may be voice input / output, or may be a keyboard or a touch panel display. In the following embodiment, a use case in which a dialogue service is used by voice using a smart speaker will be described as an example.
[0027] (Framework for third-party services) Conventional dialogue systems also allow the use of third-party services by installing an extension app. However, as mentioned above, the development of an extension app requires understanding of both the extension app specifications defined by the dialogue system provider and the API specifications of the third-party service, which poses a problem of high development load and cost.
[0028] Therefore, in the dialogue system 1 according to the present embodiment, a "dialogue interface" and a "definition body" are introduced as a framework for simplifying the registration and use of third-party services.
[0029] (1) Interactive Interface The interface when using third-party services from outside (dialogue system 1) is unified into an interactive interface in which a "query statement" is input and a "return statement" is returned. Both the query statement and the return statement may be written in free text in natural language. For example, when a query statement "Deliver curry rice" is sent to a third-party service, the third-party service will reply with the return statement "It will be delivered around 11:30. The fee is 1,200 yen.", making it seem as if a human was having a conversation.
[0030] The adoption of a dialogue-based interface has the following advantages. First, it is easier to develop than conventional program APIs, due to its high readability and intuitiveness, and the high degree of freedom in designing query statements and return statements. Second, the ease of development will encourage third-party companies to support dialogue-based interfaces, leading to the spread of dialogue-based interfaces. Third, by making the exchange between the dialogue system 1 and third-party services dialogue-based, it will be possible to increase the affinity with the dialogue service exchanged between the user and the dialogue system 1 (for example, it is possible to send a question from a user to a third-party service either as is or after processing, and to send a return statement from a third-party service to the user either as is or after processing).
[0031] (2) Definition field The definition body is data that describes how to use a third-party service. For example, the following information is described in the definition body ((*) indicates required information):
[0032] Definition body standard(*): Specifications on which the definition body is based (WSDL, OpenAPI, etc.) Creator(*): Name of the service provider Definition name(*): Name of the service Description(*): Description of the service. Detailed Description: Detailed description of the service · Query(*): Define a query that the service can understand. ·Endpoint(*): Service connection destination (URL, etc.) · Access rights: authentication method, etc. Terms of Use: Conditions for using the service (available time, number of times available, usage fee, etc.)
[0033] Specific examples of definition fields are shown in Figures 2A and 2B. Figure 2A is an example of a definition field for an online food ordering and delivery service, and Figure 2B is an example of a definition field for a plumbing work request service. The "{{...}}" included in the query definition indicates variables. For example, any cuisine name can be substituted for the "{{dish name}}" part shown in the example in Figure 2A, which means that the service can accept queries about any cuisine, such as "order beef bowl," "order ramen," or "order cheeseburger."
[0034] If a service provider wishes to make their service available on the platform of the dialogue system 1, all they need to do to prepare it is to prepare an interactive interface for their service and create and distribute a definition body. The definition body may be distributed in any manner, for example, the definition body may be made public or available for download on the service provider's website, or may be made public or available for download in a directory service that announces third-party services available on the platform of the dialogue system 1. Alternatively, instead of making the definition body public, the service provider may directly provide the data of the definition body to the operator of the dialogue system 1.
[0035] (Register a new service) The procedure for registering a new third-party service in the dialogue system 1 will now be described.
[0036] First, the administrator of the dialogue system 1 obtains a definition body of a third-party service to be newly registered. For example, the definition body data may be downloaded from the website or directory service of the service provider, or the definition body data may be provided by the service provider.
[0037] Next, the administrator uses the definition body registration unit 13 to register the definition body in the dialogue system 1. Specifically, when the administrator activates a new registration function of the definition body registration unit 13 and specifies the definition body to be registered, a definition body registration screen as shown in FIG. 3 is displayed. In the initial state, the definition name, description, detailed description, and usage conditions read from the definition body are displayed on the definition body registration screen. When the administrator changes the description of the definition name, etc. on the definition body registration screen as necessary and then presses the registration button, the information of this definition body is registered in the definition body storage unit 12. The reason why the definition name, description, detailed description, and usage conditions can be modified is that this information is made available to the user as introduction information for third-party services available in the dialogue system 1, so that the description can be modified to be more appropriate as the content to be explained to the user of the dialogue system 1. If no modification is required, the content of the definition body is made available to the user as is.
[0038] When information on a definition body is newly registered in the definition body storage unit 12, the corpus generation unit 14 reads the definition of a query sentence from the definition body, performs natural language processing such as morphological analysis and part-of-speech assignment on each query sentence, and then adds the results to the query sentence corpus 113. The query sentence corpus 113 is a corpus that collects the definitions of query sentences in all definition bodies registered in the definition body storage unit 12, and is used to determine the similarity between a spoken sentence received from a user and a query sentence for a third-party service in the dialogue processing described later.
[0039] (Interactive processing) In the dialogue processing of the dialogue system 1 of this embodiment, depending on the content of the user's utterance, a process of replying on the user's own initiative (also referred to as "spontaneous dialogue processing") and a process of replying using the functions of a third-party service (also referred to as "mediated dialogue processing") are automatically switched.
[0040] Hereinafter, the flow of dialogue processing by the dialogue system 1 will be described with reference to Fig. 4 to Fig. 6. Fig. 4 shows the flow of spontaneous dialogue processing, and Fig. 5 shows the flow of mediated dialogue processing. Fig. 6 shows the flow of switching decision between spontaneous dialogue processing and mediated dialogue processing.
[0041] (1) Spontaneous dialogue processing When the user speaks to the user terminal 2, the user terminal 2 converts the spoken voice into an "utterance sentence" in text data format by speech recognition processing (step S20), and transmits the utterance sentence to the dialogue system 1 via the Internet (step S21). The utterance sentence transmitted from the user terminal 2 is received by the speech receiving unit 10 of the dialogue system 1 (step S10). As an example, it is assumed here that the user utters, "I'm home! I'm hungry."
[0042] The dialogue processing unit 11 determines, by the determination unit 110, whether the utterance received by the utterance receiving unit 10 is a "utterance to be passed to a third-party service" or a "utterance to be responded to by the user" (step S11). Specifically, as shown in Fig. 6, the determination unit 110 searches the query corpus 113 to check whether a query similar to the utterance received from the user exists in the query corpus 113 (step S110).
[0043] The similarity between the utterance and the query can be evaluated using known natural language processing. For example, the distance between the utterance and the query may be evaluated using features such as word vectors. In addition, the similarity may be evaluated in consideration of synonyms and latent meanings by using a thesaurus or latent semantic indexing.
[0044] When a query sentence whose similarity to the uttered sentence exceeds a predetermined threshold is detected from the queries for the third-party services of each company registered in the query sentence corpus 113 (YES in step S111), the determination unit 110 determines that the uttered sentence corresponds to a "speech sentence of contents to be passed to a third-party service" and switches to the mediated dialogue processing mode (FIG. 5) (step S112). On the other hand, when a query sentence whose similarity exceeds the threshold is not detected (NO in step S111), the determination unit 110 determines that the uttered sentence corresponds to a "speech sentence of contents to be responded to by the user" and switches to the spontaneous dialogue processing mode (FIG. 4) (step S113). Assuming that no query sentence similar to the above-mentioned uttered sentence "I'm home! I'm hungry", we return to FIG. 4 and continue the explanation of the spontaneous dialogue processing.
[0045] In the spontaneous dialogue processing mode, the spontaneous dialogue unit 112 generates a response sentence to the spoken sentence by referring to a dialogue dictionary, a dialogue corpus, a scenario, etc. (not shown) (step S16). Well-known natural language processing and AI chatbot technologies can be used to generate the response sentence. For example, the spontaneous dialogue unit 112 understands the content of the utterance sentence and the user's intention through morphological analysis, dependency analysis, phrase structure analysis, semantic analysis, context analysis, etc., and then generates an appropriate response sentence. Here, it is assumed that the response sentence "Welcome back. Is there anything you want to eat?" is generated in response to the spoken sentence "I'm home! I'm hungry."
[0046] The spontaneous dialogue unit 112 transmits the generated response sentence to the user terminal 2 (step S17). When the user terminal 2 receives the response sentence from the dialogue system 1 (step S22), a voice synthesis process is performed and the content of the response sentence is output as voice (step S23). Through the spontaneous dialogue process described above, a conversation or chat between the user and the dialogue system 1 is realized.
[0047] (2) Mediated dialogue processing Next, the flow of the mediated dialogue process will be described with reference to Fig. 5. As an example, it is assumed that the user utters, "I want to eat beef bowl. Order it!"
[0048] The process from receiving an utterance by the utterance receiving unit 10 (step S10) to determining whether the dialogue is spontaneous or mediated by the determining unit 110 (step S11) is the same as that in the case of spontaneous dialogue processing. For example, the above utterance "I want to eat beef bowl. Please order it!" is The query “Order {{food name}}” contained in the definition body of the online ordering and delivery service is hit, and it is determined to be a “spoken sentence with content to be passed to the third-party service” (YES in step S111), and the system switches to the mediated dialogue processing mode (step S112).
[0049] In the intermediary dialogue processing mode, the intermediary dialogue unit 111 generates a query from the utterance sentence according to the specifications of the query detected in step S11 (step S12). In the above example, since the hit query "order {{dish name}}" has specifications including the variable "{{dish name}}", the intermediary dialogue unit 111 generates the query "order beef bowl" by replacing the variable "{{dish name}}" with the word "beef bowl" indicating the dish name extracted from the utterance sentence.
[0050] Next, the intermediary dialogue unit 111 accesses the service providing server 3a of the online ordering and delivery service by referring to the endpoint (connection destination) and access authority (authentication method) of the definition body of the online ordering and delivery service, and sends the inquiry "Order a beef bowl" to the service providing server 3a (step S13). When the service providing server 3a receives the inquiry from the dialogue system 1 (step S30), it generates a return message for the inquiry message (step S31) and returns the return message to the dialogue system 1 (step S32). Here, it is assumed that the return message returned is "A regular serving of beef bowl is 400 yen. It will be delivered around 7 p.m. Would you like to confirm the order?"
[0051] When the mediated dialogue unit 111 receives the return message from the service providing server 3 (step S14), it generates a response message to the user based on the return message (step S15). At this time, the return message may be used as the response message as is, or the return message may be modified in style, document structure, etc. while keeping the meaning of the return message the same.
[0052] The intermediary dialogue unit 111 transmits the generated response text to the user terminal 2 (step S17). When the user terminal 2 receives the response text from the dialogue system 1 (step S22), speech synthesis processing is performed and the content of the response text is output as speech (step S23). Through the above-described intermediary dialogue processing, the user can use the third-party service via the dialogue service.
[0053] The dialogue processing unit 11 of the dialogue system 1 may generate the response sentences so that the response sentences generated in the mediated dialogue processing mode and the response sentences generated in the spontaneous dialogue processing mode are played in the same voice or output as text in the same writing style on the user terminal 2. Outputting the responses in the same voice or writing style makes it difficult to distinguish whether the service is provided by the dialogue system 1 itself or a third-party service, making it possible to seamlessly switch between various services without feeling strange, and giving the user the feeling of using a single dialogue service.
[0054] The dialogue processor 11 of the dialogue system 1 may generate the response sentences so that the response sentences generated in the mediated dialogue processing mode and the spontaneous dialogue processing mode are played in different voices or output in different writing styles on the user terminal 2. By deliberately outputting the response sentences in different voices or writing styles, the user can be made aware of the distinction between a service provided by the dialogue system 1 itself and a third-party service. For example, if the operator of the dialogue system 1 does not have supervisory responsibility for the content or execution of the third-party service, the response sentences in the spontaneous dialogue processing may be output in a female voice and the response sentences in the mediated dialogue processing may be output in a male voice, and so on, to clearly indicate to the user who is responsible for the ongoing exchange by using different voices or writing styles.
[0055] (others) The above embodiment merely describes one application example of the present invention, and the scope of the present invention is not limited to the above embodiment. For example, in the above embodiment, the user terminal 2 converts between voice and text, but voice data may be exchanged between the user terminal 2 and the dialogue system 1. Specifically, the user terminal 2 transmits user's utterance voice data to the dialogue system 1, and the dialogue system 1 converts the voice data into text data. In the reverse case, the dialogue system 1 generates response voice data and transmits it to the user terminal 2, and the user terminal 2 plays the received voice data as it is. Even with such a configuration, a dialogue service similar to that of the above embodiment can be realized. In the above embodiment, an example was described in which the administrator of the dialogue system 1 registers a definition body, but a third party may be allowed to register a definition body of their own service in the dialogue system 1. [Explanation of symbols]
[0056] 1: Dialogue system 2: User terminal 3, 3a, 3b: Service provider server
Claims
1. an utterance receiving unit that receives an utterance sentence from a user; a dialogue processor that outputs a response sentence to the user in response to the received utterance sentence; a definition body storage unit for storing a definition body including a definition of a specification of a query statement for a third-party service having an interactive interface that returns a return statement when a query statement is input; having The dialogue processing unit includes: a determination unit that determines whether the received utterance is an utterance that should be passed to a third-party service; an intermediary dialogue unit that, when it is determined that the received utterance sentence is an utterance sentence with content to be passed to a third-party service, generates a query sentence from the utterance sentence in accordance with a specification of the query sentence included in the definition body, transmits the query sentence to the third-party service, and generates a reply sentence to the user from a return sentence returned from the third-party service; a spontaneous dialogue unit that generates a response sentence to the received utterance when it is determined that the received utterance is not a sentence to be passed to a third-party service; having Dialogue system.
2. A registration unit for additionally registering a definition body of a new third party service in the definition body storage unit, The dialogue system according to claim 1 .
3. a corpus generation unit that generates a corpus by collecting query sentence specifications included in the definition body registered in the definition body storage unit; the determination unit determines that the received utterance sentence is an utterance sentence having content to be passed to a third-party service when a query sentence similar to the received utterance sentence exists in the corpus; The dialogue system according to claim 1 .
4. the query specification is defined by a description including variables as part of a sentence in a natural language; the intermediary dialogue unit generates a query sentence by replacing the variables with words extracted from the spoken sentence; The dialogue system according to claim 1 .
5. the dialogue processing unit reproduces the response sentence generated by the intermediary dialogue unit and the response sentence generated by the spontaneous dialogue unit in the same voice or outputs them as text in the same writing style on the user's terminal; The dialogue system according to claim 1 .
6. the dialogue processing unit reproduces the response sentence generated by the intermediary dialogue unit and the response sentence generated by the spontaneous dialogue unit in different voices or outputs them as texts in different writing styles on the user's terminal; The dialogue system according to claim 1 .
7. A computer stores a definition body including a definition of a specification of a query statement for a third-party service having an interactive interface that returns a return statement when a query statement is input, accepting a user's utterance; Determine whether the received utterance is one that should be passed to a third-party service Steps and generating a query from the utterance in accordance with a query specification included in the definition body when the received utterance is determined to be a utterance to be passed to a third-party service, and sending the query to the third-party service; and generating a response to the user from a return message returned from the third-party service. generating a response to the received utterance when it is determined that the received utterance is not a utterance to be passed to a third-party service; outputting the generated response to the user; The interactive processing method includes:
8. For a third-party service having an interactive interface that returns a return statement when a query statement is input, a definition body including a definition of a query statement specification is stored in a computer, accepting a user's utterance; A step of determining whether the received utterance is an utterance to be passed to a third-party service; generating a query from the utterance in accordance with a query specification included in the definition body when the received utterance is determined to be a utterance to be passed to a third-party service, and sending the query to the third-party service; and generating a response to the user from a return message returned from the third-party service. generating a response to the received utterance when it is determined that the received utterance is not a utterance to be passed to a third-party service; outputting the generated response to the user; A program for executing the above.
Citation Information
Patent Citations
Multimodal interactions between users, automated assistants, and other computing services
JP2023017956A
