CN107689939A - Method for message interaction and device - Google Patents

Method for message interaction and device Download PDF

Info

Publication number
CN107689939A
CN107689939A CN201610635302.5A CN201610635302A CN107689939A CN 107689939 A CN107689939 A CN 107689939A CN 201610635302 A CN201610635302 A CN 201610635302A CN 107689939 A CN107689939 A CN 107689939A
Authority
CN
China
Prior art keywords
user
message
request
session
agent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610635302.5A
Other languages
Chinese (zh)
Inventor
张创城
何子琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610635302.5A priority Critical patent/CN107689939A/en
Priority to TW106119491A priority patent/TW201806406A/en
Priority to PCT/CN2017/094011 priority patent/WO2018024123A1/en
Publication of CN107689939A publication Critical patent/CN107689939A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/02User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention proposes a kind of method for message interaction and device, the method for message interaction includes receiving the first request that the client of the first user is sent, wherein, the first request includes the mark for the session where user's mark of the second user of the first user of agency and the first user;Identified according to the user of second user, determine the agency that second user is the first user;Receive the message that the client of second user is sent;It is sent in message as the message of the first user in session corresponding to the mark of session.It can be realized by the present invention and agency is added in the interacting message of instant communication class application program, effectively lift the usage experience of user.

Description

