Information replying method and apparatus, electronic device and storage medium

By receiving and processing social software messages and automatically replying on the front-end interface of smart devices, it solves the cumbersome problem of users needing to switch applications to reply, and improves the convenience and user experience of message replying.

WO2024188201A1PCT designated stage expired Publication Date: 2024-09-19VIVO MOBILE COMM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080895
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-16
Filing Date
2024-03-11
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

When users use smart devices, they need to switch to the corresponding application to reply when receiving messages from social software, which makes the operation of replying to messages cumbersome and affects the user experience.

Method used

By displaying the interface of other applications in the foreground, it receives messages from social software running in the background, and allows users to enter reply messages on the same interface. The electronic device automatically determines whether the reply message matches the social software, and if it matches, the reply is made in the background, without the need for the user to switch. application.

Benefits of technology

It simplifies the process of users replying to messages, improves convenience and user experience, and avoids impact on front-end applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080895_19092024_PF_FP_ABST
    Figure CN2024080895_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of communications. Disclosed are an information replying method and apparatus, an electronic device and a storage medium. The information replying method comprises: when a first interface of a first application is displayed, receiving a first message, the first message being a message from a second application; receiving a first input in respect of the first interface, the first input being used for editing a second message; and, when the second message is matched with the second application, replying to the first message by means of the second message.
Need to check novelty before this filing date? Find Prior Art

Description

Information reply method, device, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on March 16, 2023, with application number 202310253440.7 and title “Information Reply Method, Device, Electronic Device and Storage Medium,” the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application belongs to the field of communication technology, and specifically relates to an information reply method, device, electronic device and storage medium. Background Art

[0004] With the rapid development of smart devices and the Internet, more and more entertainment and social software applications are being used on smart devices, and people are communicating more and more on social software. When receiving messages from social software, users need to enter the social software to view and reply within the application.

[0005] In related technologies, when a user receives a message from a social software while watching a video or playing a game through non-social software in the foreground, the user needs to run the corresponding social software in the foreground before replying to the message, which makes the user's reply operation cumbersome.

[0006] Summary of the Invention

[0007] The purpose of the embodiments of the present application is to provide an information reply method, device, electronic device and storage medium, which achieves the goal of not requiring users to call up social software applications in the foreground, has no impact on non-social software applications running in the foreground, and improves the convenience of users replying to messages.

[0008] In a first aspect, an embodiment of the present application provides an information reply method, comprising: receiving a first message while displaying a first interface of a first application, 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 through the second message when the second message matches the second application.

[0009] In the second aspect, an embodiment of the present application provides an information reply device, including: a first receiving module, used to receive a first message when displaying a first interface of a first application, the first message being a message from a second application; a second receiving module, used to receive a first input to the first interface, the first input being used to edit a second message; and a reply module, used to reply to the first message through a second message when the second message matches the second application.

[0010] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.

[0011] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0012] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method of the first aspect.

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

[0014] In a seventh aspect, an embodiment of the present application provides an electronic device, which is configured to execute the method of the first aspect.

[0015] In an embodiment of the present application, when an application interface of another application software is displayed in the foreground, when social information is received from a social software application running in the background, the social information is displayed in the application interface displayed in the foreground. After viewing the social information, the user can enter a reply message to the social information in the application interface displayed in the foreground. The electronic device can automatically identify whether the reply message entered 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 sent to the social information through the social software application. This does not require the user to call up the social software application in the foreground, does not affect the non-social software applications running in the foreground, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] FIG1 is a schematic diagram showing a flow chart of an information reply method provided in an embodiment of the present application;

[0017] FIG2 shows one of the schematic diagrams of a display interface provided by some embodiments of the present application;

[0018] FIG3 is a schematic diagram showing the calculation results of semantic relevance provided by some embodiments of the present application;

[0019] FIG4 shows a second schematic diagram of a display interface provided by some embodiments of the present application;

[0020] FIG5 shows a schematic block diagram of an information reply device provided in an embodiment of the present application;

