Interaction method, device and electronic device

By integrating the search function and the intelligent reply function, the intelligent assistant generates reply information based on the search information and results, solving the problem of users filtering in multiple search results, and improving the efficiency and accuracy of information acquisition.

CN119003708BActive Publication Date: 2025-08-29BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311154275.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-07
Publication Date
2025-08-29
Estimated Expiration
2043-09-07

AI Technical Summary

Technical Problem

In the prior art, search engines and intelligent question-and-answer robots operate independently, resulting in users needing to filter multiple search results one by one to obtain useful information. The intelligent assistant generates reply information inefficiently and contains a lot of noise.

Method used

Integrate search function and intelligent reply function, the intelligent assistant generates reply information based on search information and results, and displays it in the conversation card. By integrating search results, it improves the matching degree and generation efficiency of reply information.

Benefits of technology

It realizes providing users with replies that match the intention, improves the efficiency and accuracy of information acquisition, reduces noise, and enhances the readability of replies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003708B_ABST
    Figure CN119003708B_ABST
Patent Text Reader

Abstract

The disclosed embodiments provide an interactive method, apparatus, and electronic device, the method comprising: receiving first search information input by a user on a first page, obtaining at least one search result corresponding to the first search information; in response to determining that a question-and-answer reply message needs to be generated based on the first search information, transmitting the search result to an intelligent assistant, and obtaining a first reply message generated by the intelligent assistant based on the at least one search result; and displaying a conversation card on the first page, and streaming the first reply message within the conversation card. This method integrates search and intelligent reply functions to provide users with reply messages that match their intent based on the input search information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of computers and artificial intelligence technologies, and more particularly to an interaction method, device, and electronic device. Background Art

[0002] Typically, a user can obtain multiple search results through a search, and the user can browse through the multiple search results and obtain useful information from them.

[0003] In addition, users can also initiate conversations with intelligent robots and interact with them. Summary of the Invention

[0004] Embodiments of the present disclosure provide an interaction method, device, and electronic device.

[0005] In a first aspect, an embodiment of the present disclosure provides an interaction method, which includes: receiving first search information, obtaining at least one search result corresponding to the first search information; obtaining first reply information generated by an intelligent assistant based on the first search information and / or the at least one search result; displaying a dialogue card, and displaying the first reply information in the dialogue card.

[0006] In a second aspect, an embodiment of the present disclosure provides an interactive device, comprising: a receiving unit for receiving first search information and obtaining at least one search result corresponding to the first search information; a generating unit for obtaining first reply information generated by an intelligent assistant based on the first search information and / or the at least one search result; and a display unit for displaying a dialogue card, displaying the first reply information in the dialogue card.

[0007] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the first aspect above and various possible methods involved in the first aspect.

[0008] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the first aspect and various possible methods involved in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the first aspect and various methods that may be involved in the first aspect.

[0010] The interactive method, device and electronic device provided in this embodiment receive first search information, obtain at least one search result corresponding to the first search information; obtain first reply information generated by the intelligent assistant based on the first search information and / or the at least one search result; display a dialogue card, and display the first reply information in the dialogue card, thereby realizing the integration of search function and intelligent reply function, and providing the user with reply information that matches the user's intention based on the input search information.

[0011] Furthermore, in some optional implementations, when the intelligent assistant generates reply information based on the search results and the first search information, it can further refine, summarize, and process the search results based on the search intent of the first search information, so that the reply information generated by the intelligent assistant is more readable and the user can obtain information more efficiently. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0013] Figure 1 Schematic flow of the interactive method provided by the present disclosure Figure 1 ;

[0014] Figure 2 This is a schematic diagram of an application scenario;

[0015] Figure 3 This is a schematic diagram of another application scenario;

[0016] Figure 4 Schematic flow of the interactive method provided by the present disclosure Figure 2 ;

[0017] Figure 5 This is a schematic diagram of an application scenario;

[0018] Figure 6 Schematic flow of the interactive method provided by the present disclosure Figure 3 ;

[0019] Figure 7 This is a schematic diagram of an application scenario;

[0020] Figure 8 A structural block diagram of the interactive device provided by the present disclosure;

[0021] Figure 9A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0022] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0023] The essence of a search engine is to retrieve the most valuable information from available online resources based on a user's request. For complex sentences containing multiple keywords, the search engine doesn't know which piece of information the user is looking for, and will instead offer multiple answers, requiring the user to sift through them one by one.

[0024] Intelligent Q&A robots (such as smart assistants) use natural language processing and deep learning to engage in real-time conversations with users, accurately identifying the knowledge visitors need to answer questions. Through interaction, they provide personalized information services. Intelligent Q&A robots can segment, search, match, and score sentences, identify user intent, and provide question-and-answer responses.