Message interaction method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a message interaction method and apparatus.
Background
When a user uses an instant messaging application program on electronic equipment to perform message interaction, a need exists for adding an agent to replace the user to interact messages with the other party, for example, the user needs to do another thing but does not want to interrupt the current conversation, or the user needs to replace the conversation with the help of professional knowledge of the agent.
In the related art, the function of adding the agent in the instant messaging application program is not realized.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a message interaction method, which can add an agent to message interaction of an instant messaging application program, and effectively improve user experience.
Another object of the present invention is to provide a message interaction method.
Another object of the present invention is to provide a message interaction method.
Another object of the present invention is to provide a message interaction method.
Another object of the present invention is to provide a message interaction method.
Another object of the present invention is to provide a message interaction apparatus.
Another object of the present invention is to provide a message interaction apparatus.
Another object of the present invention is to provide a message interaction apparatus.
Another object of the present invention is to provide a message interaction apparatus.
Another object of the present invention is to provide a message interaction apparatus.
In order to achieve the above object, an embodiment of the first aspect of the present invention provides a message interaction method, including: receiving a first request sent by a client of a first user, wherein the first request comprises a user identifier of a second user for acting on the first user and an identifier of a session where the first user is located; determining that the second user is an agent of the first user according to the user identifier of the second user; receiving a message sent by a client of the second user; and sending the message as the message of the first user in the session corresponding to the identification of the session.
According to the message interaction method provided by the embodiment of the first aspect of the invention, the message sent by the second user client is taken as the message of the first user and sent in the session of the first user, so that the proxy can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
In order to achieve the above object, a message interaction method provided in an embodiment of a second aspect of the present invention includes: generating a first request, wherein the first request comprises: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned; and sending the first request to a server so that the server sends a message sent by a client of the second user as a message of the first user or the first user agent in a session corresponding to the identifier of the session.
According to the message interaction method provided by the embodiment of the second aspect of the invention, the first request is sent to the server, so that the server sends the message sent by the client of the second user as the message of the first user to the session corresponding to the identifier of the session, the proxy can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
In order to achieve the above object, a message interaction method provided in an embodiment of a third aspect of the present invention includes: receiving an agent instruction, wherein the agent instruction carries a user identifier of a proxied first user and a session identifier of the first user, and the agent instruction is used for indicating that the second user is used as a proxy of the first user; receiving a message input by the second user and an instruction for sending the message; and sending the message to a server according to the instruction, so that the server sends the message as the message of the first user in a session corresponding to the identifier of the session.
According to the message interaction method provided by the embodiment of the third aspect of the invention, the client of the second user receives the proxy instruction, receives the message input by the second user and the instruction for sending the message, and sends the message to the server according to the instruction, so that the server sends the message as the message of the first user in the session corresponding to the identifier of the session, the flexibility and the applicability of the message interaction method can be effectively improved, the proxy is added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
In order to achieve the above object, a message interaction method provided by a fourth aspect of the present invention includes: generating agent configuration information and a first request according to an agent selected by a first user, wherein the first request comprises: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned; and sending the agent configuration information and the first request to a client of a second user, so that the client of the second user sends a message input by the second user as a message of the first user in a session corresponding to the identifier of the session according to the agent configuration information.
According to the message interaction method provided by the embodiment of the fourth aspect of the invention, the agent configuration information and the first request are sent to the client of the second user, so that the client of the second user sends the message input by the second user as the message of the first user in the session corresponding to the identifier of the session according to the agent configuration information, the agent can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
In order to achieve the above object, a message interaction method provided in an embodiment of a fifth aspect of the present invention includes: receiving agent configuration information and a first request sent by a client of a first user, wherein the first request comprises: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned; receiving a message input by the second user and an instruction for sending the message; and sending the message to the session of the first user according to the agent configuration information.
According to the message interaction method provided by the embodiment of the fifth aspect of the invention, by receiving the agent configuration information and the first request sent by the client of the first user, when the second user confirms that the agent response is agreed, the message input by the second user and the instruction for sending the message are received, and the message is sent in the session of the first user according to the agent configuration information, so that the flexibility and the applicability of the message interaction method can be effectively improved, the agent is added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
In order to achieve the above object, a message interaction apparatus according to a sixth embodiment of the present invention includes: the first request receiving module is used for receiving a first request sent by a client of a first user, wherein the first request comprises a user identifier of a second user for acting on the first user and an identifier of a session where the first user is located; a determining module, configured to determine, according to a user identifier of the second user, that the second user is an agent of the first user; the message receiving module is used for receiving a message sent by the client of the second user; and the first message sending module is used for sending the message as the message of the first user in the session corresponding to the session identifier.
According to the message interaction device provided by the embodiment of the sixth aspect of the invention, the message sent by the second user client is sent in the session of the first user as the message of the first user, so that the proxy can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
To achieve the above object, a message interaction apparatus according to a seventh embodiment of the present invention includes: a first generating module, configured to generate a first request, where the first request includes: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned; and the first sending module is used for sending the first request to a server so that the server sends a message sent by a client of the second user as a message of the first user or the first user agent in a session corresponding to the identifier of the session.
The message interaction device provided in the seventh embodiment of the present invention sends the first request to the server, so that the server sends the message sent by the client of the second user as the message of the first user in the session corresponding to the identifier of the session, and can add an agent in the message interaction of the instant messaging application program, thereby effectively improving the user experience of the user.
In order to achieve the above object, an eighth aspect of the present invention provides a message interaction apparatus, including: an agent instruction receiving module, configured to receive an agent instruction, where the agent instruction carries a user identifier of a proxied first user and a session identifier where the first user is located, and the agent instruction is used to indicate that the second user is a proxy of the first user; a first message instruction receiving module, configured to receive a message input by the second user and an instruction for sending the message; and the second message sending module is used for sending the message to a server according to the instruction so that the server sends the message as the message of the first user in the session corresponding to the identifier of the session.
The message interaction device provided by the embodiment of the eighth aspect of the invention receives the proxy instruction through the client of the second user, receives the message input by the second user and the instruction for sending the message, and sends the message to the server according to the instruction, so that the server sends the message as the message of the first user in the session corresponding to the identifier of the session, the flexibility and the applicability of the message interaction method can be effectively improved, the proxy is added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
In order to achieve the above object, a message interaction apparatus according to a ninth aspect of the present invention includes a second generating module, configured to generate agent configuration information and a first request according to an agent selected by a first user, where the first request includes: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned; and the second sending module is used for sending the agent configuration information and the first request to a client of a second user so that the client of the second user sends a message input by the second user as the message of the first user in a session corresponding to the identifier of the session according to the agent configuration information.
The message interaction device provided by the embodiment of the ninth aspect of the invention sends the agent configuration information and the first request to the client of the second user, so that the client of the second user sends the message input by the second user as the message of the first user in the session corresponding to the identifier of the session according to the agent configuration information, the agent can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
In order to achieve the above object, a message interaction apparatus provided in a tenth aspect of the present invention includes a fourth receiving module, configured to receive agent configuration information and a first request sent by a client of a first user, where the first request includes: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned; a second message instruction receiving module, configured to receive a message input by the second user and an instruction for sending the message; and the third message sending module is used for sending the message to the session of the first user according to the agent configuration information.
According to the message interaction device provided by the tenth aspect of the invention, by receiving the agent configuration information and the first request sent by the client of the first user, when the second user confirms that the agent response is agreed, the message input by the second user and the instruction for sending the message are received, and the message is sent in the session of the first user according to the agent configuration information, so that the flexibility and the applicability of the message interaction method can be effectively improved, the agent is added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a message interaction method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a chat interface for a session of a first user in an embodiment of the invention;
fig. 3 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
fig. 6 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
FIG. 7 is a schematic diagram of a chat messaging interface in an embodiment of the invention;
FIG. 8 is a schematic diagram of an agent selection interface in an embodiment of the invention;
fig. 9 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
fig. 10 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
fig. 11 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
fig. 12 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
fig. 13 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
fig. 14 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
fig. 15 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
fig. 16 is a flowchart illustrating a message interaction method according to another embodiment of the present invention;
fig. 17 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention;
fig. 18 is a schematic structural diagram of a message interaction device according to another embodiment of the present invention;
fig. 19 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention;
FIG. 20 is a block diagram of a message interaction apparatus according to another embodiment of the present invention;
fig. 21 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention;
fig. 22 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention;
fig. 23 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention;
fig. 24 is a schematic structural diagram of a message interaction device according to another embodiment of the present invention;
fig. 25 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention;
fig. 26 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
The present embodiment is exemplified in a case where the message interaction method is configured as a message interaction apparatus. The message interaction method can be applied to an instant messaging application program, where the application program may refer to a software program running on an electronic device, for example, a Personal Computer (PC), a cloud device or a mobile device, and a mobile device such as a smart phone or a tablet Computer.
Fig. 1 is a flowchart illustrating a message interaction method according to an embodiment of the present invention. Referring to fig. 1, the message interaction method may include:
s101: the method comprises the steps of receiving a first request sent by a client of a first user, wherein the first request comprises a user identification of a second user for acting on the first user and an identification of a session in which the first user is located.
The execution subject of this embodiment may be a server.
In an embodiment of the invention, the first user is a user initiating a proxy request. The client of the first user is an instant messaging application program client installed on the electronic equipment on the first user side. For example, a wangwangwang client.
It can be understood that when a user uses an instant messaging application program on an electronic device to perform message interaction, there is a need to add an agent to replace the user to interact messages with the other party, for example, the user needs to do another thing but does not want to interrupt the current session, or the user needs to replace the session with the professional knowledge of the agent.
In an embodiment of the invention, the first request is generated for a client of the first user. The first request comprises a user identification of a second user for acting on the first user and an identification of a session in which the first user is located.
Optionally, the client of the first user may generate a first request according to an instruction of the first user, and send the first request to the server, so that the server adds the corresponding second user to the session where the first user is located according to the user identifier of the second user, which is used for acting on the first user in the first request, without limitation.
In the embodiment of the present invention, the second user is a user selected by the first user and used for acting on the first user, and the user identifier of the second user used for acting on the first user may uniquely identify the second user, and may be obtained by the client of the first user according to the instruction of the first user.
In an embodiment of the present invention, a session in which a first user is located is an ongoing session of the first user in an instant messaging application on an electronic device, referring to fig. 2, fig. 2 is a schematic view of a chat interface of the session in which the first user is located in the embodiment of the present invention, where fig. 2 includes an agent addition key 21, a message 22 of the first user, and a message 23 of a session object of the session in which the first user is located. When the first user has a need to add an agent to replace the agent to interact with the other side, the agent adding key 21 in fig. 2 can be clicked to trigger the client of the first user to generate a first request, and the first request is sent to the server.
Optionally, referring to fig. 3, in some embodiments, after S101, the message interaction method may further include:
s301: and sending a second request to the client of the second user according to the user identification of the second user, wherein the second request is used for enabling the second user to confirm whether to approve the proxy.
The second user is a user acting on the first user. The client of the second user is an instant messaging application program client for logging in the account of the second user.
In the embodiment of the present invention, after the client of the second user is detected, the second request may be sent to the client of the second user, and when the second user confirms agreement with the proxy, the second user is added to the current session, or when the second user confirms agreement with the proxy, a message sent by the client of the second user is sent to the client of the first user, which is not limited to this.
S302: and receiving a response of a second request sent by the client of the second user, wherein the response of the second request is a response of the second user for confirming agreement or disagreement with the proxy, and when the response of the second request is a response of the second user for confirming agreement with the proxy, determining that the second user is the proxy of the first user according to the user identification of the second user.
It can be understood that the response of the second request includes a response that the second user confirms to approve the proxy and a response that the second user confirms to disapprove the proxy, when the client of the second user receives the second request sent by the server, the client can prompt the second user according to the second request and receive the response instruction of the second user, generate a response that the second user confirms to approve or disapprove the proxy according to the response instruction of the second user, and send the response that the second user confirms to approve or disapprove the proxy to the server, when the response of the second request is the response that the second user confirms to the proxy, the response that the second user is the proxy of the first user is determined according to the user identifier of the second user.
In this embodiment, a second request for enabling the second user to confirm whether to agree with the proxy is sent to the client of the second user, and the second user determines whether to agree with the proxy, when the second user disagrees with the proxy, the first user may select other contacts as the proxy, and when the second user agrees with the proxy, the message sent by the client of the second user is received, so that flexibility and applicability of the message interaction method are effectively improved.
With continued reference to fig. 1, S102: and determining that the second user is the agent of the first user according to the user identification of the second user.
In the embodiment of the present invention, the second user is a user selected by the first user and used for acting on the first user, the user identifier of the second user used for acting on the first user may uniquely identify the second user, the second user may be determined to be an agent of the first user according to the user identifier of the second user, and the second user is added to the session corresponding to the identifier of the session.
S103: and receiving a message sent by the client of the second user.
In an embodiment of the present invention, the message sent by the client of the second user may be a session message, which is used for message interaction in a session.
In the embodiment of the present invention, when receiving a first request sent by a client of a first user, a server reads a user identifier of a second user in the first request, and reads an account of the corresponding second user from a database according to a correspondence between the user identifier and the account, it can be understood that, when the user uses an instant messaging application, the user may register in the application, and after receiving a registration request of the user, the server on the application side correspondingly stores information such as the account, the password, and the user identifier of the user in the database, which is not limited thereto.
Optionally, when the server parses the account of the second user, the server may detect an instant messaging application client that logs in the account of the second user, as the client of the second user.
Optionally, after receiving a first request sent by the client of the first user, the server may further generate a second request according to the user identifier, where the second request is used for the second user to confirm whether to approve the proxy, and trigger S301.
S104: and sending the message as the message of the first user in the session corresponding to the identification of the session.
In an embodiment of the invention, for example, a message may be sent to the client of the first user, so that the client of the first user sends the message in the session.
In an embodiment of the present invention, the first request further includes an identifier for identifying whether the second user is visible, where whether the second user is visible may be, for example, in the session in which the first user is located, whether the identity information of the second user is visible to a third user, and the third user is, for example, a session object of the session in which the first user is located.
Optionally, after sending the message as the message of the first user in the session corresponding to the identifier of the session, the method includes: when the identification is invisible, not prompting that the message of the first user is a proxy message in the session; when the identification is visible, the message of the first user is prompted in the session as a message of the proxy.
It can be understood that when the first user has a need to add an agent to replace the user's own interaction with the other party and needs to hide the identity information of the agent, the second user may be set to be invisible, and when the first user does not need to hide the identity information of the agent, the second user may be set to be visible, which is not limited.
In the embodiment, the message sent by the second user client is sent in the session of the first user as the message of the first user, so that the agent can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Fig. 4 is a flowchart illustrating a message interaction method according to another embodiment of the present invention. The present embodiment is exemplified in a case where the message interaction method is configured as a message interaction apparatus.
Referring to fig. 4, the message interaction method may include:
s401: the method comprises the steps of receiving a first request sent by a client of a first user, wherein the first request comprises a user identification of a second user for acting on the first user and an identification of a session in which the first user is located.
S401 of this embodiment is the same as S101 of the embodiment in fig. 1, and is not described herein again.
It should be noted that, in the embodiment of the present invention, when the first request may further include a user identifier of an nth user, where N is a positive integer greater than or equal to 3, a third request may be further sent to the client of the nth user according to the user identifier of the nth user, where the third request is used to enable the nth user to confirm whether to agree with the proxy, so that the first user and the nth user collectively serve as the proxy of the first user, and the detailed processing flow refers to a method flow for adding a second user as the proxy, which is not described herein again.
S402: and sending a second request to the client of the second user according to the user identification of the second user, wherein the second request is used for enabling the second user to confirm whether to approve the proxy.
In the embodiment of the present invention, when receiving a first request sent by a client of a first user, a server reads a user identifier of a second user in the first request, and reads an account of the corresponding second user from a database according to a correspondence between the user identifier and the account, it can be understood that, when the user uses an instant messaging application, the user may register in the application, and after receiving a registration request of the user, the server on the application side correspondingly stores information such as the account, the password, and the user identifier of the user in the database, which is not limited thereto.
Optionally, when the server parses the account of the second user, the server may detect the instant messaging application client that logs in the account of the second user, as the client of the second user, and send a second request for the second user to confirm whether to approve the proxy to the client of the second user.
S403: and receiving a response of a second request sent by the client of the second user, wherein the response of the second request is a response of the second user for confirming agreement or disagreement with the proxy, and when the response of the second request is a response of the second user for confirming agreement with the proxy, determining that the second user is the proxy of the first user according to the user identification of the second user.
In the embodiment of the present invention, after detecting the client of the second user, the second request may be sent to the client of the second user, and the second user is added to the current session when the second user confirms agreement with the proxy, or a message sent by the client of the second user is sent to the client of the first user when the second user confirms agreement with the proxy, which is not limited to this.
It can be understood that the response of the second request includes a response that the second user confirms to approve the proxy and a response that the second user confirms to disapprove the proxy, when the client of the second user receives the second request sent by the server, the client can prompt the second user according to the second request and receive the response instruction of the second user, generate a response that the second user confirms to approve or disapprove the proxy according to the response instruction of the second user, and send the response that the second user confirms to approve or disapprove the proxy to the server, when the response of the second request is the response that the second user confirms to the proxy, the response that the second user is the proxy of the first user is determined according to the user identifier of the second user.
S404: and when the response of the second request is the response that the second user confirms that the agent is not approved, generating prompt information and sending the prompt information to the client of the first user.
When the second user disagrees with the agent, the first user can be prompted on the client side of the first user, so that the first user can select other contacts as the agent, and the flexibility and the applicability of the message interaction method are effectively improved.
S405: and when the response of the second request is the response of the second user confirmation agreement agent, sending the historical session record of the session to the client of the second user.
Optionally, after sending the historical session record of the session to the client of the second user, the second user may also be added to the session corresponding to the identifier of the session, or a message may be sent to the client of the first user, so that the client of the first user sends the message to the session, which is not limited in this respect.
In the embodiment of the invention, when the server joins the second user in the current session, the history record in the current session can be read, and the history record is sent to the client of the second user, so that the second user can know the history record, and the second user can conveniently send an accurate message by combining the session context when speaking the first user to carry out the session, thereby ensuring the continuity and accuracy of the message and effectively improving the practicability of the message interaction method.
S406: and determining that the second user is the agent of the first user according to the user identification of the second user.
In the embodiment of the present invention, the second user is a user selected by the first user and used for acting on the first user, the user identifier of the second user used for acting on the first user may uniquely identify the second user, the second user may be determined to be an agent of the first user according to the user identifier of the second user, and the second user is added to the session corresponding to the identifier of the session.
S407: when one of the first user and the second user performs an input, a prompt is given to the other of the first user and the second user.
In embodiments of the invention, a prompt message may be generated when the first user makes an input at the chat interface of the conversation, the prompt message being, for example, the first user is inputting. And sending the prompting message to the client of the second user, or generating the prompting message when the second user inputs the prompting message in the chat interface of the conversation, wherein the prompting message is input by the second user. And the prompt message is sent to the client of the first user, so that the condition that the second user and the first user input the consistent message, the resource of message interaction is occupied, the efficiency of message interaction is improved, the memory consumption of the server can be saved, and the performance of a message interaction system is improved.
S408: and receiving a message sent by the client of the second user.
In an embodiment of the present invention, the message sent by the client of the second user may be a session message, which is used for message interaction in a session.
S409: and sending the message as the message of the first user in the session corresponding to the identification of the session.
In an embodiment of the present invention, the first request further includes an identifier for identifying whether the second user is visible, where whether the second user is visible may be, for example, in the session in which the first user is located, whether the identity information of the second user is visible to a third user, and the third user is, for example, a session object of the session in which the first user is located.
Optionally, after sending the message as the message of the first user in the session corresponding to the identifier of the session, the method includes: when the identification is invisible, not prompting that the message of the first user is a proxy message in the session; when the identification is visible, the message of the first user is prompted in the session as a message of the proxy.
It can be understood that when the first user has a need to add an agent to replace the user's own interaction with the other party and needs to hide the identity information of the agent, the second user may be set to be invisible, and when the first user does not need to hide the identity information of the agent, the second user may be set to be visible, which is not limited.
In this embodiment, a second request for enabling the second user to confirm whether to agree with the proxy is sent to the client of the second user, and the second user determines whether to agree with the proxy, when the second user disagrees with the proxy, the first user may select other contacts as the proxy, and when the second user agrees with the proxy, the message sent by the client of the second user is received, so that flexibility and applicability of the message interaction method are effectively improved. When a second user is added into the current session through the server, the history record in the current session can be read, and the history record is sent to the client of the second user, so that the second user can know the history record, the second user can conveniently send accurate messages by combining the context of the session when the second user speaks the first user to carry out the session, the continuity and the accuracy of the messages are ensured, and the practicability of the message interaction method is effectively improved. When one of the first user and the second user inputs the input, the other of the first user and the second user is prompted, so that the second user and the first user can be prevented from inputting consistent messages, the resources of message interaction are occupied, the efficiency of message interaction is improved, the memory consumption of a server can be saved, and the performance of a message interaction system is improved. The message sent by the second user client is used as the message of the first user and sent to the session of the first user, so that the agent can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Fig. 5 is a flowchart illustrating a message interaction method according to another embodiment of the present invention. The present embodiment is exemplified in a case where the message interaction method is configured as a message interaction apparatus.
Referring to fig. 5, the message interaction method may include:
s501: generating a first request, wherein the first request comprises: the user identification of the second user used for acting on the first user and the identification of the conversation in which the first user is positioned.
The execution subject of the embodiment may be a client of the first user.
Optionally, the client of the first user may generate the first request according to an instruction of the first user, where the first request includes: the server is used for acting the user identification of the second user of the first user and the identification of the session where the first user is located, and sending the first request to the server so that the server sends the message sent by the client of the second user as the message of the first user in the session corresponding to the identification of the session.
In the embodiment of the present invention, the user identifier of the second user for acting on the first user may uniquely identify the second user, and may be obtained by the client of the first user according to an instruction of the first user, for example, the first user may trigger a button for adding an agent in an interface of a session, and select a contact that needs to be used as an agent in an agent selection interface, so as to trigger the client to generate the first request.
Optionally, the first request further includes an identifier for identifying whether the second user is visible, and the client of the first user may set the identifier whether the second user is visible according to an instruction of the first user.
Optionally, in some embodiments, before S501, the method further includes:
s601: and displaying an interface of the session of the first user, wherein the interface comprises a key for adding the agent.
Referring to fig. 2, fig. 2 is a schematic diagram of a chat interface of a conversation in an embodiment of the present invention, where fig. 2 includes a button 21 for adding an agent, a message 22 of a first user, and a message 23 of a conversation object. When the first user has a need to add an agent to replace the first user to interact with the other party, the user can click the key 21 of the agent addition in fig. 2 to trigger the client of the first user to generate the first request.
S602: when the key is triggered, an agent selection interface is displayed.
Referring to fig. 7, fig. 7 is a schematic view of a chat message interface in an embodiment of the present invention, where fig. 7 includes a button 71 for adding an agent and an agent setting module 72, where a user may click the button 71 for adding an agent to select a contact as an agent, and the agent setting module 72 is configured to enable a first user to set an identifier for identifying whether a second user is visible.
Optionally, when the identifier is invisible, sending the message as the message of the first user in the session corresponding to the identifier of the session; and when the identification is visible, sending the message as the message of the first user agent in the session corresponding to the identification of the session.
Referring to fig. 8, fig. 8 is a schematic diagram of an agent selection interface in an embodiment of the present invention, where fig. 8 includes a contact list 81 and a contact selection box 82.
S603: an agent selected by the first user in the agent selection interface is received.
S502: and sending the first request to a server so that the server sends the message sent by the client of the second user as the message of the first user in the session corresponding to the identification of the session.
In an embodiment of the present invention, the first client may further receive a message sent by the client of the second user and send the message in the session, for example, when the second user confirms agreement with the proxy, the message sent by the client of the second user is sent to the client of the first user.
Optionally, the contact list may be contacts that are added in advance by the first user in the instant messaging application, the first user may select one contact as the second user, and the client may use an identifier of the contact selected by the first user as a user identifier of the second user, and generate the first request according to the user identifier, or the first user may also select N contacts as an nth user, and use identifiers of the N contacts as identifiers of the nth user, and generate the first request according to the identifier of the nth user, which is not limited.
Further, optionally, the client of the first user may also obtain an identifier of a session where the first user is located, and use the identifier of the session as a part of the first request, so as to send the user identifier of the second user, which is used for acting on the first user, and the identifier of the session where the first user is located to the server. In this embodiment, the first request is sent to the server, so that the server sends the message sent by the client of the second user as the message of the first user to the session corresponding to the identifier of the session, and an agent can be added in the message interaction of the instant messaging application program, thereby effectively improving the use experience of the user.
Fig. 9 is a flowchart illustrating a message interaction method according to another embodiment of the present invention. The present embodiment is exemplified in a case where the message interaction method is configured as a message interaction apparatus.
Referring to fig. 9, the message interaction method may include:
s901: and receiving an agent instruction, wherein the agent instruction carries the user identifier of the first user to be proxied and the session identifier of the first user, and the agent instruction is used for indicating that the second user is used as the proxy of the first user.
The execution subject of the embodiment may be a client of the second user.
The second user is a user acting on the first user. The client of the second user is an instant messaging application program client for logging in the account of the second user.
In the embodiment of the present invention, the second user is a user selected by the first user and used for acting on the first user, and the user identifier of the first user may uniquely identify the first user and may be obtained by the client of the second user according to the agent instruction.
Optionally, the client of the second user may confirm whether to agree with the proxy according to the proxy instruction, when the second user confirms a response of agreeing with the proxy, the historical session record of the session is sent to the client of the second user, and when the second user disagrees with the proxy, the first user may be prompted on the client side of the first user, so that the first user may select other contacts as the proxy, and flexibility and applicability of the message interaction method are effectively improved.
Optionally, in some embodiments, referring to fig. 10, after S901, the message interaction method further includes: s1001: and receiving a request sent by the server, wherein the request is used for enabling the second user to confirm whether the proxy is agreed.
The second user is a user acting on the first user. The client of the second user is the client of the instant messaging application program for logging in the account of the second user.
In the embodiment of the present invention, after the server detects the client of the second user, the server may send the client of the second user whether to approve the proxy request, and the client of the second user may receive the request sent by the server.
S1002: and prompting the second user according to the request, and receiving a response instruction of the second user.
Optionally, a prompt message may be generated, for example: first user invites your agent! Whether or not to agree. The second user decides whether to act as a proxy and the second user may enter a response instruction in the prompt interface.
S1003: and generating a response of the request according to the response instruction of the second user, and sending the response of the request to the server, wherein the response of the request is a response of confirming agreement or disagreement of the agent by the second user.
S1004: and receiving historical session records of the sessions sent by the server.
In the embodiment of the invention, when the response of the request is the response of the second user confirming agreement with the proxy, the second user is added into the session corresponding to the identifier of the session, and the server can send the read historical session record in the session where the first user is located to the client of the second user, so that the second user can know the historical record, and the second user can conveniently send accurate messages by combining with the session context when speaking the first user to carry out the session, thereby ensuring the continuity and accuracy of the messages and effectively improving the practicability of the message interaction method. In this embodiment, the second user determines whether to approve the proxy, when the second user does not approve the proxy, the first user may select another contact as the proxy, and when the second user approves the proxy, the message sent by the client of the second user is received, so that the flexibility and the applicability of the message interaction method are effectively improved.
S902: a message input by a second user and an instruction to send the message are received.
Optionally, when the second user confirms a response of agreeing to the proxy, sending the historical session record of the session to the client of the second user, so that the second user can know the historical record, and thus when the second user speaks to the first user for a session, the second user can send an accurate message in combination with the session context, thereby ensuring the continuity and accuracy of the message.
S903: and sending the message to the server according to the instruction, so that the server sends the message as the message of the first user in the session corresponding to the identification of the session.
Optionally, the client of the second user sends the message to the server according to the instruction, so that the server sends the message as the message of the first user in the session corresponding to the identifier of the session.
In the embodiment, the client of the second user receives the agent instruction, receives the message input by the second user and the instruction for sending the message, and sends the message to the server according to the instruction, so that the server sends the message as the message of the first user in the session corresponding to the identifier of the session, the flexibility and the applicability of the message interaction method can be effectively improved, the agent is added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Fig. 11 is a flowchart illustrating a message interaction method according to another embodiment of the present invention. The present embodiment is exemplified in a case where the message interaction method is configured as a message interaction apparatus.
Referring to fig. 11, the message interaction method may include:
s1101: the client of the first user displays an interface of a session in which the first user is located, wherein the interface comprises a key for adding the agent.
The present embodiment exemplifies interactions between a client of a first user, a client of a second user, and a server.
S1102: when the key is triggered, the client of the first user displays an agent selection interface.
S1103: the client of the first user receives the agent selected by the first user in the agent selection interface.
S1104: a client of a first user generates a first request, wherein the first request comprises: the user identification of the second user used for acting on the first user and the identification of the conversation in which the first user is positioned.
S1105: and the client of the first user sends the first request to the server so that the server sends the message sent by the client of the second user as the message of the first user in the session corresponding to the identifier of the session.
S1106: the server receives a first request sent by a client of a first user, wherein the first request comprises a user identifier of a second user for acting on the first user and an identifier of a session in which the first user is located.
S1107: and the server sends a second request to the client of the second user according to the user identification of the second user, wherein the second request is used for enabling the second user to confirm whether to agree with the proxy or not.
S1108: and the client of the second user receives a second request sent by the server, wherein the second request is used for enabling the second user to confirm whether the proxy is agreed.
S1109: and the client of the second user prompts the second user according to the second request and receives a response instruction of the second user.
S1110: and the client of the second user generates a response of the second user for confirming the agreement or disagreement with the proxy according to the response instruction of the second user, and sends the response of the second user for confirming the agreement or disagreement with the proxy to the server.
S1111: and when receiving a response of the second user for confirming to agree with the proxy, the server adds the second user into the session corresponding to the session identifier.
S1112: the server sends the historical session record of the session to the client of the second user.
S1113: the client of the second user receives the historical session record of the session sent by the server.
S1114: and the client of the second user displays a session interface and receives an agent instruction, wherein the agent instruction carries the user identifier of the proxied first user and the session identifier of the first user, and the agent instruction is used for indicating that the second user is used as the proxy of the first user.
S1115: the client of the second user receives the message input by the second user and the instruction for sending the message.
S1116: and the client of the second user sends the message to the server according to the instruction.
S1117: and the server receives the message sent by the client of the second user, and sends the message as the message of the first user in the session corresponding to the identifier of the session.
S1118: when one of the first user and the second user performs an input, a prompt is given to the other of the first user and the second user.
The implementation process of this embodiment can refer to the embodiments shown in fig. 1 to fig. 10, and is not described herein again.
In this embodiment, a second request for enabling the second user to confirm whether to agree with the proxy is sent to the client of the second user, and the second user determines whether to agree with the proxy, when the second user disagrees with the proxy, the first user may select other contacts as the proxy, and when the second user agrees with the proxy, the message sent by the client of the second user is received, so that flexibility and applicability of the message interaction method are effectively improved. When a second user is added into the current session through the server, the history record in the current session can be read, and the history record is sent to the client of the second user, so that the second user can know the history record, the second user can conveniently send accurate messages by combining the context of the session when the second user speaks the first user to carry out the session, the continuity and the accuracy of the messages are ensured, and the practicability of the message interaction method is effectively improved. When one of the first user and the second user inputs the input, the other of the first user and the second user is prompted, so that the second user and the first user can be prevented from inputting consistent messages, the resources of message interaction are occupied, the efficiency of message interaction is improved, the memory consumption of a server can be saved, and the performance of a message interaction system is improved. The message sent by the second user client is used as the message of the first user and sent to the session of the first user, so that the agent can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Fig. 12 is a flowchart illustrating a message interaction method according to another embodiment of the present invention. The present embodiment is exemplified in a case where the message interaction method is configured as a message interaction apparatus.
Referring to fig. 12, the message interaction method may include:
s1201: generating agent configuration information and a first request according to an agent selected by a first user, wherein the first request comprises: the user identification of the second user used for acting on the first user and the identification of the conversation in which the first user is positioned.
In the embodiment of the invention, the session where the first user is located is the session corresponding to the identifier, and the second user is the user selected by the first user and used for acting on the first user.
The execution subject of the embodiment may be a client of the first user.
Optionally, the client of the first user may generate agent configuration information and a first request according to an agent selected by the first user, where the first request includes: the system comprises a client side and a server side, wherein the server side is used for acting the user identification of a second user of a first user and the identification of the session where the first user is located, sending a first request to the client side of the second user, and sending the message sent by the client side of the second user as the message of the first user in the session corresponding to the identification of the session.
In the embodiment of the present invention, the user identifier of the second user for acting on the first user may uniquely identify the second user, and may be obtained by the client of the first user according to an instruction of the first user, for example, the first user may trigger a button for adding an agent in an interface of a session, and select a contact that needs to be used as an agent in an agent selection interface, so as to trigger the client to generate the agent configuration information and the first request.
Optionally, the first request further includes an identifier for identifying whether the second user is visible, and the client of the first user may set the identifier whether the second user is visible according to an instruction of the first user.
S1202: and sending the agent configuration information and the first request to a client of the second user, so that the client of the second user sends the message input by the second user as the message of the first user in the session corresponding to the identifier of the session according to the agent configuration information.
In an embodiment of the invention, when the response of the second request is a response of the second user confirming agreement with the proxy, the proxy configuration information and the first request are sent to the client of the second user.
Optionally, the contact list may be contacts that are added in advance by the first user in the instant messaging application, the first user may select one contact as the second user, the client may use an identifier of the contact selected by the first user as a user identifier of the second user, and generate the agent configuration information and the first request according to the selected contact and the user identifier, or the first user may also select N contacts as an nth user, use identifiers of the N contacts as identifiers of the nth user, and generate the agent configuration information and the first request according to the selected N contacts and the identifiers of the nth user, which is not limited.
Further, optionally, the client of the first user may also obtain an identifier of a session where the first user is located, and use the identifier of the session as a part of the first request, so as to send the user identifier of the second user, which is used for acting on behalf of the first user, the identifier of the session where the first user is located, and the agent configuration information to the client of the second user.
In this embodiment, the agent configuration information and the first request are sent to the client of the second user, so that the client of the second user sends the message input by the second user as the message of the first user in the session corresponding to the identifier of the session according to the agent configuration information, the agent can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Fig. 13 is a flowchart illustrating a message interaction method according to another embodiment of the present invention. The present embodiment is exemplified in a case where the message interaction method is configured as a message interaction apparatus.
Referring to fig. 13, the message interaction method may include:
s1301: and displaying an interface of the session of the first user, wherein the interface comprises a key for adding the agent.
Referring to fig. 2, fig. 2 is a schematic view of a chat interface of a session in which a first user is located in the embodiment of the present invention, where fig. 2 includes an agent addition key 21, a message 22 of the first user, and a message 23 of a session object of the session in which the first user is located. When the first user has a need to add an agent to replace the user to interact with the other party, the agent adding key 21 in fig. 2 may be clicked to trigger the client of the first user and the agent selected by the first user, so as to generate agent configuration information and a first request.
S1302: when the key is triggered, an agent selection interface is displayed.
Referring to fig. 7, fig. 7 is a schematic view of a chat message interface in an embodiment of the present invention, where fig. 7 includes a button 71 for adding an agent and an agent setting module 72, where a user may click the button 71 for adding an agent to select a contact as an agent, and the agent setting module 72 is configured to enable a first user to set an identifier for identifying whether a second user is visible.
Optionally, when the identifier is invisible, sending the message as the message of the first user in the session corresponding to the identifier of the session; and when the identification is visible, sending the message as the message of the first user agent in the session corresponding to the identification of the session.
S1303: an agent selected by the first user in the agent selection interface is received.
Referring to fig. 8, fig. 8 is a schematic diagram of an agent selection interface in an embodiment of the present invention, where fig. 8 includes a contact list 81 and a contact selection box 82.
S1304: generating agent configuration information and a first request according to an agent selected by a first user, wherein the first request comprises: the user identification of the second user used for acting on the first user and the identification of the conversation in which the first user is positioned.
In the embodiment of the invention, the session where the first user is located is the session corresponding to the identifier, and the second user is the user selected by the first user and used for acting on the first user.
Optionally, the client of the first user may generate agent configuration information and a first request according to an agent selected by the first user, where the first request includes: the system comprises a client side and a server side, wherein the server side is used for acting the user identification of a second user of a first user and the identification of the session where the first user is located, sending a first request to the client side of the second user, and sending the message sent by the client side of the second user as the message of the first user in the session corresponding to the identification of the session.
In the embodiment of the present invention, the user identifier of the second user for acting on the first user may uniquely identify the second user, and may be obtained by the client of the first user according to an instruction of the first user, for example, the first user may trigger a button for adding an agent in an interface of a session, and select a contact that needs to be used as an agent in an agent selection interface, so as to trigger the client to generate the agent configuration information and the first request.
Optionally, the first request further includes an identifier for identifying whether the second user is visible, and the client of the first user may set the identifier whether the second user is visible according to an instruction of the first user.
S1305: and sending a second request to the client of the second user according to the user identification of the second user, wherein the second request is used for enabling the second user to confirm whether to approve the proxy.
In the embodiment of the present invention, when the client of the first user sends the first request, the client of the second user in the first request is read, and the second request for the second user to confirm whether to approve the proxy is sent to the client of the second user according to the user identifier.
S1306: and receiving a response of a second request sent by the client of the second user, wherein the response of the second request is a response of confirming the agreement or disagreement of the agent by the second user.
In the embodiment of the present invention, after detecting the client of the second user, the second request may be sent to the client of the second user, and the second user is added to the current session when the second user confirms agreement with the proxy, or a message sent by the client of the second user is sent to the client of the first user when the second user confirms agreement with the proxy, which is not limited to this.
It can be understood that the response of the second request includes a response that the second user confirms to approve the proxy and a response that the second user confirms to disapprove the proxy, when the client of the second user receives the second request sent by the server, the client of the second user can prompt the second user according to the second request and receive the response instruction of the second user, generate a response that the second user confirms to approve or disapprove the proxy according to the response instruction of the second user, and send the response that the second user confirms to approve or disapprove the proxy to the client of the first user.
S1307: and when the response of the second request is the response that the second user confirms that the agent is not approved, generating prompt information, and prompting the first user according to the prompt information.
Optionally, when the second user disagrees with the agent, the first user may be prompted at the client side of the first user, so that the first user may select other contacts as the agent, thereby effectively improving flexibility and applicability of the message interaction method.
S1308: and when the response of the second request is the response of the second user confirmation agreement agent, sending the historical session record of the session to the client of the second user.
S1309: and when the response of the second request is the response of the second user for confirming agreement with the proxy, sending the proxy configuration information and the first request to the client of the second user, so that the client of the second user sends the message input by the second user as the message of the first user in the session corresponding to the identifier of the session according to the proxy configuration information.
Optionally, when the response of the second request is a response of the second user confirming agreement with the proxy, the proxy configuration information and the first request are sent to the client of the second user, and the second user can be determined to be the proxy of the first user according to the user identifier of the second user, where the second user is the user selected by the first user to proxy the first user, the user identifier of the second user to proxy the first user can uniquely identify the second user, the second user can be determined to be the proxy of the first user according to the user identifier of the second user, and the second user is added to the session corresponding to the identifier of the session.
In an embodiment of the present invention, the message input by the client of the second user may be a session message, which is used for message interaction in a session.
Optionally, after sending the message input by the client of the second user as the message of the first user in the session corresponding to the identifier of the session, the method includes: when the identification is invisible, not prompting that the message of the first user is a proxy message in the session; when the identification is visible, the message of the first user is prompted in the session as a message of the proxy.
It can be understood that when the first user has a need to add an agent to replace the user's own interaction with the other party and needs to hide the identity information of the agent, the second user may be set to be invisible, and when the first user does not need to hide the identity information of the agent, the second user may be set to be visible, which is not limited.
In this embodiment, a second request for enabling the second user to confirm whether to agree with the proxy is sent to the client of the second user, and the second user determines whether to agree with the proxy, when the second user disagrees with the proxy, the first user may select other contacts as the proxy, and when the second user agrees with the proxy, the message sent by the client of the second user is received, so that flexibility and applicability of the message interaction method are effectively improved. The agent configuration information and the first request are sent to the client of the second user, so that the client of the second user sends the message input by the second user as the message of the first user to the session corresponding to the identifier of the session according to the agent configuration information, the agent can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Fig. 14 is a flowchart illustrating a message interaction method according to another embodiment of the present invention. The present embodiment is exemplified in a case where the message interaction method is configured as a message interaction apparatus.
Referring to fig. 14, the message interaction method may include:
s1401: receiving agent configuration information and a first request sent by a client of a first user, wherein the first request comprises: the user identification of the second user used for acting on the first user and the identification of the conversation in which the first user is positioned.
The execution subject of the embodiment may be a client of the second user.
The second user is a user acting on the first user. The client of the second user is an instant messaging application program client for logging in the account of the second user.
In the embodiment of the present invention, the second user is a user selected by the first user and used for acting on the first user, and the user identifier of the first user may uniquely identify the first user and may be obtained by the client of the second user according to the agent instruction.
Optionally, the client of the second user may confirm whether to agree with the proxy according to the proxy instruction, when the second user confirms a response of agreeing with the proxy, the historical session record of the session is sent to the client of the second user, and when the second user disagrees with the proxy, the first user may be prompted on the client side of the first user, so that the first user may select other contacts as the proxy, and flexibility and applicability of the message interaction method are effectively improved.
S1402: a message input by a second user and an instruction to send the message are received.
Optionally, when the second user confirms a response of agreeing to the proxy, sending the historical session record of the session to the client of the second user, so that the second user can know the historical record, and when the second user speaks the first user to perform the session, the second user can send an accurate message in combination with the session context, thereby ensuring the continuity and accuracy of the message.
S1403: and sending the message to the session of the first user according to the agent configuration information.
Optionally, the client of the second user sends the message to the client of the first user according to the agent configuration information, so that the client of the first user sends the message as the message of the first user in the session corresponding to the identifier of the session.
In the embodiment, by receiving the agent configuration information and the first request sent by the client of the first user, when the second user confirms that the response of the agent is agreed, the message input by the second user and the instruction for sending the message are received, and the message is sent in the session where the first user is located according to the agent configuration information, so that the flexibility and the applicability of the message interaction method can be effectively improved, the agent is added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Fig. 15 is a flowchart illustrating a message interaction method according to another embodiment of the present invention. The present embodiment is exemplified in a case where the message interaction method is configured as a message interaction apparatus.
Referring to fig. 15, the message interaction method may include:
s1501: and receiving a second request sent by the client of the first user, wherein the second request is used for enabling the second user to confirm whether the proxy is agreed.
The second user is a user acting on the first user. The client of the second user is the client of the instant messaging application program for logging in the account of the second user.
In the embodiment of the present invention, after the client of the first user detects the client of the second user, whether to approve the second request of the proxy may be sent to the client of the second user, and the client of the second user may receive the second request sent by the client of the first user.
S1502: and prompting the second user according to the second request, and receiving a response instruction of the second user.
Optionally, a prompt message may be generated, for example: first user invites your agent! Whether or not to agree. The second user decides whether to act as a proxy and the second user may enter a response instruction in the prompt interface.
S1503: and generating a response of the second request according to the response instruction of the second user, and sending the response of the second request to the client of the first user, wherein the response of the second request is a response of confirming agreement or disagreement of the agent by the second user.
In the embodiment of the present invention, the response of the second request is a response of the second user confirming agreement or disagreement with the proxy, and when the response of the second request is a response of the second user confirming agreement with the proxy, determining that the second user is the proxy of the first user according to the user identifier of the second user is performed.
S1504: after the second user confirms the agreement agent, a historical session record of the session sent by the client of the first user is received.
In the embodiment of the invention, when the response of the request is the response of the second user confirming agreement with the proxy, the second user is added into the session corresponding to the identifier of the session, the client of the first user sends the history session record in the session where the first user is located to the client of the second user, so that the second user can acquire the history record, the second user can conveniently send accurate messages by combining the session context when the second user speaks the first user to carry out the session, the continuity and accuracy of the messages are ensured, and the practicability of the message interaction method is effectively improved.
S1505: receiving agent configuration information and a first request sent by a client of a first user, wherein the first request comprises: the user identification of the second user used for acting on the first user and the identification of the conversation in which the first user is positioned.
The second user is a user acting on the first user. The client of the second user is an instant messaging application program client for logging in the account of the second user.
In the embodiment of the present invention, the second user is a user selected by the first user and used for acting on the first user, and the user identifier of the first user may uniquely identify the first user and may be obtained by the client of the second user according to the agent instruction.
Optionally, the client of the second user may confirm whether to agree with the proxy according to the proxy instruction, when the second user confirms a response of agreeing with the proxy, the historical session record of the session is sent to the client of the second user, and when the second user disagrees with the proxy, the first user may be prompted on the client side of the first user, so that the first user may select other contacts as the proxy, and flexibility and applicability of the message interaction method are effectively improved.
S1506: a message input by a second user and an instruction to send the message are received.
Optionally, when the second user confirms a response of agreeing to the proxy, sending the historical session record of the session to the client of the second user, so that the second user can know the historical record, and thus when the second user speaks to the first user for a session, the second user can send an accurate message in combination with the session context, thereby ensuring the continuity and accuracy of the message.
S1507: and sending the message to the session of the first user according to the agent configuration information.
In an embodiment of the present invention, the first request further includes an identifier for identifying whether the second user is visible, and when the identifier is invisible, the message of the first user is not prompted as a proxy message in the session; when the identification is visible, the message of the first user is prompted in the session as a message of the proxy.
It can be understood that when the first user has a need to add an agent to replace the user's own interaction with the other party and needs to hide the identity information of the agent, the second user may be set to be invisible, and when the first user does not need to hide the identity information of the agent, the second user may be set to be visible, which is not limited.
Optionally, the client of the second user sends the message to the client of the first user according to the agent configuration information, so that the client of the first user sends the message as the message of the first user in the session corresponding to the identifier of the session.
In the embodiment, after the second user confirms to agree with the agent, the historical conversation record of the conversation sent by the client of the first user is received, so that the second user can conveniently send an accurate message in combination with the conversation context when the second user says that the first user carries out the conversation, the continuity and the accuracy of the message are ensured, and the practicability of the message interaction method is effectively improved. The message is sent to the server according to the instruction by receiving the message input by the second user and the instruction for sending the message, so that the server sends the message as the message of the first user in the session corresponding to the identifier of the session, the flexibility and the applicability of the message interaction method can be effectively improved, the agent is added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved. Fig. 16 is a flowchart illustrating a message interaction method according to another embodiment of the present invention. The present embodiment is exemplified in a case where the message interaction method is configured as a message interaction apparatus.
Referring to fig. 16, the message interaction method may include:
s1601: the client of the first user displays an interface of a session in which the first user is located, wherein the interface comprises a key for adding the agent.
S1602: when the key is triggered, an agent selection interface is displayed.
S1603: the client of the first user receives the agent selected by the first user in the agent selection interface.
S1604: the client of the first user generates agent configuration information and a first request according to the agent selected by the first user, wherein the first request comprises: the user identification of the second user used for acting on the first user and the identification of the conversation in which the first user is positioned.
S1605: and the client of the first user sends a second request to the client of the second user according to the user identification of the second user, wherein the second request is used for enabling the second user to confirm whether to agree with the proxy or not.
S1606: and the client of the second user receives a second request sent by the client of the first user, wherein the second request is used for enabling the second user to confirm whether to approve the proxy or not.
S1607: and the client of the second user prompts the second user according to the second request and receives a response instruction of the second user.
S1608: and the client of the second user generates a response of the second request according to the response instruction of the second user, and sends the response of the second request to the client of the first user, wherein the response of the second request is the response of the second user for confirming the agreement or disagreement with the agent.
S1609: the client of the first user receives a response from the client of the second user confirming agreement with the proxy.
S1610: and the client of the first user sends the historical session record, the proxy configuration information and the first request of the session to the client of the second user, so that the client of the second user sends the message input by the second user as the message of the first user in the session corresponding to the identifier of the session according to the proxy configuration information.
S1611: the method comprises the following steps that a client of a second user receives a historical session record, agent configuration information and a first request of a session, wherein the historical session record, the agent configuration information and the first request are sent by the client of a first user, and the first request comprises: the user identification of the second user used for acting on the first user and the identification of the conversation in which the first user is positioned.
S1612: the client of the second user receives the message input by the second user and the instruction for sending the message.
S1613: and the client of the second user sends the message to the session of the first user according to the agent configuration information.
The implementation process of this embodiment can refer to the embodiments shown in fig. 12 to fig. 15, and is not described herein again.
In this embodiment, a second request for enabling the second user to confirm whether to agree with the proxy is sent to the client of the second user, and the second user determines whether to agree with the proxy, when the second user disagrees with the proxy, the first user may select other contacts as the proxy, and when the second user agrees with the proxy, the message sent by the client of the second user is received, so that flexibility and applicability of the message interaction method are effectively improved. By receiving the historical conversation record of the conversation sent by the client of the first user after the second user confirms to agree with the agent, the second user can conveniently send accurate information by combining the conversation context when the second user speaks the first user to carry out the conversation, the continuity and the accuracy of the information are ensured, and the practicability of the information interaction method is effectively improved. The message is sent to the server according to the instruction by receiving the message input by the second user and the instruction for sending the message, so that the server sends the message as the message of the first user in the session corresponding to the identifier of the session, the flexibility and the applicability of the message interaction method can be effectively improved, the agent is added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Fig. 17 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention. The message interaction means may be implemented by software, hardware or a combination of both.
Referring to fig. 17, the message interaction apparatus 170 may include: a first request receiving module 1701, a determining module 1702, a message receiving module 1703, and a first message sending module 1704.
The first request receiving module 1701 is configured to receive a first request sent by a client of a first user, where the first request includes a user identifier of a second user that is used for acting on the first user and an identifier of a session in which the first user is located.
Optionally, the second user is a user selected for the first user to proxy for the first user.
A determining module 1702, configured to determine, according to the user identifier of the second user, that the second user is an agent of the first user.
A message receiving module 1703, configured to receive a message sent by a client of a second user.
A first message sending module 1704, configured to send the message as a message of the first user in the session corresponding to the identifier of the session.
Optionally, in some embodiments, referring to fig. 18, the message interaction device 170 may further include:
optionally, the first request further comprises an identifier for identifying whether the second user is visible.
A first prompting module 1705, configured to not prompt the message of the first user to be a proxy message in the session when the identifier is invisible; and when the identification is visible, prompting that the message of the first user is a proxy message in the session.
A first request sending module 1706, configured to send a second request to the client of the second user according to the user identifier of the second user, where the second request is used to enable the second user to confirm whether to approve the proxy.
A first response receiving module 1707, configured to receive a response of the second request sent by the client of the second user, where the response of the second request is a response that the second user confirms to agree with or disagree with the proxy, and when the response of the second request is a response that the second user confirms to agree with the proxy, determining that the second user is the proxy of the first user according to the user identifier of the second user is performed.
A first history record sending module 1708, configured to send the history session record of the session to the client of the second user when the response of the second request is the response of the second user confirming the agreement proxy.
A first prompt information sending module 1709, configured to generate a prompt information when the response of the second request is the response of the second user confirming that the agent is not approved, and send the prompt information to the client of the first user.
A second prompting module 1710, configured to prompt, when one of the first user and the second user performs input, the other of the first user and the second user.
It should be noted that the explanation of the message interaction method in the foregoing embodiments of fig. 1 to fig. 4 is also applicable to the message interaction apparatus in this embodiment, and the implementation principle is similar, and is not described herein again.
In the embodiment, the message sent by the client of the second user is sent in the session of the first user as the message of the first user, so that the agent can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Fig. 19 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention. The message interaction means may be implemented by software, hardware or a combination of both.
Referring to fig. 19, the message interaction device 190 may include: a first generation module 1901 and a first transmission module 1902.
A first generating module 1901, configured to generate a first request, where the first request includes: the user identification of the second user used for acting on the first user and the identification of the conversation in which the first user is positioned.
A first sending module 1902, configured to send the first request to the server, so that the server sends the message sent by the client of the second user as a message of the first user or the first user agent in the session corresponding to the identifier of the session.
Optionally, in some embodiments, referring to fig. 20, the message interaction apparatus 200 may include:
a first session interface display module 1903, configured to display an interface of a session in which the first user is located, where the interface includes a button for adding an agent.
A first selection interface display module 1904, configured to display an agent selection interface when the key is triggered.
A first receiving module 1905, configured to receive an agent selected by the first user in the agent selection interface.
Optionally, the first request further comprises an identification for identifying whether the second user is visible.
A first setting module 1906, configured to set an identifier that is visible to the second user according to an instruction of the first user.
A second receiving module 1907, configured to receive a message sent by a client of a second user, and send the message in a session.
It should be noted that the explanation of the message interaction method in the foregoing embodiments of fig. 5 to fig. 6 is also applicable to the message interaction apparatus in this embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, the first request is sent to the server, so that the server sends the message sent by the client of the second user as the message of the first user to the session corresponding to the identifier of the session, and an agent can be added in the message interaction of the instant messaging application program, thereby effectively improving the use experience of the user.
Fig. 21 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention. The message interaction means may be implemented by software, hardware or a combination of both.
Referring to fig. 21, the message interaction apparatus 210 may include: an agent instruction receiving module 2101, a first message instruction receiving module 2102, and a second message sending module 2103. Wherein,
the agent instruction receiving module 2101 is configured to receive an agent instruction, where the agent instruction carries a user identifier of a first user to be proxied and a session identifier where the first user is located, and the agent instruction is used to indicate that the second user is taken as a proxy of the first user.
A first message instruction receiving module 2102 configured to receive a message input by the second user and an instruction for sending the message.
A second message sending module 2103, configured to send the message to a server according to the instruction, so that the server sends the message as the message of the first user in a session corresponding to the identifier of the session.
Optionally, in some embodiments, referring to fig. 22, the message interaction apparatus 210 further includes:
a second request receiving module 2104 for receiving a second request sent by the server, wherein the second request is used for the second user to confirm whether to approve the proxy.
The first response instruction receiving module 2105 is configured to prompt the second user according to the second request, and receive a response instruction of the second user.
The first response generating module 2106 is configured to generate a response that the second user confirms agreement or disagreement with the agent according to the response instruction of the second user, and send the response that the second user confirms agreement or disagreement with the agent to the server.
A history receiving module 2107, configured to receive a history session record of the session sent by the server.
It should be noted that the explanation of the message interaction method in the foregoing embodiments of fig. 9 to fig. 11 is also applicable to the message interaction apparatus in this embodiment, and the implementation principle is similar, and is not described herein again.
In the embodiment, the client of the second user receives the agent instruction, receives the message input by the second user and the instruction for sending the message, and sends the message to the server according to the instruction, so that the server sends the message as the message of the first user in the session corresponding to the identifier of the session, the flexibility and the applicability of the message interaction method can be effectively improved, the agent is added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Fig. 23 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention. The message interaction means may be implemented by software, hardware or a combination of both.
Referring to fig. 23, the message interaction apparatus 230 may include: a second generation module 2301 and a second transmission module 2302. Wherein,
a second generating module 2301, configured to generate agent configuration information and a first request according to an agent selected by a first user, where the first request includes: the user identification of the second user used for acting on the first user and the identification of the conversation in which the first user is positioned.
Optionally, the session where the first user is located is a session corresponding to the identifier, and the second user is a user selected by the first user and used for acting on the first user.
A second sending module 2302, configured to send the agent configuration information and the first request to a client of the second user, so that the client of the second user sends, according to the agent configuration information, a message input by the second user as a message of the first user in a session corresponding to the identifier of the session.
Optionally, in some embodiments, referring to fig. 24, the message interaction device 230 further includes:
a second request sending module 2303, configured to send a second request to the client of the second user according to the user identifier of the second user, where the second request is used for the second user to confirm whether to approve the proxy.
A second response receiving module 2304, configured to receive a response of the second request sent by the client of the second user, where the response of the second request is a response of the second user confirming agreement or disagreement with the agent.
A second history record sending module 2305, configured to send a history session record of the session to the client of the second user when the response of the second request is the response of the second user confirmation agreement proxy.
The second prompt information sending module 2306 is configured to generate prompt information when the response of the second request is that the second user confirms that the response of the agent is not approved, and prompt the first user according to the prompt information.
And a second session interface display module 2307, configured to display an interface of a session in which the first user is located, where the interface includes a button for adding an agent.
And a second selection interface display module 2308, configured to display the agent selection interface when the key is triggered.
A third receiving module 2309, configured to receive an agent selected by the first user in the agent selection interface.
Optionally, the first request further comprises an identification for identifying whether the second user is visible.
A second setting module 2310, configured to set an identifier that is visible to the second user according to the instruction of the first user.
It should be noted that the explanation of the message interaction method in the foregoing embodiments of fig. 12 to fig. 13 is also applicable to the message interaction apparatus in this embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, the agent configuration information and the first request are sent to the client of the second user, so that the client of the second user sends the message input by the second user as the message of the first user in the session corresponding to the identifier of the session according to the agent configuration information, the agent can be added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
Fig. 25 is a schematic structural diagram of a message interaction apparatus according to another embodiment of the present invention. The message interaction means may be implemented by software, hardware or a combination of both.
Referring to fig. 25, the message interaction apparatus 250 may include: a fourth receiving module 2501, a second message instruction receiving module 2502, and a third message sending module 2503. Wherein,
a fourth receiving module 2501, configured to receive agent configuration information and a first request sent by a client of a first user, where the first request includes: the user identification of the second user used for acting on the first user and the identification of the conversation in which the first user is positioned.
A second message instruction receiving module 2502, configured to receive a message input by a second user and an instruction for sending the message.
A third message sending module 2503, configured to send a message in the session where the first user is located according to the agent configuration information.
Optionally, in some embodiments, referring to fig. 26, the message interaction apparatus 250 further includes:
a third request receiving module 2504, configured to receive a second request sent by the client of the first user, where the second request is used for the second user to confirm whether to approve the proxy.
The second response instruction receiving module 2505 is configured to prompt the second user according to the second request, and receive a response instruction of the second user.
The second response generating module 2506 is configured to generate a response of the second request according to the response instruction of the second user, and send the response of the second request to the client of the first user, where the response of the second request is a response of the second user confirming agreement or disagreement with the agent.
A second history receiving module 2507, configured to receive a history session record of the session sent by the client of the first user.
Optionally, the first request further comprises an identification for identifying whether the second user is visible. A third prompting module 2508, configured to not prompt the message of the first user as a proxy message in the session when the identifier is invisible; when the identification is visible, the message of the first user is prompted in the session as a message of the proxy.
It should be noted that the explanation of the message interaction method in the foregoing embodiments of fig. 14 to fig. 16 also applies to the message interaction apparatus in this embodiment, and the implementation principle is similar, and is not described herein again.
In the embodiment, by receiving the agent configuration information and the first request sent by the client of the first user, when the second user confirms that the response of the agent is agreed, the message input by the second user and the instruction for sending the message are received, and the message is sent in the session where the first user is located according to the agent configuration information, so that the flexibility and the applicability of the message interaction method can be effectively improved, the agent is added in the message interaction of the instant messaging application program, and the use experience of the user is effectively improved.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (52)

