Information reply method and device, electronic equipment and storage medium

By receiving and automatically recognizing reply messages while displaying other applications' interfaces in the foreground and replying in the background, the system solves the problem of cumbersome operations for users in non-social software environments, and improves the convenience and experience of users replying to messages from social software.

CN116233047BActive Publication Date: 2025-11-21VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310253440.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-16
Publication Date
2025-11-21
Estimated Expiration
2043-03-16

AI Technical Summary

Technical Problem

When users receive messages from social media apps while using non-social media apps, they need to switch to the social media app to reply, which is cumbersome and negatively impacts the user experience.

Method used

It receives messages from social media apps while displaying other apps in the foreground, and automatically replies in the background by judging whether the user's input message matches the message based on semantic recognition and duration, without needing to switch to the social media app foreground.

Benefits of technology

It improves the convenience for users to reply to messages, avoids impacting the foreground application, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116233047B_ABST
    Figure CN116233047B_ABST
Patent Text Reader

Abstract

The application discloses an information reply method and device, electronic equipment and a storage medium, and belongs to the technical field of communication. The information reply method comprises the following steps: in the case that a first interface of a first application is displayed, a first message is received, the first message is a message from a second application; a first input to the first interface is received, the first input is used for editing a second message; and in the case that the second message matches the second application, the first message is replied to by the second message.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of communication, and particularly relates to an information reply method and device, an electronic device and a storage medium. BACKGROUND

[0002] With the rapid development of intelligent devices and the Internet, various entertainment and social software applications used on intelligent devices are increasing, and people communicate more and more on social software. When receiving a message of the social software, the user needs to enter the social software to view and reply within the application.

[0003] In the related art, when a user receives a message of a social software while watching a video or playing a game in the foreground through a non-social software, the user needs to run the corresponding social software in the foreground to reply to the message, which leads to a cumbersome operation of the user replying to the message. SUMMARY

[0004] The embodiments of the present application provide an information reply method, device, electronic device and storage medium, which do not require the user to start a social software application in the foreground, do not affect the non-social software application running in the foreground, and improve the convenience of the user replying to the message.

[0005] In a first aspect, the embodiments of the present application provide an information reply method, comprising: receiving a first message in a case where a first interface of a first application is displayed, the first message being a message from a second application; receiving a first input to the first interface, the first input being used to edit a second message; and replying to the first message by the second message in a case where the second message matches the second application.

[0006] In a second aspect, the embodiments of the present application provide an information reply device, comprising: a first receiving module configured to receive a first message in a case where a first interface of a first application is displayed, the first message being a message from a second application; a second receiving module configured to receive a first input to the first interface, the first input being used to edit a second message; and a reply module configured to reply to the first message by the second message in a case where the second message matches the second application.

[0007] In a third aspect, the embodiments of the present application provide an electronic device, comprising a processor and a memory, the memory storing programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement the steps of the method of the first aspect.

[0008] In a fourth aspect, the embodiments of the present application provide a readable storage medium, the readable storage medium storing programs or instructions, and the programs or instructions are executed by the processor to implement the steps of the method of the first aspect.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, the communication interface being coupled with the processor, and the processor being configured to run programs or instructions to implement the steps of the method according to the first aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a computer program product stored in a storage medium, and the program product is executed by at least one processor to implement the method according to the first aspect.

[0011] In the embodiments of the present application, when the application interface of other application software is displayed in the foreground, the social information from the background running social software application is received, and the social information is displayed in the application interface displayed in the foreground. After the user views the social information, the user can input a reply message of the social information in the application interface displayed in the foreground. The electronic device can automatically identify whether the reply message input in the application interface displayed in the foreground matches the social software application running in the background. If the reply message matches the social software application, the reply message is used to reply to the social information through the social software application. The user does not need to start the social software application in the foreground, and the non-social software application running in the foreground is not affected, thereby improving the user experience. BRIEF DESCRIPTION OF DRAWINGS

[0012] Figure 1 A flowchart of an information reply method provided by an embodiment of the present application is shown;

[0013] Figure 2 One of the display interface provided by some embodiments of the present application is shown;

[0014] Figure 3 A semantic correlation degree calculation result diagram provided by some embodiments of the present application is shown;

[0015] Figure 4 A second of the display interface provided by some embodiments of the present application is shown;

[0016] Figure 5 A schematic block diagram of an information reply device provided by an embodiment of the present application is shown;

[0017] Figure 6 A structural block diagram of an electronic device according to an embodiment of the present application is shown;

[0018] Figure 7 A hardware structure diagram of an electronic device for implementing an embodiment of the present application. DETAILED DESCRIPTION

[0019] With reference to the drawings and the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly described. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art are within the scope of the present application.

[0020] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / " generally indicates that the objects before and after are in an "or" relationship.