[0021] FIG6 shows a structural block diagram of an electronic device according to an embodiment of the present application;

[0022] FIG7 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0024] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0025] The information reply method, information reply device, electronic device and storage medium provided in the embodiments of the present application are described in detail below with reference to Figures 1 to 7 through specific embodiments and their application scenarios.

[0026] In some embodiments of the present application, a method for replying an information is provided. FIG1 shows a flow chart of the method for replying an information in some embodiments of the present application. As shown in FIG1 , the method for replying an information includes:

[0027] Step 102: While displaying the first interface of the first application, receiving a first message from the second application;

[0028] In the embodiment 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.

[0029] For example, the first application may be a video viewing application, the first interface may be a video viewing interface, the first message may be a social chat software, and the first message may be a social message sent by a social contact.

[0030] In an embodiment of the present application, when a user receives a first message sent by another user through a second application while using the first application, the message content of the first message can be directly viewed on the first interface without the user having to switch the application interface of the second application to the foreground display for viewing.

[0031] Step 104: receiving a first input on the first interface, where the first input is used to edit the second message;

[0032] In the embodiment of the present application, the first input is the operation input performed by the user on the first interface, and the operation input includes but is not limited to click input, sliding input, voice input, etc.

[0033] Exemplarily, the user edits the second message by clicking on the virtual keyboard in the first interface, and clicking on the virtual keyboard is the first input.

[0034] Exemplarily, the user inputs the second message through a voice command, and the voice command input by the user to the electronic device is the first input.

[0035] Step 106: When the second message matches the second application, reply to the first message with the second message.

[0036] In an embodiment 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 it is determined that the semantics 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 through the second message in the background. When it is determined that the semantics 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, that is, the second message is sent through the first application.

[0037] After the user completes editing the second message, the electronic device can determine whether the second message matches the second application, for example: by analyzing whether the semantics of the second message match the second message, and based on the relationship between the input time of the second message and the reception time of the first message, determine whether the second message matches the second application. When it is determined that the second application matches the second message, the first message is directly replied to through the second message.

[0038] In an embodiment of the present application, the electronic device obtains the text or audio content entered by the user in the current application through a content capture function to determine the second message. It should be noted that because the first input performed by the user on the first interface uses the input function of the first application, the electronic device can obtain the user's input text or audio content by authorizing the user to grant permissions to the microphone and input method, thereby determining the second message. The electronic device extracts the text content of the first message displayed on the first interface through methods such as text recognition OCR (Optical Character Recognition) technology.

[0039] In an embodiment of the present application, when an application interface of another application software is displayed in the foreground, when social information is received from a social software application running in the background, the social information is displayed in the application interface displayed in the foreground. After viewing the social information, the user can enter a reply message to the social information in the application interface displayed in the foreground. The electronic device can automatically identify whether the reply message entered 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 sent to the social information through the social software application. This does not require the user to call up the social software application in the foreground, does not affect the non-social software applications running in the foreground, and improves the user experience.

[0040] In some embodiments of the present application, when the second message matches the second application, before replying to the first message with the second message, it includes: when the first time length is less than the preset time length and the second message matches the semantics of the first message, determining that the second message matches the second application, the first time length is the time length from the input moment of the first input to the reception moment of the first message.

[0041] In an embodiment of the present application, the electronic device determines 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 reception time corresponding to the first message. If the first duration is less than the preset duration, it is determined that the second message edited by the user through the first input is close to the reception time of the first message, and if the second message and the first message semantics match, 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, simplifying the convenience of users replying to messages from background applications.

[0042] Specifically, the semantics of the second message and the first message can be extracted separately through a semantic recognition algorithm, and the semantics of the two can be compared. For example: by identifying the semantics of the first message and the second message, by extracting keywords from each paragraph of the content in the first message and the second message, and then generating a word frequency vector through a keyword set, and then calculating the cosine similarity between the vectors, if the cosine similarity is high, it is determined that the first message and the second message match. Alternatively, the logical correlation between the first message and the second message can be determined by identifying the syntax and text content entities. If the logical correlation is high, it is determined that the first message and the second message match.