1. A message interaction method, comprising the steps of:
receiving a first request sent by a client of a first user, wherein the first request comprises a user identifier of a second user for acting on the first user and an identifier of a session where the first user is located;
determining that the second user is an agent of the first user according to the user identifier of the second user;
receiving a message sent by a client of the second user;
and sending the message as the message of the first user in the session corresponding to the identification of the session.
2. The message interaction method of claim 1, wherein the first request further comprises an identifier for identifying whether the second user is visible, and after the sending the message as the message of the first user in a session corresponding to the identifier of the session, the method comprises:
when the identifier is invisible, not prompting that the message of the first user is a proxy message in the session;
and when the identification is visible, prompting the message of the first user as a proxy message in the session.
3. A message interaction method as claimed in claim 1, wherein the second user is a user selected by the first user to proxy for the first user.
4. The message interaction method of claim 1, after said receiving a first request sent by a client of a first user, further comprising:
sending a second request to the client of the second user according to the user identification of the second user, wherein the second request is used for enabling the second user to confirm whether to agree with the proxy;
and receiving a response of the second request sent by the client of the second user, wherein the response of the second request is a response of the second user confirming agreement or disagreement with the proxy, and when the response of the second request is a response of the second user confirming agreement with the proxy, determining that the second user is the proxy of the first user according to the user identifier of the second user.
5. The message interaction method as claimed in claim 4, wherein after the receiving of the response of the second request sent by the client of the second user, further comprising:
when the response of the second request is the response of the second user for confirming the agreement agent, sending the historical conversation record of the conversation to the client of the second user;
and when the response of the second request is the response that the second user confirms that the agent is not approved, generating prompt information and sending the prompt information to the client of the first user.
6. The message interaction method of claim 1, after said determining that the second user is an agent of the first user, further comprising:
when one of the first user and the second user performs input, prompting the other of the first user and the second user.
7. The message interaction method of claim 1, wherein said determining that the second user is an agent of the first user comprises:
and adding the second user into the session corresponding to the session identifier.
8. The message interaction method of claim 1, wherein sending the message as a message of the first user in a session corresponding to the identification of the session comprises:
and sending the message to the client of the first user so that the client of the first user sends the message in the session.
9. The message interaction method of claim 1, wherein when the first request further includes a subscriber identity of an nth subscriber, N being a positive integer greater than or equal to 3, further comprising:
and sending a third request to the client of the Nth user according to the user identifier of the Nth user, wherein the third request is used for enabling the Nth user to confirm whether to agree with the proxy.
10. A message interaction method, comprising the steps of:
generating a first request, wherein the first request comprises: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
and sending the first request to a server so that the server sends a message sent by a client of the second user as a message of the first user or the first user agent in a session corresponding to the identifier of the session.
11. The message interaction method of claim 10, prior to said generating the first request, further comprising:
displaying an interface of the conversation where the first user is located, wherein the interface comprises a key for adding an agent;
when the key is triggered, displaying an agent selection interface;
and receiving the agent selected by the first user in the agent selection interface.
12. The message interaction method of claim 10, wherein the first request further comprises an identifier for identifying whether the second user is visible, further comprising, after said receiving the agent selected by the first user in the agent selection interface:
and setting an identifier which is visible or not for the second user according to the instruction of the first user.
13. The message interaction method of claim 10, further comprising:
and receiving a message sent by the client of the second user, and sending the message in the session.
14. A message interaction method, comprising the steps of:
receiving an agent instruction, wherein the agent instruction carries a user identifier of a proxied first user and a session identifier of the first user, and the agent instruction is used for indicating that the second user is used as a proxy of the first user;
receiving a message input by the second user and an instruction for sending the message;
and sending the message to a server according to the instruction, so that the server sends the message as the message of the first user in a session corresponding to the identifier of the session.
15. The message interaction method of claim 14, prior to said receiving the message input by the second user and the instruction to send the message, further comprising:
receiving a request sent by the server, wherein the request is used for confirming whether the second user agrees with the proxy;
prompting the second user according to the request, and receiving a response instruction of the second user;
and generating a response of the request according to the response instruction of the second user, and sending the response of the request to the server, wherein the response of the request is a response of confirming agreement or disagreement of an agent by the second user.
16. The message interaction method as claimed in claim 15, wherein when the response of the request is a response of the second user confirming the agreement agent, further comprising:
and receiving the historical session record of the session sent by the server.
17. A message interaction method, comprising the steps of:
generating agent configuration information and a first request according to an agent selected by a first user, wherein the first request comprises: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
and sending the agent configuration information and the first request to a client of a second user, so that the client of the second user sends a message input by the second user as a message of the first user in a session corresponding to the identifier of the session according to the agent configuration information.
18. The message interaction method as claimed in claim 17, wherein the session in which the first user is located is a session corresponding to the identifier.
19. A message interaction method as claimed in claim 17, wherein the second user is a user selected by the first user to proxy for the first user.
20. The message interaction method of claim 17, after generating the agent configuration information and the first request according to the agent selected by the first user, further comprising:
sending a second request to the client of the second user according to the user identification of the second user, wherein the second request is used for enabling the second user to confirm whether to agree with the proxy;
and receiving a response of the second request sent by the client of the second user, wherein the response of the second request is a response of confirming agreement or disagreement with an agent by the second user.
21. The message interaction method of claim 20, wherein said sending the agent configuration information and the first request to a client of a second user comprises:
and when the response of the second request is the response of the second user for confirming agreement with the proxy, sending the proxy configuration information and the first request to the client of the second user.
22. The message interaction method as claimed in claim 20, wherein after said receiving a response to the second request sent by the client of the second user, further comprising:
when the response of the second request is the response of the second user for confirming the agreement agent, sending the historical conversation record of the conversation to the client of the second user;
and when the response of the second request is the response that the second user confirms that the agent is not approved, generating prompt information, and prompting the first user according to the prompt information.
23. The message interaction method of claim 17, prior to generating the agent configuration information and the first request based on the agent selected by the first user, further comprising:
displaying an interface of the conversation where the first user is located, wherein the interface comprises a key for adding an agent;
when the key is triggered, displaying an agent selection interface;
and receiving the agent selected by the first user in the agent selection interface.
24. The message interaction method of claim 23, wherein the first request further comprises an identifier for identifying whether the second user is visible, further comprising, after said receiving the agent selected by the first user in the agent selection interface:
and setting an identifier which is visible or not for the second user according to the instruction of the first user.
25. A message interaction method, comprising the steps of:
receiving agent configuration information and a first request sent by a client of a first user, wherein the first request comprises: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
receiving a message input by the second user and an instruction for sending the message;
and sending the message to the session of the first user according to the agent configuration information.
26. The message interaction method as claimed in claim 25, wherein before said receiving the agent configuration information and the first request sent by the client of the first user, further comprising:
receiving a second request sent by the client of the first user, wherein the second request is used for enabling the second user to confirm whether to agree with the proxy;
prompting the second user according to the second request, and receiving a response instruction of the second user;
and generating a response of the second request according to the response instruction of the second user, and sending the response of the second request to the client of the first user, wherein the response of the second request is a response of confirming agreement or disagreement of an agent by the second user.
27. The message interaction method of claim 25, after the second user confirms the agreement agent, further comprising:
and receiving a historical session record of the session sent by the client of the first user.
28. The message interaction method of claim 25, wherein the first request further includes an identifier for identifying whether the second user is visible, and after the sending the message as the message of the first user in a session corresponding to the identifier of the session, comprises:
when the identifier is invisible, not prompting that the message of the first user is a proxy message in the session;
and when the identification is visible, prompting the message of the first user as a proxy message in the session.
29. A message interaction apparatus, comprising:
the first request receiving module is used for receiving a first request sent by a client of a first user, wherein the first request comprises a user identifier of a second user for acting on the first user and an identifier of a session where the first user is located;
a determining module, configured to determine, according to a user identifier of the second user, that the second user is an agent of the first user;
the message receiving module is used for receiving a message sent by the client of the second user;
and the first message sending module is used for sending the message as the message of the first user in the session corresponding to the session identifier.
30. The message interaction apparatus of claim 29, wherein the first request further comprises an identifier identifying whether the second user is visible, further comprising:
a first prompting module, configured to not prompt the message of the first user as a proxy message in the session when the identifier is invisible; when the identification is visible, prompting the message of the first user as a proxy message in the session.
31. The message interaction device of claim 29, wherein the second user is a user selected by the first user to proxy for the first user.
32. The message interaction apparatus of claim 29, further comprising:
a first request sending module, configured to send a second request to a client of the second user according to a user identifier of the second user, where the second request is used for the second user to confirm whether to agree with an agent;
and a first response receiving module, configured to receive a response of the second request sent by the client of the second user, where the response of the second request is a response of the second user confirming agreement or disagreement with the proxy, and when the response of the second request is a response of the second user confirming agreement with the proxy, the second user is determined to be the proxy of the first user according to the user identifier of the second user.
33. The message interaction apparatus of claim 32, further comprising:
the first historical record sending module is used for sending the historical session record of the session to the client of the second user when the response of the second request is the response of the second user for confirming the agreement agent;
and the first prompt information sending module is used for generating prompt information when the response of the second request is the response that the second user confirms that the agent is not approved, and sending the prompt information to the client of the first user.
34. The message interaction apparatus of claim 29, further comprising:
and the second prompting module is used for prompting the other user of the first user and the second user when one user of the first user and the second user inputs.
35. A message interaction apparatus, comprising:
a first generating module, configured to generate a first request, where the first request includes: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
and the first sending module is used for sending the first request to a server so that the server sends a message sent by a client of the second user as a message of the first user or the first user agent in a session corresponding to the identifier of the session.
36. The message interaction apparatus of claim 35, further comprising:
the first conversation interface display module is used for displaying an interface of a conversation where the first user is located, wherein the interface comprises a key for adding an agent;
the first selection interface display module is used for displaying an agent selection interface when the key is triggered;
and the first receiving module is used for receiving the agent selected by the first user in the agent selection interface.
37. The message interaction apparatus of claim 35, wherein the first request further comprises an identifier identifying whether the second user is visible, further comprising:
and the first setting module is used for setting the identifier which is visible for the second user according to the instruction of the first user.
38. The message interaction apparatus of claim 35, further comprising:
and the second receiving module is used for receiving the message sent by the client of the second user and sending the message in the session.
39. A message interaction apparatus, comprising:
an agent instruction receiving module, configured to receive an agent instruction, where the agent instruction carries a user identifier of a proxied first user and a session identifier where the first user is located, and the agent instruction is used to indicate that the second user is a proxy of the first user;
a first message instruction receiving module, configured to receive a message input by the second user and an instruction for sending the message;
and the second message sending module is used for sending the message to a server according to the instruction so that the server sends the message as the message of the first user in the session corresponding to the identifier of the session.
40. The message interaction apparatus of claim 39, further comprising:
a second request receiving module, configured to receive a request sent by the server, where the request is used to confirm whether the second user agrees to the proxy;
the first response instruction receiving module is used for prompting the second user according to the request and receiving a response instruction of the second user;
and the first response generation module is used for generating a response of the request according to the response instruction of the second user and sending the response of the request to the server, wherein the response of the request is a response of confirming agreement or disagreement of the agent by the second user.
41. The message interaction device of claim 40, further comprising:
and the first history record receiving module is used for receiving the history session record of the session sent by the server.
42. A message interaction apparatus, comprising:
a second generating module, configured to generate agent configuration information and a first request according to an agent selected by a first user, where the first request includes: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
and the second sending module is used for sending the agent configuration information and the first request to a client of a second user so that the client of the second user sends a message input by the second user as the message of the first user in a session corresponding to the identifier of the session according to the agent configuration information.
43. The message interaction device of claim 42, wherein the session in which the first user is located is a session to which the identifier corresponds.
44. The message interaction device of claim 42, wherein the second user is a user selected by the first user to proxy for the first user.
45. The message interaction device of claim 42, further comprising:
a second request sending module, configured to send a second request to a client of the second user according to a user identifier of the second user, where the second request is used for enabling the second user to confirm whether to agree with an agent;
and a second response receiving module, configured to receive a response to the second request sent by the client of the second user, where the response to the second request is a response of the second user confirming agreement or disagreement with an agent.
46. The message interaction device of claim 45, further comprising:
a second history record sending module, configured to send the history session record of the session to the client of the second user when the response of the second request is the response of the second user to confirm agreement with the proxy;
and the second prompt information sending module is used for generating prompt information when the response of the second request is the response of the second user confirming that the agent is not approved, and prompting the first user according to the prompt information.
47. The message interaction device of claim 42, further comprising:
the second session interface display module is used for displaying an interface of the session where the first user is located, wherein the interface comprises a key for adding an agent;
the second selection interface display module is used for displaying the agent selection interface when the key is triggered;
and the third receiving module is used for receiving the agent selected by the first user in the agent selection interface.
48. The message interaction device of claim 47, wherein the first request further comprises an identifier identifying whether the second user is visible, further comprising:
and the second setting module is used for setting the identifier which is visible for the second user according to the instruction of the first user.
49. A message interaction apparatus, comprising:
a fourth receiving module, configured to receive agent configuration information and a first request sent by a client of a first user, where the first request includes: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
a second message instruction receiving module, configured to receive a message input by the second user and an instruction for sending the message;
and the third message sending module is used for sending the message to the session of the first user according to the agent configuration information.
50. The message interaction device of claim 49, further comprising:
a third request receiving module, configured to receive a second request sent by a client of the first user, where the second request is used to enable the second user to confirm whether to agree with the proxy;
a second response instruction receiving module, configured to prompt the second user according to the second request, and receive a response instruction of the second user;
and the second response generation module is used for generating a response of the second request according to the response instruction of the second user and sending the response of the second request to the client of the first user, wherein the response of the second request is a response of the second user confirming agreement or disagreement with the agent.
51. The message interaction device of claim 49, further comprising:
and the second history record receiving module is used for receiving the history session record of the session sent by the client of the first user.
52. The message interaction device of claim 49, wherein the first request further comprises an identifier for identifying whether the second user is visible, further comprising:
a third prompting module, configured to not prompt the message of the first user as an agent message in the session when the identifier is invisible; and when the identification is visible, prompting that the message of the first user is a proxy message in the session.
CN201610635302.5A 2016-08-05 2016-08-05 Method for message interaction and device Pending CN107689939A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201610635302.5A CN107689939A (en) 2016-08-05 2016-08-05 Method for message interaction and device
TW106119491A TW201806406A (en) 2016-08-05 2017-06-12 Method and device for message interaction
PCT/CN2017/094011 WO2018024123A1 (en) 2016-08-05 2017-07-24 Method and device for message interaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610635302.5A CN107689939A (en) 2016-08-05 2016-08-05 Method for message interaction and device