[0021] The information reply method, information reply device, electronic equipment and storage medium provided by the embodiments of the present application will be described in detail below in combination with the accompanying drawings and specific embodiments and application scenarios. Figures 1 to 7 The information reply method, information reply device, electronic equipment and storage medium provided by the embodiments of the present application will be described in detail below in combination with the accompanying drawings and specific embodiments and application scenarios.

[0022] In some embodiments of the present application, an information reply method is provided, Figure 1 The flowchart of the information reply method provided by some embodiments of the present application is shown. As shown in the figure, Figure 1 The information reply method comprises:

[0023] Step 102, receiving a first message in the case of displaying a first interface of a first application, the first message being a message from a second application;

[0024] In the embodiments of the present application, the first application and the second application are different application programs, the first interface is the application interface of the first application, and the first message is a message from the second application.

[0025] Exemplarily, the first application can be a video watching application, the first interface is a video watching interface, the first message is a social chat software, and the first message is social information sent by a social contact.

[0026] In the embodiments of the present application, when the user uses the first application and receives a first message sent by another user through the second application, the user can directly view the message content of the first message in the first interface without switching the application interface of the second application to the foreground display for viewing.

[0027] Step 104, receiving a first input to the first interface, the first input being used to edit a second message;

[0028] In the embodiments of the present application, the first input is an operation input performed by the user on the first interface, which includes but is not limited to a click input, a sliding input, a voice input, etc.

[0029] For example, the user edits the second message by clicking a virtual keyboard in the first interface, and the click on the virtual keyboard is the first input.

[0030] For example, the user inputs the second message through a voice instruction, and the voice instruction input by the user to the electronic device is the first input.

[0031] In step 106, the first message is replied to by the second message when the second message matches the second application.

[0032] In the embodiments of the present application, after the user edits the second message in the electronic device, the electronic device can determine whether the second message matches the second application. When the semantic of the second message matches the second application, it is determined that the second message edited by the user through the first input is a reply message of the first message, and the first message is replied to by the second message in the background. When the semantic of the second message does not match the second application, it is determined that the second message edited by the user through the first input needs to be sent through the first application, i.e., the second message is sent through the first application.

[0033] After the user finishes editing the second message, the electronic device can determine whether the second message matches the second application, for example, by analyzing whether the semantic of the second message matches the second message, and determining whether the second message matches the second application according to the relationship between the input time of the second message and the receiving time of the first message. When it is determined that the second application matches the second message, the first message is directly replied to by the second message.

[0034] In the embodiments of the present application, the electronic device obtains the text or audio content input by the user in the current application through a content grabbing function to determine the second message. It should be noted that, because the first input performed by the user on the first interface is the input function of the first application, the electronic device can obtain the input text or audio content of the user by authorizing the microphone and input method of the user, thereby determining the second message. The electronic device extracts the text content of the first message displayed in the first interface through an optical character recognition (OCR) technology or the like.

[0035] In the embodiments of the present application, when the application interface of other application software is displayed in the foreground, the social information from the background running social software application is received, and the social information is displayed in the application interface displayed in the foreground. After the user views the social information, the user can input a reply message of the social information in the application interface displayed in the foreground. The electronic device can automatically identify whether the reply message input in the application interface displayed in the foreground matches the background running social software application. If the reply message matches the social software application, the reply message is replied to the social information through the social software application, without the user starting the social software application in the foreground, and the non-social software application running in the foreground is not affected, thereby improving the user experience.

[0036] In some embodiments of the present application, before the first message is replied to through the second message in the case that the second message matches the second application, the method comprises: in the case that the first duration is less than the preset duration and the semantic of the second message matches the semantic of the first message, determining that the second message matches the second application, the first duration being the duration from the input time of the first input to the receiving time of the first message.

[0037] In the embodiments of the present application, the electronic device judges whether the first message and the second message match, and records the first duration between the input time corresponding to the second message and the receiving time corresponding to the first message. In the case that the first duration is less than the preset duration, it is determined that the second message edited by the first input is close to the receiving time of the first message, and in the case that the semantic of the second message matches the semantic of the first message, it is determined that the second message is used to reply to the first message. The electronic device automatically replies to the first message through the second message, thereby simplifying the convenience of the user to reply to the message of the background application.

[0038] Specifically, the semantic of the second message and the semantic of the first message can be extracted through a semantic recognition algorithm, and the semantic of the two messages is compared. For example, by recognizing the semantic of the first message and the second message, the keywords of each segment of content in the first message and the second message are extracted, and then the keyword set generates a word frequency vector, and the cosine similarity between the vectors is calculated. In the case that the cosine similarity is high, it is determined that the first message matches the second message. Or the logical association between the first message and the second message is determined by syntax and text content entity recognition. In the case that the logical association is high, it is determined that the first message matches the second message.

[0039] The first duration is the duration from the input time of the second message to the receiving time of the first message. Specifically, after the electronic device generates the second message in response to the first input, the electronic device records the input time of the first input, and reads the receiving time of the first message, so as to calculate the first duration corresponding to the second message.