[0043] The first duration is the duration from the input time of the second message to the reception 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 reception time of the first message, thereby calculating the first duration corresponding to the second message.

[0044] When the electronic device receives the first message, the electronic device starts timing. When the user generates the second message through the first input in the first interface, the electronic device stops timing and obtains the first duration. The first duration is compared with the preset duration. When the first duration is greater than or equal to the preset duration, it is determined that the time when the user inputs the second message is late, then the second message is not highly correlated with the first message, and the second message is sent through the first application. When the first duration is less than the preset duration, it is determined that the time when the user inputs the second message is close to the time when the first message is received, then the second message may be highly correlated with the first message. At this time, the semantics of the second message and the first message will be obtained, and the step of determining whether the second message is a reply message to the first message based on the semantics of the first message and the second message will be continued.

[0045] Exemplarily, the preset duration ranges from 5 minutes to 20 minutes. For example, if the preset duration is 10 minutes, if the first duration is less than the preset duration, the semantics of the first message and the second message are obtained; if the first duration is greater than or equal to the preset duration, the second message is directly sent through the first application.

[0046] FIG2 illustrates one schematic diagram of a display interface provided by some embodiments of the present application. As shown in FIG2 , while a game interface 202 of a game application is displayed, a social message 204 is received from social software and displayed as a floating window above the game interface 202. An in-game chat box 206 is displayed within the game interface 202, and in-game chat information 208 is displayed within the in-game chat box 206. The in-game chat information 208 is a message within the game application, and a user enters a text message 210 within the in-game chat box 206. In the example, social message 204 reads "What are you eating tonight?" and was received at 12:02 PM. Text message 210 reads "Eat steamed buns" and was entered at 12:03 PM. The system detects that text message 210 semantically matches social message 204, and that the first duration of text message 210 is 2 minutes, which is less than the preset duration of 5 minutes. Therefore, "Eat steamed buns" is sent as a reply to social message 204 in the background, and the text message is not displayed in the in-game chat box 206. Game interface 202 is the first interface, social message 204 is the first message, and text message 210 is the second message.

[0047] In an embodiment of the present application, by recording the first time length between the time when the first message is received and the time when the second message is input, and using the numerical relationship between the first time length and the preset time length and whether the semantics of the first message and the second message match as judgment conditions for whether the second message is a reply message to the first message, the accuracy of replying to the first message through the second information is improved, and incorrect reply to the first message is avoided.

[0048] In some embodiments of the present application, when the first duration is less than a preset duration and the semantics of the second message match those of the first message, before determining that the second message matches the second application, it also includes: obtaining 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; when the first semantic relevance is higher than the second semantic relevance, and the first semantic relevance is higher than a preset threshold, determining that the second message matches the semantics of the first message.

[0049] In an embodiment of the present application, the first semantic relevance is the semantic relevance between the semantics of the first message and the semantics of the second message, the second semantic relevance is the semantic relevance between the semantics of the second message and the semantics of the third message, and the third message is a message in the first application running in the foreground.

[0050] Specifically, when the first semantic relevance is higher than the second semantic relevance, it is determined that the first message is more closely matched with the second message, and when the first semantic relevance is higher than a preset threshold, it is determined that the second message input by the user is semantically matched with the first message.

[0051] Figure 3 shows a schematic diagram of the semantic relevance calculation results provided by some embodiments of the present application. As shown in Figure 3, the third message in the first interface is "Player A: Wait until my ultimate is ready before starting a team fight, Player B: I still have 30 seconds for my ultimate", the first message is "What to eat tonight", and the second message input by the user through the electronic device is "Eat buns". The second semantic relevance between the second message and the third message is calculated to be P1=0.2, and the first semantic relevance between the second message and the first message is Q1=0.9. When 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.