[0025] Typically, search engines and intelligent question-and-answer bots operate independently. Users can search for multiple results on the search engine and ask questions to the intelligent assistant to receive a response. In some scenarios, users may need to enter search information and receive a response from the intelligent assistant based on the search information.

[0026] The solution provided by this disclosure combines search functionality with smart reply functionality. The smart assistant determines a first reply based on the search information and / or search results, and displays it in a conversation card. By integrating search and smart reply functionality, the smart assistant provides users with a reply that matches their intent based on the input search information. Furthermore, when the smart assistant generates a reply based on the search results and the first search information, it determines the search information based on the search results, improving the efficiency and accuracy of reply generation.

[0027] Please refer to Figure 1 , which shows a schematic flow of the interactive method provided by the present disclosure Figure 1 .like Figure 1 As shown, the method includes:

[0028] S101: Receive first search information, and obtain at least one search result corresponding to the first search information.

[0029] The execution subject of this embodiment can be a client running in a terminal device. It can also be a server that provides services to the client. The client can be an application client or a web client. The client supports a search function.

[0030] The client display interface may provide a search entry in which the user may enter the first search information.

[0031] The first search information here may be search information inputted using text, voice, etc. The first search information includes text, characters, or pictures, etc.

[0032] After receiving the first search information, the execution subject of the above-mentioned interaction method can search locally or in other electronic devices.

[0033] For example, the first search information is matched with the local text library. At least one search result matching the first search information is determined based on the matching degree. Schematically, if part of the content in a document matches the search information, the part is used as the search result.

[0034] For another example, the execution entity may use the first search information to search in a network to obtain at least one search result from the Internet.

[0035] S102: Obtain first reply information generated by the intelligent assistant based on the first search information and / or at least one search result.

[0036] After obtaining the at least one search result, the execution entity sends the at least one search result and the at least one search result to the intelligent assistant. The intelligent assistant processes the first search information and / or the at least one search result to generate a first reply message. In one application scenario, the intelligent assistant can be integrated into the client in which the user enters the first search information.

[0037] In some application scenarios, the intelligent assistant can analyze and process the first search information to generate a first reply message. In these application scenarios, if it is determined that the correlation between the at least one search result and the first search information is small, the intelligent assistant can process only the first search information to generate the first reply message. Schematically, the first search information is "project plan writing template", and the search results include online document writing templates. The intelligent assistant can deem that the search results have little relevance to the first search information. The intelligent assistant can generate the first reply information based on the first search information, for example, by inputting the first search information into a natural language processing model, and the natural language processing model generates the first reply information, for example, generating a project plan writing template. After generating the first reply information, the natural language processing model can send the first reply information to the intelligent assistant.

[0038] In some application scenarios, the intelligent assistant may process the first search information and at least one search result to obtain a first reply message. As an implementation method, the intelligent assistant sends the first search information and at least one search result to a natural language processing model. The natural language processing model analyzes and processes the at least one search result and the first search information, and generates a first reply message corresponding to the first search information based on the at least one search result. The natural language processing model may feed back the first reply message to the execution entity via the intelligent assistant.

[0039] In some embodiments, the above-mentioned step S102 includes: in response to determining that question-and-answer reply information needs to be generated according to the first search information, obtaining first reply information generated by the intelligent assistant based on the first search information and at least one search result.

[0040] In these embodiments, the execution entity may determine whether it is necessary to generate question-and-answer reply information based on the first search information.

[0041] The question-and-answer reply information here refers to generating a unique reply message similar to the form of a conversation between people.

[0042] In some application scenarios, the execution entity may determine whether a question-and-answer response message needs to be generated for the search information based on preset rules. For example, when the length of the search information is less than a preset text length, it may be determined that the search information does not need to generate a question-and-answer response message. Alternatively, when question words appear in the search information and the length of the search information is greater than a preset text length, it may be determined that the search information needs to generate a question-and-answer response message. The question words include: "what," "how," "how," and "how."

[0043] The above-mentioned execution entity can call the above-mentioned intelligent assistant through the preset interface.

[0044] After calling the above-mentioned intelligent assistant, the above-mentioned execution entity can send the above-mentioned at least one search result and the first search information to the intelligent assistant, so that the intelligent assistant can generate a first reply information based on the first search information and / or at least one search result.

[0045] The intelligent assistant can send the first reply information to the above-mentioned execution entity.

[0046] S103: Display the conversation card, and display the first reply information in the conversation card.

[0047] The execution entity may display a conversation card. After receiving the first reply information from the intelligent assistant, the first reply information may be displayed. For example, the first reply information may be displayed in a streaming manner. The streaming display of the first reply information may include: displaying the first reply information corresponding to the first search information word by word until the first reply information is fully displayed.