[0040] In a case where the electronic device receives the first message, the electronic device starts timing, and in a case where the user generates the second message through the first input in the first interface, the electronic device stops timing to obtain the first time length. The first time length is compared with the preset time length, in a case where the first time length is greater than or equal to the preset time length, it is determined that the time at which the user inputs the second message is relatively late, and the second message is less relevant to the first message, and in this case, the second message is sent through the first application. In a case where the first time length is less than the preset time length, it is determined that the time at which the user inputs the second message is relatively close to the receiving time of the first message, and the second message is likely to be highly relevant to the first message, and in this case, the semantics of the second message and the first message are obtained, and the step of determining whether the second message is a reply message of the first message according to the semantics of the first message and the second message is continued.

[0041] Exemplarily, the preset time length is in a range of 5 minutes to 20 minutes. For example, the preset time length is 10 minutes, if the first time length is less than the preset time length, the step of obtaining the semantics of the first message and the second message is performed, and if the first time length is greater than or equal to the preset time length, the second message is directly sent through the first application.

[0042] Figure 2 One of the schematic diagrams of the display interface provided by some embodiments of the application is shown as follows. Figure 2 As shown in the figure, when a game interface 202 of a game application is displayed, a social message 204 from a social software is received, and the social message is displayed in the form of a floating window above the game interface 202. A local chat box 206 is displayed in the game interface 202, and local chat information 208 is displayed in the local chat box 206. The local chat information 208 is a message in the game application, and a user inputs text information 210 in the local chat box 206. The content of the social message 204 is “what to eat tonight”, the receiving time of the social message 204 is 12:02, the content of the text information 210 is “eat a steamed stuffed bun”, the input time of the text information 210 is 12:03, the system detects that the text information 210 and the social message 204 match in semantics, and the first time length of the text information 210 is 2 minutes, which is less than the preset time length of 5 minutes. At this time, “eat a steamed stuffed bun” is taken as a reply message of the social message 204 to reply to the social message 204 in the background, and the text information is not displayed in the local chat box 206. The game interface 202 is a first interface, the social message 204 is a first message, and the text information 210 is a second message.

[0043] In the embodiments of the present application, the first duration between the receiving time of the first message and the input time of the second message is recorded, and the numerical relationship between the first duration and the preset duration and whether the semantics of the first message and the second message match are used as the judgment condition of whether the second message is the reply message of the first message, thereby improving the accuracy of replying the first message by the second message and avoiding false reply to the first message.

[0044] In some embodiments of the present application, in the case that the first duration is less than the preset duration and the semantics of the second message matches the semantics of the first message, before determining that the second message matches the second application, the method further comprises: obtaining a first semantic correlation degree between the second message and the first message, and a second semantic correlation degree between the second message and a third message, the third message being a message from the first application; and in the case that the first semantic correlation degree is higher than the second semantic correlation degree and the first semantic correlation degree is higher than a preset threshold, determining that the semantics of the second message matches the semantics of the first message.

[0045] In the embodiments of the present application, the first semantic correlation degree is the semantic correlation degree between the semantics of the first message and the semantics of the second message, and the second semantic correlation degree is the semantic correlation degree between the semantics of the second message and the semantics of the third message, the third message being a message in the first application running in the foreground.

[0046] Specifically, in the case that the first semantic correlation degree is higher than the second semantic correlation degree, it is determined that the first message and the second message match more, and when the first semantic correlation degree is higher than the preset threshold, it is determined that the second message input by the user matches the semantics of the first message.

[0047] Figure 3 A schematic diagram of the semantic correlation degree calculation result provided by some embodiments of the present application is shown as follows. Figure 3 As shown in the figure, the third message in the first interface is "Player A: Wait until my big move is ready, then start the team, Player B: My big move has 30 seconds left", the first message is "What to eat tonight", and the second message input by the user through the electronic device is "Eat a steamed stuffed bun". Through calculation, the second semantic correlation degree between the second message and the third message is P1=0.2, and the first semantic correlation degree between the second message and the first message is Q1=0.9. In the case that the preset threshold is Qa=0.5, it can be seen that Q1>Qa>P1, and it is determined that the second message matches the semantics of the first message.

[0048] Exemplarily, in the case that there is no third message in the first interface, the second semantic correlation degree is 0 by default. That is, the first semantic correlation degree is greater than the preset threshold, and it is directly determined that the second message matches the semantics of the first message.

[0049] In the embodiments of the present application, the electronic device can compare the semantic correlation degree between the second message and the first message and the semantic correlation degree between the second message and the third message with the preset threshold value, so as to accurately determine whether the second message is semantically matched with the first message, improve the accuracy of replying the first message with the second information, and avoid the false reply to the first message.

[0050] In some embodiments of the present application, the first semantic correlation degree between the second message and the first message is obtained by: obtaining a historical message record corresponding to the first message, the message source of the historical message record being matched with the message source of the first message, and the historical message record including the first message; determining third semantic correlation degrees between the second message and at least two target messages in the historical message record; and determining the highest semantic correlation degree in the at least two third semantic correlation degrees as the first semantic correlation degree.