[0052] For example, if the third message does not exist in the first interface, the second semantic relevance is assumed to be 0. That is, if the first semantic relevance is greater than the preset threshold, it is directly determined that the semantics of the second message match the first message.

[0053] In an embodiment of the present application, the electronic device can accurately determine whether the second message matches the semantics of the first message by comparing the semantic relevance between the second message input by the user and the first message, the semantic relevance between the second message and the third message, and a preset threshold, thereby improving the accuracy of replying to the first message through the second information and avoiding erroneous replies to the first message.

[0054] In some embodiments of the present application, obtaining the first semantic relevance between the second message and the first message includes: obtaining 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; determining the third semantic relevance between the second message and at least two target messages in the historical message record; and determining the semantic relevance with the highest value among the at least two third semantic relevances as the first semantic relevance.

[0055] In this embodiment of the present application, the first message is a social chat message from a social software, and the historical message record is the 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.

[0056] For example, the first message is a chat message between contact A and the user in a social networking app, and the historical message record is a historical chat record between contact A and the user. The historical chat record can be chat records within a preset time period, for example, within a day. By setting the chat record to chat records within the preset time period, it is possible to extract some content in the historical message record that is not closely related to the first message.

[0057] In an embodiment of the present application, the historical message record includes multiple chat messages, the third semantic correlation between each chat message and the second message is determined, and the semantic correlation with the highest value among the multiple third semantic correlations is used as the first semantic correlation between the second message and the first message.

[0058] For example, the TF-IDF (Term Frequency–Inverse Document Frequency) algorithm is used to extract keywords from each chat message. A term frequency vector is generated from the keyword set, and the cosine similarity between these vectors is calculated. Assuming that the semantic relevances between the second message and its multiple chat messages are Q1, Q2, ..., Qn, respectively, the maximum value among these is taken as the first semantic relevance.

[0059] In an embodiment of the present application, by obtaining the third semantic relevance between multiple message records in the historical message record corresponding to the first message and the second message, and taking the maximum value of the multiple third semantic relevance as the first semantic relevance, the first semantic relevance can accurately represent the matching between the second message and the historical message record corresponding to the first message, thereby further improving the accuracy of determining whether the second message is a reply message to the first message.

[0060] In some embodiments of the present application, when the semantics of the second message match those of the first message, replying to the first message through the second message includes: when the semantics of the second message match those of the first message, running a second application in the background; sending the second message to a target contact through the second application, and the target contact matches the first message.

[0061] In this embodiment of the present application, the target contact is the contact who sent the first message. When it is detected that the semantics of the second message match the first message, the second message is determined to be a reply message to 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.

[0062] Specifically, when the electronic device receives the first message, it has already recorded the software of the second application corresponding to the first message and the specific user ID (identity document) of the target contact corresponding to the first message. When replying to the first message with the second message, the second application can be run in the background and the second message can be sent to the target contact.

[0063] For example, the first application is a game application, and the second application is a social chat application. While the electronic device is displaying the game application's interface, the user replies to the first message in the social chat application with a second message. If the electronic device determines that the second message matches the first message, it continues running the game application in the foreground, runs the social chat application in the background, and sends the second message to the target contact of the first message.

[0064] In an embodiment of the present application, when the electronic device replies to the first message with a second message, it can automatically run the second application in the background and send the second message to the target contact without the user manually running the second application, thereby achieving no impact on the first application running in the foreground of the electronic device.

[0065] In some embodiments of the present application, before replying to the first message by using the second message when the semantics of the second message match those of the first message, the method includes:

[0066] A reply prompt message is displayed on the first interface, wherein the reply prompt message includes a second message; in response to a second input to the reply prompt message, a step of replying to the first message through the second message is executed; or in response to a third input to the reply prompt message, the step of replying to the first message through the second message is canceled.

[0067] In an embodiment of the present application, the reply prompt information is used to prompt the user of the text content of the second message, the target contact corresponding to the second message, and the second application corresponding to the second message.