Publications (1)

Publication Number Publication Date
CN107689939A true CN107689939A (en) 2018-02-13

Family

ID=61073609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610635302.5A Pending CN107689939A (en) 2016-08-05 2016-08-05 Method for message interaction and device

Country Status (3)

Country Link
CN (1) CN107689939A (en)
TW (1) TW201806406A (en)
WO (1) WO2018024123A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809820A (en) * 2018-07-20 2018-11-13 莱思特科技股份有限公司 Set the procuratorial method of instant messaging, instant communication device and server
CN109962841A (en) * 2019-03-15 2019-07-02 北京达佳互联信息技术有限公司 Information interacting method, device, server-side, electronic equipment and storage medium
CN110147188A (en) * 2019-05-27 2019-08-20 腾讯科技(深圳)有限公司 A kind of information cuing method, device, equipment and storage medium
CN111447133A (en) * 2019-01-16 2020-07-24 腾讯科技(深圳)有限公司 Message transmission method and device, storage medium and electronic device
CN115580589A (en) * 2022-10-13 2023-01-06 维沃移动通信有限公司 Message display method and device, electronic equipment and medium
WO2024093793A1 (en) * 2022-10-31 2024-05-10 维沃移动通信有限公司 Message display method and apparatus, and electronic device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642148A (en) * 2004-01-17 2005-07-20 腾讯科技(深圳)有限公司 Immediate communication treatment method
CN101090370A (en) * 2006-06-16 2007-12-19 腾讯科技(深圳)有限公司 Method and device for implementing session transition
CN101292479A (en) * 2005-09-06 2008-10-22 诺基亚西门子网络公司 Method and arrangement for transferring instant messaging conversations based on priority elements
CN101299785A (en) * 2007-04-30 2008-11-05 华为技术有限公司 Method, system and service server for processing conversation
CN101689153A (en) * 2007-06-28 2010-03-31 微软公司 Delegating instant messaging sessions
CN103929347A (en) * 2013-01-15 2014-07-16 杭州华为企业通信技术有限公司 Method, device and system for achieving IM agent service

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7170991B2 (en) * 2003-08-25 2007-01-30 Cisco Technology, Inc. Method and system for utilizing proxy designation in a call system
US20070239830A1 (en) * 2006-04-05 2007-10-11 Barnes Thomas H Method and apparatus for instant message notification and forwarding

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642148A (en) * 2004-01-17 2005-07-20 腾讯科技(深圳)有限公司 Immediate communication treatment method
CN101292479A (en) * 2005-09-06 2008-10-22 诺基亚西门子网络公司 Method and arrangement for transferring instant messaging conversations based on priority elements
CN101090370A (en) * 2006-06-16 2007-12-19 腾讯科技(深圳)有限公司 Method and device for implementing session transition
CN101299785A (en) * 2007-04-30 2008-11-05 华为技术有限公司 Method, system and service server for processing conversation
CN101689153A (en) * 2007-06-28 2010-03-31 微软公司 Delegating instant messaging sessions
CN103929347A (en) * 2013-01-15 2014-07-16 杭州华为企业通信技术有限公司 Method, device and system for achieving IM agent service

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809820A (en) * 2018-07-20 2018-11-13 莱思特科技股份有限公司 Set the procuratorial method of instant messaging, instant communication device and server
CN111447133A (en) * 2019-01-16 2020-07-24 腾讯科技(深圳)有限公司 Message transmission method and device, storage medium and electronic device
CN111447133B (en) * 2019-01-16 2022-07-29 腾讯科技(深圳)有限公司 Message transmission method and device, storage medium and electronic device
CN109962841A (en) * 2019-03-15 2019-07-02 北京达佳互联信息技术有限公司 Information interacting method, device, server-side, electronic equipment and storage medium
CN109962841B (en) * 2019-03-15 2021-05-28 北京达佳互联信息技术有限公司 Information interaction method and device, server, electronic equipment and storage medium
CN110147188A (en) * 2019-05-27 2019-08-20 腾讯科技(深圳)有限公司 A kind of information cuing method, device, equipment and storage medium
CN110147188B (en) * 2019-05-27 2022-03-18 腾讯科技(深圳)有限公司 Information prompting method, device, equipment and storage medium
CN115580589A (en) * 2022-10-13 2023-01-06 维沃移动通信有限公司 Message display method and device, electronic equipment and medium
WO2024093793A1 (en) * 2022-10-31 2024-05-10 维沃移动通信有限公司 Message display method and apparatus, and electronic device and medium