[0051] In the embodiments of the present application, the first message is a social chat message from a social software, and the historical message record is a historical chat record of the social software corresponding to the first message. The message source can be a contact in the social software, that is, the historical message record of the contact corresponding to the first message is obtained, and the historical message record includes the first message.

[0052] For example, the first message is a chat message between a contact A and the user in the social software, and the historical message record is a historical chat record between the contact A and the user. The historical chat record can be a chat record within a preset time length, for example, within one day. By setting the chat record as the chat record within the preset time length, the content in the historical message record which is not highly related to the first message can be removed.

[0053] In the embodiments of the present application, the historical message record includes a plurality of chat messages, the third semantic correlation degree between each chat message and the second message is determined, and the highest semantic correlation degree in the plurality of third semantic correlation degrees is taken as the first semantic correlation degree between the second message and the first message.

[0054] For example, by using the TF-IDF (Term Frequency-Inverse Document Frequency) algorithm, the keywords of each chat message are extracted, the keyword set is generated to form a word frequency vector, and the cosine similarity between vectors is calculated. Assuming that the semantic correlation degrees between the second message and the plurality of chat messages are Q1, Q2, …, Qn respectively based on the algorithm analysis, the maximum value is taken as the first semantic correlation degree.

[0055] In the embodiments of the present application, the third semantic correlation degrees between the plurality of message records in the historical message record corresponding to the first message and the second message are obtained, and the maximum value of the plurality of third semantic correlation degrees is taken as the first semantic correlation degree, so that the first semantic correlation degree can accurately represent the matching of the second message and the historical message record corresponding to the first message, and the accuracy of determining whether the second message is the reply message of the first message is further improved.

[0056] In some embodiments of the present application, in the case that the semantic of the second message matches the semantic of the first message, the first message is replied by the second message, including: in the case that the semantic of the second message matches the semantic of the first message, running the second application in the background; sending the second message to the target contact through the second application, the target contact matching the first message.

[0057] In the embodiments of the present application, the target contact is the contact that sends the first message. When it is detected that the semantic of the second message matches the semantic of the first message, it is determined that the second message is the reply message of the first message, at this time, the second application corresponding to the first message is run in the background, and the second message is replied to the target contact of the first message through the second application.

[0058] Specifically, when the electronic device receives the first message, the software of the second application corresponding to the first message and the specific user ID (Identity document, identity document) of the target contact corresponding to the first message have been recorded. When the first message is replied by the second message, the second application can be run in the background, and the second message can be sent to the target contact.

[0059] Exemplarily, the first application is a game application, and the second application is a social chat application. In the case that the electronic device displays the game interface of the game application, the first message in the social chat application is replied by the second message. The electronic device determines that the second message matches the first message, and continues to run the game application in the foreground, runs the social chat application in the background, and sends the second message to the target contact corresponding to the first message.

[0060] In the embodiments of the present application, when the first message is replied by the second message, the electronic device can automatically run the second application in the background and send the second message to the target contact, without the need for the user to manually run the second application, and the first application running in the foreground of the electronic device is not affected.

[0061] In some embodiments of the present application, before the second message is replied to the first message in the case that the semantic of the second message matches the semantic of the first message, the method further includes:

[0062] The first interface displays reply prompt information, the reply prompt information includes the second message; in response to a second input to the reply prompt information, the step of replying to the first message by the second message is performed; or in response to a third input to the reply prompt information, the step of replying to the first message by the second message is cancelled.

[0063] In the embodiments of the present application, the reply prompt information is used to prompt the text content of the second message, the target contact corresponding to the second message, and the second application corresponding to the second message.

[0064] Before the electronic device replies to the first message by the second message, the electronic device displays the reply prompt information in the first interface, and after the user views the reply prompt information, the user can understand the specific information of the reply to the second message in the background of the electronic device, including the application software for sending the second message, the ID of the target contact for receiving the second message, the specific content of the second message, and the like.

[0065] Figure 4 Fig. 2 shows a schematic diagram of a display interface provided by some embodiments of the present application. Figure 4 As shown in Fig. 2, when a game interface 202 of a game application is displayed, a social message 204 from a social software is received, and the social message is displayed in the form of a floating window above the game interface 202. A local chat box 206 is displayed in the game interface 202, and local chat information 208 is displayed in the local chat box 206. The local chat information 208 is a message in the game application, and a user inputs text information 210 in the local chat box 206. In a case where the electronic device detects that the text information 210 matches the social message 204, a reply prompt information 212 is displayed in the form of a floating window at the text information 210. The game interface 202 is a first interface, the social message 204 is a first message, and the text information 210 is a second message.

[0066] Exemplarily, the reply prompt information can be "sending software: application A, user ID: contact, message content: eat a steamed stuffed bun".

