Instant messaging method and device
By automatically modifying the message content in an instant messaging application to match the information of different contacts, the problem of inefficiency of users when sending similar but different information in batches is solved, and a more efficient communication process is achieved.
Patent Information
- Application Number
- CN202411732611.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-02-11
AI Technical Summary
In instant messaging applications, users need to enter each contact’s chat interface one by one, manually adjust the message content and send it, resulting in inefficient communication and consuming a lot of time and energy.
Provides an instant communication method, by obtaining the information of the original message and contact, automatically modifying the information to generate a target message matching each contact, and sending it in batches. The method includes automatically identifying the title in the original message and replacing it according to the title habits of the contact's notes or historical messages.
This greatly improves communication efficiency, and users can quickly generate and send messages matching different contacts, reducing operation time and effort.
Smart Images

Figure CN119420722A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an instant messaging method and device. Background Art
[0002] In the current instant messaging application environment, when users are faced with the need to send similar but different information to multiple or even numerous contacts (possibly up to dozens or even hundreds of people), such as personalized blessings, important notifications, etc., they have to adopt an inefficient method: enter the chat interface of each contact one by one, manually adjust the message content, and then send them one by one.
[0003] This operation mode greatly limits communication efficiency and causes users to waste a lot of time and energy when dealing with such batch communication tasks. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides an instant messaging method and device to solve the above technical problems.
[0005] In a first aspect, an instant messaging method is provided, comprising:
[0006] Get the original message and identify one or more contacts;
[0007] According to the original message and the contact information, a target message matching each contact is obtained by automatically modifying the information;
[0008] The target message matching the contact is sent to the corresponding contact.
[0009] Furthermore, the original message includes but is not limited to blessings, notifications, and thanks.
[0010] Further, the original message is obtained and one or more contacts are determined, including:
[0011] Get the historical message collection that the user sent to each contact;
[0012] Screening and analyzing the historical message collection to identify contacts related to the original message content;
[0013] Alternatively, one or more contacts may be determined by manual selection or input by the user.
[0014] Furthermore, the step of automatically modifying the information based on the original message and the contact information to obtain a target message matching each contact includes:
[0015] Automatically recognize the salutation in the original message;
[0016] According to the contact's notes or historical messages, the address is replaced with a personalized address to obtain a target message that matches each contact.
[0017] Furthermore, it also includes:
[0018] Obtaining the user's modification operation on the original message;
[0019] Identify the modified content corresponding to the modification operation, and synchronize the modified content to all target messages, wherein the modified content may include the time, mailbox, and address information in the original message.
[0020] Furthermore, before obtaining a target message matching each contact by automatically modifying the information according to the original message and the contact information, the method further includes:
[0021] Obtaining the user's modification operation on the original message, where the modification operation is used to modify the time, email address, and address information in the original message;
[0022] According to the modification operation, a new original message is generated.
[0023] Furthermore, it also includes:
[0024] Display the correspondence between contacts and target messages in the user interface, such as using lines, colors, or other visual elements to distinguish them.
[0025] In a second aspect, an instant messaging device is provided, comprising:
[0026] An acquisition module, used to acquire the original message and determine one or more contacts;
[0027] A modification module, configured to obtain a target message matching each contact by automatically modifying the information according to the original message and the contact information;
[0028] The sending module is used to send the target message matching the contact to the corresponding contact.
[0029] In a third aspect, an instant messaging device is provided, comprising a processor and a memory storing program instructions, wherein the processor is configured to execute an instant messaging method as described in any one of the foregoing when running the program instructions.
[0030] In a fourth aspect, an electronic device is provided, comprising an instant messaging device as described above.
[0031] The invention adopting the above technical solution has the following advantages:
[0032] The present invention provides an instant communication method, which can quickly generate messages matching different contacts and then send them out in batches, thereby greatly improving communication efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the specific implementation of the present invention, the following will briefly introduce the drawings required for use in the specific implementation. In all the drawings, each element or part is not necessarily drawn according to the actual scale.
[0034] Figure 1 A flowchart of an instant messaging method of the present invention;
[0035] Figure 2 The present invention is a flow chart of an instant messaging device. DETAILED DESCRIPTION
[0036] The following embodiments of the technical solution of the present invention are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.
[0037] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should be the common meanings understood by technicians in the field to which the present invention belongs. The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to implement the embodiments of the present disclosure described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. Unless otherwise specified, the term "multiple" means two or more. In the embodiments of the present disclosure, the character " / " indicates that the objects before and after are in an "or" relationship. For example, A / B means: A or B. The term "and / or" is a description of the association relationship of objects, indicating that there can be three relationships. For example, A and / or B means: A or B, or, A and B. The term "corresponding" can refer to an association relationship or a binding relationship, and A and B correspondingly refer to an association relationship or a binding relationship between A and B.
[0038] like Figure 1-2 As shown, an instant messaging method of the present invention includes:
[0039] Step S01, obtaining an original message and determining one or more contacts;
[0040] Step S02: According to the original message and the contact information, the target message matching each contact is obtained by automatically modifying the information;
[0041] Step S03: Send the target message matching the contact to the corresponding contact.
[0042] Specifically, the present invention provides an instant messaging method, which can quickly generate messages matching different contacts and then send them out in batches, thereby greatly improving communication efficiency.
[0043] In some embodiments, the original message includes, but is not limited to, blessings, notifications, and thanks.
[0044] In some embodiments, obtaining the original message and determining one or more contacts includes:
[0045] Get the historical message collection that the user sent to each contact;
[0046] Screen and analyze historical message collections to identify contacts related to the original message content;
[0047] Alternatively, one or more contacts may be determined by manual selection or input by the user.
[0048] Specifically, when a user triggers a forwarding operation on a message in an instant messaging tool, the terminal device obtains the message as the original message.
[0049] For example, when a user receives a notification message "Please notify relevant personnel to submit documents to the mailbox before July 7", confirming that the notification message needs to be forwarded to the relevant personnel will trigger the forwarding operation of the notification message (such as selecting the notification message and right-clicking the mouse), and the terminal device can obtain the notification message as the original message.
[0050] Among them, the terminal device can be a mobile phone (such as HarmonyOS mobile phone, Android mobile phone, iOS mobile phone, etc.), a tablet computer, a desktop computer, a mobile Internet device (Mobile Internet Devices, MID) and a personal digital assistant (Personal Digital Assistant, PDA), etc.
[0051] The user can determine the contact who needs to receive the original message according to the content of the original message. The contact can be a friend or a group chat.
[0052] For example, after the user views the notification message "Please notify relevant personnel to submit documents to the mailbox before July 7", and confirms that the relevant personnel mentioned in the notification message who need to submit documents to the mailbox are Li, Zhang, Wang, and Yang, the forwarding operation of the notification message will be triggered, and Li, Zhang, Wang, and Yang will be manually selected (such as clicking the left mouse button) in the displayed contact list as the target contacts who need to receive the notification message. After the terminal device receives the user's manual selection operation, it can obtain the four contacts indicated by the selection operation as target contacts.
[0053] Alternatively, the terminal device may automatically determine one or more target contacts based on the content of the original message.
[0054] Specifically, the terminal device can identify the name in the original message, obtain the user's contact list, and then match the name in the original message with the user's contact list, thereby determining the contact in the contact list that matches the name in the original message as the target contact.
[0055] For example, when the user triggers the forwarding operation of the original message "Please notify Zhou Yi and Wu Er to submit the file to the mailbox before July 7", the terminal device first identifies the names "Zhou Yi" and "Wu Er" in the original message, obtains the user's contact list, and matches "Zhou Yi" and "Wu Er" with the contact list, thereby determining that the two contacts with contact notes of Zhou Yi and Wu Er are the target contacts.
[0056] Alternatively, the terminal device may obtain a collection of historical messages sent by the user to various contacts, and screen and analyze the collection of historical messages to determine one or more target contacts related to the original message content.
[0057] Specifically, assuming that a user often communicates with certain colleagues or friends on a specific topic, the historical messages of these communications can be used by the terminal device to analyze and determine the contact person who is most relevant to the current original message.
[0058] The specific scenarios are as follows:
[0059] The user triggers the forwarding operation of the original message "Tomorrow at 3 pm, there will be a marketing meeting for new products. Please confirm your attendance." The terminal device first obtains the historical message collection between the user and each contact.
[0060] Analyze the content of historical messages: The terminal device will filter out historical messages that have discussed topics related to the user, such as "new products" or "marketing promotions".
[0061] It further analyzes the contacts in these messages, especially those who frequently participate in discussions or make important comments.
[0062] Identify target contacts: Based on the analysis of historical messages, the terminal device may identify several contacts who frequently participate in new product discussions or marketing activities as target contacts.
[0063] These contacts might be product managers, marketing managers, or key members of the sales team.
[0064] Automatic forwarding or reminder: Once the target contacts are identified, the terminal device can automatically forward these original messages to them, or remind the user through pop-ups, notifications, etc. that these may be key people who need to be notified.
[0065] In some embodiments, according to the original message and the contact information, the target message matching each contact is obtained by automatically modifying the information, including:
[0066] Automatically recognize the salutation in the original message;
[0067] According to the contact's notes or historical messages, the address is replaced with a personalized address to obtain a target message that matches each contact.
[0068] For example, by identifying historical messages between a user and a certain contact, it can be determined that the user addresses the contact as Mr. Wang or Teacher Wang, etc. Specifically, obtain a collection of historical messages sent by the user to the contact; find the first punctuation mark in each historical message, and if the number of characters before the first punctuation mark is less than 6 (a person's name is generally up to 4 characters, plus a 2-character title), then determine the characters before the first punctuation mark as a title identification message; compare all title identification messages with a preset title set, find the title that appears most frequently in the title identification message (e.g., teacher), and determine the title and the preceding character (usually a surname or a given name) together as the user's name for the contact (e.g., Teacher Wang). If there are different characters in front of the title, take the character that appears most frequently and determine it together with the title as the user's name for the contact (e.g., Teacher Wang appears 3 times, Teacher Mingming appears once, then Teacher Wang is determined as the title);
[0069] The title set may include various titles such as brother, sister, boss, teacher, professor, manager, classmate, doctor, nurse, worker, assistant, lady, gentleman, uncle, aunt, etc., which represent occupation, gender, identity, etc. In order to avoid repeatedly determining the title each time a message is forwarded, the title can be automatically saved after the first generation, and the title can be used directly when the message is forwarded later.
[0070] If the above method cannot determine the user's name for a contact, the original message can be output as the target message corresponding to the contact, and a prompt message "Change name failed" can be output on the target message display interface corresponding to the contact to prompt the user to manually change the name;
[0071] Alternatively, the user can also set a fixed title for each contact, such as Mr. Li, Teacher Li, Student Li, etc., as the name of the contact when the user sends a message. This title is different from the current notes, because the notes generally include the full name, but users generally do not call others by their full names when sending messages.
[0072] In the above example, if the automatically generated target message is incorrect, the user can manually modify multiple target messages in the same user interface.
[0073] In some embodiments, it also includes:
[0074] Get the user's modification operation on the original message;
[0075] Identify the modified content corresponding to the modification operation and synchronize the modified content to all target messages, where the modified content may include information such as time, email address, and address in the original message.
[0076] For example, the original message and the target message are displayed in the same user interface. After the date is manually modified in the original message, the target message is automatically and synchronously modified. Specifically, the original message that has been completely modified is obtained, which we define as the modified message; the original message and the modified message are compared, the first and last strings that have not been manually modified in the original message and the modified message are located, and all characters between the first and last strings that have not been manually modified in the original message are determined as modified characters, and all characters between the first and last strings that have not been manually modified in the modified message are determined as modified characters; then the content in the target message that is identical to the modified characters is determined as the characters to be modified, and finally the characters to be modified are replaced with the modified characters, thus completing the automatic synchronous modification of the target message.
[0077] For example: the user manually modifies the original message "Teacher Li, please submit file No. 1 to mailbox 1234 before July 7" to "Teacher Li, please submit file No. 2 to mailbox 5678 before July 6". The system first determines "Teacher Li, please submit file No. 2 to mailbox 5678 before July 6" as a modified message; by comparing the original message and the modified message, the system locates that the first character string that has not been manually modified in the original message and the modified message is "Teacher Li, please in July", and the last character string is "email", so "Submit file No. 1 to 1234 before July 7" is determined as the modified character, and "Submit file No. 2 to 5678 before July 6" is determined as the modified character; then "Submit file No. 1 to 1234 before July 7" in the three target messages is determined as the character to be modified, and all of them are replaced with "Submit file No. 2 to 5678 before July 6". That is, if the user manually changes the original message "Teacher Li, please submit file No. 1 to mailbox 1234 before July 7" to "Teacher Li, please submit file No. 2 to mailbox 5678 before July 6", the three target messages will be automatically modified to: "Teacher Wang, please submit file No. 2 to mailbox 5678 before July 6", "Teacher Zhang, please submit file No. 2 to mailbox 5678 before July 6" and "Teacher Yang, please submit file No. 2 to mailbox 5678 before July 6".
[0078] In this way, a target message can be quickly generated with various information such as the name and date modified at the same time.
[0079] In some embodiments, before obtaining a target message matching each contact by automatically modifying information according to the original message and the contact information, the method further includes:
[0080] Get the user's modification operation on the original message. The modification operation is used to modify the time, email address, address and other information in the original message;
[0081] Generate a new original message based on the modification operation.
[0082] Furthermore, based on the new original message, the terminal device can determine one or more contacts, and based on the new original message and the contact information, automatically modify the information to obtain a target message matching each contact, and then send the target message matching the contact to the corresponding contact.
[0083] In some embodiments, it also includes:
[0084] Display the correspondence between contacts and target messages in the user interface, such as using lines, colors, or other visual elements to distinguish them.
[0085] Specifically, a straight line may be displayed between each forwarding object and its target message, so that the user can check the corresponding relationship between the forwarding object and the target message, thereby ensuring that the target message is not forwarded to the wrong object.
[0086] In some other embodiments, an instant messaging device is provided, comprising:
[0087] An acquisition module, used to acquire the original message and determine one or more contacts;
[0088] A modification module, used to obtain a target message matching each contact by automatically modifying the information according to the original message and the contact information;
[0089] The sending module is used to send the target message matching the contact to the corresponding contact.
[0090] In other embodiments, an instant messaging device is provided, including a processor and a memory storing program instructions, wherein the processor is configured to execute an instant messaging method as described in any one of the above when running the program instructions.
[0091] In other embodiments, an electronic device (eg, a mobile phone, a computer) is provided, comprising an instant messaging device as described above.
[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. An instant messaging method, characterized in that: include: Get the original message and identify one or more contacts; According to the original message and the contact information, a target message matching each contact is obtained by automatically modifying the information; The target message matching the contact is sent to the corresponding contact.
2. An instant messaging method according to claim 1, characterized in that: The original message includes but is not limited to blessings, notifications, and thanks.
3. An instant messaging method according to claim 1, characterized in that: The obtaining of the original message and determining one or more contacts includes: Get the historical message collection that the user sent to each contact; Screening and analyzing the historical message collection to identify contacts related to the original message content; Alternatively, one or more contacts may be determined by manual selection or input by the user.
4. An instant messaging method according to claim 1, characterized in that: The step of automatically modifying the information based on the original message and the contact information to obtain a target message matching each contact includes: Automatically recognize the salutation in the original message; According to the contact's notes or historical messages, the address is replaced with a personalized address to obtain a target message that matches each contact.
5. An instant messaging method according to claim 4, characterized in that: Also includes: Obtaining the user's modification operation on the original message; Identify the modified content corresponding to the modification operation, and synchronize the modified content to all target messages, wherein the modified content may include the time, mailbox, and address information in the original message.
6. An instant messaging method according to claim 1, characterized in that: Before obtaining a target message matching each contact by automatically modifying the information according to the original message and the contact information, the method further includes: Obtaining the user's modification operation on the original message, where the modification operation is used to modify the time, email address, and address information in the original message; According to the modification operation, a new original message is generated.
7. An instant messaging method according to claim 1, characterized in that: Also includes: Display the correspondence between contacts and target messages in the user interface, such as using lines, colors, or other visual elements to distinguish them.
8. An instant messaging device, characterized in that: include: An acquisition module, used to acquire the original message and determine one or more contacts; A modification module, configured to obtain a target message matching each contact by automatically modifying the information according to the original message and the contact information; The sending module is used to send the target message matching the contact to the corresponding contact.
9. An instant messaging device, comprising a processor and a memory storing program instructions, characterized in that: The processor is used to execute an instant messaging method as described in any one of claims 1 to 7 when running the program instructions.
10. An electronic device, characterized in that: Including an instant messaging device as described in claim 8 or 9.