Response message display method and apparatus, electronic device, storage medium, and program product
By determining the target data source in the data source selection operation of the target session message and/or the first reply message, and generating and displaying the second reply message, the problem of low accuracy of reply messages in the prior art is solved, and the accuracy of reply messages is improved.
Patent Information
- Application Number
- PCT/CN2025/102777
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-08-30
- Filing Date
- 2025-06-23
- Publication Date
- 2026-03-05
AI Technical Summary
The accuracy of reply messages in existing technologies is low.
The target data source is determined by a data source selection operation in response to the target session message and/or the first reply message, and a second reply message is generated and displayed based on that data source.
It improved the accuracy of replying to messages.
Smart Images

Figure CN2025102777_05032026_PF_FP_ABST
Abstract
Description
Methods, devices, electronic devices, storage media, and program products for displaying reply messages
[0001] Cross-reference to related applications
[0002] This application claims priority to Chinese Patent Application No. 202411216803.0, filed on August 30, 2024, the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0003] This disclosure relates to a method, apparatus, electronic device, storage medium, and program product for displaying reply messages. Background Technology
[0004] Currently, some applications support knowledge-based question-and-answer functionality. For example, users can submit questions, and the application can display a response message. However, the accuracy of the generated response messages in existing technologies is relatively low. Summary of the Invention
[0005] This disclosure provides a method, apparatus, electronic device, storage medium, and program product for displaying reply messages.
[0006] In a first aspect, embodiments of this disclosure provide a method for displaying a reply message, including:
[0007] In response to a data source selection operation corresponding to a target session message and / or a first reply message, a target data source is determined, wherein the first reply message is a message generated based on the received target session message;
[0008] A second reply message is generated and displayed based on the target data source and the target session message.
[0009] Secondly, embodiments of this disclosure also provide a display device for reply messages, including:
[0010] The data source determination module is configured to determine a target data source in response to a data source selection operation corresponding to a target session message and / or a first reply message, wherein the first reply message is a message generated based on the received target session message;
[0011] The first display module is configured to generate and display a second reply message based on the target data source and the target session message.
[0012] Thirdly, embodiments of this disclosure also provide an electronic device, including:
[0013] One or more processors;
[0014] Memory, which stores one or more programs.
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for displaying reply messages as described in the embodiments of this disclosure.
[0016] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for displaying reply messages as described in embodiments of this disclosure.
[0017] Fifthly, embodiments of this disclosure also provide a computer program product that, when executed by a computer, enables the computer to implement the method for displaying reply messages as described in embodiments of this disclosure. Attached Figure Description
[0018] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0019] Figure 1 is a flowchart illustrating a method for displaying reply messages according to an embodiment of this disclosure;
[0020] Figure 2 is a schematic diagram showing a first reply message provided in an embodiment of this disclosure;
[0021] Figure 3 is a schematic diagram showing a second reply message provided in an embodiment of this disclosure;
[0022] Figure 4 is a flowchart illustrating another method for displaying reply messages provided in an embodiment of this disclosure;
[0023] Figure 5 is a structural block diagram of a message display device provided in an embodiment of this disclosure;
[0024] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0025] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0026] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0027] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0028] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0029] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0030] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0031] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0032] Figure 1 is a flowchart illustrating a method for displaying a reply message according to an embodiment of this disclosure. This method can be executed by a reply message display device. For example, the device can be implemented by software and / or hardware and can be configured in an electronic device, such as a mobile phone, tablet computer, or computer. The reply message display method provided in this disclosure is applicable to scenarios where reply messages of conversation messages are displayed, such as scenarios where reply messages of conversation messages are generated and displayed based on a data source selected by the user. As shown in Figure 1, the reply message display method provided in this disclosure may include:
[0033] S101. In response to the data source selection operation corresponding to the target session message and / or the first reply message, determine the target data source, wherein the first reply message is a message generated based on the received target session message.
[0034] For example, a data source selection operation can be a triggered operation used to select the data source to be referenced when generating response content. The execution method of the data source selection operation is not limited here; for example, it can be an operation that triggers a control or performs a swipe gesture, etc.
[0035] The target data source can be understood as the data source selected and confirmed by the data source selection operation. The type of target data source is not limited; for example, a target data source may include, but is not limited to, documents, session messages, platform data, and / or databases. For example, the target data source can be a data source that the current user has viewing permissions for; in other words, the target data source can be selected from various data sources that the current user has viewing permissions for, based on the data source selection operation.
[0036] A target session message can be understood as a received session message associated with a data source selection operation. For example, if a data source selection operation corresponds to a specific session message, the target session message can be that session message. Similarly, if a data source selection operation corresponds to a reply message to a session message, the target session message can be the session message on which the reply message is generated; in other words, the target session message is the session message corresponding to the reply message. The target session message can be a session message to be sent by the current user, or a session message already sent by the current user or another user.
[0037] The target session message can be a session message sent by the current user or a user other than the current user. For example, the current user may perform a data source selection operation corresponding to the target session message before or while sending the target session message, in order to generate a second reply message to the target session message after sending it; and / or, the current user may perform a data source selection operation corresponding to the target session message and / or the first reply message to the target session message after sending it. Alternatively, after receiving a target session message sent by another object, the current user may generate a second reply message to this target session message by performing a data source selection operation corresponding to the target session message and / or the first reply message to the target session message. The current user can be understood as the user who performs the data source selection operation.
[0038] The first reply message can be a response to the target session message. It can be generated based on the received target session message, such as automatically after the target session message is received or based on a trigger action of the current user. When generating the first reply message, at least some data sources can be referenced.
[0039] For example, when a data source selection operation corresponding to a session message (such as a target session message) and / or a reply message to a session message (such as a first reply message) is received, the target data source selected by this data source selection operation can be determined. For example, when this data source selection operation is applied to the data source identifier of a data source, this data source can be used as the target data source.
[0040] In this embodiment of the disclosure, the data source selection operation can correspond to the target session message; or it can correspond to the first reply message of the target session message.
[0041] For example, the target session message can be displayed in the preset session interface, and when the current user performs a data source selection operation corresponding to this target session message, the target data source can be determined in response to this data source selection operation.
[0042] For example, the first reply message of the target session message can be displayed in the preset session interface, and when the current user performs a data source selection operation corresponding to this first reply message, the target data source can be determined in response to this data source selection operation.
[0043] For example, the preset session interface can be the session interface corresponding to the target session message, such as the session interface where the target session message is displayed. The timing of displaying the first reply message of the target session message in the preset session interface is not limited. For example, the first reply message can be generated and displayed immediately after the target session message is displayed; or it can be displayed after receiving a trigger operation instructing the display of the first reply message. For instance, the first reply message can be a reply message of the target session generated and displayed in response to the display of the target session message; or it can be a reply message of the target session message displayed in response to a trigger operation by the current user instructing the display of the first reply message.
[0044] In some implementations, the first reply message may be a reply message to the target session message generated and displayed in response to the display of the target session message. In this case, the method for displaying the session message may further include, for example, displaying the target session message in a preset session interface in response to receiving the target session message; and displaying the first reply message of the target session message in the preset session interface in response to the display of the target session message.
[0045] For example, after receiving a target session message 20 triggered by the current user and / or other users outside the current user's home, the target session message 20 can be displayed in a preset session interface; and in response to the display of the target session message 20, a first reply message 21 of the target session message 20 is generated based on at least a portion of the data source, and the first reply message 21 is displayed in the preset session interface, as shown in Figure 2.
[0046] For example, the first reply message 21 can be displayed in the preset conversation interface as a conversational message; it can also be displayed as a non-conversational message, such as a notification or prompt message. For example, the first reply message 21 can be displayed as a conversational message. The message content of the first reply message 21 may include the first reply content 22 to the target conversational message 20, and may also include data source information 23 of at least some of the data sources referenced when generating the first reply message 21.
[0047] S102. Generate and display a second reply message based on the target data source for the target session message.
[0048] For example, a second response message can be understood as a response message to a target conversation message generated based on the target data source. The second response message can be used to reply to the target conversation message. Exemplarily, the second response message can be used to answer questions contained in the target conversation message, to introduce relevant information about objects mentioned in the target conversation message, or to continue the conversation based on the conversation topic of the target conversation message. In other words, the message content of the second response message can include answers to questions contained in the target conversation message, introductory information about objects mentioned in the target conversation message, or content related to the conversation topic of the target conversation message, etc. Objects contained in the target conversation message can be, for example, places, virtual items, orders, or technology. In some examples, the second response message can be generated through dialogue with an intelligent assistant, chatbot, or virtual contact using artificial intelligence (AI) technology.
[0049] The second response message and the first response message can be different response messages to the target session message. For example, the second response message and the first response message can be response messages generated based on data sources that are not entirely the same. For instance, the second response message can be a response message generated based on a target data source, and the first response message can be a response message generated based on at least one original data source. The target data source can be determined based on the aforementioned data source selection operation; this at least one original data source can be a default data source, or it can be determined based on another data source selection operation different from the aforementioned data source selection operation. This default data source can be one or more pre-set data sources, a data source that matches pre-set data source filtering conditions, or an unfiltered data source associated with the current user, etc.
[0050] In this embodiment of the disclosure, after determining the target data source, a second reply message for the target session message can be generated based on the target data source and displayed.
[0051] When generating a second reply message for a target session message based on a target data source, for example, the data content of the target data source can be analyzed, the reply content of the target session message can be extracted from the data content of the target data source, and a second reply message containing this reply content can be generated.
[0052] After generating the second reply message 30 for the target session message 20, this second reply message 30 can be displayed. For example, this second reply message 30 can be displayed in the preset session interface of the session corresponding to the target session message 20, as shown in Figure 3 (the figure shows the second reply message 30 displayed in the form of a session message as an example).
[0053] For example, the second reply message 30 can be displayed in the conversation interface as a conversational message; it can also be displayed as a non-conversational message, such as a notification or prompt message. For example, the second reply message 30 can be displayed as a conversational message. The message content of the second reply message 30 may include the first reply message 31 in response to the target conversational message 20, and may also include at least part of the target data source information 32, the determination conditions 33 on which the target data source was determined, and / or at least one candidate data source information 34 corresponding to the second reply message 30.
[0054] The data source information contained in the message content of the first reply message and / or the second reply message can be, for example, data source identification information, such as data source name, data source storage location information and / or the session name of the session corresponding to the data source, etc. This data source information can support triggering the display of the data content of the corresponding data source.
[0055] When displaying a reply message to a target session message (such as a first reply message and / or a second reply message), this reply message can be displayed as a sent session message or a session message to be sent. For example, when the reply message is used to reply to a target session message triggered by the current user, the reply message can be displayed as a sent session message, such as displaying the reply message of the target session message in the session message display area of the preset session interface, as shown in Figures 2 and 3. When the reply message is used to reply to a target session message triggered by another user, the reply message can be displayed as a sent session message or an unsent session message, such as displaying the reply message of the target session message in the session message display area or the session message input area of the preset session interface. For example, the session message display area of the preset session interface can be the area in the preset session interface used to display received session messages. These received session messages can include session messages triggered by the current user in the session corresponding to the preset session interface, or session messages triggered by other users in the session corresponding to the preset session interface besides the current user. The session message input area of the preset session interface can be the area in the preset session interface used for users to input the message content of the session message to be sent.
[0056] In this functional implementation, the display method of the second reply message is not limited. For example, generating and displaying the second reply message based on the target data source includes: generating the second reply message based on the target data source and adding the display of the second reply message; or generating the second reply message based on the target data source and switching the display of the first reply message to the second reply message. For example, the second reply message can be added after the first reply message. In this case, both the first and second reply messages can be displayed in the preset session interface; alternatively, the first reply message displayed in the preset session interface can be switched to the second reply message. In this case, the second reply message can be displayed in the preset session interface without the first reply message.
[0057] The method for displaying a reply message provided in this disclosure, in response to a data source selection operation corresponding to a target session message and / or a first reply message, determines a target data source, wherein the first reply message is a message generated based on a received target session message; and a second reply message is generated and displayed based on the target data source. This disclosure utilizes the above technical solution to generate reply messages based on a user-selected data source, thereby improving the accuracy of the generated reply messages.
[0058] Figure 4 is a flowchart illustrating another method for displaying a reply message according to an embodiment of this disclosure. The solution in this embodiment can be combined with one or more optional solutions from the above embodiments. Optionally, before determining the target data source in response to the data source selection operation corresponding to the target session message and / or the first reply message, the method for displaying the reply message further includes: displaying at least one candidate data source information; the determination of the target data source includes: taking the data source that matches the target data source information in the at least one candidate data source information as the target data source, wherein the target data source information is the candidate data source information selected by the data source selection operation.
[0059] For example, as shown in Figure 4, the method for displaying a reply message provided in this embodiment of the disclosure may include:
[0060] S201. Display at least one candidate data source information.
[0061] For example, candidate data source information can be understood as data source information available for the current user to select. Candidate data source information can be pre-set, and each candidate data source information can be used to identify one or more data sources. For example, the candidate data source information includes candidate data source identification information or candidate data source filtering condition information. The candidate data source identification information can be understood as information identifying the data source available for the user to select; this data source identifier is the identification information of the data source, and the identifier of a data source can be used to uniquely identify this data source. The candidate data source filtering condition information can be understood as information on data source filtering conditions available for the user to select. Data source filtering conditions can be used to filter data sources. For example, the filtering conditions can be used to limit the type of target data source and / or viewing time, etc. The candidate data source information corresponding to different messages (such as target session messages, first reply messages, and / or second reply messages, etc.) can be the same or different.
[0062] For example, at least one candidate data source information 24 corresponding to the target session message 20 and / or the first reply message 21 of the target session message 20 can be displayed. For example, at least one candidate data source information 24 can be displayed at a preset position in the preset session interface, at an associated position of the target session message 20, or at an associated position of the first reply message 21 of the target session message 20 (as shown in Figure 2).
[0063] The timing of displaying candidate data source information is not limited in the embodiments of this disclosure. For example, at least one candidate data source information can be displayed before the target session message is sent, so that the current user can pre-set the target data source information that the data source referenced when generating the second reply message of the target session message should have before triggering the sending of the target session message; or at least one candidate data source information can be displayed after the target session message is sent, so that the current user can set the target data source information that the data source referenced when generating the second reply message of the target session message should have after receiving the target session message or triggering the sending of the target session message.
[0064] S202. In response to the data source selection operation corresponding to the target session message and / or the first reply message, the data source that matches the target data source information in the at least one candidate data source information is taken as the target data source, wherein the first reply message is a message generated based on the received target session message, and the target data source information is the candidate data source information selected by the data source selection operation.
[0065] For example, the target data source information is the candidate data source information selected by the data source selection operation from at least one of the aforementioned candidate data source information. There can be one or more target data source information pieces; when there are multiple target data source information pieces, the target data source can be matched with at least one of these multiple target data source information pieces.
[0066] For example, when a data source selection operation is received, the candidate data source information selected by this data source selection operation can be determined from at least one candidate data source information displayed as the target data source information, and the data source that matches this target data source information can be used as the target data source. For example, when the target data source information is data source identification information, the data source identified by the target data source information can be used as the target data source; when the target data source information is data source filtering condition information, data source filtering can be performed based on the target data source information, and the filtered data source can be used as the target data source.
[0067] In some implementations, the data source selection operation can be applied to a displayed candidate data source, meaning that the data source selection operation is determined to have been received when the current user triggers a displayed candidate data source. In this case, the target data source information can be the candidate data source to which the data source selection operation is applied; that is, the candidate data source to which the data source selection operation is applied can be used as the target data source information. In this case, the target data source information is the candidate data source selected by the data source selection operation, for example, it may include: the target data source information is the candidate data source triggered by the data source selection operation.
[0068] In other embodiments, the data source selection operation can act on at least one of the displayed candidate data source information. For example, when the current user triggers a candidate data source information that is currently unselected, the candidate data source information can be switched from unselected to selected; and when the current user triggers a candidate data source information that is currently selected, the candidate data source information can be switched from selected to unselected. Furthermore, when the current user triggers a selection completion control or performs a preset selection completion gesture, it is determined that a data source selection operation has been received. In this case, the target data source information can be a candidate data source information that is currently selected; that is, a candidate data source information that is currently selected can be used as the target data source information. At this time, the target data source information is the candidate data source information selected by the data source selection operation, for example, it can include: the target data source information is a candidate data source information that is currently selected.
[0069] Using candidate data source information as the filtering condition for candidate data sources, and different candidate data source filtering conditions corresponding to different data source types, the data source type may include at least one of document type, session message type, and preset platform data type. For example, when the data source type is document type, the target data source may be one or more documents that the current user has reading permissions for, such as at least some documents that the current user has access to; when the data source type is session message type, the target data source may be session messages that the current user has viewing permissions for, such as session messages in at least some sessions that the current user is in, which may include session messages sent by users other than the current user and / or session messages triggered by the current user; when the data source type is preset platform data type, the target data source may be at least some platform data of the preset platform, such as data stored on the preset platform that the current user has access to. The preset platform may be a platform associated with the current application, such as a service platform associated with the current application, which may include, but is not limited to, a customer service platform. The client of the preset platform and the current application may be the same or different applications. Taking the preset platform as a customer service platform as an example, after the current user receives or triggers the sending of the target session message in the current application, he / she can generate a reply message for the target session message based on at least some of the platform data that he / she has access to in the preset platform.
[0070] S203. Generate and display a second reply message based on the target data source for the target session message.
[0071] For example, after determining the target data source, a second reply message for the target session message can be generated based on the data content of the target data source, and this second reply message can be displayed.
[0072] The method for displaying reply messages provided in this disclosure allows users to select the target data source for generating reply information of the target session message from the displayed candidate data source information. This simplifies the operation required to set the target data source information and improves the accuracy of the generated reply message.
[0073] In some embodiments, the data source selection operation corresponds to the target session message, and displaying at least one candidate data source information includes: displaying at least one candidate data source information corresponding to the target session message in response to a message content input operation for the target session message; or, displaying at least one candidate data source information corresponding to the target session message in response to receiving the target session message; or, displaying at least one candidate data source information corresponding to the target session message in response to a first trigger operation for the received target session message.
[0074] For example, the message content input operation can be a trigger operation that involves entering the message content of the target conversation message in the conversation message input area of the preset conversation interface, such as entering a character or an emoticon image in the conversation message input area of the preset conversation interface. The first trigger operation can be a trigger operation used to indicate the display of candidate data source information corresponding to the target conversation message, such as hovering the input indicator (such as the cursor) at the display position of the target conversation message or clicking the target conversation message, etc.
[0075] In this embodiment of the disclosure, at least one candidate data source information corresponding to the target session message can be displayed to the user before the target session message is sent. For example, when a message content input operation is received in a preset session interface, if there is input message content in the session message input area of the preset session interface, this message content can be used as at least part of the message content of the target session message to be sent, and at least one candidate data source information corresponding to the target session message can be displayed so that the current user can perform a data source selection operation based on this at least one candidate data source information.
[0076] It is understandable that when there is input message content in the conversation message input area of the preset conversation interface, at least one candidate data source information may not be automatically displayed. For example, at least one candidate data source information may be displayed only when an operation to display data source information for the input message content in the conversation message input area is received. The specific settings can be configured as needed.
[0077] In this embodiment of the disclosure, at least one candidate data source information corresponding to the target session message can also be automatically displayed upon receiving the target session message. For example, after receiving a target session message sent by a user other than the current user, or after receiving a target session message triggered by the current user, the target session message can be displayed in the session message display area of the preset session interface. When or after displaying the target session message, at least one candidate data source information corresponding to the target session message can be automatically displayed in the preset session interface, so that the current user can perform a data source selection operation based on the at least one candidate data source information.
[0078] In this embodiment of the disclosure, at least one candidate data source information corresponding to the target session message may not be automatically displayed after the target session message is received. For example, after the target session message is received, the target session message may be displayed in the session message display area of the preset session interface, and after the first trigger operation for the target session message is received, at least one candidate data source information corresponding to the target session message may be displayed in the preset session interface.
[0079] For cases where at least one candidate data source corresponding to a target session message is displayed before the target session message is sent, the target session message may not be sent upon receiving a data source selection operation corresponding to the target session message to be sent. Instead, the target session message may be sent only after receiving a send operation for the target session message. For example, upon receiving a data source selection operation corresponding to the target session message, the target data source information selected by the data source selection operation may be determined; in response to the send operation for the target session message, the target session message may be sent; and in response to the completion of the target session message sending, or in response to a preset trigger operation for the sent target session message, a second reply message for the target session message may be generated based on the target data source information matching the target data source information, and this second reply message may be displayed.
[0080] For cases where at least one candidate data source corresponding to the target session message is displayed before the target session message is sent, the target session message can also be sent further upon receiving a data source selection operation corresponding to the target session message to be sent. For example, upon receiving a data source selection operation corresponding to the target session message, the target session message can be sent and displayed in the session message display area of a preset session interface, and the target data source information selected by this data source selection operation can be determined; and, in response to the completion of sending the target session message, or in response to a preset trigger operation for the sent target session message, a second reply message for the target session message is generated based on the target data source information matching the target data source information, and this second reply message is displayed. In this case, the data source selection operation, in addition to indicating confirmation of the target data source information, can also be further used to indicate the sending of the target session message. For example, the data source selection operation includes a sending operation for the target session message; for example, the data source selection operation can include an operation that triggers a sending control after the message content of the target session message has been entered.
[0081] In some embodiments, the data source selection operation corresponds to the first reply message, which is displayed in a preset session interface. Displaying at least one candidate data source information includes: displaying at least one candidate data source information in the first reply message; or, in response to the display of the first reply message, displaying at least one candidate data source information corresponding to the first reply message; or, in response to a second triggering operation on the first reply message, displaying at least one candidate data source information corresponding to the first reply message.
[0082] For example, the second triggering operation can be a triggering operation used to indicate the display of candidate data source information corresponding to the first reply message, such as hovering an input indicator (such as a cursor) at the display position of the first reply message or clicking the first reply message, etc.
[0083] In this embodiment of the disclosure, the message content of the first reply message 21 may include at least one candidate data source information 24 corresponding to the first reply message 21, as shown in FIG2. Therefore, at least one candidate data source information 24 corresponding to the first reply message 21 can be displayed in the first reply message 21.
[0084] In this embodiment of the disclosure, at least one candidate data source information corresponding to the first reply message can also be automatically displayed after the first reply message is received. For example, after receiving the first reply message, the first reply message can be displayed in the session message display area of the preset session interface. When or after displaying the first reply message, at least one candidate data source information corresponding to the first reply message can be automatically displayed in the preset session interface so that the current user can perform a data source selection operation based on the at least one candidate data source information.
[0085] In this embodiment, after receiving the first reply message, at least one candidate data source information corresponding to the first reply message may not be automatically displayed. For example, after receiving the first reply message, the first reply message may be displayed in the session message display area of the preset session interface, and after receiving the second trigger operation for the first reply message, at least one candidate data source information corresponding to the first reply message may be displayed in the preset session interface.
[0086] In some examples, taking a knowledge-based question-and-answer scenario as an example, a current user can ask a question to an AI-powered intelligent assistant, chatbot, or virtual contact within a conversational interface (i.e., a preset conversational interface). For instance, the current user can trigger the sending of a target conversational message 20 containing the question they wish to ask within the conversational interface. After the current user sends the target conversational message 20, the intelligent assistant, chatbot, or virtual contact can generate an answer to the question contained in the target conversational message 20 based on multi-party data (such as conversational messages, documents, or preset platform data). For example, it can generate a first reply message 21 for the target conversational message 20 based on the original data source matched by multiple data sources, and can display this first reply message 21 in the conversational interface as a conversational message, as shown in Figure 2.
[0087] Please continue to refer to Figure 2. The first reply message 21 may contain the answer to the question contained in the target session message 20 (i.e., the first reply content 22) and at least one candidate data source information 24 corresponding to the first reply message 21. It may also contain data source information 23 of at least part of the original data source on which the first reply content 22 was based.
[0088] Therefore, when it is detected that the current user triggers a candidate data source information 24, it can be determined that a data source selection operation corresponding to the first reply message 21 has been received. In response to this data source selection operation, the candidate data source information is used as the target data source information. Based on the target data source information, the second reply message 30 of the target session message 20 is obtained and displayed, as shown in Figure 3.
[0089] For example, as shown in Figure 2, the preset session interface can display candidate data source information 24 such as "View only document data", "View only session data", "View only preset platform data" and "Documents I have recently viewed".
[0090] Therefore, when the current user triggers the "View only document data" option displayed in the preset session interface, a second reply message for the target session message can be generated based on documents that the current user has reading permissions for, as shown in Figure 3. This document can be a document within the current application and / or a document within an associated application of the current application, such as an online document.
[0091] When the current user triggers the "View only session data" option displayed in the preset session interface, a second reply message for the target session message can be generated based on at least one session message received and / or triggered to be sent by the current user. This at least one session message can be a session message within at least one session in which the current user is located, and this at least one session can include sessions within the current application and / or sessions within associated applications of the current application, etc.
[0092] When the current user triggers the "Only view preset platform data" option displayed in the preset session interface, a second reply message for the target session message can be generated based on the data content stored in the preset platform that the current user has access to.
[0093] When the system detects that the current user has triggered the "Recently Viewed Documents" section displayed in the preset session interface, a second reply message to the target session message can be generated based on the documents the current user has viewed within the recent preset time period. Documents viewed by the current user within the recent preset time period can include, for example, online documents and / or local documents viewed by the current user within the recent preset time period. This preset time period is not limited; it can be set to one day, one week, or one month, etc.
[0094] This improves the correlation between the data source used to generate response messages and the target session messages, thereby increasing the accuracy of the generated response messages.
[0095] Figure 5 is a structural block diagram of a reply message display device provided in an embodiment of this disclosure. This device can be implemented by software and / or hardware, and can be configured in an electronic device, such as a mobile phone, tablet computer, or computer. It can display reply messages of conversation messages by executing a reply message display method, such as generating and displaying reply messages of conversation messages based on a data source selected by the user. As shown in Figure 5, the reply message display device provided in this embodiment may include:
[0096] The data source determination module 501 is configured to determine a target data source in response to a data source selection operation corresponding to a target session message and / or a first reply message, wherein the first reply message is a message generated based on the received target session message;
[0097] The first display module 502 is configured to generate and display a second reply message of the target session message based on the target data source.
[0098] The reply message display device provided in this disclosure embodiment determines the target data source through a data source determination module in response to a data source selection operation corresponding to the target session message and / or the first reply message. The first reply message is a message generated based on the received target session message. A second reply message is generated and displayed based on the target session message through a first display module. This disclosure embodiment utilizes the above technical solution to generate reply messages based on the data source selected by the user, thereby improving the accuracy of the generated reply messages.
[0099] In some embodiments of this disclosure, the display device for the reply message may further include: a second display module configured to display at least one candidate data source information before determining the target data source in response to the data source selection operation corresponding to the target session message and / or the first reply message; the data source determination module 501 may be specifically configured to: take the data source that matches the target data source information in the at least one candidate data source information as the target data source, wherein the target data source information is the candidate data source information selected by the data source selection operation.
[0100] In some embodiments of this disclosure, the target data source information is candidate data source information selected by the data source selection operation, including: the target data source information is candidate data source information triggered by the data source selection operation; or, the target data source information is candidate data source information in a selected state.
[0101] In some embodiments of this disclosure, the data source selection operation corresponds to the target session message, and the second display module may be specifically configured to: display at least one candidate data source information corresponding to the target session message in response to a message content input operation for the target session message; or, display at least one candidate data source information corresponding to the target session message in response to receiving the target session message; or, display at least one candidate data source information corresponding to the target session message in response to a first trigger operation for the received target session message.
[0102] In some embodiments of this disclosure, the data source selection operation corresponds to the first reply message, which is displayed in a preset session interface. The second display module may be specifically configured to: display at least one candidate data source information in the first reply message; or, in response to the display of the first reply message, display at least one candidate data source information corresponding to the first reply message; or, in response to a second triggering operation on the first reply message, display at least one candidate data source information corresponding to the first reply message.
[0103] In some embodiments of this disclosure, the candidate data source information includes candidate data source identification information or candidate data source filtering condition information.
[0104] In some embodiments of this disclosure, the display device for the reply message may further include: a third display module configured to display the target session message in a preset session interface in response to receiving the target session message; and a fourth display module configured to display a first reply message of the target session message in the preset session interface in response to the display of the target session message.
[0105] In some embodiments of this disclosure, the first display module 502 may be specifically configured to: generate a second reply message for the target session message based on the target data source, and add the display of the second reply message; or, generate a second reply message for the target session message based on the target data source, and switch the display of the first reply message to the second reply message.
[0106] In some embodiments of this disclosure, the first reply message and / or the second reply message are displayed in the form of a session message.
[0107] The reply message display device provided in this disclosure can execute the reply message display method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the reply message display method. Technical details not described in detail in this embodiment can be found in the reply message display method provided in any embodiment of this disclosure.
[0108] Referring now to FIG6, a schematic diagram of the structure of an electronic device (e.g., a terminal device) 600 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG6 is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present disclosure.
[0109] As shown in Figure 6, the electronic device 600 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the electronic device 600. The processing unit 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0110] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 6 illustrates electronic device 600 with various devices, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0111] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the methods of embodiments of this disclosure.
[0112] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0113] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0114] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0115] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: determine a target data source in response to a data source selection operation corresponding to a target session message and / or a first reply message, wherein the first reply message is a message generated based on the received target session message; and generate and display a second reply message based on the target data source.
[0116] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0117] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0118] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of modules do not, in some cases, constitute a limitation on the unit itself.
[0119] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0120] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0121] According to one or more embodiments of this disclosure, Example 1 provides a method for displaying a reply message, including:
[0122] In response to a data source selection operation corresponding to a target session message and / or a first reply message, a target data source is determined, wherein the first reply message is a message generated based on the received target session message;
[0123] A second reply message is generated and displayed based on the target data source and the target session message.
[0124] According to one or more embodiments of this disclosure, Example 2, based on the method described in Example 1, further includes, before determining the target data source in response to a data source selection operation corresponding to the target session message and / or the first reply message, the method for displaying the reply message:
[0125] Display information from at least one candidate data source;
[0126] The determination of the target data source includes:
[0127] The data source that matches the target data source information in the at least one candidate data source information is taken as the target data source information, where the target data source information is the candidate data source information selected by the data source selection operation.
[0128] According to one or more embodiments of this disclosure, Example 3 describes the method according to Example 2, wherein the target data source information is candidate data source information selected by the data source selection operation, including:
[0129] The target data source information is the candidate data source information triggered by the data source selection operation; or
[0130] The target data source information is candidate data source information that is currently selected.
[0131] According to one or more embodiments of this disclosure, Example 4 describes the method according to Example 2, wherein the data source selection operation corresponds to the target session message, and the display of at least one candidate data source information includes:
[0132] In response to a message content input operation for a target session message, display at least one candidate data source information corresponding to the target session message; or
[0133] In response to receiving a target session message, display at least one candidate data source information corresponding to the target session message; or
[0134] In response to a first triggering operation for a received target session message, at least one candidate data source information corresponding to the target session message is displayed.
[0135] According to one or more embodiments of this disclosure, Example 5 describes the method described in Example 2, wherein the data source selection operation corresponds to the first reply message, the first reply message is displayed in a preset session interface, and the display of at least one candidate data source information includes:
[0136] The first response message should display at least one candidate data source; or
[0137] In response to the display of the first reply message, at least one candidate data source information corresponding to the first reply message is displayed; or
[0138] In response to a second triggering operation on the first reply message, at least one candidate data source information corresponding to the first reply message is displayed.
[0139] According to one or more embodiments of this disclosure, Example 6 describes the method according to Example 2, wherein the candidate data source information includes candidate data source identification information or candidate data source filtering condition information.
[0140] According to one or more embodiments of this disclosure, Example 7, based on the method described in Example 1, further includes:
[0141] In response to receiving a target session message, the target session message is displayed in a preset session interface;
[0142] In response to the display of the target session message, a first reply message to the target session message is displayed in the preset session interface.
[0143] According to one or more embodiments of this disclosure, Example 8, based on any one of Examples 1-7, the generation and display of the second response message based on the target data source of the target session message includes:
[0144] A second reply message is generated based on the target data source to the target session message, and the second reply message is displayed; or
[0145] A second reply message is generated based on the target data source to represent the target session message, and the first reply message is switched to be displayed as the second reply message.
[0146] According to one or more embodiments of this disclosure, Example 9, based on any one of Examples 1-7, displays the first reply message and / or the second reply message in the form of a session message. According to one or more embodiments of this disclosure, Example 10 provides a reply message display device, comprising:
[0147] The data source determination module is configured to determine a target data source in response to a data source selection operation corresponding to a target session message and / or a first reply message, wherein the first reply message is a message generated based on the received target session message;
[0148] The first display module is configured to generate and display a second reply message based on the target data source and the target session message.
[0149] According to one or more embodiments of this disclosure, Example 11 provides an electronic device, including:
[0150] One or more processors;
[0151] Memory, which stores one or more programs.
[0152] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for displaying reply messages as described in any of Examples 1-9.
[0153] According to one or more embodiments of the present disclosure, Example 12 provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements a method for displaying a reply message as described in any of Examples 1-9.
[0154] According to one or more embodiments of this disclosure, Example 13 provides a computer program product that, when executed by a computer, causes the computer to implement a method for displaying a reply message as described in any of Examples 1-9.
[0155] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0156] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0157] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for displaying a reply message, comprising: In response to a data source selection operation corresponding to a target session message and / or a first reply message, a target data source is determined, wherein the first reply message is a message generated based on the received target session message; A second reply message is generated and displayed based on the target data source and the target session message.
2. The method according to claim 1, wherein, Before determining the target data source in response to the data source selection operation corresponding to the target session message and / or the first reply message, the method further includes: Display information from at least one candidate data source; Determine the target data source, including: The data source that matches the target data source information in the at least one candidate data source information is taken as the target data source, and the target data source information is the candidate data source information selected by the data source selection operation.
3. The method according to claim 2, wherein, The target data source information is the candidate data source information selected by the data source selection operation, including: The target data source information is the candidate data source information triggered by the data source selection operation; or The target data source information is candidate data source information that is currently selected.
4. The method according to claim 2 or 3, wherein, The data source selection operation corresponds to the target session message, and the display of at least one candidate data source information includes: In response to a message content input operation for the target session message, at least one candidate data source information corresponding to the target session message is displayed; or In response to receiving the target session message, display at least one candidate data source information corresponding to the target session message; or In response to a first triggering operation for the received target session message, at least one candidate data source information corresponding to the target session message is displayed.
5. The method according to claim 2 or 3, wherein, The data source selection operation corresponds to the first reply message, which is displayed in a preset session interface. Displaying at least one candidate data source includes: Display at least one candidate data source information in the first response message; or In response to the display of the first reply message, at least one candidate data source information corresponding to the first reply message is displayed; or In response to a second triggering operation on the first reply message, at least one candidate data source information corresponding to the first reply message is displayed.
6. The method according to any one of claims 2-5, wherein, The candidate data source information includes candidate data source identification information or candidate data source filtering condition information.
7. The method according to any one of claims 1-6, further comprising: In response to receiving the target session message, the target session message is displayed in a preset session interface; In response to the display of the target session message, a first reply message to the target session message is displayed in the preset session interface.
8. The method according to any one of claims 1-7, wherein, The second reply message, which generates and displays the target session message based on the target data source, includes: A second reply message is generated based on the target data source to the target session message, and the second reply message is displayed; or A second reply message is generated based on the target data source to represent the target session message, and the first reply message is switched to be displayed as the second reply message.
9. The method according to any one of claims 1-8, wherein, The first reply message and / or the second reply message are displayed in the form of a session message.
10. A display device for replying to messages, comprising: The data source determination module is configured to determine a target data source in response to a data source selection operation corresponding to a target session message and / or a first reply message, wherein the first reply message is a message generated based on the received target session message; The first display module is configured to generate and display a second reply message based on the target data source and the target session message.
11. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method for displaying a reply message as described in any one of claims 1-9.
12. A computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the processor to execute the method for displaying the reply message as described in any one of claims 1-9.
13. A computer program product comprising a computer program, wherein, When the computer program is executed by the processor, it implements the method for displaying the reply message as described in any one of claims 1-9.
Citation Information
Patent Citations
Message processing method, device and equipment and computer storage medium
CN112003778A
Medical data query method and device and terminal
CN112988789A
Data query method and device and electronic equipment
CN116450920A
Display method and device of reply message, electronic equipment, storage medium and program product
CN118972358A
Peripheral specific selection of automated response messages
US20140342762A1