[0067] In the embodiments of the present application, the second input is an operation input performed by the user on the reply prompt information, and the second input is used to control the electronic device to send the second message in the background. When the user performs the second input on the reply prompt information, the electronic device is controlled to send the second message in the background. The third input is an operation input performed on the reply prompt information, and the third input is used to cancel the step of sending the second message. When the user performs the third input on the reply prompt information, the electronic device is controlled to cancel the sending of the second message and clear the second message displayed in the first interface.

[0068] Exemplarily, the corresponding sending control and cancel control are displayed in the reply prompt message, the user clicks the sending control to perform a second input on the reply prompt message, and the user clicks the cancel control to perform a third input on the reply prompt message.

[0069] In the embodiments of this application, the electronic device can display reply prompt information matched with the second message in the first interface before sending the second message, so as to enable the user to confirm the content of the second message, the sending software and the sending contact, and the user can select to continue sending the second message or cancel sending the second message, thereby improving the flexibility of replying to the first message by the second message, avoiding the misreply to the first message, and further improving the convenience of the user in replying to the first message.

[0070] In some embodiments of this application, after the reply prompt information is displayed in the first interface, the method further includes: in response to a fourth input, editing the second message.

[0071] In the embodiments of this application, the fourth input is an editing input on the second message. In the case that the electronic device determines that the second message is a reply message of the first message and displays the reply prompt information including the second message, the user can perform secondary editing on the second message through the fourth input, thereby further improving the flexibility of replying to the first message by the second message.

[0072] The information reply method provided by the embodiments of this application can be executed by an information reply device. In the embodiments of this application, the information reply device is taken as an example to illustrate the information reply device provided by the embodiments of this application.

[0073] In some embodiments of this application, an information reply device is provided, which is applied to a first electronic device. Figure 5 A schematic block diagram of the information reply device provided by the embodiments of this application is shown. As shown in the figure, the information reply device 500 includes: Figure 5

[0074] The first receiving module 502 is configured to receive a first message from a second application in the case that a first interface of a first application is displayed, the first message being a message from the second application;

[0075] The second receiving module 504 is configured to receive a first input on the first interface, the first input being used to edit a second message;

[0076] The reply module 506 is configured to reply to the first message by the second message in the case that the second message matches the second application.

[0077] ​In the embodiments of the present application, when the application interface of other application software is displayed in the foreground, the social information from the background running social software application is received, and the social information is displayed in the application interface displayed in the foreground. After the user views the social information, the user can input a reply message of the social information in the application interface displayed in the foreground. The electronic device can automatically identify whether the reply message input in the application interface displayed in the foreground matches the background running social software application. If the reply message matches the social software application, the reply message is used to reply to the social information through the social software application. The user does not need to start the social software application in the foreground, and the non-social software application running in the foreground is not affected, thereby improving the user experience.

[0078] In some embodiments of the present application, the information reply device 500 further comprises:

[0079] The determining module is configured to determine that the second message matches the second application if the first time length is less than the preset time length and the semantic of the second message matches the semantic of the first message, the first time length being a time length from the input time of the first input to the receiving time of the first message.

[0080] In the embodiments of the present application, the first time length between the receiving time of the first message and the input time of the second message is recorded, and the numerical relationship between the first time length and the preset time length and whether the semantic of the first message matches the semantic of the second message are used as the judgment conditions of whether the second message is the reply message of the first message, thereby improving the accuracy of replying to the first message by the second information and avoiding the false reply to the first message.

[0081] In some embodiments of the present application, the information reply device 500 further comprises:

[0082] The first obtaining module is configured to obtain a first semantic relevance between the second message and the first message and a second semantic relevance between the second message and a third message, the third message being a message from the first application.

[0083] The determining module is configured to determine that the semantic of the second message matches the semantic of the first message if the first semantic relevance is higher than the second semantic relevance and the first semantic relevance is higher than a preset threshold.

[0084] In the embodiments of the present application, the electronic device can compare the semantic relevance between the second message input by the user and the first message and the semantic relevance between the second message and the third message with the preset threshold, thereby accurately determining whether the second message matches the semantic of the first message, improving the accuracy of replying to the first message by the second information, and avoiding the false reply to the first message.

[0085] In some embodiments of the present application, the first obtaining module is configured to obtain a historical message record corresponding to the first message, the message source of the historical message record matches the message source of the first message, and the historical message record includes the first message;

[0086] The determining module is configured to determine third semantic relevancies between the second message and at least two target messages in the historical message record;

[0087] The determining module is configured to determine, as the first semantic relevance, a semantic relevance with the highest value among the at least two third semantic relevancies.

[0088] In the embodiments of the present application, the third semantic relevancies between the second message and the plurality of message records in the historical message record corresponding to the first message are obtained, and the maximum value among the plurality of third semantic relevancies is determined as the first semantic relevance, so that the first semantic relevance can accurately represent the matching between the second message and the historical message record corresponding to the first message, and the accuracy of determining whether the second message is the reply message of the first message is further improved.