[0068] Before the electronic device replies to the first message through the second message, the electronic device displays reply prompt information in the first interface. After the user views the reply prompt information, he can understand the specific information of the electronic device replying to the second message in the background, including: the application software sending the second message, the ID of the target contact receiving the second message, the specific content of the second message, etc.

[0069] Figure 4 illustrates a second schematic diagram of a display interface provided by some embodiments of the present application. As shown in Figure 4 , while a game interface 402 of a game application is being displayed, a social message 404 is received from social software and displayed as a floating window above game interface 402. Game interface 402 displays an in-game chat box 406, which contains an in-game chat message 408. In-game chat message 408 is a message from the game application. A user enters a text message 410 into in-game chat box 406. When the electronic device detects that text message 410 matches social message 404, it displays a reply prompt 412 in the form of a floating window over text message 410. Game interface 402 is the first interface, social message 404 is the first message, and text message 410 is the second message.

[0070] For example, the reply prompt information may be "Sending software: Application A, User ID: Contact, Message content: Eat buns".

[0071] In the embodiment of the present application, the second input is the operation input performed by the user in response to the prompt message. The second input is used to control the electronic device to send the second message in the background. When the user executes the second input by replying to the prompt message, the electronic device is controlled to send the second message in the background. The third input is the operation input performed in response to the prompt message. The third input is used to cancel the subsequent step of sending the second message. When the user executes the third input by replying to the prompt message, the electronic device is controlled to cancel sending the second message and clear the second message displayed on the first interface.

[0072] Exemplarily, corresponding send controls and cancel controls are displayed in the reply prompt message. When the user clicks the send control, the second input is executed on the reply prompt message. When the user clicks the cancel control, the third input is executed on the reply prompt message.

[0073] In an embodiment of the present application, before sending the second message, the electronic device can display reply prompt information matching the second message in the first interface, so that the user can confirm the content, sending software and sending contact of the second message, 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 information, avoiding the wrong reply to the first message, and further improving the convenience of the user replying to the first message.

[0074] In some embodiments of the present application, after the reply prompt information is displayed on the first interface, it also includes: editing the second message in response to the fourth input.

[0075] In this embodiment of the present application, the fourth input is an edit input for the second message. If the electronic device determines that the second message is a reply message to the first message and displays a reply prompt message including the second message, the user can use the fourth input to edit the second message again, further improving the flexibility of replying to the first message with the second message.

[0076] The information reply method provided in the embodiment of the present application can be executed by an information reply device. In the embodiment of the present application, the information reply device provided in the embodiment of the present application is described by taking the information reply method executed by the information reply device as an example.

[0077] In some embodiments of the present application, an information reply device is provided, which is applied to a first electronic device. FIG5 shows a schematic block diagram of the information reply device provided in an embodiment of the present application. As shown in FIG5 , the information reply device 500 includes:

[0078] A first receiving module 502 is configured to receive a first message from a second application while displaying a first interface of the first application;

[0079] A second receiving module 504 is configured to receive a first input on the first interface, where the first input is used to edit a second message;

[0080] The reply module 506 is configured to reply to the first message via the second message when the second message matches the second application.

[0081] In an embodiment of the present application, when an application interface of another application software is displayed in the foreground, when social information is received from a social software application running in the background, the social information is displayed in the application interface displayed in the foreground. After viewing the social information, the user can enter a reply message to the social information in the application interface displayed in the foreground. The electronic device can automatically identify whether the reply message entered 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 sent to the social information through the social software application. This does not require the user to call up the social software application in the foreground, does not affect the non-social software applications running in the foreground, and improves the user experience.

[0082] In some embodiments of the present application, the information replying device 500 further includes:

[0083] A determination 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 semantics of the second message match those of the first message, wherein the first duration is the duration from the input moment of the first input to the receipt moment of the first message.

[0084] In an embodiment of the present application, by recording the first time length between the time when the first message is received and the time when the second message is input, and using the numerical relationship between the first time length and the preset time length and whether the semantics of the first message and the second message match as judgment conditions for whether the second message is a reply message to the first message, the accuracy of replying to the first message through the second information is improved, and incorrect reply to the first message is avoided.