[0048] Please combine Figure 2 and Figure 3 , Figure 2 A schematic diagram of an application scenario. Figure 3 This is another application scenario diagram. Figure 2 As shown, the user enters the first search information in the search window of the interface 201 displaying the search window. Schematically, the first search information entered is as follows: Figure 2 The execution subject determines whether the user's intention is to obtain multiple search results or to obtain question-and-answer reply information based on the first search information. When the execution subject determines that the user's intention is to obtain question-and-answer reply information based on the first search information, the dialogue card 301 can be displayed in the interface 201, such as Figure 3 After the execution subject obtains the first reply information from the intelligent assistant, the first reply information can be displayed in the dialogue card 301. Figure 3 The first reply message 303 is displayed. The letter "X" in the figure can represent any text, letter or symbol.

[0049] like Figure 3 As shown, the above-mentioned dialogue card 301 includes the following contents: reply information source 302 (such as Figure 3 ), the body content 303 of the first reply message, the referenced content 304 of the first reply message (which may be the content referenced by the smart assistant in generating the first reply message), the first control 305 (used to open the conversation interaction area), the feedback entry 306 (including the first feedback control and the second feedback control), the stop / start control (such as Figure 3The body content 303 is the detailed content of the first reply message. The reference content may include: "Text 1", "Text 2", "Text 3", etc. The first control 305 is used to open the conversation interaction area.

[0050] Through the above description of the source of the first reply information, the user can understand the source of the first reply information, for example, it comes from the assistant.

[0051] By displaying the body content of the first reply message, the user can understand the specific content of the first reply message.

[0052] The displayed reference content may be associated with a link to a reference content details page, and the user may perform a trigger operation on the reference content associated with the link, thereby opening the reference content details page through the link.

[0053] Feedback can be provided on whether the displayed first reply information meets the user's requirements through the feedback entry. Specifically, the feedback entry may include a first feedback control indicating that the first reply information meets the user's requirements, and a second feedback control indicating that the first reply information does not meet the user's requirements.

[0054] During the process from receiving the first search information input by the user to determining that question-and-answer reply information is required to the completion of displaying the first reply information, a dialogue card 301 may be displayed, and a stop control 307 indicating to stop generating the first reply information may be displayed in the dialogue card 301.

[0055] When the user has entered the first search information but the first reply information is not displayed in the conversation card, the user can trigger the stop control 307. After receiving the trigger operation of the stop control 307, the execution entity can send an instruction to the intelligent assistant to stop generating reply information. After receiving the instruction, the intelligent assistant stops generating the first reply information.

[0056] If the execution subject receives a user trigger operation on the stop control 307 during the display of the first reply information, the execution subject may retain the display of the first reply information that has been displayed and stop displaying the remaining first reply information that has not been displayed. If the remaining first reply information has not yet been generated by the intelligent assistant, an instruction to stop further generating the remaining first reply information is sent to the intelligent assistant. After receiving the above instruction, the intelligent assistant stops further generating the remaining first reply information.

[0057] After the first reply message stops displaying or has finished displaying, the execution entity may display a start control in the conversation card for initiating the regeneration of the reply message. The user may trigger the start control. Upon receiving the trigger, the execution entity may send an instruction to the intelligent assistant to regenerate the first reply message.

[0058] In some embodiments, information of the at least one search result is also displayed.

[0059] In these embodiments, the execution entity may further display information of the at least one search result on a display interface of the client. The displayed search result information may include a search result identifier, partial content of the search result, and / or a link to the search result.

[0060] like Figure 3 In the example, information about the at least one search result may be displayed below the conversation card 301. The information about the at least one search result may include, for example, information about search result 1, search result 2, and search result 3. Taking the information about search result 1 as an example, the information about search result 1 may include, for example, an identifier for search result 1 and partial content of the search result. The identifier for the search result and / or the partial content may also be associated with a link to the details page for search result 1.

[0061] By displaying at least one search result below the conversation card, the user can understand what search results are available, making it easier for the user to browse the search results.

[0062] The conversation card 301 is set at the top of the client display interface. The first reply message can be displayed in a streaming manner in the conversation card. As the content of the first reply message gradually increases, the upper border of the conversation card remains unchanged and the lower border moves downward, so that the height of the conversation card increases with the increase of the reply content.

[0063] When the user scrolls up the first page by sliding, the conversation card scrolls upward along with the sliding operation. While scrolling, the conversation card may be gradually covered by the toolbar of the client display interface.

[0064] In related technologies, when intelligent assistants generate responses to user-initiated interactions, they infer the responses from a large amount of information. This large amount of information may include noise, so the above-mentioned scheme is inefficient in generating responses.

[0065] In this embodiment, a first search message is received, at least one search result corresponding to the first search message is obtained, a first reply message generated by the intelligent assistant based on the first search message and / or the at least one search result is obtained, and a conversation card is displayed, wherein the first reply message is displayed in the conversation card. This achieves the integration of search and intelligent reply functions, providing users with reply messages that match their intended search message based on the input search message.

[0066] In addition, when the intelligent assistant generates reply information based on the search results and the first search information, the reply information is determined based on the above search results. Since the above search results usually have a certain degree of match with the first search information, the search results are used as the information source for generating the first reply information, and the noise is relatively small. In addition, the number of the above search results is usually not too large. Compared with the way in which the intelligent assistant determines the reply information by reasoning from a large amount of information containing noise, when the reply information is generated based on the search results and the first search information in this embodiment, the reply information can be determined based on a smaller number of information that has a certain degree of match with the first search information. When generating the reply information based on the search results and the first search information, the search results can be further refined, summarized, and processed based on the search intent of the first search information, so that the reply information generated by the intelligent assistant is more readable and the user obtains information more efficiently.

[0067] Please refer to Figure 4 , which shows a schematic flow of the interactive method provided by the present disclosure Figure 2 .like Figure 4 As shown, the method includes:

[0068] S401: Receive first search information, and obtain at least one search result corresponding to the first search information.

[0069] S402: Obtain first reply information generated by the intelligent assistant based on the first search information and / or at least one search result.

[0070] S403: Display the conversation card, and display the first reply information in the conversation card.

[0071] The specific implementation of steps S401 to S403 can refer to Figure 1 The description of steps S101 to S103 in the illustrated embodiment is omitted here.

[0072] In this embodiment, the execution subject of the interaction method can be a client or a server.

[0073] S404: In response to receiving a conversation request to have a conversation with the intelligent assistant, display a conversation interaction area.

[0074] The user can send the above-mentioned session request to the execution entity through various methods. The above-mentioned execution entity displays the session interaction area after receiving the above-mentioned session request. In one example, the user can send the above-mentioned session request to the execution entity through voice awakening.

[0075] In some embodiments, a first control for conducting a conversation with an intelligent assistant is displayed in a conversation card; and in response to receiving a conversation request to conduct a conversation with the intelligent assistant, a conversation interaction area is displayed, including:

[0076] In response to receiving a trigger operation performed on the first control, a session interaction area is displayed.

[0077] In these embodiments, a user may trigger the first control to send a conversation request to the execution entity to initiate a conversation with the intelligent assistant. Upon receiving the conversation request, the execution entity may display a conversation interaction area. The conversation interaction area is used for the user to initiate a conversation with the intelligent assistant.

[0078] S405: Display historical information in the conversation interaction area, wherein the historical information includes the first search information and the first reply information.

[0079] The conversation interaction area may include a message stream display area in which historical information is displayed, including historical search information including the first search information, and historical reply information corresponding to the search information including the first reply information.

[0080] In some embodiments, the conversation interaction area is displayed on a side of an interface including a search window, wherein the search window is used to input the first search information.

[0081] In these embodiments, the interface for displaying the search window may include a search window, and may also include an area for displaying search results and an area for displaying conversation cards.

[0082] Specifically, the first control may be associated with a paging container, and when a user triggers the first control, a conversation interaction area may be generated based on the paging container. The execution entity may display the generated conversation interaction area on one side of the interface.

[0083] The width of the conversation interaction area may be smaller than the width of the interface.

[0084] In these embodiments, by displaying the conversation interaction area on one side of the above-mentioned interface, the user can browse the information of the above-mentioned interface and the interaction messages generated between the user and the intelligent assistant.

[0085] The contact ID may be displayed in the conversation interaction area, where the contact ID may be the ID of the smart assistant.

[0086] The conversation interaction area may include a message flow display area and a message input area.

[0087] Messages generated between the smart assistant and the user can be displayed in the message flow display area according to the order of generation time.

[0088] The message flow display area can record the first search information entered in the search window and the first reply information displayed in the conversation card.

[0089] The first reply message is generated by the smart assistant and can therefore be considered as a reply message sent by the smart assistant to the user in response to the first search message. Therefore, the first search message sent by the user and the first reply message sent by the smart assistant can be displayed in sequence in the message flow display area.

[0090] In some embodiments, the interaction method further includes the following steps:

[0091] First, first interaction information input by a user in a conversation interaction area is received, and the first interaction information is displayed in a message flow display area of ​​the conversation interaction area.

[0092] Secondly, the second reply information of the first interaction information generated by the intelligent assistant is displayed in the message flow display area of ​​the conversation interaction area.

[0093] The first interaction information is related to or not related to the first search information.

[0094] In some application scenarios, the user can further communicate on the above-mentioned first search information and first reply information, and the user can send first interaction information related to the first search information to the intelligent assistant in the conversation interaction area.

[0095] In some application scenarios, the user can communicate with the intelligent assistant about content unrelated to the first search information, and the user can initiate the first interaction information unrelated to the first search information to the intelligent assistant in the conversation interaction area.

[0096] The first interaction information may include multiple pieces of interaction information input by the user. The second reply information may include multiple pieces of reply information generated by the intelligent assistant based on the interaction message.

[0097] Please combine Figure 3 and Figure 5 , Figure 5 A schematic diagram of an application scenario. Figure 3, a first control 305 is displayed in the conversation card in the interface 501. After receiving a trigger operation on the first control 305, a conversation interaction area 502 may be displayed on one side of the interface 501. The interface 501 may display a search window, conversation cards, and search results. The message flow display area 503 of the conversation interaction area 502 displays the message content of the information exchange between the intelligent assistant and the user.

[0098] When the user triggers the first control 305, the execution entity may display a conversation interaction area 502 for the user to freely engage in conversation with the intelligent assistant based on the triggering operation performed on the first control 305. The conversation interaction area 502 may be displayed on one side of the interface 501. The conversation interaction area 502 may display a record of interactions between the user and the intelligent assistant. For example, the first search information entered by the user in the search window and the first reply information output by the intelligent assistant displayed in a conversation card may be displayed. The user can browse multiple messages generated between the user and the intelligent assistant in the conversation interaction area.

[0099] The conversation cards are independent of the conversation interaction area. While the conversation cards are displayed, users can start new conversations with the intelligent assistant in the conversation interaction area. The intelligent assistant can generate and display responses corresponding to new interaction information entered by the user in the conversation interaction area, thereby enabling multiple rounds of conversations between the user and the intelligent assistant.

[0100] Illustratively, the first search information entered by the user in the search window of interface 501 may be, for example, "How to write a summary document for project B?", and the intelligent assistant generates a first reply message. The execution entity displays the first reply message in the conversation card of interface 501. When the user triggers the first control to display the conversation interaction area, the message flow display area of ​​the conversation interaction area may display the first search information sent by the user to the intelligent assistant, as well as the first reply message sent by the intelligent assistant.

[0101] The user can enter new interaction information in the message input area 504 of the conversation interaction area 502. The new interaction information sent by the user to the intelligent assistant in the conversation interaction area may be related to or unrelated to the first search information. For example, a user enters new interaction information related to the first search information, such as "What about the summary document for Project C?" This new interaction information is related to the first search information. Another example is a user enters new interaction information, such as "What's the weather like tomorrow?" This new interaction information is unrelated to the first search information.

[0102] This allows users to initiate unrestricted chats with the intelligent assistant in the conversation interaction area.

[0103] In some embodiments, the interaction method further includes: when displaying the message flow between the user and the intelligent assistant in the conversation interaction area, receiving second search information initiated by the user in the conversation interaction area.

[0104] In these embodiments, when the message flow between the user and the intelligent assistant is displayed in the conversation interaction area, if the user still has a search requirement, he or she can continue to initiate a new search in the interface where the search window is located. For example, he or she can enter a second search information in the search window.

[0105] When the conversation card and the conversation interaction area are displayed simultaneously, in addition to using the conversation interaction area to communicate with the smart assistant, the user can also re-enter the search information in the search window interface to initiate another search. If it is determined that the re-entered search information still requires the smart assistant to generate an answer, the reply information corresponding to the re-entered search information will be displayed in the conversation card. This allows users to perform different next steps in the same application display window.

[0106] In some embodiments, when obtaining the third reply information corresponding to the second search information generated by the intelligent assistant, the third reply information is displayed in the dialogue card; and the third reply information input by the intelligent assistant is displayed in the message flow of the conversation interaction area.

[0107] In these embodiments, since the conversation interaction area is already displayed, the conversation interaction area can display all message contents generated between the intelligent assistant and the user. The second search information can be a conversation message sent by the user to the intelligent assistant, and the third reply information can be a reply message sent by the intelligent assistant based on the second search information. Therefore, the second search information and the third reply message can be displayed in the message flow display area of ​​the conversation interaction area.

[0108] In these embodiments, by displaying the second search information and the third reply information in the conversation interaction area, the conversation between the user and the intelligent assistant can carry all the search information and the reply information of the search information, thereby facilitating the management of messages generated between the user and the intelligent assistant.

[0109] and Figure 1 Compared with the illustrated embodiment, this embodiment describes displaying relevant content of the conversation interaction area for the user to have a conversation with the intelligent assistant on one side of the first page according to the trigger operation of the first control in the conversation card, thereby supporting different next operations in the same application window, and providing support for the user to browse the first reply information in the search interface and have a free conversation with the intelligent assistant at the same time.

[0110] Please refer to Figure 6 , which shows a schematic flow of the interactive method provided by the present disclosure Figure 3 .like Figure 6 As shown, the method includes:

[0111] S601: Receive first search information, and obtain at least one search result corresponding to the first search information.

[0112] S602: Obtain first reply information generated by the intelligent assistant based on the first search information and / or at least one search result.

[0113] S603: Display the conversation card, and display the first reply information in the conversation card.

[0114] The specific implementation of steps S601 to S603 can refer to Figure 1 The description of steps S101 to S103 in the illustrated embodiment is omitted here.

[0115] In this embodiment, the execution subject of the interactive method may be a client. In addition, the execution subject may also be a server that provides services to the client.

[0116] S604: Display the obtained recommended interaction information in the conversation card.

[0117] The recommended interaction information may be determined by the execution entity based on one or more of the first search information, the at least one search result, and the first reply information. That is, the recommended interaction information is related to one or more of the search information, the at least one search result, and the first reply information.

[0118] By displaying recommended interaction information in the dialogue card, if the recommended interaction information matches the user's intention, the user can directly trigger the above recommended interaction information, thereby sending the above recommended interaction information to the smart assistant, which can save the user the operation of entering the interaction information.

[0119] S605: In response to receiving a trigger operation performed by the user on the recommended interaction information, if it is detected that the conversation interaction area is not displayed, the conversation interaction area is displayed on one side of the conversation card; the conversation interaction area is used for the user to communicate with the intelligent assistant.

[0120] The first search information input in step S601 and the first reply information corresponding to the first search information are displayed in the message flow display area in the conversation interaction area.

[0121] In this embodiment, the above detection that the conversation interaction area is not displayed can be regarded as the free conversation between the user and the above intelligent assistant is not activated.

[0122] In this embodiment, when a trigger operation is received from the user on the recommended interaction information, a conversation interaction area may be displayed in which the user and the intelligent assistant can have a free conversation.

[0123] The contact ID may be displayed in the conversation interaction area, where the contact ID may be the ID of the intelligent assistant.

[0124] The conversation interaction area may include a message flow display area and a message input area.

[0125] Messages between the smart assistant and the user can be displayed in the message flow display area according to the order of generation time.

[0126] S606: Display the target recommended interaction information indicated by the triggering operation as a message sent by the user in the message flow display area of ​​the conversation interaction area.

[0127] S607: Obtain fourth reply information corresponding to the target recommended interaction information, and display it in the message stream display area as a message sent by the intelligent assistant.

[0128] Since the user triggers a recommended interaction message using the trigger operation in the conversation card, the recommended interaction message can be the target recommended interaction message. The target recommended interaction message can be regarded as the conversation message that the user wants to have with the intelligent assistant.

[0129] The intelligent assistant may determine fourth reply information corresponding to the recommended interaction information based on the target recommended interaction information and the historical message content recorded in the conversation interaction area. Upon receiving the fourth reply information, the execution entity may display the fourth reply information as a message sent by the intelligent assistant in the message stream display area.

[0130] In these embodiments, the user does not need to input a new conversation message, and the target recommendation interaction information is directly sent to the intelligent assistant as the user-input conversation message, which can improve the efficiency of information interaction between the user and the intelligent assistant.

[0131] In some embodiments, the interaction method further comprises:

[0132] If it is detected that the conversation interaction area is displayed, the target recommended interaction information is displayed as a message to be sent by the user in the message flow display area of ​​the conversation interaction area.

[0133] In these embodiments, the conversation interaction area is already displayed before the user triggers the target recommended interaction information. Therefore, after the user triggers the target recommended interaction information, the conversation interaction area does not need to be regenerated. Instead, the target recommended interaction information is displayed in the message stream display area of ​​the original conversation interaction area in the order and manner of the message stream display. Therefore, the conversation interaction area can record a relatively comprehensive record of interactions between the intelligent assistant and the user.

[0134] Please refer to Figure 7 , which shows a schematic diagram of an application scenario. Figure 7 As shown, a first card 702 is displayed in the interface 701 displaying the search window. The first card 702 displays the first search information and the first reply information generated by the intelligent assistant based on the first search information. The above-mentioned dialogue card 702 can also display recommended interaction information 703, which can be determined based on one or more of the first search information, at least one search result, and the first reply information. Figure 7 As shown, the recommended interaction information includes recommended interaction information 1 and recommended interaction information 2. The user can click recommended interaction information 1, and recommended interaction information 1 becomes the target recommended interaction information. After the user clicks recommended interaction information 1, if the conversation interaction area is not currently displayed, the execution entity displays the conversation interaction area, for example, on a side of interface 701. The conversation between the user and the intelligent assistant is implemented in the conversation interaction area. The message flow display area of ​​the conversation interaction area can display the first search information, the first reply information, the target recommended information, and the second reply information.

[0135] If the conversation interaction area has been displayed before the user performs a trigger operation on the target recommended interaction information, the target recommended interaction information triggered by the above user will be displayed in the message flow display area of ​​the conversation interaction area, and the second reply information sent to the intelligent assistant will be displayed in the message flow display area.

[0136] and Figure 1 Compared with the illustrated embodiment, this embodiment describes that the conversation card includes recommended interaction information. The user triggers further conversation between the user and the intelligent assistant in the conversation interaction area by operating the recommended interaction information, thereby improving the efficiency of information interaction between the user and the intelligent assistant.

[0137] Corresponding to the above Figure 1 The interactive method of the embodiment shown, Figure 8 This is a structural block diagram of the interactive device provided by the embodiment of the present disclosure. For the convenience of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 8 , the device 80 includes a receiving unit 801, a generating unit 802 and a display unit 803.

[0138] The receiving unit 801 is configured to receive first search information and obtain at least one search result corresponding to the first search information;

[0139] A generating unit 802 is configured to obtain first reply information generated by the intelligent assistant based on the first search information and / or at least one search result;

[0140] The display unit 803 is used to display the conversation card and display the first reply information in the conversation card.

[0141] In one embodiment of the present disclosure, information of at least one search result is also displayed.

[0142] In one embodiment of the present disclosure, the display unit 803 is further configured to:

[0143] In response to receiving a conversation request to conduct a conversation with the intelligent assistant, displaying a conversation interaction area;

[0144] The historical information is displayed in the conversation interaction area, wherein the historical information includes the first search information and the first reply information.

[0145] In one embodiment of the present disclosure, the conversation interaction area is displayed on a side of an interface including a search window, wherein the search window is used to input the first search information.

[0146] In one embodiment of the present disclosure, a first control for conducting a conversation with an intelligent assistant is displayed in a conversation card, and the display unit 803 is further configured to:

[0147] In response to receiving a trigger operation performed on the first control, a session interaction area is displayed.

[0148] In one embodiment of the present disclosure, the display unit 803 is further configured to: receive first interaction information input by a user in the conversation interaction area, and display the first interaction information in the message flow display area of ​​the conversation interaction area;

[0149] The second reply information of the first interaction information generated by the intelligent assistant is displayed in the message flow display area of ​​the conversation interaction area.

[0150] In one embodiment of the present disclosure, the first interaction information is related to or unrelated to the first search information.

[0151] In one embodiment of the present disclosure, the receiving unit 801 is further configured to:

[0152] When the message flow between the user and the intelligent assistant is displayed in the conversation interaction area, second search information initiated by the user is received.

[0153] In one embodiment of the present disclosure, the display unit 803 is further configured to:

[0154] When obtaining third reply information corresponding to the second search information generated by the intelligent assistant, displaying the third reply information in the conversation card; and

[0155] The third reply information input by the intelligent assistant is displayed in the message flow of the conversation interaction area.

[0156] In one embodiment of the present disclosure, the display unit 803 is further configured to:

[0157] Display the obtained recommended interaction information in the conversation card.

[0158] In one embodiment of the present disclosure, the display unit 803 is further configured to:

[0159] In response to receiving a trigger operation performed by the user on the recommended interaction information, if it is detected that the conversation interaction area is not displayed, the conversation interaction area is displayed on one side of the conversation card; the conversation interaction area is used for the user to communicate with the intelligent assistant;

[0160] Displaying the target recommended interaction information indicating the triggering operation as a message sent by the user in the message flow display area of ​​the conversation interaction area;

[0161] The fourth reply information corresponding to the target recommended interaction information is obtained and displayed in the message flow display area as a message sent by the intelligent assistant.

[0162] In one embodiment of the present disclosure, the display unit 803 is further configured to:

[0163] If it is detected that the conversation interaction area is displayed, the target recommended interaction information is displayed as a message to be sent by the user in the message flow display area of ​​the conversation interaction area.

[0164] In one embodiment of the present disclosure, the recommended interaction information is related to one or more of the search information, the search result, and the first reply information.

[0165] In one embodiment of the present disclosure, the generating unit 802 is further configured to:

[0166] In response to determining that question-and-answer reply information needs to be generated based on the first search information, first reply information generated by the intelligent assistant based on the first search information and at least one search result is obtained.

[0167] In order to implement the above embodiment, the embodiment of the present disclosure further provides an electronic device.

[0168] refer to Figure 9, which shows a schematic structural diagram of an electronic device 900 suitable for implementing the embodiments of the present disclosure. The electronic device 900 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0169] like Figure 9 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0170] Typically, the following devices may be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 9 The electronic device 900 is shown with various devices, but 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 instead.