[0089] In some embodiments of the present application, the information reply apparatus 500 further includes:

[0090] The processing module is configured to run the second application in the background in the case that the semantic of the second message matches the semantic of the first message.

[0091] The sending module is configured to send the second message to the target contact through the second application, the target contact matching the first message.

[0092] In the embodiments of the present application, when the electronic device replies to the first message through the second message, the second application can be automatically run in the background, and the second message can be sent to the target contact, without the need for the user to manually run the second application, and the first application running in the foreground of the electronic device is not affected.

[0093] In some embodiments of the present application, the information reply apparatus 500 further includes:

[0094] The display module is configured to display a reply prompt information in the first interface, the reply prompt information including the second message.

[0095] The execution module is configured to, in response to a second input on the reply prompt information, execute the step of replying to the first message through the second message; or

[0096] The execution module is configured to, in response to a third input on the reply prompt information, cancel the execution of the step of replying to the first message through the second message.

[0097] In the embodiments of this application, the electronic device can display reply prompt information matched with the second message in the first interface before sending the second message, so as to enable the user to confirm the content of the second message, the sending software and the sending contact, and the user can select to continue sending the second message or cancel sending the second message, thereby improving the flexibility of replying to the first message by the second message, avoiding the misreply to the first message, and further improving the convenience of replying to the first message by the user.

[0098] In some embodiments of this application, the execution module is configured to edit the second message in response to the fourth input.

[0099] In the embodiments of this application, the fourth input is an editing input of the second message. In the case that the electronic device determines that the second message is a reply message of the first message and displays the reply prompt information including the second message, the user can perform secondary editing on the second message through the fourth input, thereby further improving the flexibility of replying to the first message by the second message.

[0100] The information reply apparatus in the embodiments of this application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than the terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The electronic device can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of this application are not limited in this regard.

[0101] The information reply apparatus in the embodiments of this application can be an apparatus with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiments of this application are not limited in this regard.

[0102] The information reply apparatus provided in the embodiments of this application can implement all the processes implemented by the method embodiments, and thus repeated details are not described herein.

[0103] Optionally, the embodiment of the present application further provides an electronic device comprising the information reply device according to any of the above-mentioned embodiments, thus having all the beneficial effects of the information reply device according to any of the above-mentioned embodiments, which will not be repeated here.

[0104] Optionally, the embodiment of the present application further provides an electronic device comprising the information reply device according to any of the above-mentioned embodiments, thus having all the beneficial effects of the information reply device according to any of the above-mentioned embodiments, which will not be repeated here. Figure 6 A structural block diagram of an electronic device according to the embodiment of the present application is shown in FIG. 6. Figure 6 As shown in FIG. 6, the electronic device 600 comprises a processor 602, a memory 604, a program or instruction stored in the memory 604 and executable on the processor 602, which, when executed by the processor 602, implements the processes of the above-mentioned information reply method embodiments and achieves the same technical effects. To avoid repetition, the details will not be repeated here.

[0105] It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.

[0106] Figure 7 A hardware structural schematic diagram of an electronic device according to the embodiment of the present application is shown in FIG. 7.

[0107] The electronic device 700 comprises but is not limited to a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710, etc.

[0108] Those skilled in the art can understand that the electronic device 700 can further comprise a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 710 through a power management system, so as to realize the functions of power management, such as charging, discharging, and power consumption management, through the power management system. Figure 7 The electronic device structure shown in FIG. 7 does not constitute a limitation on the electronic device, and the electronic device can comprise more or fewer components than those shown, or combine certain components, or have a different arrangement of components, which will not be repeated here.

[0109] The network module 702 is configured to receive a first message from a second application when a first interface of a first application is displayed;

[0110] The input unit 704 is configured to receive a first input on the first interface, and the first input is used to edit a second message.

[0111] The processor 710 is configured to reply to the first message by the second message when the second message matches the second application.

[0112] In the embodiments of the present application, in the case that the application interface of other application software is displayed in the foreground, when the social information from the background running social software application is received, the social information is displayed in the application interface displayed in the foreground. After the user views the social information, the user can input a reply message of the social information in the application interface displayed in the foreground. The electronic device can automatically identify whether the reply message input in the application interface displayed in the foreground matches the background running social software application. In the case that the reply message matches the social software application, the reply message is replied to the social information through the social software application, without the need of the user to start the social software application in the foreground, and the non-social software application running in the foreground is not affected, thereby improving the user experience.

[0113] Further, the processor 710 is configured to determine that the second message matches the second application in the case that the first duration is less than the preset duration and the semantic of the second message matches the semantic of the first message, the first duration being a duration from an input time of the first input to a receiving time of the first message.