[0085] In some embodiments of the present application, the information replying device 500 further includes:

[0086] A first acquisition module is configured to acquire 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, where the third message is a message from the first application;

[0087] The determination module is configured to determine that the semantics of the second message match 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.

[0088] In an embodiment of the present application, the electronic device can accurately determine whether the second message matches the semantics of the first message by comparing the semantic relevance between the second message input by the user and the first message, the semantic relevance between the second message and the third message, and a preset threshold, thereby improving the accuracy of replying to the first message through the second information and avoiding erroneous replies to the first message.

[0089] In some embodiments of the present application, the first acquisition module is configured to acquire a historical message record corresponding to the first message, where 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;

[0090] a determination module, configured to determine a third semantic relevance between the second message and at least two target messages in the historical message record;

[0091] The determination module is configured to determine the semantic relevance with the highest value among the at least two third semantic relevances as the first semantic relevance.

[0092] In an embodiment of the present application, by obtaining the third semantic relevance between multiple message records in the historical message record corresponding to the first message and the second message, and taking the maximum value of the multiple third semantic relevance as the first semantic relevance, the first semantic relevance can accurately represent the matching between the second message and the historical message record corresponding to the first message, thereby further improving the accuracy of determining whether the second message is a reply message to the first message.

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

[0094] a processing module, configured to run a second application in the background when the semantics of the second message match those of the first message;

[0095] The sending module is used to send a second message to a target contact through a second application, where the target contact matches the first message.

[0096] In an embodiment of the present application, when the electronic device replies to the first message with a second message, it can automatically run the second application in the background and send the second message to the target contact without the user manually running the second application, thereby achieving no impact on the first application running in the foreground of the electronic device.

[0097] In some embodiments of the present application, the information replying device 500 further includes:

[0098] A display module, configured to display a reply prompt message on the first interface, wherein the reply prompt message includes the second message;

[0099] an execution module, configured to execute, in response to a second input to the reply prompt information, a step of replying to the first message via a second message; or

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

[0101] In an embodiment of the present application, before sending the second message, the electronic device can display reply prompt information matching the second message in the first interface, so that the user can confirm the content, sending software and sending contact of the second message, 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 wrong reply to the first message, and further improving the convenience of the user replying to the first message.

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

[0103] In this embodiment of the present application, the fourth input is an edit input for the second message. If the electronic device determines that the second message is a reply message to the first message and displays a reply prompt message including the second message, the user can use the fourth input to edit the second message again, further improving the flexibility of replying to the first message with the second message.

[0104] The information reply device in the embodiment of the present 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 a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle 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. It 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., and the embodiment of the present application does not specifically limit it.

[0105] The information reply device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0106] The information reply device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be described here.

[0107] Optionally, an embodiment of the present application further provides an electronic device, which includes an information reply device as in any of the above embodiments, and thus has all the beneficial effects of the information reply device in any of the embodiments, which will not be elaborated here.

[0108] Optionally, an embodiment of the present application also provides an electronic device. Figure 6 shows a structural block diagram of an electronic device according to an embodiment of the present application. As shown in Figure 6, the electronic device 600 includes a processor 602, a memory 604, and a program or instruction stored in the memory 604 and executable on the processor 602. When the program or instruction is executed by the processor 602, each process of the above-mentioned information reply method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0109] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0110] FIG7 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0111] The electronic device 700 includes 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.

[0112] Those skilled in the art will appreciate that the electronic device 700 may further include a power source (e.g., a battery) to power various components. The power source may be logically connected to the processor 710 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG7 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components or arrange the components differently, which will not be described in detail here.

[0113] The network module 702 is configured to receive a first message from the second application while displaying the first interface of the first application;

[0114] An input unit 704 is configured to receive a first input on the first interface, where the first input is used to edit the second message;

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