[0171] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0172] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program (computer-executable instructions) that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0173] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0174] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0175] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate 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 a remote computer, the remote computer may 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0176] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0177] The units described in the embodiments of the present disclosure may be implemented in software or hardware. The name of a unit does not, in some cases, limit the unit itself. For example, a receiving unit may be described as "a unit that receives first search information and obtains at least one search result corresponding to the first search information."

[0178] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0179] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0180] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0181] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0182] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. An interactive method, comprising: receiving first search information input through a search entry, and obtaining at least one search result corresponding to the first search information; The search entry is set in a client that supports the search function; In response to determining that a question-and-answer reply message needs to be generated based on the first search information, the client inputs the first search information and / or the at least one search result into an intelligent assistant, and the intelligent assistant generates a first reply message based on the first search information and / or the at least one search result; The determining that a question-and-answer reply message needs to be generated according to the first search information includes: when a question word appears in the search information and the length of the search information is greater than a preset text length; Obtaining first reply information generated by the intelligent assistant based on the first search information and / or the at least one search result; displaying a conversation card, displaying the first reply message in the conversation card; and further comprising: In response to receiving a conversation request with the intelligent assistant, a conversation interaction area is displayed; the interface displaying the search window includes an area for displaying search results and an area for displaying conversation cards; the conversation interaction area is generated based on the paging container; Displaying history information in the conversation interaction area, wherein the history information includes the first search information and the first reply information; When the message flow between the user and the intelligent assistant is displayed in the conversation interaction area, the second search information initiated by the user at the search entrance is received.