[0114] In the embodiments of the present application, the first duration between the receiving time of the first message and the input time of the second message is recorded, and the numerical relationship between the first duration and the preset duration and whether the semantic of the first message matches the semantic of the second message are used as the judgment conditions of whether the second message is the reply message of the first message, thereby improving the accuracy of replying the first message by the second information and avoiding the false reply to the first message.

[0115] Further, the processor 710 is configured to obtain a first semantic relevance between the second message and the first message and a second semantic relevance between the second message and a third message, the third message being a message from the first application.

[0116] The processor 710 is configured to determine that the semantic of the second message matches the semantic of the first message in the case that the first semantic relevance is higher than the second semantic relevance and the first semantic relevance is higher than a preset threshold.

[0117] In the embodiments of the present application, the electronic device can compare the semantic relevance between the second message input by the user and the first message and the semantic relevance between the second message and the third message with the preset threshold, so as to accurately determine whether the semantic of the second message matches the semantic of the first message, thereby improving the accuracy of replying the first message by the second information and avoiding the false reply to the first message.

[0118] Further, the processor 710 is configured to obtain a historical message record corresponding to the first message, the message source of the historical message record matching the message source of the first message, and the historical message record including the first message.

[0119] The processor 710 is configured to determine a third semantic correlation degree between the second message and at least two target messages in the historical message record.

[0120] The processor 710 is configured to determine the semantic correlation degree with the highest value in the at least two third semantic correlation degrees as the first semantic correlation degree.

[0121] In the embodiment of the application, the third semantic correlation degrees between the second message and the plurality of message records in the historical message record corresponding to the first message are obtained, and the maximum value in the plurality of third semantic correlation degrees is determined as the first semantic correlation degree, so that the first semantic correlation degree can accurately represent the matching of the second message and the historical message record corresponding to the first message, and the accuracy of determining whether the second message is the reply message of the first message is further improved.

[0122] Further, the processor 710 is configured to run the second application in the background when the semantic of the second message matches the semantic of the first message.

[0123] The network module 702 is configured to send the second message to the target contact through the second application, the target contact matching the first message.

[0124] In the embodiment of the application, when the electronic device replies to the first message through the second information, the second application can be automatically run in the background, and the second message can be sent to the target contact, without the need for the user to manually run the second application, and the first application running in the foreground of the electronic device is not affected.

[0125] Further, the display unit 706 is configured to display a reply prompt information in the first interface, the reply prompt information including the second message.

[0126] The processor 710 is configured to execute the step of replying to the first message through the second message in response to a second input on the reply prompt information; or

[0127] The processor 710 is configured to cancel the step of replying to the first message through the second message in response to a third input on the reply prompt information.

[0128] In the embodiment of the application, the electronic device can display the reply prompt information matched with the second message in the first interface before sending the second message, so that the user can confirm the content of the second message, the sending software and the sending contact, and the user can choose to continue sending the second message or cancel sending the second message, thereby improving the flexibility of replying to the first message through the second message, avoiding the misreply to the first message, and further improving the convenience of the user in replying to the first message.

[0129] Further, the processor 710 is configured to edit the second message in response to a fourth input.

[0130] In the embodiments of the present application, the fourth input is an editing input for the second message. In the case that the electronic device determines that the second message is a reply message of the first message and displays the reply prompt information including the second message, the user can further edit the second message through the fourth input, thereby further improving the flexibility of replying to the first message through the second message.

[0131] It should be understood that in the embodiments of the present application, the input unit 704 can include a graphics processor (GPU) 7041 and a microphone 7042. The graphics processor 7041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 706 can include a display panel 7061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 can include two parts of a touch detection device and a touch controller. The other input devices 7072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, an operation lever, and the like, which will not be described here.

[0132] The memory 709 can be used to store software programs and various data. The memory 709 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 709 can include a volatile memory or a non-volatile memory, or the memory 709 can include both a volatile memory and a non-volatile memory. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 709 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0133] The processor 710 can include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 710.

[0134] The embodiments of the present application also provide a readable storage medium, and the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.

[0135] The processor is a processor in the electronic device in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0136] The chip provided in the embodiments of the present application includes a processor and a communication interface. The communication interface is coupled with the processor. The processor is configured to execute programs or instructions to implement various processes of the information reply method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0137] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-level chip, a system chip, a chip system, or a system-on-chip, etc.

[0138] The embodiments of the present application provide a computer program product stored in a storage medium. The program product is executed by at least one processor to implement various processes of the information reply method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0139] It should be noted that in this document, the terms "comprise", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such a process, method, article or device. Without more limitations, the element defined by the statement "comprises a" does not exclude the presence of additional identical elements in the process, method, article or device that includes the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to the order of performing the functions as shown or discussed, but can also include performing the functions in a substantially simultaneous manner or in reverse order, for example, the described method can be performed in an order different from the described order, and various steps can be added, omitted or combined. In addition, the features described with reference to certain examples can be combined in other examples.

[0140] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, or network equipment, etc.) execute the method of each embodiment of the present application.

