A method and apparatus for message transmission control
By providing selection controls and merging functions in the chat interface of instant messaging clients, users can select and edit historical conversation messages in batches, solving the problem of low communication efficiency caused by cumbersome operations and achieving more efficient message sending.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2020-11-23
- Publication Date
- 2026-05-19
AI Technical Summary
In existing technologies, when users repeatedly reply to the same questions in instant messaging clients, they need to perform tedious copy, paste, and editing operations, resulting in low communication efficiency.
A message sending control method and apparatus are provided, which allows users to select and merge message content in batches by displaying a selection control for historical conversation messages in a chat interface, and then edit and send the messages after editing them in the conversation input box.
It simplifies the message editing process and improves communication efficiency, especially in scenarios such as customer service where the same questions need to be answered frequently, reducing workload and increasing work efficiency.
Smart Images

Figure CN116708335B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application filed on November 23, 2020, with application number 202011318870.5 and invention title "A method and apparatus for controlling message sending". Technical Field
[0002] This application relates to the field of data processing technology, and in particular to a method and apparatus for controlling message sending. Background Technology
[0003] With the development of internet technology and smart terminal technology, the application of instant messaging clients is becoming more and more widespread, and the frequency of conversations and the repetition rate of conversation content through instant messaging clients are also increasing.
[0004] With current technology, users (e.g., customer service representatives) typically use copy, paste, and re-edit operations to reply to the same question multiple times to the same or different chat partners. However, because the message editing process is cumbersome, communication efficiency is low.
[0005] Therefore, how to simplify the complex steps of message editing and improve communication efficiency is a problem that needs to be solved. Summary of the Invention
[0006] This application provides a method and apparatus for controlling message sending, which simplifies message editing steps and improves communication efficiency when sending messages.
[0007] On the one hand, a method for controlling message sending is provided, including:
[0008] In response to the re-editing operation of historical conversation messages displayed on the chat interface, the selection controls corresponding to each historical conversation message are displayed in the chat interface;
[0009] In response to the selection operation of the selection control for the selected historical conversation message, the message content of each selected historical conversation message is displayed in the conversation input box of the chat interface.
[0010] In response to an edit operation on the message content in the conversation input box, display the edited message content in the conversation input box;
[0011] In response to a message sending operation on the conversation input field, send the edited message content.
[0012] On the one hand, a device for controlling message sending is provided, comprising:
[0013] The display unit is used to respond to the re-editing operation of the historical conversation messages displayed on the chat interface, and to display the selection controls corresponding to each historical conversation message in the chat interface;
[0014] The merging unit is used to respond to the selection operation of the selection control for the selected historical conversation message, and to merge and display the message content of each selected historical conversation message in the conversation input box of the chat interface.
[0015] The editing unit is used to respond to the editing operation of the message content in the conversation input box and display the edited message content in the conversation input box;
[0016] The sending unit is used to send the edited message content in response to the sending operation of the message content of the conversation input box.
[0017] On the one hand, a control device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of any of the above-described message sending control methods when executing the program.
[0018] On the one hand, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of any of the above-described message sending control methods.
[0019] On one hand, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various alternative implementations of any of the aforementioned message sending control methods.
[0020] In a message sending control method and apparatus provided in this application embodiment, in response to a re-editing operation of historical conversation messages displayed on a chat interface, selection controls corresponding to each historical conversation message are displayed in the chat interface. In response to a selection operation of the selection control for a selected historical conversation message, the message contents of each selected historical conversation message are displayed together in the conversation input box of the chat interface. In response to an editing operation of the message content in the conversation input box, the edited message content is displayed in the conversation input box. Finally, in response to a sending operation of the message content in the conversation input box, the edited message content is sent. This allows for batch selection of multiple historical conversation messages according to user instructions, and the editing and sending of each selected historical conversation message simplifies the complex steps of message editing and improves communication efficiency.
[0021] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description
[0022] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0023] Figure 1 This is a schematic diagram illustrating an application scenario of message sending control in an embodiment of this application;
[0024] Figure 2 This is a flowchart illustrating an implementation method for message sending control in this application.
[0025] Figure 3 This is a flowchart illustrating an implementation method for editing and sending historical messages according to an embodiment of this application.
[0026] Figure 4a This is a schematic diagram of a menu bar in one embodiment of this application;
[0027] Figure 4b This is a schematic diagram illustrating a message selection method in an embodiment of this application;
[0028] Figure 4c This is a schematic diagram of the content of an input box in an embodiment of this application;
[0029] Figure 4d This is a schematic diagram of a chat interface after sending a message, as described in an embodiment of this application.
[0030] Figure 4e This is a schematic diagram of a chat interface after forwarding a message, as described in an embodiment of this application.
[0031] Figure 5 This is a flowchart illustrating an implementation method for retracting and sending a message according to an embodiment of this application.
[0032] Figure 6 This is a flowchart illustrating an implementation method for editing and sending a notification message according to an embodiment of this application.
[0033] Figure 7 This is an example diagram of a quick prompt window in an embodiment of this application;
[0034] Figure 8 This is a schematic diagram of the structure of a message sending control device according to an embodiment of this application;
[0035] Figure 9 This is a schematic diagram of the structure of a control device according to an embodiment of this application. Detailed Implementation
[0036] To make the objectives, technical solutions, and beneficial effects of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0037] First, some of the terms used in the embodiments of this application will be explained to facilitate understanding by those skilled in the art.
[0038] Terminal devices can be mobile terminals, fixed terminals, or portable terminals, such as mobile phones, sites, units, devices, multimedia computers, multimedia tablets, internet nodes, communicators, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, personal communication system devices, personal navigation devices, personal digital assistants, audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, gaming devices, or any combination thereof, including accessories and peripherals of these devices, or any combination thereof. It is also foreseeable that terminal devices can support any type of user-facing interface (e.g., wearable devices).
[0039] Servers can be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, and big data and artificial intelligence platforms.
[0040] Artificial Intelligence (AI) is the theory, methods, technology, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI studies the design principles and implementation methods of various intelligent machines, enabling them to possess the functions of perception, reasoning, and decision-making.
[0041] Artificial intelligence (AI) is a comprehensive discipline encompassing a wide range of fields, including both hardware and software technologies. Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies primarily include computer vision, speech processing, natural language processing, and machine learning / deep learning.
[0042] Cloud storage is a new concept that has been extended and developed from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system that uses cluster applications, grid technology and distributed storage file systems to bring together a large number of storage devices of various types in the network (storage devices are also called storage nodes) to work together through application software or application interfaces to provide data storage and business access functions to the outside world.
[0043] Currently, the storage method in storage systems is as follows: Logical volumes are created. During logical volume creation, physical storage space is allocated to each logical volume. This physical storage space may consist of a single storage device or the disks of several storage devices. Applications store data on a logical volume, which means storing the data on the file system. The file system divides the data into many parts, each part being an object. Each object contains not only the data but also additional information such as data identifiers. The file system writes each object to the physical storage space of that logical volume, and it records the storage location information of each object. Therefore, when an application requests access to data, the file system can allow the application to access the data based on the storage location information of each object.
[0044] The process by which a storage system allocates physical storage space to a logical volume is as follows: the physical storage space is pre-divided into strips according to the capacity estimate of the objects stored in the logical volume (this estimate usually has a large margin relative to the actual capacity of the objects to be stored) and the grouping of Redundant Array of Independent Disks (RAID). A logical volume can be understood as a strip, thus allocating physical storage space to the logical volume.
[0045] Database: Simply put, it can be viewed as an electronic filing cabinet—a place to store electronic files, where users can perform operations such as adding, querying, updating, and deleting data. A "database" is a collection of data stored together in a certain way, capable of being shared by multiple users, with minimal redundancy, and independent of application programs.
[0046] Database Management Systems (DBMS) are computer software systems designed for managing databases, generally possessing basic functions such as storage, retrieval, security, and backup. DBMSs can be classified according to the database model they support, such as relational or Extensible Markup Language (XML); or the type of computer they support, such as server clusters or mobile devices; or the query language used, such as Structured Query Language (SQL) or XQuery; or performance priorities, such as maximum scale or highest operating speed; or other classification methods. Regardless of the classification method used, some DBMSs can cross categories, for example, simultaneously supporting multiple query languages.
[0047] Instant messaging: A terminal service that allows two or more people to instantly exchange text messages, files, voice and video messages over a network. Instant messaging can be used for communication between users or between employees within a company. Clients that provide instant messaging services are called instant messaging clients.
[0048] Instant messaging interface: This refers to the interface in an instant messaging client used to display messages during the chat. If the user has not chatted with the contact, the instant messaging interface may not contain any messages.
[0049] The design concept of the embodiments of this application is described below.
[0050] With the development of internet technology and smart terminal technology, the application of instant messaging clients is becoming more and more widespread, and the frequency of conversations and the repetition rate of conversation content through instant messaging clients are also increasing.
[0051] With current technology, users typically use operations such as copying, pasting, and re-editing to repeatedly reply to similar questions to the same or different chat partners. However, because the message editing process is cumbersome, communication efficiency is low.
[0052] For example, in customer service, customer service representatives engage in a massive number of conversations with different users every day. During these conversations, users may repeatedly ask similar questions. To avoid giving the same responses and improve user satisfaction, customer service representatives typically need to copy, paste, and re-edit each selected historical conversation message before sending it. However, this complex message editing process results in a heavy workload and low efficiency for customer service representatives.
[0053] Therefore, there is an urgent need for a technical solution for message sending control, which can simplify the message editing process and improve communication efficiency when sending messages.
[0054] Considering that multiple historical conversation messages can be selected, edited, and sent in batches, this application provides a message sending control scheme. In this scheme, the terminal device selects multiple historical conversation messages in the user's chat interface according to the user's instructions, merges the message content of the selected multiple historical conversation messages and displays it in the conversation input box in the chat interface, and re-edits and sends the merged message content.
[0055] The technical solutions provided in the embodiments of this application will be further explained below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiments of this application provide method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on conventional or non-inventive effort. For steps that do not logically have a necessary causal relationship, the execution order of these steps is not limited to the execution order provided in the embodiments of this application. In actual processing or when the device executes, the method may be executed sequentially or in parallel according to the method shown in the embodiments or drawings.
[0056] The terms "first," "second," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0057] See Figure 1 The diagram illustrates an application scenario for message sending control, which includes multiple terminal devices (i.e., first terminal device 110, second terminal device 120, and third terminal device 130) and a server 140. There are at least two terminal devices, each corresponding to one user. The terminal devices can communicate directly via point-to-point communication or through the server 140.
[0058] Figure 1 In this example, we will only use the example of user A corresponding to the first terminal device 110, user B corresponding to the second terminal device 120, and user C corresponding to the third terminal device 130. In actual applications, the number of terminal devices is not limited.
[0059] Each terminal device is equipped with an instant messaging client. The instant messaging client installed in the first terminal device 110 can be referred to as instant messaging client 111, the instant messaging client installed in the second terminal device 120 can be referred to as instant messaging client 121, and the instant messaging client installed in the third terminal device 130 can be referred to as instant messaging client 131. The instant messaging client involved in this application embodiment can be a pre-installed client, a client embedded in an application, or a web-based client; the specific type of client is not limited.
[0060] In this embodiment of the application, the terminal device, according to the user's instructions, selects multiple historical conversation messages in the chat interface, merges the message content of the selected multiple historical conversation messages and displays it in the conversation input box in the chat interface, and re-edits the merged message content before sending it to one or more terminal devices.
[0061] In this embodiment of the application, the executing entity is a control device, specifically an instant messaging client within the control device. The control device can be a terminal device or a server, and no limitation is made here.
[0062] See Figure 2 The diagram shown is a flowchart illustrating an implementation of a message sending control method provided in this application. The specific process of this method is as follows:
[0063] Step 200: In response to the re-editing operation of the historical conversation messages displayed on the chat interface, display the selection controls corresponding to each historical conversation message in the chat interface.
[0064] Specifically, when performing step 200, the following steps can be adopted:
[0065] S2001: The control device displays the menu bar in response to a menu bar activation operation for the chat interface.
[0066] Specifically, the instant messaging client in the control device displays a chat interface, and the user triggers a menu bar activation operation in the chat interface using input units such as a mouse. The control device responds to the menu bar activation operation in the chat interface by displaying the menu bar.
[0067] The menu bar displays the corresponding function controls for re-editing. The chat interface is the instant messaging interface, which refers to the interface in the instant messaging client used to display messages during the chat. The chat interface can occupy the entire display screen of the control device, or it can occupy a part of the display screen of the control device. The size of the chat interface may vary depending on the size of the control device's screen.
[0068] The chat interface includes a chat window, a conversation input box, and an operation panel. The chat window can be a chat window between two contacts or a group chat window; that is, the chat interface can serve as an instant messaging interface for two contacts or for a group. Historical messages can be displayed in the chat window. The conversation input box can be understood as an area for providing user input. The operation panel can include operation buttons to support various functions, such as sending packets and sending video.
[0069] In one implementation, after a user selects a historical chat message in the chat interface, they right-click to trigger a menu bar activation.
[0070] In one implementation, the user clicks the right or left mouse button in any blank area of the chat interface to trigger the menu bar activation.
[0071] In one implementation, the user issues a voice control command to the control device to trigger a menu activation operation. The terminal device uses voice recognition technology from artificial intelligence to recognize the user's voice and displays the menu bar based on the recognition result.
[0072] In practical applications, users can also use other methods to trigger the menu to appear, and there are no restrictions here.
[0073] S2002: When a user clicks the corresponding function control in the menu bar of the chat interface, the control device responds to the re-editing operation of the historical conversation messages displayed on the chat interface, and displays the selection controls corresponding to each historical conversation message in the chat interface.
[0074] The chat interface may contain one or more historical conversation messages, and the selection control is used to select or deselect historical conversation messages.
[0075] It should be noted that the chat interface can display selection controls only for the sender's historical conversation messages, or it can display selection controls for each historical conversation message in the chat interface individually. In other words, users can select historical conversation messages they themselves sent, or they can select historical conversation messages sent by chat partners.
[0076] This allows users to select multiple historical conversation messages in batches within the chat interface.
[0077] Step 201: In response to the selection operation of the selection control for the selected historical conversation message, the message content of each selected historical conversation message is displayed in the conversation input box of the chat interface.
[0078] Specifically, when performing step 201, the following steps can be adopted:
[0079] S2011: The user selects one or more historical session messages that need to be re-edited by clicking or other means through the input unit of the control device. The control device responds to the selection operation of the selection control for the selected historical session message and obtains the identification information of each selected historical session message.
[0080] 2012: Retrieve the message content set corresponding to the identifier information of each selected historical session message.
[0081] Specifically, before executing step 200, corresponding identification information is set for each historical session message in advance, and a correspondence between the identification information and the message content of the historical session message is established, and a set containing the above correspondence is generated.
[0082] The identification information is used to uniquely identify the message content of a historical session message. This identification information improves the efficiency of message content retrieval and acquisition.
[0083] Optionally, the above collection can be in the form of an array to store the message content of each historical session message and the corresponding identification information. The array can be a JSON array or other types of arrays; there are no restrictions here. The JSON array can store each message content as a string. The terminal device can use cloud storage or database storage to store historical session messages and identification information, etc.
[0084] When executing S2012, based on the correspondence between the identification information and the message content of the historical session messages, the message content corresponding to the identification information of each selected historical session message is retrieved from the JSON array.
[0085] S2013: Using specified characters, the message content corresponding to each selected historical session message is concatenated to obtain the concatenated message content.
[0086] Specifically, if it is determined that there are multiple historical session messages, then a specified character is used to concatenate the message content corresponding to each historical session message in turn to obtain the concatenated message content.
[0087] Optionally, the specified character can be a newline character, so that in subsequent steps, each string can be split and displayed in the session input box after line breaks. In actual applications, the specified character can be set according to the actual application scenario, such as " / ", and there is no restriction here.
[0088] It should be noted that if the historical session message is determined to be a single message, then there is no need to perform message content concatenation, meaning that S2013 can be omitted.
[0089] In one implementation, the chat interface may also display functional controls for confirming and canceling edits. When a user triggers the functional control for confirming edits, the control device responds to the trigger operation by using specified characters to concatenate the message content corresponding to each selected historical conversation message to obtain the concatenated message content.
[0090] Furthermore, if the user triggers the function control for canceling editing, the control device responds to the trigger operation for the function control for canceling editing, stops the re-editing process, and restores the display of the chat interface.
[0091] S2014: Assign values to the text labels of the conversation input boxes based on the concatenated message content.
[0092] In one implementation, the concatenated message content is copied to an intermediate variable, and then the concatenated message content is assigned to the text label of the conversation input box through the intermediate variable.
[0093] Optional, text labels can be used <textarea>。< / textarea> <textarea> The label is a text input control used to display the value of the text label, i.e., the message content, in the conversation input box.< / textarea>
[0094] In practical applications, the type and name of intermediate variables can be set according to the actual application scenario. For example, the intermediate variable can be "reedit", and there are no restrictions here.
[0095] S2015: Display the concatenated message content in the conversation input box based on text labels.
[0096] It should be noted that if only one historical session message is selected, the message content corresponding to that historical session message will be displayed in the session input box.
[0097] Furthermore, the conversation input box can also display multiple recommended conversation information selected by the user from the quick prompt window, and can also display the message content of multiple historical conversation messages that the user has recalled in batches, so that the recommended conversation information and / or message content in the conversation input box can be edited in subsequent steps.
[0098] When displaying multiple recommended conversations selected by the user from the shortcut window in the conversation input box, the following steps can be taken:
[0099] S201a: In response to an input operation on a conversation input field, obtain the input information in the conversation input field.
[0100] Specifically, users perform input operations through input units such as keyboards, and control the device to respond to input operations in the conversation input box and obtain the input information in the conversation input box.
[0101] In one implementation, the user performs an input operation via voice, controls the device to receive the user's voice, performs audio recognition on the received voice, and obtains the text input information corresponding to the voice.
[0102] S201b: Based on the acquired preset dialogue information and historical conversation messages, determine multiple recommended conversation information corresponding to the input information.
[0103] Specifically, firstly, the system obtains the local stored preset dialogue information and the first correspondence between the preset dialogue information and keywords, and extracts the keywords from the input information. Based on the keywords in the input information and the aforementioned first correspondence, the system obtains the preset dialogue information corresponding to the input information.
[0104] Then, extract the keywords of each historical conversation message in the chat interface, obtain the second correspondence between the keywords of the conversation message and the keywords of the input information, and obtain the historical conversation information corresponding to the input information based on the keywords of the input information and the second correspondence.
[0105] Next, the preset dialogue information and historical conversation information corresponding to the input information are determined as multiple recommended conversation information corresponding to the input information.
[0106] Before executing S201b, the control device pre-sets multiple preset dialogue scripts. These preset dialogue scripts can be set based on human experience, or tailored to different application scenarios. They can also be set based on the frequency of use of historical conversation messages by each user, selecting frequently used historical conversation messages as preset dialogue scripts; no restrictions are placed on this. The terminal settings can also pre-set a first correspondence between preset dialogue scripts and keywords, and a second correspondence between keywords in conversation messages and keywords in input information.
[0107] In this embodiment, the example of determining multiple recommended session information corresponding to input information using a pre-established first and second correspondence relationship is used for illustration. In actual applications, other methods can also be used to determine multiple recommended session information corresponding to input information according to the actual application scenario, and no restrictions are imposed here.
[0108] In this embodiment, we only take the example of determining multiple recommended conversation information corresponding to input information based on each preset dialogue information and each historical conversation message as an example. Similarly, we can also determine multiple recommended conversation information corresponding to input information based solely on each preset dialogue information, or based solely on each historical conversation message. There are no restrictions here.
[0109] S201c: Displays a quick suggestion window based on multiple recommended conversation information corresponding to the input information.
[0110] Specifically, the quick suggestion window displays the selection controls corresponding to each recommended session.
[0111] S201d: In response to a selection operation of the selection control for the selected recommended session information, the selected recommended session information is displayed in the session input box of the chat interface.
[0112] In this way, when a user enters information in the conversation input box, multiple recommended conversation information related to the user's input can be recommended to the user based on the user's input information, and then the multiple recommended conversation information selected by the user can be merged and displayed in the conversation input box of the chat interface.
[0113] When displaying the message content of multiple historical conversation messages that a user has recalled in batches in the conversation input box, the following steps can be taken:
[0114] S201A: In response to a recall operation on historical conversation messages displayed in the chat interface, the selection controls corresponding to each historical conversation message are displayed in the chat interface.
[0115] Specifically, the instant messaging client in the control device displays a chat interface. Users can trigger the menu bar by clicking the left or right mouse button in a blank area of the chat interface or on a selected historical message using input units such as a mouse. The control device responds to the menu bar activation by displaying the menu bar. When a user clicks a message in the chat interface's menu bar to recall the corresponding function control, the control device responds to the message operation on the historical messages displayed in the chat interface by displaying the corresponding selection controls for each historical message.
[0116] The menu bar displays the function controls for message recall.
[0117] This allows you to select messages that need to be recalled in batches.
[0118] S201B: In response to a selection operation of a selection control for a selected historical session message and a trigger operation of a function control for confirming withdrawal, an edit selection pop-up window is displayed.
[0119] Specifically, the chat interface displays functional controls for confirming and canceling recall. Users select the corresponding historical conversation message to be recalled within the chat interface, and trigger the functional control for confirming recall. In response to the selection operation of the selected historical conversation message and the triggering operation of the functional control for confirming recall, the control device displays an edit selection pop-up window at the top of the chat interface.
[0120] The edit selection pop-up displays function controls for confirming and canceling edits.
[0121] S201C: In response to a trigger operation on a function control used to confirm editing, a new chat interface is displayed, and the message content of each selected historical chat message is merged and displayed in the chat input box of the new chat interface.
[0122] Specifically, the user triggers the function control in the edit selection pop-up window to confirm the edit. In response to the trigger operation on the function control for confirming the edit, the control device displays a new chat interface and merges the message content of each selected historical chat message into the chat input box of the new chat interface.
[0123] The new chat interface removes selected historical conversation messages that need to be recalled and displays a recall prompt message in the location of the recalled historical conversation message.
[0124] This way, when a message is recalled, multiple recalled historical session messages can be merged and displayed in the message input box.
[0125] Step 202: In response to the editing operation on the message content in the conversation input box, display the edited message content in the conversation input box.
[0126] Specifically, users can edit the message content in the conversation input box using input units such as a keyboard. The control device responds to the user's content editing operation, obtains the edited message content, assigns the edited message content to the text label of the conversation input box, and displays the edited message content in the conversation input box based on the text label.
[0127] Furthermore, similarly, the recommended conversation information and / or message content in the conversation input box can also be edited, and the edited content will be displayed in the conversation input box, which will not be elaborated here.
[0128] Step 203: In response to the message content sent to the conversation input field, send the edited message content.
[0129] Specifically, when performing step 203, the following two methods can be used:
[0130] The first method is to send the edited message content in response to a trigger operation on the send control in the conversation input box.
[0131] In other words, you can directly click the send button to send the message content directly to the chat partner.
[0132] The second method is as follows: In response to the trigger operation of the forwarding control in the conversation input box, the communication friend interface is displayed, and in response to the selection operation of the selection control of the selected communication friend, the edited message content is forwarded to the selected communication friend, and the selection control corresponding to each communication friend is displayed in the communication friend interface.
[0133] In other words, you can forward the message to other communication contacts.
[0134] The following describes the above embodiments in detail using several application scenarios.
[0135] In one application scenario, historical chat messages in the chat interface are edited and then sent. (See also...) Figure 3 The diagram shown is a flowchart illustrating the implementation of a method for editing and sending historical messages provided in this application. The specific process of this method is as follows:
[0136] Step 300: The instant messaging application displays the chat interface.
[0137] Step 301: The instant messaging application displays the menu bar in response to a menu bar invocation action on the chat interface.
[0138] See Figure 4a The image shown is a schematic diagram of a menu bar. Figure 4a In the chat interface between customer service and user A, multiple historical conversation messages are displayed. The user selects the historical conversation message "Sorry, ma'am, we need to follow the procedure; real-name authentication takes a little time," and right-clicks. The control device responds to the menu bar activation operation (i.e., right-clicking) on the chat interface, displaying the menu bar. The menu bar contains multiple function controls: copy, forward, reply, recall, re-edit, and delete.
[0139] Step 302: In response to the triggering operation of the function control corresponding to the re-editing in the menu bar, the instant messaging application displays the selection control corresponding to each historical conversation message, as well as the function controls for confirming editing and canceling editing, in the chat interface.
[0140] Specifically, in response to a selection operation of a selection control for a selected historical conversation message, the instant messaging application obtains the identification information of each selected historical conversation message, and obtains the message content set corresponding to the identification information of each selected historical conversation message. Furthermore, through the function control, the user can confirm the edit or cancel the edit.
[0141] See Figure 4b The image shown is a schematic diagram of a message selection method. Figure 4b In the chat interface, selection controls corresponding to each historical conversation message are displayed, along with function controls for confirming and canceling edits. Each historical conversation message has corresponding identification information, which can be represented by an identifier (ID). For example, Figure 4b The IDs corresponding to each historical session message are as follows:
[0142] Customer Service (ID=3): I'm sorry, ma'am, we need to follow the procedures. Real-name authentication takes a little time.
[0143] User A (id=4): Just tell me you can get it done in a few minutes, could you please urge me to finish?
[0144] User A (id=5): Are you there?
[0145] Customer Service (ID=6): I understand your anxiety. Please wait a moment while I relay your message.
[0146] User A (id=7): I know you say you can reply within three days, but I'm in a hurry. Could you please expedite the process for me?
[0147] Customer Service (ID=8): Ma'am, please don't worry, I have already reported it for you.
[0148] Figure 4b In the message, customer service representatives selected the historical conversation messages that needed to be edited via a selection control, along with their corresponding IDs: ID=3 Customer Service: Sorry, ma'am, we need to follow the procedure; real-name authentication takes a little time. And ID=8 Customer Service: Ma'am, please don't worry, I've already forwarded your request.
[0149] Step 303: The instant messaging application determines whether to confirm the re-editing. If yes, proceed to step 304; otherwise, proceed to step 309.
[0150] Specifically, if the instant messaging application responds to a trigger operation on a function control used to confirm editing, it confirms the re-editing and proceeds to step 304; if the instant messaging application responds to a trigger operation on a function control used to cancel editing, it cancels the editing and proceeds to step 309.
[0151] Step 304: In response to the trigger operation of the function control used to confirm the edit, the instant messaging application uses a newline character to concatenate the message content corresponding to each selected historical session message to obtain the concatenated message content.
[0152] Step 305: The instant messaging application assigns values to the text labels in the conversation input box based on the concatenated message content.
[0153] Step 306: The instant messaging application displays the concatenated message content in the conversation input box based on the text label.
[0154] Step 307: In response to the editing operation on the message content in the conversation input box, the instant messaging application displays the edited message content in the conversation input box.
[0155] Figure 4b The selected historical conversation messages were: "Sorry, ma'am, we need to follow the procedure; real-name authentication takes a little time" and "Ma'am, please don't worry, I've already forwarded your request." (See also...) Figure 4c The image shows a schematic of an input box. Using line breaks, the messages "Sorry, ma'am, we need to follow the process; real-name authentication takes a little time" and "Ma'am, please don't worry, I've already forwarded your request." are concatenated and then edited to include the message "There is currently someone handling your request."
[0156] Step 308: The instant messaging application responds to the send operation for the message content in the conversation input box by sending the edited message content.
[0157] In one implementation, the instant messaging application sends an edited message in response to a triggering action on the send control in a conversation input field.
[0158] For example, Figure 4c The app also displays a send control; when a customer service representative clicks the send control, the instant messaging application directly sends the edited message content. Figure 4d The image shows a screenshot of a chat interface after a message has been sent. The chat interface between customer service representative and user A displays the edited message content.
[0159] In one implementation, the instant messaging application displays a contact friend interface in response to a trigger operation on a forwarding control in a conversation input box, and forwards the edited message content to the selected contact friend in response to a selection operation on a selection control for the selected contact friend.
[0160] For example, Figure 4cThe message also displays a forwarding control. When the customer service representative clicks the forwarding control, the instant messaging application displays a contact list. The customer service representative selects a contact (user B) from the contact list and triggers the forwarding confirmation control. In response to the customer's action, the instant messaging application forwards the edited message to user B selected by the customer service representative. (See also...) Figure 4e The image shown is a schematic diagram of a chat interface after forwarding a message. Figure 4e This is the chat interface between customer service representative and user B. The chat interface displays edited and forwarded message content.
[0161] Step 309: The instant messaging application ends the message re-editing process.
[0162] In one application scenario, recalled historical session messages are edited and sent. (See also...) Figure 5 The diagram shown is a flowchart illustrating the implementation of a method for retracting and sending a message, as provided in this application. The specific steps of this method are as follows:
[0163] Step 500: The instant messaging application displays the chat interface.
[0164] Step 501: The instant messaging application displays the menu bar in response to a menu bar invocation action on the chat interface.
[0165] Step 502: In response to the triggering operation of the function control corresponding to the message recall in the menu bar, the instant messaging application displays the selection control corresponding to each historical conversation message, as well as the function controls for confirming recall and canceling recall, in the chat interface.
[0166] Step 503: In response to the selection operation of the selection control for the selected historical conversation message and the triggering operation of the function control for confirming withdrawal, the instant messaging application displays an edit selection pop-up window at the top of the chat interface.
[0167] Step 504: In response to a trigger action on the function control used to confirm the edit, the instant messaging application displays a new chat interface and merges the message content of each selected historical conversation message into the conversation input box of the new chat interface.
[0168] Specifically, the new chat interface removes selected historical conversation messages that need to be recalled, and displays a recall prompt message in the location of the recalled historical conversation messages.
[0169] Step 505: In response to an edit operation on the message content in the conversation input box, the instant messaging application displays the edited message content in the conversation input box.
[0170] Step 506: The instant messaging application responds to the send operation for the message content in the conversation input box by sending the edited message content.
[0171] In one application scenario, message editing and sending are based on recommended prompts. (See also...) Figure 6 The diagram shown is a flowchart illustrating the implementation of a method for editing and sending a notification message provided in this application. The specific steps of this method are as follows:
[0172] Step 600: The instant messaging application displays the chat interface.
[0173] Step 601: The instant messaging application responds to an input action in the conversation input field and retrieves the input information from the conversation input field.
[0174] Step 602: The instant messaging application determines multiple recommended conversation information corresponding to the input information based on the acquired preset dialogue information and historical conversation messages.
[0175] Step 603: The instant messaging application displays a quick suggestion window based on multiple recommended conversation information corresponding to the input information.
[0176] For example, see Figure 7 The image shown is an example of a quick notification window. Figure 7 In the context of the input box, if the input message is "Sorry", the quick suggestion window will display recommended conversation information related to "Sorry", such as "Hello".
[0177] Step 604: In response to the selection operation of the selection control for the selected recommended conversation information, the instant messaging application merges and displays the selected recommended conversation information in the conversation input box of the chat interface.
[0178] Step 605: In response to the edit operation on the recommended conversation information in the conversation input box, the instant messaging application displays the edited recommended conversation information in the conversation input box.
[0179] Step 606: In response to the sending operation for the recommended conversation information in the conversation input field, the instant messaging application sends the edited recommended conversation information.
[0180] In practical applications, re-editing, undoing and re-editing, and re-editing based on quick prompts can be applied to different application scenarios, or any two or all of them can be applied to the same application scenario. The execution order of re-editing, undoing and re-editing, and re-editing based on quick prompts is not restricted.
[0181] Assuming the number of historical session messages that need to be resent is n, traditional techniques require m steps (copying and pasting) for each message. Displaying n messages in the session input box requires n*m steps. However, in this embodiment, historical messages can be selected in batches and displayed in the session input box, requiring only k+n steps. Here, m, n, and k are all positive integers, and k is less than m. Clearly, k+n is less than n*m, and the larger n is (i.e., the more historical session messages), the greater the difference between k+n and n*m.
[0182] In this embodiment, multiple historical conversation messages can be selected in batches and displayed in the conversation input box after being concatenated. This avoids the need to repeatedly enter the same text using the keyboard or copy and paste information, simplifies the complex steps of message editing, improves the efficiency of message communication, enables quick message replies, and enhances the user experience.
[0183] Based on the same inventive concept, this application also provides a message sending control device. Since the principle of the above device and equipment in solving the problem is similar to that of a message sending control method, the implementation of the above device can refer to the implementation of the method, and the repeated parts will not be described again.
[0184] like Figure 8 The diagram shown is a structural schematic of a message sending control device provided in an embodiment of this application. The message sending control device includes:
[0185] Display unit 801 is used to respond to the re-editing operation of historical conversation messages displayed on the chat interface, and to display the selection controls corresponding to each historical conversation message in the chat interface;
[0186] The merging unit 802 is used to merge and display the message content of each selected historical conversation message in the conversation input box of the chat interface in response to the selection operation of the selection control for the selected historical conversation message;
[0187] The editing unit 803 is used to display the edited message content in the conversation input box in response to the editing operation on the message content in the conversation input box;
[0188] The sending unit 804 is used to send the edited message content in response to the sending operation of the message content of the conversation input box.
[0189] Preferably, the editing unit 803 is also used for:
[0190] In response to the recall operation of historical conversation messages displayed in the chat interface, the selection controls corresponding to each historical conversation message are displayed in the chat interface;
[0191] In response to the selection operation of the selection control for the selected historical session message and the trigger operation of the function control for confirming withdrawal, the edit selection pop-up window is displayed, which displays the function controls for confirming editing and canceling editing respectively;
[0192] In response to a trigger operation on the function control used to confirm editing, a new chat interface is displayed, and the message content of each selected historical conversation message is displayed in the conversation input box of the new chat interface. A retraction prompt message is also displayed in the new chat interface to indicate that the selected historical conversation message has been retracted.
[0193] Preferably, the editing unit 803 is also used for:
[0194] In response to input operations in the conversation input field, retrieve the input information from the conversation input field;
[0195] Based on the acquired preset dialogue information and historical conversation messages, determine multiple recommended conversation information corresponding to the input information;
[0196] Based on multiple recommended conversation information corresponding to the input information, a quick prompt window is displayed, which shows the selection controls corresponding to each recommended conversation information.
[0197] In response to the selection operation of the selection control for the selected recommended conversation information, the selected recommended conversation information is displayed in the conversation input box of the chat interface.
[0198] Preferably, the merging unit 802 is used for:
[0199] In response to a selection operation of the selection control for each selected historical session message, obtain the identification information of the selected historical session message;
[0200] Retrieve the message content corresponding to the identifier information of each selected historical session message;
[0201] Using specified characters, the message content corresponding to each selected historical session message is concatenated to obtain the concatenated message content;
[0202] Assign values to the text labels of the conversation input boxes based on the concatenated message content;
[0203] Based on text labels, the concatenated message content is displayed in the conversation input box.
[0204] Preferably, the transmitting unit 804 is used for:
[0205] In response to a trigger operation on the send control in the conversation input box, the edited message content is sent; or, in response to a trigger operation on the forward control in the conversation input box, the communication friends interface is displayed, and in response to a selection operation on the selection control of the selected communication friend, the edited message content is forwarded to the selected communication friend, and the selection control corresponding to each communication friend is displayed in the communication friends interface.
[0206] In a message sending control method and apparatus provided in this application embodiment, in response to a re-editing operation of historical conversation messages displayed on a chat interface, selection controls corresponding to each historical conversation message are displayed in the chat interface. In response to a selection operation of the selection control for a selected historical conversation message, the message contents of each selected historical conversation message are displayed together in the conversation input box of the chat interface. In response to an editing operation of the message content in the conversation input box, the edited message content is displayed in the conversation input box. Finally, in response to a sending operation of the message content in the conversation input box, the edited message content is sent. This allows for batch selection of multiple historical conversation messages according to user instructions, and the editing and sending of each selected historical conversation message simplifies the complex steps of message editing and improves communication efficiency.
[0207] Figure 9 A schematic diagram of a control device 9000 is shown. (See attached diagram.) Figure 9 As shown, the control device 9000 includes: a processor 9010, a memory 9020, a power supply 9030, a display unit 9040, and an input unit 9050.
[0208] The processor 9010 is the control center of the control device 9000. It connects various components through various interfaces and lines, and performs various functions of the control device 9000 by running or executing software programs and / or data stored in the memory 9020, thereby performing overall control of the control device 9000.
[0209] In this embodiment of the application, when the processor 9010 calls the computer program stored in the memory 9020, it executes, as follows: Figure 2 The embodiment shown provides a method for controlling message sending.
[0210] Optionally, the processor 9010 may include one or more processing units; preferably, the processor 9010 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 9010. In some embodiments, the processor and memory may be implemented on a single chip; in some embodiments, they may also be implemented separately on independent chips.
[0211] The memory 9020 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, various applications, etc.; the data storage area may store data created based on the use of the control device 9000, etc. In addition, the memory 9020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device, etc.
[0212] The control device 9000 also includes a power supply 9030 (such as a battery) that supplies power to various components. The power supply can be logically connected to the processor 9010 through a power management system, thereby enabling the management of charging, discharging, and power consumption.
[0213] The display unit 9040 can be used to display information input by the user or information provided to the user, as well as various menus of the control device 9000. In this embodiment of the invention, it is mainly used to display the display interfaces of various applications in the control device 9000, as well as text, images, and other objects displayed on the display interfaces. The display unit 9040 may include a display panel 9041. The display panel 9041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0214] The input unit 9050 can be used to receive information such as numbers or characters input by the user. The input unit 9050 may include a touch panel 9051 and other input devices 9052. The touch panel 9051, also known as a touch screen, can collect touch operations on or near the touch panel 9051 by the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 9051).
[0215] Specifically, the touch panel 9051 can detect user touch operations and the signals generated by these operations, converting them into touch point coordinates and sending them to the processor 9010. It can also receive and execute commands from the processor 9010. Furthermore, the touch panel 9051 can be implemented using various types of sensors, including resistive, capacitive, infrared, and surface acoustic wave sensors. Other input devices 9052 can include, but are not limited to, one or more of the following: a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick.
[0216] Of course, the touch panel 9051 can cover the display panel 9041. When the touch panel 9051 detects a touch operation on or near it, it transmits the information to the processor 9010 to determine the type of touch event. Subsequently, the processor 9010 provides corresponding visual output on the display panel 9041 based on the type of touch event. Although in Figure 9 In this embodiment, the touch panel 9051 and the display panel 9041 are two separate components to realize the input and output functions of the control device 9000. However, in some embodiments, the touch panel 9051 and the display panel 9041 can be integrated to realize the input and output functions of the control device 9000.
[0217] The control device 9000 may also include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity light sensor, etc. Of course, depending on the specific application, the control device 9000 may also include other components such as a camera. Since these components are not the focus of this application embodiment, therefore... Figure 9 It is not shown in the text and will not be described in detail here.
[0218] Those skilled in the art will understand that Figure 9 This is merely an example of a control device and does not constitute a limitation on the control device. It may include more or fewer components than shown, or combine certain components, or different components.
[0219] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks. Alternatively, if the integrated units of the present invention are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0220] This application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the message transmission control method described in any of the above method embodiments.
[0221] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general-purpose hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a control device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.
[0222] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for controlling message sending, characterized in that, The method includes: In response to the triggering operation of the corresponding function control for message recall in the menu bar, the selection control corresponding to each historical conversation message is displayed in the chat interface; In response to the selection operation of the selection control for the selected historical session message and the triggering operation of the function control for confirming withdrawal, an edit selection pop-up window is displayed, which displays a function control for confirming editing; In response to a triggering operation on the function control used for confirming the edit, the retracted historical conversation message is displayed in the conversation input box of the chat interface; In response to an editing operation on the message content in the conversation input box, the edited message content is displayed in the conversation input box.
2. The method as described in claim 1, characterized in that, The method further includes: The chat interface is displayed; In response to a menu bar activation operation on the chat interface, the menu bar is displayed.
3. The method as described in claim 2, characterized in that, The method further includes: The chat interface displays the function controls for confirming withdrawal and the function controls for canceling withdrawal.
4. The method as described in claim 1, characterized in that, The display of recalled historical conversation messages in the conversation input box of the chat interface includes: If there are multiple retracted historical conversation messages, all the retracted historical conversation messages will be displayed together in the conversation input box of the chat interface.
5. The method as described in claim 4, characterized in that, The method of merging and displaying all recalled historical conversation messages in the conversation input box of the chat interface includes: Obtain the identification information of each of the recalled historical session messages; Obtain the message content set corresponding to the identifier information of each of the revoked historical session messages; Using specified characters, the message content corresponding to each of the revoked historical session messages is concatenated to obtain the concatenated message content; The text labels of the conversation input box are assigned values based on the concatenated message content. Based on the text label, the concatenated message content is displayed in the conversation input box.
6. The method as described in claim 1, characterized in that, The method further includes: In response to the sending operation for the edited message content, the edited message content is sent.
7. The method as described in claim 6, characterized in that, The step of sending the edited message content in response to a sending operation for the edited message content includes: In response to a triggering operation on the send control in the conversation input box, the edited message content is sent; or, In response to a trigger operation on the forwarding control in the conversation input box, the communication friends interface is displayed, in which selection controls corresponding to each communication friend are displayed. In response to a selection operation on a selection control for a selected communication friend, the edited message content is forwarded to the selected communication friend.
8. A device for controlling message transmission, characterized in that, The device includes: The editing unit is used to respond to the triggered operation of the corresponding function control for message recall in the menu bar, and displays the selection control corresponding to each historical conversation message in the chat interface; The editing unit is also used to display an editing selection pop-up window in response to the selection operation of the selection control for the selected historical session message and the triggering operation of the function control for confirming withdrawal. The editing selection pop-up window displays a function control for confirming editing. The editing unit is also configured to display the retracted historical conversation message in the conversation input box of the chat interface in response to a trigger operation on the functional control for confirming the editing. The editing unit is also configured to display the edited message content in the conversation input box in response to an editing operation on the message content in the conversation input box.
9. A terminal device, characterized in that, The terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program is executed by a processor to implement the method as described in any one of claims 1 to 7.
11. A computer program product, characterized in that, The computer program product includes a computer program stored in a computer-readable storage medium, which a processor reads from and executes to implement the method as described in any one of claims 1 to 7.