[0116] In an embodiment of the present application, when an application interface of another application software is displayed in the foreground, when social information is received from a social software application running in the background, the social information is displayed in the application interface displayed in the foreground. After viewing the social information, the user can enter a reply message to the social information in the application interface displayed in the foreground. The electronic device can automatically identify whether the reply message entered 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 sent to the social information through the social software application. This does not require the user to call up the social software application in the foreground, does not affect the non-social software applications running in the foreground, and improves the user experience.

[0117] Furthermore, the processor 710 is used to determine that the second message matches the second application when the first duration is less than a preset duration and the semantics of the second message match those of the first message, and the first duration is the duration from the input moment of the first input to the receipt moment of the first message.

[0118] In an embodiment of the present application, by recording the first time length between the time when the first message is received and the time when the second message is input, and using the numerical relationship between the first time length and the preset time length and whether the semantics of the first message and the second message match as judgment conditions for whether the second message is a reply message to the first message, the accuracy of replying to the first message through the second information is improved, and incorrect reply to the first message is avoided.

[0119] 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, where the third message is a message from the first application;

[0120] The processor 710 is configured to determine that the semantics of the second message match 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.

[0121] In an embodiment of the present application, the electronic device can accurately determine whether the second message matches the semantics of the first message by comparing the semantic relevance between the second message input by the user and the first message, the semantic relevance between the second message and the third message, and a preset threshold, thereby improving the accuracy of replying to the first message through the second information and avoiding incorrect reply to the first message.

[0122] Further, the processor 710 is configured to obtain a historical message record corresponding to the first message, wherein a message source of the historical message record matches a message source of the first message, and the historical message record includes the first message;

[0123] Processor 710 is configured to determine a third semantic relevance between the second message and at least two target messages in the historical message record;

[0124] The processor 710 is configured to determine the semantic relevance with the highest value among the at least two third semantic relevances as the first semantic relevance.

[0125] In an embodiment of the present application, by obtaining the third semantic relevance between multiple message records in the historical message record corresponding to the first message and the second message, and taking the maximum value of the multiple third semantic relevance as the first semantic relevance, the first semantic relevance can accurately represent the matching between the second message and the historical message record corresponding to the first message, thereby further improving the accuracy of determining whether the second message is a reply message to the first message.

[0126] Furthermore, the processor 710 is configured to run a second application in the background when the semantics of the second message match those of the first message;

[0127] The network module 702 is configured to send a second message to a target contact through a second application, where the target contact matches the first message.

[0128] In an embodiment of the present application, when the electronic device replies to the first message through the second message, it can automatically run the second application in the background and send the second message to the target contact without the user manually running the second application, thereby achieving no impact on the first application running in the foreground of the electronic device.

[0129] Furthermore, the display unit 706 is configured to display a reply prompt message on the first interface, wherein the reply prompt message includes the second message;

[0130] Processor 710 is configured to, in response to a second input to the reply prompt information, execute the step of replying to the first message via a second message; or

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

[0132] In an embodiment of the present application, before sending the second message, the electronic device can display reply prompt information matching the second message in the first interface, so that the user can confirm the content, sending software and sending contact of the second message, 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 wrong reply to the first message, and further improving the convenience of the user replying to the first message.

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

[0134] In the embodiment of the present application, the fourth input is an edit input for the second message. If the electronic device determines that the second message is a reply message to the first message and displays a reply prompt message including the second message, the user can use the fourth input to edit the second message again, further improving the flexibility of replying to the first message with the second message.

[0135] It should be understood that in an embodiment of the present application, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of a static picture or 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 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.

[0136] The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 709 may include a volatile memory or a non-volatile memory, or the memory 709 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0137] Processor 710 may include one or more processing units. Optionally, processor 710 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 710.

[0138] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0139] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0140] An embodiment of the present application further provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information reply method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

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

[0142] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned information reply method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0143] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device comprising a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0144] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, 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 number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0145] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A method for replying information, in, include: When displaying a first interface of a first application, receiving a first message, where the first message is a message from a second application; receiving a first input on the first interface, where the first input is used to edit a second message; In a case where the second message matches the second application, the first message is replied to with the second message.

