Message processing method and device, equipment and storage medium
By receiving session messages in the interaction between the user and the digital assistant and determining the processing results using the model, the reply message is presented based on the message presentation mode of the interactive channel, the problem of poor interaction experience in the prior art is solved, and the content and interaction channel are realized Matching improves the accuracy and efficiency of the interactive experience.
Patent Information
- Application Number
- CN202311570265.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-11-08
- Filing Date
- 2023-11-22
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2043-11-22
AI Technical Summary
In the interaction between users and digital assistants, the prior art cannot effectively match the interaction form and user needs, resulting in poor interaction experience. The machine learning model needs to learn content presentation patterns of different interaction channels, affecting the focus of content generation.
By receiving the user's session message, the model determines the processing results to match the target content that is required by the user, and based on the message presentation mode corresponding to the received interactive channel, the digital assistant's reply message is presented in the interactive channel, avoiding the model's need to learn and Consider message presentation modes for different interactive channels.
It improves the interactive experience between users and digital assistants, ensures that the content is presented in a manner that is adapted to the interaction channels used by users, focuses on providing content that matches user needs, and improves the accuracy and efficiency of the interactive experience.
Smart Images

Figure CN119011520A_ABST
Abstract
Description
[0001] Related Applications
[0002] This application claims priority to the Chinese invention patent application entitled “Method, apparatus, device and storage medium for message processing” and application number 202311485106.0, filed on November 8, 2023. The entire contents of this application are incorporated by reference into this application. Technical Field
[0003] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and computer-readable storage media for message processing. Background Art
[0004] With the development of information technology, various terminal devices can provide various services to people in work and life. Applications that provide services can be deployed in terminal devices. The terminal device presents the corresponding content and interacts with the user through the user interface of the application to meet the various needs of the user. Therefore, a rich application interaction interface is an important means to improve the user experience. The terminal device or application can provide the user with digital assistant functions to assist the user in using the terminal device or application. How to provide services to the user in a way that matches the form of interaction between the user and the digital assistant is a technical issue to be explored at present. Summary of the invention
[0005] In a first aspect of the present disclosure, a message processing method is provided. The method comprises: receiving a conversation message from a user to a digital assistant in an interaction between a user and a digital assistant; determining a processing result for the conversation message using a model, the processing result indicating target content matching a user demand corresponding to the conversation message; and presenting a reply message from the digital assistant to the conversation message in the interaction channel based on a first message presentation mode corresponding to an interaction channel in which the conversation message is received, the reply message presenting at least a portion of the target content.
[0006] In a second aspect of the present disclosure, a device for message processing is provided. The device includes: a message receiving module, configured to receive a user's conversation message for a digital assistant in the interaction between the user and the digital assistant; a result determination module, configured to use a model to determine a processing result for the conversation message, the processing result indicating a target content that matches the user's demand corresponding to the conversation message; and a message presentation module, configured to present a reply message of the digital assistant for the conversation message in the interaction channel based on a first message presentation mode corresponding to the interaction channel in which the conversation message is received, the reply message showing at least a part of the target content.
[0007] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the electronic device executes the method of the first aspect.
[0008] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the medium, and when the computer program is executed by a processor, the method of the first aspect is implemented.
[0009] It should be understood that the content described in this section is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0011] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;
[0012] Figure 2 A schematic diagram showing a layered architecture for processing messages according to some embodiments of the present disclosure is shown;
[0013] Figure 3 An example process of converting a markup language into a card language according to some embodiments of the present disclosure is shown;
[0014] Figure 4 A flowchart showing a process for message processing according to some embodiments of the present disclosure is shown;
[0015] Figure 5 A schematic structural block diagram of an apparatus for message processing according to some embodiments of the present disclosure is shown; and
[0016] Figure 6 A block diagram of an electronic device in which one or more embodiments of the present disclosure may be implemented is shown. DETAILED DESCRIPTION
[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0019] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
[0020] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0021] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.
[0022] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.
[0023] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.
[0024] It is understandable that the above notification and the process of obtaining user authorization are only illustrative and do not limit the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure. The activation of the digital assistant related functions, the acquired data, the processing and storage of the data, etc. in the embodiment of the present disclosure shall obtain the prior authorization of the user and other rights holders associated with the user, and shall comply with the relevant laws and regulations and the agreement rules between the rights holders.
[0025] As used herein, the term "model" can learn the association between the corresponding input and output from the training data, so that after the training is completed, the corresponding output can be generated for a given input. The generation of the model can be based on machine learning technology. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multi-layer processing units. A neural network model is an example of a model based on deep learning. In this article, "model" may also be referred to as "machine learning model", "learning model", "machine learning network" or "learning network", and these terms are used interchangeably in this article.
[0026] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. The environment 100 involves an application creation platform 110 and an application execution platform 140.
[0027] like Figure 1 As shown, the application creation platform 110 can provide a user 105 with an environment for creating and publishing applications. User 105 can be referred to as an application creation user or creator. In some embodiments, the application creation platform 110 can be a low-code platform that provides a collection of tools for application creation. The application creation platform 110 can support visual development of various types of applications, allowing developers to skip the manual coding process and speed up the application development cycle and cost. The application creation platform 110 can support any appropriate platform for users to develop one or more types of applications, and may include, for example, a platform based on Application Platform as a Service (aPaaS). Such a platform can support users to efficiently develop applications and implement operations such as application creation and application function adjustment.
[0028] The application creation platform 110 may be deployed locally on the terminal device of the user 105, and / or may be supported by a server-side device. For example, the terminal device of the user 105 may run a client of the application creation platform 110, which may support the interaction between the user and the application creation platform 110 provided by the server. In the case where the application creation platform 110 runs locally on the user's terminal device, the user 105 may directly interact with the local application creation platform 110 using the terminal device. In the case where the application creation platform 110 runs on the server-side device, the server-side device may provide services to the client running in the terminal device based on the communication connection with the terminal device. The application creation platform 110 may present a corresponding page 130 to the user 105 based on the operation of the user 105, so as to output information related to application creation to the user 105 and / or receive information from the user 105.
[0029] In some embodiments, the application creation platform 110 may be associated with a corresponding database, which stores data or information required for the application creation process supported by the application creation platform 110. For example, the database may store codes and description information corresponding to the various functional modules that constitute the application. The application creation platform 110 may also perform operations such as calling, adding, deleting, and updating the functional modules in the database. The database may also store operations that can be performed on different functional blocks. Exemplarily, in a scenario where an application is to be created, the application creation platform 110 may call the corresponding functional blocks from the database to build the application.
[0030] In an embodiment of the present disclosure, a user 105 can create a target application 120 as needed on an application creation platform 110 and publish the target application 120. The target application 120 can be published to any appropriate application runtime platform 140, as long as the application runtime platform 140 can support the operation of the target application 120. After publishing, the target application 120 can be used to be operated by one or more users 145. The user 145 can be referred to as an end user of the target application 120. In some embodiments, the target application 120 may include or be implemented as a digital assistant 122.
[0031] The digital assistant 122 may be configured to have an intelligent conversation. Figure 1In the example shown, the digital assistant 122 can be integrated into the target application 120 to assist in performing task processing within the target application 120 as part of the target application 120. In other examples, the digital assistant 122 can be configured as an independently running application, such as a web application or other types of applications. In such an example, the digital assistant 122 and the target application 120 can be regarded as the same application. The digital assistant 122 is provided to assist users with various task processing requirements in different applications and scenarios. During the interaction with the digital assistant 122, the user inputs an interactive message, and the digital assistant 122 provides a reply message in response to the user input. Typically, the digital assistant 122 can support users to input questions in natural language, and perform tasks and provide replies based on the understanding of natural language input and logical reasoning ability.
[0032] In some embodiments, digital assistant 122 can interact with user 145 as a contact. For example, digital assistant 122 can be implemented in an instant messaging (IM) application. Digital assistant 122 can interact with user 145 in a single chat session with user 145. In some embodiments, digital assistant 122 can interact with multiple users in a group chat session including multiple users.
[0033] For each user 145, the client of the application running platform 140 can present an interactive window 142 of the target application 120 or the digital assistant 122 in the client interface, such as a conversation window with the digital assistant 122. The user 145 can enter a conversation message in the conversation window, and the target application 120 can determine the reply message of the digital assistant 122 based on the created configuration information and present it to the user in the interactive window 142. In some embodiments, depending on the configuration of the target application 120, the interactive message with the target application 120 may include a message in a multimodal form, such as a text message (e.g., a natural language text), a voice message, an image message, a video message, and the like.
[0034] Similar to the application creation platform 110, the application operation platform 140 can be deployed locally on the terminal device of each user 145, and / or can be supported by a server-side device. For example, the terminal device of the user 145 can run a client of the application operation platform 140, which can support the interaction between the user and the application operation platform 140 provided by the server. In the case where the application operation platform 140 runs locally on the user's terminal device, the user 145 can directly use the terminal device to interact with the local application operation platform 140. In the case where the application operation platform 140 runs on the server-side device, the server-side device can realize the service supply to the client running in the terminal device based on the communication connection with the terminal device. The application operation platform 140 can present the corresponding application page to the user 145 based on the operation of the user 145, so as to output and / or receive information related to the use of the application to the user 145 and / or from the user 145.
[0035] In some embodiments, the implementation of at least part of the functions of the target application 120 and / or the implementation of at least part of the functions of the digital assistant 122 in the target application 120 can be implemented based on the model. During the creation or operation of the target application 120, one or more models 155, such as the capabilities of the model 155, can be called. In the target application 120, the digital assistant 122 can use the model 155 to understand the user input and provide a reply to the user based on the output of the model 155.
[0036] During the creation process, the application creation platform 110 needs to use the model 155 to determine whether the operation result of the target application 120 meets expectations when testing the target application 120. During the operation process, in response to different operation requests of the user of the target application 120, the application operation platform 140 may need to use the model 155 to determine the response result to the user.
[0037] Although shown as being independent of the application creation platform 110 and the application runtime platform 140, one or more models 155 may run on the application creation platform 110 and / or the application runtime platform 140, or other remote servers. In some embodiments, the model 155 may be a machine learning model, a deep learning model, a learning model, a neural network, etc. In some embodiments, the model may be based on a language model (LM). The language model can have question-answering capabilities by learning from a large amount of corpus. The model 155 may also be based on other appropriate models.
[0038] The application creation platform 110 and / or the application running platform 140 can be run on appropriate electronic devices. The electronic device here can be any type of device with computing capabilities, including terminal devices or server devices. The terminal device can be any type of mobile terminal, fixed terminal or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, gaming devices, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. The server device can include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. In some embodiments, the application creation platform 110 and / or the application running platform 140 can be implemented based on cloud services.
[0039] It should be understood that the structure and functionality of environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure. Figure 1 A single user interacting with the application creation platform 110 and a single user interacting with the application execution platform 140 are shown, but in fact multiple users can access the application creation platform 110 to each create a digital assistant, and each digital assistant can be used to interact with multiple users.
[0040] Conventionally, when digital assistants use machine learning models to provide responses to user conversation messages, they do not distinguish the interaction channel through which the user interacts with the digital assistant. In this case, the content provided by the machine learning model does not distinguish the interaction channel, and the content is not presented to the user in a form that is suitable for the interaction channel. This results in a poor interaction experience with the digital assistant under different interaction channels.
[0041] On the other hand, if the content provided by the machine learning model is expected to be adapted to different interactive channels, the machine learning model needs to learn the content presentation modes of different interactive channels, which will prevent the machine learning model from focusing on content generation.
[0042] To this end, a scheme for message processing is provided according to an embodiment of the present disclosure. According to various embodiments of the present disclosure, in the interaction between a user and a digital assistant, a conversation message of the user to the digital assistant is received. A processing result for the conversation message is determined using a model, and the processing result indicates target content that matches the user demand corresponding to the conversation message. Based on a message presentation mode corresponding to an interaction channel in which the conversation message is received, a reply message of the digital assistant to the conversation message is presented in the interaction channel, and the reply message displays at least a portion of the target content.
[0043] In various embodiments of the present disclosure, the model does not need to learn and consider the message presentation modes of different interaction channels, but can focus on providing content that matches the user's needs. In this way, it is possible to provide users with accurate content that meets their needs and the presentation of the content is adapted to the interaction channel used by the user. As a result, the user's interaction experience with the digital assistant can be improved.
[0044] The following further describes exemplary embodiments of the present disclosure with reference to the accompanying drawings. In the following examples, for the sake of discussion, the description is made from the perspective of the application running platform, for example Figure 1 The application execution platform 140 is shown. The page presented by the application execution platform 140 can be presented via the terminal device of the user 145, and the user input can be received via the terminal device of the user 145.
[0045] Figure 2 FIG. 2 is a schematic diagram of a layered architecture 200 for processing messages according to some embodiments of the present disclosure. Figure 2 As shown, the application creation platform 110 may be deployed with a skill editor 211, and may implement various suitable types of data operations 212, such as data analysis functions, data update functions, and knowledge question and answer functions. Thus, a digital assistant may be created through the application creation platform 110. The digital assistant may utilize the data operations 212 to provide services to the user 145.
[0046] The application runtime platform 240 may include an application server 241 to support the functions of the application and / or the digital assistant. The application runtime platform 240 may provide and support different interaction channels between the user and the digital assistant, such as interaction channels 210-1, 210-2, 210-3, which are also collectively or individually referred to as interaction channels 210. It should be understood that Figure 2 The number of interaction channels shown is exemplary only and is not intended to limit the scope of the present disclosure. The application execution platform 240 can be considered as an example implementation of the application execution platform 140 .
[0047] In some embodiments, the digital assistant can be triggered for interaction in multiple interaction channels. These interaction channels have respective message presentation modes and support respective computer languages. In some embodiments, the message presentation modes of the respective interaction channels can be based on the respective conversational user interface (CUI) capabilities of the interaction channels.
[0048] The interaction channel may refer to the interaction form, interaction mode, and interaction interface between the user and the digital assistant. For example, the interaction channel may be an interaction via an IM application or component, in which the interaction messages between the user and the digital assistant are usually presented in the form of messages. As another example, the interaction channel may be an interaction via a web interface, in which the interaction messages between the user and the digital assistant may be presented in the form of rich media. As another example, for interactions via IM applications or components, there may also be different interaction channels, for example, one interaction channel supports text-type interaction messages, while another channel supports messages in the form of cards. Messages in the form of cards can not only display text, but also other forms of content, such as charts, forms, controls, and the like.
[0049] In the interaction between the user and the digital assistant, the application running platform 240 can receive the user's conversation message for the digital assistant. The conversation message can be received through any interaction channel 210 and can correspond to the user's needs. For example, the user can ask the digital assistant a question in the conversation window of the IM application. For another example, the user can ask the digital assistant a question via a web interface in a web page.
[0050] In order to provide a reply to the user, the application running platform 240 can use the model 155 to determine the processing result for the conversation message. The processing result indicates the target content that matches the user's needs. For example, the conversation message may indicate that data analysis is performed on one or more data tables, and accordingly, the target content indicated by the processing result may be the result of the data analysis.
[0051] Exemplarily, the application execution platform 240 may generate prompt words based on the user's conversation message and send the prompt words to the model service 250. The model service 250 may call any suitable model, such as the model 155. The model service 250 may include a dialogue service 251, a feedback service 252, a skill service 253, and a skill runtime 255. Accordingly, the model service 250 may utilize one or more of these components to generate a processing result. It should be understood that Figure 2 For exemplary purposes only, although the model service 250 is shown separately from the application execution platform 240 , it should be understood that in some embodiments, the model service 250 may be a part of the application execution platform 240 .
[0052] In the embodiments of the present disclosure, the generated processing result may indicate the target content and the overall presentation form of the target content without indicating a specific presentation style. For example, the processing result may indicate that data is presented in a form without indicating a specific style of the form, such as row and column width, shading, font, etc.
[0053] After receiving the processing result from the model service 250, the application running platform 240 (e.g., the application server 241) can convert the processing result into a message presentation style corresponding to the interactive channel that received the conversation message. In some embodiments, in order to present the reply message, the application running platform 240 can determine the interactive channel that received the conversation message from multiple interactive channels. Then, the reply message can be presented based on the message presentation mode corresponding to the interactive channel. For example, if the interactive channel only supports text, the presented reply message displays the target content in text form. For another example, if the interactive channel supports charts, the presented reply message can display the target content in the form of charts. Further, the specific presentation styles of different interactive channels may also be different.
[0054] In some embodiments, the interaction channel that receives the conversation message may support a first computer language, such as a first domain specific language (DSL), and the processing result may be represented in a second computer language, such as a second DSL. In this case, the processing result may be converted from the second computer language into description information in the first computer language. Then, the reply message may be presented based on the description information. Different interaction channels may support the same or different computer languages. Regardless of which computer languages these interaction channels support, the model 155 may return the processing result in the second computer language without adapting to or considering the distinction between different computer languages.
[0055] In some embodiments, the model 155 may be trained based on the second computer language. Exemplarily, the training of the model 155 may include prompt learning. For example, information associated with the second computer language may be added to the prompt words and input into the model 155 together. This enables the model 155 to generate feedback based on the second computer language. That is, the model 155 does not need to consider the differences in message presentation styles of different interaction channels, but can use a universal language. That is, the model can focus on the generation of content.
[0056] The second computer language utilized by the model 155 may be any suitable machine-readable language. In some embodiments, the second computer language may be a markup language.
[0057] In this embodiment, through a layered architecture design (for example, the model feeds back the second computer language, and then configures the first computer language according to the interactive channel through which the conversation message is received), the content output by the model is differentiated by interactive channel (for example, the source of the conversation message) for differential presentation. Thus, it is more suitable for the presentation form supported by the terminal user.
[0058] Certain interactive channels can support presenting the digital assistant's reply messages to users in a rich interactive message-bearing manner (e.g., message cards). Traditionally, if you need to use message cards, you need to assemble the card JavaScript object notation (JSON) according to the card development protocol. Because JSON involves both data and style, it becomes difficult or the style is uncontrollable for the machine learning model to directly generate the card JSON. To this end, in some embodiments of the present disclosure, a computer language that is easy for the model to understand and learn can be designed for card messages, also known as a card language. Figure 3 An example architecture 300 for converting between a card language and a markup language of a model is shown.
[0059] The architecture 300 may include a design specification 301 for a card language, which may specify a presentation style for a card message. The presentation style may define the elements in the card and their styles, such as size, color, etc. For example, for a form, the design specification 301 may indicate styles associated with columns, such as column width, alignment, text font of a header, shading of a header, etc. The design specification 301 may also indicate styles associated with rows, such as row width, text font of a header, shading of a header, etc.
[0060] At block 310, the model may learn a markup language. The model's learning of the markup language may be prompt learning, as described above with reference to Figure 2 as described; it may also be supervised learning, etc. The embodiments of the present disclosure are not limited in this respect. Then, for example, the model service may generate a markup language 320 that matches the user requirement 302. The user requirement 302 corresponds to a conversation message from the user 145. Then, in box 330, the application running platform 240 (e.g., the application server 241) may convert the markup language 320 into a card language 303 according to the design specification 301. Then, the application running platform 240 may render the message card according to the card language 303.
[0061] In some embodiments, the message card can support the presentation of content in the form of data statistics, such as charts, forms, etc. Accordingly, the card language can describe the presentation style of the content in the form of data statistics. For example, the card language can describe the layout and properties of the form, and / or the properties (e.g., color, size) of various elements in the chart (e.g., bar charts, pie charts, line charts), etc.
[0062] The message presentation mode supported by the interactive channel may include predefined presentation styles for data statistics, such as presentation styles for charts and forms. In this way, the application running platform 240 can convert the markup language returned by the model into the card language according to the presentation style, and render the content described in the card language accordingly on the client device.
[0063] In some embodiments, such a predefined presentation style may also correspond to the type of client device. For example, the presentation style corresponding to the mobile client may not be used for the presentation style corresponding to the PC terminal. That is, in this embodiment, for the case of client devices from the same interaction channel but different types, the specific style of the message card presented may be different.
[0064] In this embodiment, messages can be flexibly displayed to end users according to the interaction situation. At the same time, this flexible display method does not bring additional load to the model. This is also conducive to the model focusing on content generation to provide users with more accurate results.
[0065] Figure 4 FIG. 4 is a flowchart of a process 500 for message processing according to some embodiments of the present disclosure. The process 400 may be implemented at the application execution platform 140. Figure 1 Process 400 is described.
[0066] In box 410, during the interaction between the user and the digital assistant, the application execution platform 140 receives a conversation message from the user to the digital assistant.
[0067] In block 420 , the application execution platform 140 determines a processing result for the conversation message using the model, where the processing result indicates target content that matches the user demand corresponding to the conversation message.
[0068] In box 430, the application running platform 140 presents a reply message of the digital assistant to the conversation message in the interaction channel based on the first message presentation mode corresponding to the interaction channel through which the conversation message was received, and the reply message displays at least a portion of the target content.
[0069] In some embodiments, the processing result is expressed in a second computer language, and wherein presenting a reply message of the digital assistant to the conversation message includes: determining a first computer language supported by the interaction channel based on the first message presentation mode; converting the processing result from the second computer language into descriptive information in the first computer language; and presenting the reply message based on the descriptive information.
[0070] In some embodiments, the model is trained based on a second computer language.
[0071] In some embodiments, the second computer language comprises a markup language.
[0072] In some embodiments, the digital assistant can be triggered for interaction in multiple interaction channels, and wherein the multiple interaction channels have respective message presentation modes and support respective computer languages.
[0073] In some embodiments, presenting a reply message of the digital assistant to a conversation message includes: determining an interaction channel in which the conversation message is received from a plurality of interaction channels; and presenting, in the interaction channel, the reply message of the digital assistant to the conversation message based on a first message presentation mode corresponding to the determined interaction channel.
[0074] In some embodiments, the message presentation mode of each of the multiple interaction channels is based on the CUI capabilities of each of the multiple interaction channels.
[0075] In some embodiments, the processing result indicates that the target content is presented in a target data statistical form, and presenting a reply message of the digital assistant to the conversation message in the interaction channel includes: determining a presentation style predefined for the target data statistical form in the first message presentation mode; and presenting the target content in the reply message according to the presentation style.
[0076] In some embodiments, the target data statistical form includes at least one of the following: a chart type, or a form type.
[0077] Figure 5 A schematic structural block diagram of an apparatus 500 for message processing according to some embodiments of the present disclosure is shown. The apparatus 500 may be implemented in or included in the application execution platform 140, for example. Each module / component in the apparatus 500 may be implemented by hardware, software, firmware, or any combination thereof.
[0078] As shown in the figure, the device 500 includes a message receiving module 510, which is configured to receive a conversation message from a user to the digital assistant during the interaction between the user and the digital assistant.
[0079] The device 500 further includes a result determination module 520 configured to determine a processing result for the conversation message using the model, wherein the processing result indicates target content that matches the user demand corresponding to the conversation message. The device 500 further includes a message presentation module 530 configured to present a reply message of the digital assistant to the conversation message in the interaction channel based on a first message presentation mode corresponding to the interaction channel in which the conversation message is received, wherein the reply message displays at least a portion of the target content.
[0080] In some embodiments, the processing result is expressed in a second computer language, and the message presentation module 530 is further configured to: determine a first computer language supported by the interaction channel based on the first message presentation mode; convert the processing result from the second computer language into descriptive information in the first computer language; and present a reply message based on the descriptive information.
[0081] In some embodiments, the model is trained based on a second computer language.
[0082] In some embodiments, the second computer language comprises a markup language.
[0083] In some embodiments, the digital assistant can be triggered for interaction in multiple interaction channels, and wherein the multiple interaction channels have respective message presentation modes and support respective computer languages.
[0084] In some embodiments, the message presentation module 530 is further configured to: determine the interaction channel in which the conversation message is received from multiple interaction channels; and present a reply message of the digital assistant to the conversation message in the interaction channel based on a first message presentation mode corresponding to the determined interaction channel.
[0085] In some embodiments, the message presentation mode of each of the plurality of interaction channels is based on a conversational user interface (CUI) capability of each of the plurality of interaction channels.
[0086] In some embodiments, the processing result indicates that the target content is presented in a target data statistical form, and the message presentation module 530 is further configured to: determine a presentation style predefined for the target data statistical form in the first message presentation mode; and present the target content in the reply message according to the presentation style.
[0087] In some embodiments, the target data statistical form includes at least one of the following: a chart type, or a form type.
[0088] Figure 6 1 shows a block diagram of an electronic device 600 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 6 The electronic device 600 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 6 The electronic device 600 shown may include or be implemented as Figure 1 application execution platform 140, or Figure 5 Device 500.
[0089] like Figure 6As shown, the electronic device 600 is in the form of a general electronic device. The components of the electronic device 600 may include, but are not limited to, one or more processors or processing units 610, a memory 620, a storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. The processing unit 610 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 620. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 600.
[0090] The electronic device 600 typically includes a plurality of computer storage media. Such media may be any accessible media that is accessible to the electronic device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 620 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 630 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data and may be accessed within the electronic device 600.
[0091] The electronic device 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 6 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 620 may include a computer program product 625 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0092] The communication unit 640 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 600 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 600 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0093] The input device 650 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 660 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 600 may also communicate with one or more external devices (not shown) through the communication unit 640 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 600, or communicate with any device that allows the electronic device 600 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0094] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0095] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0096] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0097] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0098] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0099] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A message processing method, include: In the interaction between a user and a digital assistant, receiving a conversation message from the user to the digital assistant; Determining a processing result for the conversation message using a model, wherein the processing result indicates target content that matches a user demand corresponding to the conversation message; as well as Based on a first message presentation mode corresponding to the interaction channel through which the conversation message is received, a reply message of the digital assistant to the conversation message is presented in the interaction channel, wherein the reply message displays at least a portion of the target content.
2. The method according to claim 1, wherein the processing result is represented in a second computer language, and wherein a reply message of the digital assistant to the conversation message is presented include: Determining a first computer language supported by the interaction channel based on the first message presentation mode; converting the processing result from the second computer language into description information in the first computer language; and Based on the description information, the reply message is presented.
3. The method according to claim 2, wherein the model is trained based on the second computer language.
4. The method of claim 2, wherein the second computer language comprises a markup language.
5. The method according to claim 1, wherein the digital assistant can be triggered for interaction in multiple interaction channels, and wherein the multiple interaction channels have respective message presentation modes and support respective computer languages.
6. The method according to claim 5, wherein a reply message of the digital assistant to the conversation message is presented include: Determining the interaction channel that receives the conversation message from the multiple interaction channels; as well as Based on a first message presentation mode corresponding to the determined interaction channel, presenting the reply message of the digital assistant to the conversation message in the interaction channel.
7. The method of claim 1, wherein the message presentation mode of each of the plurality of interaction channels is determined based on a conversational user interface (CUI) capability of each of the plurality of interaction channels.
8. The method according to claim 1, wherein the processing result indicates that the target content is presented in the form of target data statistics, and a reply message of the digital assistant to the conversation message is presented in the interaction channel. include: Determining a predefined presentation style for the target data statistical form in the first message presentation mode; as well as The target content is presented in the reply message according to the presentation style.
9. The method according to claim 8, wherein the target data statistical form includes at least one of the following: The chart type, or The form type.
10. A device for creating a digital assistant, include: A message receiving module, configured to receive a conversation message from the user to the digital assistant during the interaction between the user and the digital assistant; A result determination module is configured to determine a processing result for the conversation message using a model, wherein the processing result indicates a target content that matches a user demand corresponding to the conversation message; as well as A message presentation module is configured to present a reply message of the digital assistant to the conversation message in the interaction channel based on a first message presentation mode corresponding to the interaction channel through which the conversation message is received, wherein the reply message displays at least a portion of the target content.
11. An electronic device, include: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 9 when executed by the at least one processing unit.
12. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Intelligent automated assistant
CN102792320A
Message processing method and device
CN115412523A
Session message presentation method and device, equipment and storage medium
CN115567471A
Same-robot conversation control method and device, computer equipment and storage medium
CN115757748A
Natural language understanding method based on concept network
CN115859955A