Also Published As

Publication number Publication date
WO2018024123A1 (en) 2018-02-08
TW201806406A (en) 2018-02-16

Similar Documents

Publication Publication Date Title
CN107689939A (en) Method for message interaction and device
CN103460723B (en) Push notifications for updating multiple dynamic icon panels
CN105337747B (en) Group history message treatment method and device
EP3123671B1 (en) Chat-based support of multiple communication interaction types
EP2849125A1 (en) Rearranging chat messages
CN109587044A (en) Group creating, method for message interaction and device
WO2015096322A1 (en) Information display method for instant communication tool, and user terminal
CN111447133B (en) Message transmission method and device, storage medium and electronic device
CN105208015A (en) Application multi-account login processing method and device and terminal device
CN112087363A (en) Message processing method and device, terminal and server
CN103634327B (en) The long-range control method and device of terminal
JP2017085567A (en) User terminal, method of transmitting and receiving message, and computer program
CN105096230A (en) Flight notification method and device and flight setting method and device
CN113746722B (en) Information processing method, device, equipment and storage medium
CN112395509A (en) Information display method, information providing method, apparatus, and computer-readable medium
EP4078937B1 (en) Method and system for reducing audio feedback
CN103701994A (en) Automatic responding method and automatic responding device
KR20140061073A (en) Mobile device and method for transmitting and receiving event by using calendar protocol
CN113326013A (en) Information interaction method and device and electronic equipment
CN113728346A (en) Method and system for synchronizing communications in a communication environment
EP2775671B1 (en) Method and apparatus for sending and receiving messages
CN109510866B (en) Pushing method and device for cloud pushing system, storage medium and electronic equipment
KR101377853B1 (en) Method for user interface in group chatting
WO2016183738A1 (en) Method and device for associating user with group
CN109040331B (en) Electronic business card processing method and device, computing equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1250437

Country of ref document: HK

RJ01 Rejection of invention patent application after publication

Application publication date: 20180213

RJ01 Rejection of invention patent application after publication