2. The method according to claim 1, characterized in that Information of the at least one search result is also displayed.

3. The method according to claim 1, characterized in that The conversation interaction area is displayed on one side of an interface including a search window, wherein the search window is used to input first search information.

4. The method according to claim 1, wherein The conversation card displays a first control for conducting a conversation with the intelligent assistant; The method of displaying a conversation interaction area in response to receiving a conversation request with the intelligent assistant includes: In response to receiving a trigger operation performed on the first control, the session interaction area is displayed.

5. The method according to claim 1, characterized in that The method further comprises: receiving first interaction information input by a user in a conversation interaction area, and displaying the first interaction information in a message flow display area of ​​the conversation interaction area; The second reply information of the first interaction information generated by the intelligent assistant is displayed in the message flow display area of ​​the conversation interaction area.

6. The method according to claim 5, characterized in that The first interaction information is related to or unrelated to the first search information.

7. The method according to claim 1, characterized in that The method further comprises: When obtaining third reply information corresponding to the second search information generated by the intelligent assistant, displaying the third reply information in the conversation card; and The third reply information input by the intelligent assistant is displayed in the message flow of the conversation interaction area.

8. The method according to claim 1, characterized in that The method further comprises: Display the obtained recommended interaction information in the conversation card.

9. The method according to claim 8, characterized in that The method further comprises: In response to receiving a trigger operation performed by a user on the recommended interaction information, if it is detected that the conversation interaction area is not displayed, displaying the conversation interaction area on one side of the conversation card; the conversation interaction area is used for the user to have a conversation with the intelligent assistant; Displaying the target recommended interaction information indicated by the triggering operation as a message sent by the user in the message stream display area of ​​the conversation interaction area; The fourth reply information corresponding to the target recommendation interaction information is obtained and displayed in the message flow display area as a message sent by the intelligent assistant.

