Instant messaging method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to an instant messaging method and an instant messaging device.
Background
With the rapid development of the internet technology, the instant messaging technology brings various convenience to people in work and life. From the early ICQ and oic (q, which is widely used today), to the recent generation of wechat and to and from, instant messaging technology is constantly evolving towards more convenient users.
In the application scenarios of instant messaging technologies such as consultation and customer service, a large number of consultation needs to be faced, and how to improve the interaction efficiency becomes a problem to be solved urgently.
Disclosure of Invention
In view of this, the present application provides an instant messaging method and an instant messaging device to solve the problem of low instant messaging interaction efficiency in the related art.
Specifically, the method is realized through the following technical scheme:
a method of instant messaging, the method comprising:
detecting mouse hovering operation of a user on a first past conversation message in a conversation interface, wherein the first past conversation message is sent by an opposite-end user;
displaying a search button corresponding to the first past conversation message;
when a user triggers the search button, initiating a search to an information storage background based on the first past session message;
and displaying the search result corresponding to the first past conversation message returned by the information storage background in a search display frame of the conversation interface.
Optionally, the method further includes:
when mouse-over operation aiming at the search result in the search display frame is detected, displaying the whole content of the search result and providing an operation button aiming at the search result, wherein the operation button comprises: a send button and an edit button.
Optionally, the search presentation box further includes a keyword editing option, where the keyword editing option includes a keyword of the first past conversation message.
Optionally, the method further includes:
and when the keywords are edited into new keywords by the user, initiating a search to the information storage background again based on the new keywords, and updating the search result in the search display box.
Optionally, the method further includes:
detecting mouse hovering operation of a user on a second past conversation message in a conversation interface, wherein the second past conversation message is sent by the user;
displaying an adding button corresponding to the second past conversation message;
and when the user triggers the adding button, adding the second past conversation message to the information storage background.
An instant messaging device, the device comprising:
the first detection unit detects mouse hovering operation of a user on a first past conversation message in a conversation interface, wherein the first past conversation message is sent by an opposite-end user;
the search display unit is used for displaying a search button corresponding to the first past conversation message;
the search initiating unit initiates a search to an information storage background based on the first past session message when a user triggers the search button;
and the result display unit is used for displaying the search result corresponding to the first past conversation message returned by the information storage background in a search display frame of the conversation interface.
Optionally, the apparatus further comprises:
a whole display unit, which displays the whole content of the search result and provides an operation button for the search result when detecting the mouse hovering operation for the search result in the search display frame, wherein the operation button comprises: a send button and an edit button.
Optionally, the search presentation box further includes a keyword editing option, where the keyword editing option includes a keyword of the first past conversation message.
Optionally, the apparatus further comprises:
and the re-searching unit is used for re-initiating search to the information storage background based on the new keyword and updating the search result in the search display frame when the keyword is edited as the new keyword by the user.
Optionally, the apparatus further comprises:
the second detection unit detects mouse hovering operation of a user on a second past conversation message in the conversation interface, wherein the second past conversation message is sent by the user;
the adding and displaying unit is used for displaying an adding button corresponding to the second past conversation message;
and the message adding unit is used for adding the second past conversation message to the information storage background when the user triggers the adding button.
As can be seen from the above description, in the instant messaging scheme provided by the application, when a user hovers a mouse over a past conversation message sent by an opposite-end user, a client can display a search button corresponding to the past conversation message, and the user can search for an answer matching the past conversation message in an information storage background by clicking the search button, so that one-touch search is realized, the operation is simple, and the efficiency of information interaction is greatly improved.
Drawings
Fig. 1 is a flowchart illustrating an instant messaging method according to an exemplary embodiment of the present application.
Fig. 2 is a flowchart illustrating another instant messaging method according to an exemplary embodiment of the present application.
FIG. 3 is a diagram illustrating a session interface, according to an exemplary embodiment of the present application.
Fig. 4 is a schematic diagram of another session interface shown in an exemplary embodiment of the present application.
Fig. 5 is a schematic diagram of another session interface shown in an exemplary embodiment of the present application.
FIG. 6 is a schematic diagram of another conversation interface shown in an exemplary embodiment of the present application.
Fig. 7 is a schematic structural diagram of an instant messaging device according to an exemplary embodiment of the present application.
Fig. 8 is a schematic structural diagram of an instant messaging device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the related art, in application scenarios such as consultation and customer service, in the face of a question asked by a client, a consultant and a customer service person can search for a corresponding answer in a pre-edited document and reply. However, in such implementations, the operation is cumbersome, resulting in inefficient interaction.
In view of the above problems, the present application provides an instant messaging scheme, which can improve the interaction efficiency of instant messaging.
Fig. 1 is a flowchart illustrating an instant messaging method according to an exemplary embodiment of the present application.
Referring to fig. 1, the instant messaging method may be applied to a client, where the client may be installed in an intelligent device such as a smart phone, a tablet computer, a PDA (Personal Digital Assistant), and a PC. The instant messaging method may include the steps of:
step 101, detecting a mouse hovering operation of a user for a first past conversation message in a conversation interface, where the first past conversation message is sent by an opposite-end user.
And 102, displaying a search button corresponding to the first past conversation message.
103, when the user triggers the search button, initiating a search to an information storage background based on the first past session message.
And 104, displaying the search result corresponding to the first past conversation message returned by the information storage background in a search display frame of the conversation interface.
As can be seen from the above description, in the instant messaging scheme provided by the application, when a user hovers a mouse over a past conversation message sent by an opposite-end user, a client can display a search button corresponding to the past conversation message, and the user can search for an answer matching the past conversation message in an information storage background by clicking the search button, so that one-touch search is realized, the operation is simple, and the efficiency of information interaction is greatly improved.
The implementation of the present application is described below with reference to specific embodiments.
Fig. 2 is a flowchart illustrating another instant messaging method according to an exemplary embodiment of the present application.
Referring to fig. 2, the instant messaging method may include the following steps:
step 201, detecting a mouse hovering operation of a user for a first past conversation message in a conversation interface, where the first past conversation message is sent by an opposite-end user.
In this embodiment, the user may register a user account in the instant messaging server in advance, and may log in the registered user account based on the client, and the user may open a session interface with the peer user to implement communication with the peer user. Certainly, the user can also open a group session interface to realize group communication. The processing and implementation of this part can refer to the prior art, and the detailed description of this application is omitted here.
In this embodiment, a description will be given by taking, as an example, that after a user logs in a user account, the user performs one-to-one communication with an opposite-end user. Generally, several latest past conversation messages are displayed in a conversation interface between a user and an opposite-end user, and when the user needs to search reply contents of a certain past conversation message sent by the opposite-end user, a mouse can be hovered over the past conversation message. In this embodiment, for convenience of description, the past session message sent by the peer user may be referred to as a first past session message. Referring to the session interface diagram shown in fig. 3, it is assumed that the user is a customer service person of the pay pal and Peter is a user of the pay pal. After receiving the query of Peter, the servicer can hover the mouse over the first past conversation message sent by Peter if the servicer needs to inquire the corresponding answer. Optionally, the servicer may hover the mouse over the message box of the first past conversation message.
Step 202, displaying a search button corresponding to the first past conversation message.
Based on the foregoing step 201, after detecting a mouse-over operation of the user for the first past conversation message, the client may display a search button in a message frame of the first past conversation message, please refer to fig. 4, and the client may display a button shaped as a magnifying glass in the message frame of the first past conversation message. Of course, in practical applications, the client may also display other forms of search buttons corresponding to the first past conversation message, which is not particularly limited in this application.
Step 203, when the user triggers the search button, initiating a search to an information storage background based on the first past conversation message.
Based on the foregoing step 202, when the user hovers the mouse over the search button, the client may present a hover box such as "search background question bank" for prompting. When the customer service person triggers the search button, for example: and the customer service personnel clicks the search button, and the client side can initiate a search to the information storage background based on the first past conversation message.
The information storage background may be a server, or may be a database for storing information, and the like, which is not limited in this application. The information storage background stores pre-edited keywords and corresponding reply contents. Still taking the application scenario shown in fig. 3 as an example, a worker related to the pay bank may edit various keywords and reply contents corresponding thereto in advance, and store the keywords and the reply contents in the information storage background for subsequent customer service personnel to call.
In one example, when the customer service personnel triggers the search button, the client may extract keywords of the first past conversation message and then send the extracted keywords to the information storage back-end for searching. In another example, when the customer service person triggers the search button, the client may also send the first past conversation message to an information storage backend, and the information storage backend extracts a keyword from the first past conversation message for searching after receiving the first past conversation message, which is not limited in this application. Referring again to fig. 3, for the first past session message, "how long was a question transferred to a posting? "after extracting the keywords" transfer "," move "," how long "(which may be replaced with the synonym" time "), a search may be performed based on these three keywords. In the above process, the keyword extraction method may refer to an implementation method in the related art, which is not described in detail herein.
And 204, displaying the search result corresponding to the first past conversation message returned by the information storage background in a search display frame of the conversation interface.
In this embodiment, after the information storage background searches for the search result corresponding to the first past conversation message, the information storage background returns the search result to the client, and after receiving the search result, the client may display the search result in a search display frame of a search conversation interface.
The position of the search display box can be set by a developer, such as: the search presentation box may be located to the right of the conversation interface. Optionally, the search display box may further include a keyword editing option, where a keyword extracted based on the first past conversation message is displayed in the keyword editing option. Referring to the schematic diagram shown in fig. 5, the client may display three keywords extracted from the first past conversation message in the keyword editing option, and display the search result below the keyword editing option in a form of a list.
Optionally, in an example of the present application, the customer service personnel may edit the keyword again in the keyword editing options. For example, when the keyword extracted from the first past conversation message by the client or the information storage background is not accurate enough, the search result may be not accurate enough, when the customer service staff cannot find a required result in the search result, the customer service staff may re-edit the keyword, and trigger the search after re-editing, the client may further send the new keyword edited by the customer service staff to the information storage background for the information storage background to re-search, and return the search result to the client, and the client may update the search result in the search display box according to the latest returned result.
Step 205, when detecting a mouse hovering operation on a search result in the search display box, displaying the whole content of the search result, and providing an operation button for the search result, where the operation button includes: a send button and an edit button.
In this embodiment, when the number of search results returned by the message storage background is large, the client may not be able to present all the contents of each search result in the search presentation box. If the servicer wants to view a certain search result, the servicer can hover the mouse over the search result, and the client can further display the whole content of the search result, such as: the client may display all contents of the search result through the suspension frame, and the client may also display all contents of the search result in the list of the search display frame, and move down the list of other search results in sequence, which is not limited in this application.
In this embodiment, when the client displays the entire content of the search result, an operation button for the search result may be further provided, where the operation button may include: a send button and an edit button. When the customer service staff triggers the editing button, the client can display the search result in a message editing frame of the conversation interface so that the customer service staff can edit the search result and send the search result. When the customer service staff triggers the sending button, the client can directly send the search result to Peter, and operation complexity of the customer service staff is greatly simplified.
Optionally, in another example of the present application, when the client detects a mouse hovering operation of a user for a second past conversation message in the conversation interface, an adding button corresponding to the second past conversation message may be displayed, and when the user triggers the adding button, the second past conversation message is added to the information storage background. Wherein the second past conversation message is sent by a customer service person. Specifically, referring to fig. 6, if the servicer finds that some common reply content is not stored in the information storage background, after sending the reply content to Peter, the servicer may hover the mouse in the message box of the reply content, and the client may further display an add button, such as: the client may present a plus button. When the customer service staff triggers the adding button, the client can add the second past conversation message into the information storage background, and the related staff of the follow-up payment treasure can edit the second past conversation message again and the like.
It can be seen from the above description that, in the instant messaging scheme provided by the application, when a user hovers a mouse over a past conversation message sent by an opposite-end user, a client can display a search button corresponding to the past conversation message, and the user can search for reply content matching the past conversation message in an information storage background by clicking the search button, so that one-touch search is realized, the operation is simple, the efficiency of information interaction is greatly improved when a large number of consultation problems are faced, and the user experience is improved.
Corresponding to the embodiment of the instant messaging method, the application also provides an embodiment of an instant messaging device.
The embodiment of the instant messaging device can be applied to the client. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking software implementation as an example, as a device in a logical sense, the device is formed by reading corresponding computer program instructions in a nonvolatile memory into an internal memory through a processor of the intelligent device where the client is located to operate. From a hardware aspect, as shown in fig. 7, the present application is a hardware structure diagram of a terminal where an instant messaging device is located, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 7, the terminal where the device is located in the embodiment may also include other hardware according to an actual function of the terminal, which is not described again.
Fig. 8 is a schematic structural diagram of an instant messaging device according to an exemplary embodiment of the present application.
Referring to fig. 8, the instant messaging apparatus 700 can be applied to the client installed in the smart device shown in fig. 7, and includes: a first detecting unit 701, a search presenting unit 702, a search initiating unit 703, a result presenting unit 704, an all presenting unit 705, a re-searching unit 706, a second detecting unit 707, an adding presenting unit 708, and a message adding unit 709.
The first detecting unit 701 detects a mouse hovering operation of a user for a first past conversation message in a conversation interface, where the first past conversation message is sent by an opposite-end user;
the search presentation unit 702 is configured to present a search button corresponding to the first past conversation message;
the search initiating unit 703 is configured to initiate a search to an information storage background based on the first past session message when the user triggers the search button;
the result displaying unit 704 displays the search result corresponding to the first past conversation message returned by the information storage background in the search display frame of the conversation interface.
The all-display unit 705, when detecting a mouse-over operation for a search result in the search display box, displays all contents of the search result, and provides an operation button for the search result, where the operation button includes: a send button and an edit button.
Optionally, the search presentation box further includes a keyword editing option, where the keyword editing option includes a keyword of the first past conversation message.
The re-search unit 706, when the keyword is edited as a new keyword by the user, re-initiates a search to the information storage background based on the new keyword, and updates the search result in the search display box.
The second detection unit 707 detects a mouse hovering operation of a user for a second past conversation message in the conversation interface, where the second past conversation message is sent by the user;
the add presentation unit 708 is configured to present an add button corresponding to the second past conversation message;
the message adding unit 709 is configured to add the second past session message to the information storage background when the user triggers the add button.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.