2. The information reply method according to claim 1, in, In a case where the second message matches the second application, before replying to the first message through the second message, the method includes: When the first duration is less than the preset duration and the semantics of the second message match those of the first message, it is determined that the second message matches the second application, and 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, in, In a case where the first duration is less than a preset duration and the second message matches the semantics of the first message, before determining that the second message matches the second application, the method further includes: Acquire a first semantic correlation between the second message and the first message, and a second semantic correlation between the second message and a third message, where the third message is a message from the first application; When the first semantic relevance is higher than the second semantic relevance and the first semantic relevance is higher than a preset threshold, it is determined that the semantics of the second message matches the first message.

4. The information reply method according to claim 3, in, The obtaining a first semantic relevance between the second message and the first message includes: Acquire a historical message record corresponding to the first message, where a message source of the historical message record matches a message source of the first message, and the historical message record includes the first message; Determining a 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 of the third semantic relevances is determined as the first semantic relevance.

5. The information reply method according to any one of claims 1 to 4, in, When the semantics of the second message match those of the first message, replying to the first message by using the second message includes: When the semantics of the second message match those of the first message, running the second application in the background; Sending the second message to a target contact through the second application, wherein the target contact is connected to the first The message matches.

6. The information reply method according to any one of claims 1 to 4, in, In the case where the semantics of the second message match those of the first message, before replying to the first message by using the second message, the method includes: Displaying a reply prompt message on the first interface, wherein the reply prompt message includes the second message; In response to a second input to the reply prompt information, executing a step of replying to the first message via the second message; or In response to a third input to the reply prompt information, the step of replying to the first message via the second message is canceled.

7. An information reply device, in, include: A first receiving module, configured to receive a first message from a second application while displaying a first interface of the first application; A second receiving module, configured to receive a first input to the first interface, wherein the first input is used to edit a second message; A reply module is used to reply to the first message through the second message when the second message matches the second application.

8. The information replying device according to claim 7, in, Also includes: A determination module is used to determine that the second message matches the second application when a first duration is less than a preset duration and the semantics of the second message match those of the first message, and the first duration is the duration from the input moment of the first input to the receipt moment of the first message.

9. The information replying device according to claim 8, in, Also includes: A first acquisition module, configured to acquire a first semantic correlation between the second message and the first message, and a second semantic correlation between the second message and a third message, wherein the third message is a message from the first application; The determination module is used to determine that the semantics of the second message matches 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 replying device according to claim 9, in, The first acquisition module is used to acquire 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; The determination module is used to determine a third semantic relevance between the second message and at least two target messages in the historical message record; The determination module is used to determine the semantic relevance with the highest value among at least two of the third semantic relevances as the first semantic relevance.

11. The information replying device according to any one of claims 7 to 10, in, Also includes: a processing module, configured to run the second application in the background when the semantics of the second message matches those of the first message; A sending module is used to send the second message to a target contact through the second application, and the target contact matches the first message.

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

13. An electronic device, in, include: A processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the information reply method as described in any one of claims 1 to 6 are implemented.

14. A readable storage medium having a program or instruction stored thereon, in, When the program or instruction is executed by a processor, the steps of the information reply method according to any one of claims 1 to 6 are implemented.

15. A chip, in, The chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the information reply method as described in any one of claims 1 to 6.

16. A computer program product, in, The program product is stored in a non-transitory storage medium, and the program product is executed by at least one processor to implement the steps of the information reply method according to any one of claims 1 to 6.

17. An electronic device, in, The electronic device is configured to execute the steps of the information reply method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Message processing method and terminal device

    CN108769399A

  • Information display method, terminal, and computer-readable storage medium

    CN109542316A

  • Session message processing method and device, computer equipment and storage medium

    CN112202661A

  • Information processing method and electronic equipment

    CN112817676A

  • Method and apparatus for generating candidate reply message

    US20190081914A1