10. The method according to claim 9, characterized in that The method further comprises: If it is detected that the conversation interaction area is displayed, the target recommended interaction information is displayed as a message to be sent by the user in a message flow display area of ​​the conversation interaction area.

11. The method according to claim 8, characterized in that The recommended interaction information is related to one or more of the search information, the search result, and the first reply information.

12. An interactive device comprising: A receiving unit, configured to receive first search information input through a search entry, and obtain at least one search result corresponding to the first search information; The search entry is set in a client that supports the search function; a generating unit configured to, in response to determining that question-and-answer reply information needs to be generated based on the first search information, input the first search information and the at least one search result into an intelligent assistant by the client, and generate a first reply information based on the first search information and / or the at least one search result; The determining that a question-and-answer reply message needs to be generated based on the first search information includes: when a question word appears in the search information and the length of the search information is greater than a preset text length; and obtaining a first reply message generated by the intelligent assistant based on the first search information and / or the at least one search result; a display unit, configured to display a conversation card, wherein the first reply information is displayed in the conversation card; The display unit is further configured to: display a conversation interaction area in response to receiving a conversation request with the intelligent assistant; the interface displaying the search window includes an area for displaying search results and an area for displaying conversation cards; the conversation interaction area is generated based on the paging container; Displaying historical information in the conversation interaction area, wherein the historical information includes the first search information and the first reply information; The receiving unit is further configured to: When the message flow between the user and the intelligent assistant is displayed in the conversation interaction area, second search information initiated by the user is received.

13. An electronic device, characterized in that: include: processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Information search method and device, computer equipment and storage medium

    CN116226500A

  • Content retrieval method and device, equipment and medium

    CN116501960A