[0141] The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, but not restrictive, and a person of ordinary skill in the art can make many forms under the inspiration of the present application without departing from the purpose of the present application and the scope protected by the claims.

Claims

1. An information reply method, executed by an electronic device, characterized in that, The information reply method includes: When the first interface of the first application is displayed, a first message is received, wherein the first message is a message from the second application; Receive a first input to the first interface, the first input being used to edit a second message; If the second message matches the second application, it is determined that the second message is used to reply to the first message, and the first message is replied to in the background using the second message; The electronic device is used to automatically identify whether a reply message entered in the application interface displayed in the foreground matches a social software application running in the background.

2. The information reply method according to claim 1, characterized in that, If the second message matches the second application, before replying to the first message via the second message, the process includes: If the first duration is less than a preset duration and the second message matches the semantics of the first message, it is determined that the second message matches the second application. The first duration is the duration from the input time of the first input to the reception time of the first message.

3. The information reply method according to claim 2, characterized in that, Before determining that the second message matches the second application, if the first duration is less than a preset duration and the second message semantically matches the first message, the method further includes: Obtain the first semantic relevance between the second message and the first message, and the second semantic relevance between the second message and the third message, wherein the third message is a message from the first application; If the first semantic relevance is higher than the second semantic relevance, and the first semantic relevance is higher than a preset threshold, then the second message is determined to be semantically matched with the first message.

4. The information reply method according to claim 3, characterized in that, The step of obtaining the first semantic relevance between the second message and the first message includes: Obtain the historical message record corresponding to the first message, wherein the message source of the historical message record matches the message source of the first message, and the historical message record includes the first message; Determine the third semantic relevance between the second message and at least two target messages in the historical message record; The semantic relevance with the highest value among at least two third semantic relevance values ​​is determined as the first semantic relevance.

5. The information reply method according to any one of claims 1 to 4, characterized in that, The step of replying to the first message with the second message when the semantics of the second message match those of the first message includes: If the second message matches the semantics of the first message, the second application runs in the background; The second message is sent to a target contact through the second application, the target contact being matched with the first message.

6. The information reply method according to any one of claims 1 to 4, characterized in that, Before replying to the first message with the second message when the semantics of the second message match those of the first message, the following steps are included: A reply prompt message is displayed on the first interface, and the reply prompt message includes the second message; In response to a second input of the reply prompt information, the step of replying to the first message via the second message is executed; or In response to a third input regarding the reply prompt information, the step of replying to the first message via the second message is cancelled.

7. An information response device, applied to electronic devices, characterized in that, The information response device includes: The first receiving module is configured to receive a first message when the first interface of the first application is displayed, wherein the first message is a message from the second application; The second receiving module is used to receive a first input to the first interface, the first input being used to edit a second message; The reply module is used to determine that the second message is used to reply to the first message when the second message matches the second application, and to reply to the first message in the background using the second message; The electronic device is used to automatically identify whether a reply message entered in the application interface displayed in the foreground matches a social software application running in the background.

8. The information response device according to claim 7, characterized in that, Also includes: The determining module is used to determine that the second message matches the second application when the first duration is less than a preset duration and the second message matches the semantics of the first message. The first duration is the duration from the input time of the first input to the reception time of the first message.

9. The information response device according to claim 8, characterized in that, Also includes: The first acquisition module is used to acquire the first semantic relevance between the second message and the first message, and the second semantic relevance between the second message and the third message, wherein the third message is a message from the first application; The determining module is used to determine that the second message matches the semantics of the first message when the first semantic relevance is higher than the second semantic relevance and the first semantic relevance is higher than a preset threshold.

10. The information response device according to claim 9, characterized in that, The first acquisition module is used to acquire historical message records corresponding to the first message, wherein the message source of the historical message records matches the message source of the first message, and the historical message records include the first message; The determining module is used to determine the third semantic relevance between the second message and at least two target messages in the historical message record; The determining module is used to determine the semantic relevance with the highest value among at least two third semantic relevance values ​​as the first semantic relevance.

11. The information response device according to any one of claims 7 to 10, characterized in that, Also includes: A processing module is used to run the second application in the background if the semantics of the second message matches those of the first message; The sending module is used to send the second message to a target contact, which is matched with the first message, through the second application.

12. The information response device according to any one of claims 7 to 10, characterized in that, Also includes: The display module is used to display reply prompt information on the first interface, wherein the reply prompt information includes the second message; An execution module is configured to, in response to a second input of the reply prompt information, execute the step of replying to the first message with the second message; or The execution module is configured to cancel the step of replying to the first message via the second message in response to a third input of the reply prompt information.

13. An electronic device, characterized in that, include: A processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the information reply method as described in any one of claims 1 to 6.

14. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or instructions are executed by the processor, they implement the steps of the information reply method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Information question and answer interaction method and system, storage medium, terminal, and intelligent knowledge base

    CN108509591A

  • Information processing method and electronic equipment

    CN112817676A