CN109587044B - Group creation and message interaction method and device - Google Patents

Group creation and message interaction method and device Download PDF

Info

Publication number
CN109587044B
CN109587044B CN201910060390.4A CN201910060390A CN109587044B CN 109587044 B CN109587044 B CN 109587044B CN 201910060390 A CN201910060390 A CN 201910060390A CN 109587044 B CN109587044 B CN 109587044B
Authority
CN
China
Prior art keywords
user
group
message
session
group session
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.)
Active
Application number
CN201910060390.4A
Other languages
Chinese (zh)
Other versions
CN109587044A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910060390.4A priority Critical patent/CN109587044B/en
Publication of CN109587044A publication Critical patent/CN109587044A/en
Application granted granted Critical
Publication of CN109587044B publication Critical patent/CN109587044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]
    • 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/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Abstract

The embodiment of the invention discloses a group creation and message interaction method and a device; the embodiment of the invention can determine a plurality of user identifications to be added to the group session, wherein the user identifications to be added comprise virtual user identifications and real user identifications; and creating a group session containing the virtual user and the real user according to the user identifications to be added. The scheme can realize the creation of the virtual user group.

Description

Group creation and message interaction method and device
Technical Field
The invention relates to the technical field of communication, in particular to a group creation and message interaction method and device.
Background
With the development of communication technology, many instant communication platforms are currently on the market. However, these instant messaging products can only create a general user group chat in which all members are real users, and cannot create a virtual user group chat including virtual users such as application programs, so that the virtual users such as application programs participate in the group chat, and user requirements cannot be met in many application scenarios.
Disclosure of Invention
The embodiment of the invention provides a group creation method and a message interaction method and device, which can realize the creation of a virtual user group.
The embodiment of the invention provides a group creation method, which comprises the following steps:
determining a plurality of user identifications to be added to a group session, wherein the user identifications to be added comprise virtual user identifications and real user identifications;
and creating a group session containing the virtual user and the real user according to the user identifications to be added.
The embodiment of the invention provides a group creation method, which comprises the following steps:
displaying a user operation interface of a group session, wherein the group session comprises a group session of a real user;
receiving a member adding instruction triggered by a user through the user operation interface;
acquiring a virtual user identifier to be added to the group session according to the member adding instruction;
and adding the virtual user to the group session according to the virtual user identification.
Correspondingly, another group creation method is further provided in the embodiments of the present invention, including:
receiving a group creation request sent by group creator equipment, wherein the group creation request carries a plurality of user identifications to be added to a group session, and the user identifications to be added comprise virtual user identifications and real user identifications;
creating a group session containing a virtual user and a real user according to the group creation request;
synchronizing group data for the group session to devices of members in the group session.
Correspondingly, the embodiment of the invention also provides a message interaction method, which comprises the following steps:
receiving a message to be sent aiming at a group session sent by a message processing server, wherein the message to be sent comprises message content, and the group session comprises a real user and a virtual user;
when the message to be sent designates a receiver and the receiver is a virtual user in the group session, sending the message content to equipment of the virtual user based on an external network protocol;
when the message to be sent designates a receiver and the receiver is a real user in a group session, sending a first group message to equipment of the real user based on a system internal network protocol, wherein the first group message comprises the message content and message reminding information;
and when the message to be sent does not designate a receiver, sending a second group message carrying the message content to the equipment of the members in the group session based on the network protocol in the system.
Correspondingly, an embodiment of the present invention further provides a group creation apparatus, including:
the device comprises a determining unit, a judging unit and a sending unit, wherein the determining unit is used for determining a plurality of user identifications to be added to a group session, and the user identifications to be added comprise virtual user identifications and real user identifications;
and the creating unit is used for creating a group session containing the virtual user and the real user according to the user identifications to be added.
Correspondingly, an embodiment of the present invention further provides another group creation apparatus, including:
the display unit is used for displaying a user operation interface of a group session, wherein the group session comprises a group session of a real user;
the receiving unit is used for receiving a member adding instruction triggered by the user through the user operation interface;
the acquisition unit is used for acquiring the virtual user identifier to be added to the group session according to the member adding instruction;
and the adding unit is used for adding the virtual user to the group session according to the virtual user identification.
Correspondingly, an embodiment of the present invention further provides another group creation apparatus, including:
a creating unit configured to create a group session including a virtual user and a real user according to a group creation request;
and the data synchronization unit is used for synchronizing the group data of the group session to the devices of the members in the group session.
Correspondingly, an embodiment of the present invention further provides a message interaction apparatus, including:
a message receiving unit, configured to receive a message to be sent, which is sent by a message processing server and is directed to a group session, where the message to be sent includes message content, and the group session includes a real user and a virtual user;
a pushing unit for:
when the message to be sent designates a receiver and the receiver is a virtual user in the group session, sending the message content to equipment of the virtual user based on an external network protocol;
when the message to be sent designates a receiver and the receiver is a real user in a group session, sending a first group message to equipment of the real user based on a system internal network protocol, wherein the first group message comprises the message content and message reminding information;
and when the message to be sent does not designate a receiver, sending a second group message carrying the message content to the equipment of the members in the group session based on the network protocol in the system.
Correspondingly, the embodiment of the present invention further provides a storage medium, where the storage medium stores instructions, and the instructions, when executed by a processor, implement the steps in any of the methods provided in the embodiments of the present invention.
The embodiment of the invention can determine a plurality of user identifications to be added to the group session, wherein the user identifications to be added comprise virtual user identifications and real user identifications; and creating a group session containing the virtual user and the real user according to the user identifications to be added. The scheme can realize the creation of the virtual user group.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1a is a schematic structural diagram of a message interaction system according to an embodiment of the present invention;
FIG. 1b is a flowchart of a group creation method according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of a group creating method according to an embodiment of the present invention;
fig. 3a is a schematic flowchart of a message interaction method according to an embodiment of the present invention;
fig. 3b is a schematic diagram of a group chat interface provided by the embodiment of the present invention;
fig. 3c is a schematic diagram of group chat messaging according to an embodiment of the present invention;
FIG. 3d is a schematic diagram of an incoming and application individual chat provided by embodiments of the present invention;
fig. 4 is another flow chart of a message interaction method provided by the embodiment of the present invention;
fig. 5a is another flow chart of the group creating method according to the embodiment of the present invention;
FIG. 5b is a schematic diagram of a member addition interaction provided by an embodiment of the invention;
FIG. 5c is a schematic diagram of a member addition interaction provided by an embodiment of the invention;
FIG. 6a is a schematic diagram of an architecture of message interaction provided by an embodiment of the present invention;
FIG. 6b is a schematic diagram of another architecture for message interaction provided by an embodiment of the present invention;
fig. 7a is a schematic structural diagram of a group creation apparatus according to an embodiment of the present invention;
fig. 7b is a schematic structural diagram of a group creation apparatus according to an embodiment of the present invention;
fig. 8a is a schematic structural diagram of a group creation apparatus according to an embodiment of the present invention;
fig. 8b is a schematic structural diagram of a group creating apparatus according to an embodiment of the present invention;
fig. 8c is a schematic structural diagram of a group creating apparatus according to an embodiment of the present invention;
fig. 9a is a schematic structural diagram of a message interaction apparatus according to an embodiment of the present invention;
fig. 9b is a schematic structural diagram of a message interaction apparatus according to an embodiment of the present invention;
fig. 9c is a schematic structural diagram of a message interaction apparatus according to an embodiment of the present invention;
FIG. 10 is a schematic structural diagram of a message interaction device according to an embodiment of the present invention;
fig. 11a is a schematic structural diagram of a group creation apparatus according to an embodiment of the present invention;
fig. 11b is a schematic structural diagram of a group creating apparatus according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a network device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a group creation method, a message interaction method, a message creation device, a message interaction device and a storage medium.
The embodiment of the invention provides a message interaction system, which comprises: a group creating means (may be referred to as a first group creating means) adapted to the group creator apparatus, and a group creating means (may be referred to as a second group creating means) adapted to the message processing server.
The first group creating apparatus may be integrated on a group creator device, which is a device used by the group creator, and may include a terminal or a server, for example. In one embodiment, when the group creator is a real object, such as an administrator, a user, etc., the group creator device may be a terminal of the real object, such as a terminal used by the administrator. For another example, in an embodiment, when the group creator is a virtual object, such as an application, the group creator device may be a device in which the virtual object is located, such as a server, a terminal, a robot, etc. in which the application is located.
The second group creating device may be integrated in a message processing server, and the message processing server may be a background server for instant messaging, and the like.
For example, referring to fig. 1a, the message interaction system may include: the system comprises a group creator device, a message processing server, a message pushing server and a group member device. In fig. 1a, the group creating device may be a terminal (e.g., a mobile phone, a laptop, a tablet computer, etc.), and the group member device may be a terminal, a message push server, a message processing server, or a virtual user server. The equipment is connected with the server through a network, and the server is connected with the server through a network. The following were used:
when a group needs to be created, the group creator device may determine a plurality of to-be-added user identifiers to be added to the group session, where the plurality of to-be-added user identifiers include a virtual user identifier and a real user identifier; acquiring address information of a message processing server; and sending a group creation request carrying a plurality of user identifications to be added to the message processing server according to the address information so as to create a group session containing the virtual user and the real user. When the group creator is a virtual user such as an application, the group creator device may include a device of the virtual user, for example, a device where the virtual user such as the application is located, such as a server where the virtual user such as the application is located, or a terminal. When the group creator is a real user, the group creator device may include a user device of the real user, such as a terminal used by the real user.
The message processing server can create a group session containing the virtual user and the real user according to the group creation request; and identifying corresponding equipment synchronization group data to the member object in the group session. For example, the group synchronization information may be sent to the device corresponding to the member identifier in the group session, where the group synchronization information includes the group data to be synchronized. Specifically, the message processing server may identify the corresponding device synchronization group data to the group members through the message push server.
The group member device may receive the group synchronization information sent by the message processing server, and display a group session interface including at least one virtual user and at least one real user according to the group synchronization information.
After the group session creation is successful, either the real user or the virtual user may send a message in the group session. For example, when a real user in a group session sends a message, the user may send the group message to the message processing server through the user equipment, the message processing server sends the group message to the message pushing server, and the message pushing server pushes the group message to a device corresponding to a member identifier in the group session, thereby implementing group message sending.
For another example, when a virtual user in a group session sends a message, the device of the virtual user may send the message content to the message processing server based on an external network Protocol, such as HyperText Transfer Protocol (HTTP); for example, a message sending request (POST) may be sent to the message processing server, where the message sending request may carry a group identifier and message content; the message processing server can send the group message to the device corresponding to the member identifier based on the message system internal network protocol, specifically, the message processing server generates the group message conforming to the internal network protocol according to the message sending request and sends the group message to the message pushing server; the message push server may send the group message to the device corresponding to the member identification in the group session based on the intranet protocol.
The following are detailed below. The order of the following examples is not intended to limit the preferred order of the examples.
In an embodiment, the description will be made from the perspective of a first group creation apparatus, which may be specifically integrated in a network device, and the network device may include a terminal or a server.
As shown in fig. 1b, a group creation method is provided, where the group creation method may be executed by a processor in a network device, such as a terminal or a server, and the specific process may be as follows:
101. determining a plurality of user identifications to be added to the group session, wherein the plurality of user identifications to be added comprise virtual user identifications and real user identifications.
The real user is a common user, and refers to a real person using a device, a network service, or software. A virtual user refers to a non-real person using a device, a network service, or software, for example, a virtual user may include an application (or software) or the like, such as a customer service application, an enterprise service application, a consultation application, and the like. Also for example, a virtual user may include a physical device, such as a smart robot or the like, where an application (or software) is located.
The real user identifier is a user identifier of the real user and is used for identifying the identity of the real user. Such as a user identification of a person.
The virtual user identifier is a user identifier of the virtual user and is used for identifying the identity of the virtual user such as an application program; such as a user identification of an enterprise service application.
Wherein, the user identification can be composed of numbers, and/or binary characters, and/or letters, etc. In one embodiment, the user identification may be a certain number of digits id, such as a 64-digit id. Further, in order to distinguish between the real user identification and the virtual user identification, when the id is identified by a certain number of digits, the real user id and the virtual user id may be set in different intervals to distinguish between the real user and the virtual user.
In one embodiment, the virtual user and the real user may belong to different messaging systems, for example, user identifications (e.g., accounts) of the virtual user and the real user belong to different identification types, and each identification type corresponds to a messaging system. For example, the virtual user identity type is a first identity type, the first identity type corresponding to a first messaging system, and the real user identity type is a second identity type, the second identity type corresponding to a second messaging system.
For example, in an embodiment, a group creator, such as a person, may create a group session through a client, such as an instant messaging client, and at this time, the user identifier to be added may be determined through interaction with the client. Specifically, the method may include the steps of:
(1) a group creation instruction to act on a user operation interface of a client is received.
The client is software installed on the user terminal for interacting with messages, and may be an instant messaging client, for example.
The user operation interface is displayed by the client, and a user can operate the interface to realize human-computer interaction. For example, the user interface may include a main interface of the client, such as a message main interface, which displays a portal for at least one group session or at least one individual session.
The group creation instruction may include a group creation instruction triggered by a user operating a user operation interface of the client, for example, a group creation interface may be set on the user operation interface, and when the user operates the creation interface, such as clicking operation, sliding operation, and the like, a corresponding group creation instruction is triggered, and at this time, the terminal or the client receives the group creation instruction.
The presentation form of the group creation interface is various, such as an input box, an icon button, and the like. For example, the user terminal may display a function menu button "+" on the message main interface; when a user needs to create a group such as an external group, the user can click the function menu button "+", and when the user clicks the function menu button "+", the terminal is triggered to display a function menu bar on the message main interface, wherein the function menu bar comprises a group creation button "initiate group chat"; when the user clicks the group creation button "initiate group chat", a group creation command is triggered.
(2) User information of a plurality of users is displayed based on the group creation instruction, wherein the plurality of users includes at least one virtual user and at least one real user.
The user information may include information such as a nickname and a head portrait of the user, or information such as a name and an icon. For example, a contact selection interface including user information (nickname, avatar) of a friend user (e.g., real user), a name (name, icon, etc.) of a virtual user (e.g., application, etc.) may be displayed according to the group creation instruction.
(3) And acquiring user identifications of a plurality of users to be added selected from a plurality of users.
For example, a group creator such as a real user or a virtual user may select a user to be added to the group session from a plurality of users, so that the group creation device (e.g., a terminal) acquires the user identifier of the user to be added. For example, the creator may select a user to be added to the group session in the contact selection interface by operation, so that the terminal may obtain the user identifier of the user to be added.
In an embodiment, the group session may also be created by an administrator of the messaging system through a group creation device (i.e., a management end, such as a terminal), and when creating the group, the administrator may create the group session directly through a group creation application, such as a code writing application. The administrator may input information such as user identification (e.g., group chat member identification), group attribute information (e.g., information such as group owner, group name, etc.) in the group session to be added in the group creation application. At this time, the group creation device, such as a terminal, may obtain the user identifier to be added, which is input by the administrator. The administrator may be a real user or a virtual user such as a management application.
In an embodiment, a group session may also be created by a virtual user (the created group session may include the virtual user initiated by creation or may not include the virtual user initiated by creation), that is, the group creator is a virtual user; at this time, the group creation device is a network device, such as a server, corresponding to the virtual user, such as an application program. When a virtual user needs to create a group, such as a certain application needs to create a group, the group may be created based on the indication of the real user. For example, the real user may send group creation indication information (including multiple user identifiers to be added and group attribute information) to the network device corresponding to the virtual user through the terminal, and at this time, the network device corresponding to the virtual user determines the user identifier to be added according to the indication information. Specifically, the step "determining a plurality of to-be-added user identifiers to be added to the group session" may include:
receiving group creation indication information sent by a terminal, wherein the group creation indication information comprises a plurality of user identifications to be added which need to be added to a group session;
and determining a plurality of user identifications to be added to the group session according to the group creation indication information.
For example, taking a virtual user as an application program as an example, the user a may configure group creation indication information, including group member information (a group member identifier, that is, a user identifier to be added), group attribute information (a group owner, a group name, and the like), through the terminal; then, the trigger terminal sends the indication information to the server where the application program is located, and the server where the application program is located can determine the user identifier to be added based on the indication information.
102. And creating a group session containing the virtual user and the real user according to the user identifications to be added.
For example, when the virtual user is an application, a group session including the application and the real user may be created according to a plurality of user identifiers to be added.
The group session created in the embodiment of the present invention is distinguished from a general group session, and the general group session only includes real users, for example, member users including a certain message system. The group session of the embodiment of the invention not only comprises real users, but also comprises virtual users. For example, including applications, etc.
For example, when the creating user, the virtual user in the session, and the other real users belong to the same message system, the created group session may be an internal group session of the message system for the creating party. In an embodiment, the virtual user and the real user in the group session may belong to different messaging systems, and at this time, the created group session may be an external group session of the messaging system. For example, when the creating user, and the virtual user, or other real users in the session belong to different message systems, at this time, the created group may be an external group session outside the message system for the creating party.
Specifically, the implementation of creating the group may include:
A. and generating a group creation request according to the user identifications to be added, wherein the group creation request carries the user identifications to be added.
Specifically, to implement group creation, a network protocol file may be acquired, and a group creation request conforming to a network protocol is generated according to the network protocol file and a plurality of user identifiers to be added. The network protocol may create a network protocol within the messaging system to which the user belongs, for example, when the creating user is a member user of the messaging system, the network protocol is a private network protocol within the messaging system.
In one embodiment, the network protocol may be an external network protocol, or the like, when the creator is outside of the messaging system to which the session member user belongs.
B. And acquiring the address information of the message processing server.
The message processing server is a server in the message system for creating a group session, such as creating a group session including virtual users. For example, the message processing server may be a background server for instant messaging.
The address information of the message processing server may be encapsulated in an API (Application Programming Interface) provided by the group creator device, and at this time, the API Interface may be called to obtain the address information of the message processing server. In an embodiment, the address information of the message processing server may also be input by the administrator when the administrator creates a group containing virtual users.
C. And sending a group creation request carrying a plurality of user identifications to be added to the message processing server according to the address information so as to create a group session containing the virtual user and the real user.
For example, in an embodiment, when the management end creates a group including a virtual user, the management end may send a group creation request to a message processing server, such as an instant messaging backend server, based on address information, where the group creation request carries a plurality of user identifiers to be added.
In general, the management end is located in the message system, and at this time, the management end may send a group creation request to a message processing server in the message system based on the system internal network protocol and the address information.
For another example, in an embodiment, when a network device corresponding to a virtual user, such as a server, creates a group including the virtual user (the virtual user may be a virtual user as a creator), the network device of the virtual user may send a group creation request to a message processing server, such as an instant messaging backend server, according to address information of the message processing server, where the group creation request carries a plurality of user identifiers to be added.
The network device corresponding to the virtual user may send a group creation request to the message processing server based on the external network protocol and the address information.
The external network Protocol is a Protocol used in the message system, a private network Protocol is generally used in the message system, and a public network Protocol such as a HyperText Transfer Protocol (HTTP) is generally used as a network Protocol (i.e., an external network Protocol) outside the message system.
In addition, in an embodiment, the group creation request may also carry group attribute information (e.g., group owner, group name, etc.).
The message processing server can create a group session containing virtual users and real users according to the group creation request after receiving the group session. Specifically, the message processing server may store the virtual user identifier and the real user identifier collectively as a group member identifier, thereby implementing creation of a group including virtual users.
In an embodiment, in order to improve security, the identity of a virtual user, such as an application program, needs to be verified, and specifically, the group creation request also carries authentication information of the identity of the virtual user, so that the message processing server can verify the identity of the virtual user based on the authentication information, and create a group session containing the virtual user when the authentication is passed.
In one embodiment, after a group including a virtual user is successfully created, the virtual user, such as an application, may send a message to the members in the group session; specifically, a device of the virtual user (e.g., a backend server of the application, etc.) may send message content to the message processing server based on the external network protocol, and the message processing server may send message content to devices of the members in the group session based on the messaging system internal network protocol.
For example, when the group creator device is a device of a virtual user in the group, after the group creation is successful, the group creator device may send the message content to the message processing server based on the external network protocol, so that the message processing server sends the message content to the devices of the members in the group session based on the message system internal network protocol.
Specifically, a device of a virtual user, such as a background server of an application program, may send a message sending request to a message processing server based on an external network protocol, where the message sending request may carry a group identifier, message content to be sent, and the like, and the message processing server may generate a group message conforming to the internal network protocol according to the message sending request, where the group message includes the message content; then, the message processing server sends the group message to the devices of the members in the group session corresponding to the group identifier.
In one embodiment, in order to improve message security, when a virtual user in a group sends a message, the identity of the virtual user needs to be verified; specifically, the message sending request may also carry identity authentication information of the virtual user, so that the message processing server sends the message when the identity authentication of the virtual user is passed.
In an embodiment, the description will be made from the perspective of a second group creation apparatus, which may be specifically integrated in a server, for example, in a message processing server.
As shown in fig. 2, another group creation method is provided, where the group creation method may be executed by a processor in a server, and the specific flow may be as follows:
201. receiving a group creation request sent by group creator equipment;
the group creation request carries a plurality of user identifications to be added to the group session, and the user identifications to be added comprise virtual user identifications and real user identifications.
For example, user identifications (such as accounts) of the virtual user and the real user belong to different identification types, and each identification type corresponds to a message system. For example, the virtual user identity type is a first identity type, the first identity type corresponding to a first messaging system, and the real user identity type is a second identity type, the second identity type corresponding to a second messaging system.
For example, in an embodiment, when the group creator device is a management end of the message system, the group creation request sent by the management end may be received, for example, the group creation request sent by the management end based on an internal network protocol of the system is received.
For another example, in an embodiment, when the group creator device is a device of a virtual user, the group creation request sent by the device of the virtual user may be received, for example, the group creation request sent by the device of the virtual user based on an external network protocol is received.
For another example, in an embodiment, when the group creator device is a user device of a certain real user in the messaging system, the group creation request sent by the user device of the real user may be received, for example, the group creation request sent by the user device of the real user based on the system internal network protocol is received.
The user identifiers to be added may include a user identifier of a group creator, for example, a user identifier including an administrator; the user id of the group creator may not be included, for example, the user id of the administrator is not included (i.e., the administrator creates a group that does not include itself).
In an embodiment, the group creation request may also include group attribute information, such as group owner, group name, group avatar, and the like. For example, when the administrator creates a group including virtual users, the administrator may determine to-be-added user identifiers, specify group owners, set group names, and the like, and at this time, the group creation request may also carry these pieces of information.
202. And creating a group session containing the virtual user and the real user according to the group creation request.
In one embodiment, a corresponding group identifier is allocated according to a group creation request; and then, creating a group session containing the virtual user and the real user according to the group identification and the user identifications to be added.
For example, a mapping relationship between the group identifier and the identifier of the user to be added (identifier of the virtual user or the real user) may be established, so as to create a group session including the virtual user and the real user.
In the embodiment of the invention, the virtual user identifier and the real user identifier can be uniformly regarded as the group member identifiers and stored according to the preset data storage structure, so that the group session containing the virtual user and the real user is created. Further, information such as group names, group owners, etc. may also be stored in a predetermined data storage structure.
For example, the message processing server may store information such as group name, group owner, group id, member id (application id, user id collectively referred to as group member id), etc. to the background.
In an embodiment, in order to improve message security, the identity of the virtual user may also be verified when creating the group containing the virtual user. The group creation request may also carry identity authentication information of the virtual user. At this time, the step of "creating a group session including the virtual user and the real user according to the group creation request" may include:
verifying the identity authentication information of the virtual user;
and when the verification is passed, creating a group session containing the virtual user and the real user according to the user identifications to be added.
The identity authentication information of the virtual user can be provided to the virtual user by a message system service provider, for example, the virtual user such as an application program, an applet, and the like is registered by the service provider first, and the identity authentication information of the virtual user can be obtained. The identity authentication information may include information such as a password of the virtual user.
In one embodiment, considering that interaction, such as message interaction, is required between the virtual user and the real user after the group is created, the real user to be added needs to be within the visible range of the virtual user, such as an application; i.e. it can be determined that all real users are visible users of the virtual user. Specifically, the step "creating a group session containing a virtual user and a real user according to a plurality of user identifiers to be added when the authentication passes" may include: and when the verification is passed and all the real users are visible users of the virtual users, creating a group session containing the virtual users and the real users according to the user identifications to be added.
Wherein, the visible users of the virtual users are: virtual users, such as users that an application allows to be seen and used (real users, such as someone, or virtual users, such as other applications); these users are visible users, or visible ranges, of the virtual users.
In the embodiment of the present invention, the group creation method may further include detecting whether all real users are visible users of the virtual user; the time sequence between the detection of the visible user and the authentication step can be set according to actual requirements, for example, the detection of the visible user can be performed after the authentication is passed, or can be performed simultaneously with the authentication, and the like.
In an embodiment, a visible user identifier corresponding to a virtual user identifier may be obtained; and comparing all the real user identifications with the visible user identifications, and determining whether all the real users are the visible users of the virtual users according to the comparison result.
203. Group data for the group session is synchronized to the devices of the members in the group session.
Upon successful creation of a group containing both virtual and real users, group data may be synchronized to the devices of the members of the group. For example, group data may be synchronized based on a messaging system intranet protocol. The member's device, such as the real user's device, may display a group session interface including the real user and the virtual user based on the group data. For example, referring to fig. 3b, taking the virtual user as the application "conference assistant" as an example, a group containing the application "conference assistant" is created according to the above-described manner.
The group data may include: group attribute data (e.g., group name, etc.), group member data (e.g., member list, etc.), group message data (e.g., message list, etc.), and so forth.
In the embodiment of the invention, the group data can be actively synchronized with the devices of the members in the group session, or the devices of the members request for synchronizing the group data.
In an embodiment, to improve the user experience, the group data of the group session may also be synchronized to the devices of the members in the group session when the first message sent by the group creator (virtual user or real user) is received.
After the group session including the virtual user and the real user is successfully established, the virtual user in the group can send messages to other members for interaction; and when the virtual user sends a message, the identity of the virtual user can be verified in order to improve the message security. Specifically, the method in the embodiment of the present invention may further include:
receiving a message sending request sent by equipment of a virtual user, wherein the message sending request carries a group identifier, message content and identity authentication information of the virtual user;
verifying the identity authentication information;
and if the verification is passed, sending a group message comprising the group identification and the message content to the message pushing server so that the message pushing server sends the group message to the devices of the members in the group session.
For example, after the group is successfully created, the device of the virtual user in the group may send a message sending request to the message processing server based on the external network protocol, and the message processing server may verify the identity authentication information, and if the verification is passed, send a group message (including a group identifier and message content) to the message push server based on the system internal network protocol; the message push server can send the group message to the device of the member in the group session corresponding to the group identifier, thereby realizing the message interaction between the virtual user and the real user in the group session.
The embodiment of the invention can create the group session containing the real user and the virtual user through the introduction mode, and can also realize the message interaction between the virtual user and the real user in the group session, thereby improving the user experience. For example, a virtual user, such as an application, may create a group chat through an API- > update the group chat through the API- > send a message to the group chat through the API. The API is an interface provided by the message processing server to the outside, and may be encapsulated with address information and the like. The application may call the API to send a group create request to the message processing server to create a group chat, call the API to send a group chat update request (e.g., a group chat member update request, etc.) to the message processing server, call the AIP to send a message to a group chat member, and so on.
On the basis of the group creation, an embodiment of the present invention further provides a message interaction method, which is described below from the perspective of a first message interaction device, where the first message interaction device may be specifically integrated in a group member device, such as a mobile phone, a tablet computer, and the like.
As shown in fig. 3a, another message interaction method is provided, which may be executed by a processor in a group member device, and the specific process may be as follows:
301. group data for the group session is synchronized from the message processing server.
The group session comprises a virtual user and a real user; the group data may include: group attribute data (e.g., group name, etc.), group member data (e.g., member list, etc.), group message data (e.g., message list, etc.), and so forth.
The group session in the embodiment of the present invention is different from the current common group session, and the target common group session only includes real users, however, the group session in the embodiment of the present invention may include virtual users such as an application, an intelligent robot, and the like.
In the embodiment of the invention, the message processing server can actively synchronize the group data to the devices of the members in the group session, and can also request the synchronization of the group data by the devices of the members.
In an embodiment, to improve the user experience, the message processing server may also synchronize the group data of the group session to the devices of the members in the group session when receiving the first message sent by the group creator (virtual user or real user).
302. And displaying a group session interface comprising the virtual user and the real user according to the group data.
In one embodiment, the group session interface may also include message content, such as, for example, where the group creator is a virtual user, such as an application, the group session interface displayed by the group member devices may also include message content sent by the virtual user.
For example, taking the virtual user as an application "conference assistant" as an example, the virtual user may create a group session including the virtual user and a real user according to the above group creation manner, and a group member device, such as a terminal, may synchronize group data from a message processing server, and display a group session interface as shown in fig. 3b according to the group data. The group session interface contains the virtual user "conference assistant", as well as the real users. The group session interface also displays messages sent by the virtual user "conference assistant" such as conference notification messages, conference address information, and the like.
After creating a group session containing virtual users and real users, interaction between real users in the group, real users and virtual users can be performed. For example, in one embodiment, a message may be sent to a specified user in a group session. In particular, this may be achieved by the message receiving user specifying the character. For example, the message interaction method according to the embodiment of the present invention may further include:
when detecting that a real user inputs a designated character of a message receiver on a group session interface, selecting a target message receiver from member users of a group session;
when a message sending instruction is received, obtaining message content input by a real user on a group session interface, wherein the message content comprises a message receiver designated character;
sending a group message to the equipment of the members in the group session, wherein the group message comprises a target message receiver identification and message content; specifically, a group message may be sent to the message processing server, where the group message includes an identifier of a target message recipient and message content, and the message processing server sends the group message to the devices of the members in the group session.
In one embodiment, for a message sender, the message content input by a real user in the group session interface can be shown in the group session interface.
The designated character of the message receiver is a functional character for designating a user (a real user or a virtual user) in the group session, and the character may be set according to actual requirements, for example, the character may be a key character such as "@".
The target message receiver is a user (including a real user or a virtual user) receiving a current message to be sent in the group session. The target message receiver identification is the user identification of the current message user to be sent received in the group session. For example, the virtual user identifier and the real user identifier may be used.
In practical applications, the group conversation interface further includes a message input interface, which may be represented in various forms, for example, an input box, an icon, and the like. The message input interface may include a text message input interface for a user to input text information, and a voice message input interface for a user to input voice information.
Referring to fig. 3c, after displaying the group session interface, the group members may input message contents such as a message recipient designator in a text message input interface or a voice message input interface of the group session interface; the group member device can detect the input of the user, thereby obtaining the message content to be sent input by the user; for example, when a message sending instruction is received, the message content (voice or text) input by the user can be acquired, and then the group message containing the message content is sent to the devices of the members in the group session.
The embodiment of the invention can select the target message receiver from the members of the group conversation when detecting the designated characters of the message receiver input by the real user, such as '@'. For example, in an embodiment, the group owner may be a default target message recipient, or a predetermined member may be a message recipient.
For another example, in an embodiment, in order to improve user experience and flexibility of message sending, when it is detected that a character specified by a message recipient is input, an interface of group members may be displayed, and a user may select the message recipient in the interface; for example, the step of "selecting a target message recipient from the members of the group session" may include:
displaying a member selection interface, wherein the member selection interface comprises user information of members in the group session;
and selecting a target message receiver from the members of the group session based on the selection operation of the real user on the member selection interface.
In an embodiment, when an operation (such as a long-press operation) for a member avatar in the session interface is detected, the input of the message receiver specifier is triggered, and meanwhile, a member corresponding to the member avatar is determined to be a message receiver.
For example, referring to fig. 3c, the user may input a message receipt designator "@" in the group session interface while designating the virtual user "conference assistant" as the recipient, and then input "my seat number"; when a user clicks a message sending button in the interface, a message sending instruction is triggered, at the moment, the group member equipment sends message content '@ conference assistant my seat number' to the equipment of all members in the group session, and the message content is displayed on the session interface.
The target message receiver may include a virtual user or a real user in the group session, and when the target message receiver is the virtual user, the reply content of the target message receiver to the message content may be displayed in the group session interface.
For example, referring to fig. 3c, after a real user (e.g. user a) @ a virtual user in the group, i.e. "conference assistant", the virtual user, i.e. "conference assistant", will return reply content for the message content; the member device will present the reply content in the session interface.
In one embodiment, the target message recipient may also be a real user in the group session, for example, referring to fig. 3c, member user "XXXa" may enter a message receipt designator "@" in the group session while designating real user "XXXb" as the recipient, and then enter "my XX team"; when a user clicks a message sending button in the interface, a message sending instruction is triggered, at the moment, the group member devices send message content "@ XXXB I XX team" to the devices of all members in the group conversation, and the message content is displayed on the conversation interface.
In an embodiment, the group members may also view information of the virtual user in the group chat, for example, when the virtual user is an application such as "conference assistant", the group chat members may view information of the application such as "conference assistant". Specifically, the message interaction method according to the embodiment of the present invention may further include:
displaying an information interface of the group session based on a group information viewing operation for the group session interface, the information interface including: a virtual user view portal;
displaying an information interface of the group session based on a group information viewing operation for the group session interface, the information interface including: the virtual user views the portal.
For example, a group information viewing entry may be set in the group session interface, and the user may perform an operation on the group information entry to display the information interface of the group session, that is, the group member device may display the information interface of the group session based on the detected information viewing operation on the group information viewing entry.
The details page of the virtual user includes information of the virtual user, such as the name of the virtual user, the function introduction of the virtual user, and the function entry (e.g., session entry, setup entry, etc.) of the virtual user.
The information interface of the group session may include information such as a group name, group members, group announcements, session records, and a virtual user viewing portal. For example, referring to fig. 3c and fig. 3d, when the real user clicks the group information view button at the upper right corner of the group session interface, the real user device displays the information interface of the group session, as shown in fig. 3 d. The information interface includes a virtual user view portal "group association application"; when the user clicks the virtual user view portal "group associated app", the user device will display a details page of the virtual user, such as the application "conference assistant", which includes details of the virtual user, such as the application "conference assistant", including the virtual user session portal "enter app" or "send message", the introduction information of the virtual user, the setting button of the virtual user, and so on.
In an embodiment, a session interface is displayed for the session with the virtual user based also on the session operation for the virtual user session portal. For example, referring to fig. 3d, when the user clicks the "enter application" or "send message" of the session entry of the virtual user, the session interface with the "conference assistant" may be triggered and displayed, so as to implement separate interaction with the virtual user, such as sending a message.
The embodiment of the invention can create the group session containing the virtual user in the introduced way, and can realize message interaction between the real user and before the real user and the virtual user in the group session.
On the basis of the group creation, another message interaction method is further provided in the embodiments of the present invention, which is described in the following from the perspective of a second message interaction device, where the second message interaction device may be specifically integrated into a server, such as a message push server.
As shown in fig. 4, another message interaction method is provided, where the message interaction method may be executed by a processor in a server, and the specific flow may be as follows:
401. receiving a message to be sent aiming at a group session sent by a message processing server, wherein the message to be sent comprises message content, and the group session comprises a real user and a virtual user.
The message to be sent may include information such as message content and group identifier.
In the embodiment of the present invention, the group session may include a virtual user and a real user, for example, the group session may include an application program.
After creating a group session containing virtual users, the message processing server may receive a message sent from a member device, the message including message content, group identification, and the like. For example, the message processing server may receive a message (based on a system internal network protocol) sent by a device of a real user in the group, or for example, the message processing server may also receive a message (based on an external network protocol) sent by a device of a virtual user in the group, such as a server where an application program is located; the message processing server can send the message to be sent to the message pushing server according to the received message.
In an embodiment, the message to be sent may specify a receiver, and the receiver may be a member in the group session, for example, a virtual user or a real user in the group session.
For example, when a message sender sends a message in a group session, a message receiver specifying character ("@" specifying character) and a specified message receiver identification may be input, so as to specify a message receiver receiving the message, and therefore, the message to be sent may further include the message receiver specifying character, the message receiver identification, and the like. In one embodiment, the message recipient specifying characters may be included in the message content.
402. And when the message to be sent designates a receiver and the receiver is a virtual user in the group session, sending message content to equipment of the virtual user based on an external network protocol.
The determination mode of whether the message to be sent specifies the receiver can be determined based on the message receiver specifying character, for example, when it is detected that the message to be sent contains the message receiver specifying character, it is determined that the message to be sent specifies the receiver; and when the message to be sent is detected not to contain the designated character of the message receiver, determining that the message to be sent does not contain the designated receiver.
When a message to be sent designates a receiver and the receiver is a virtual user, the embodiment of the invention can send message content to equipment of the virtual user based on an external network protocol; for example, a message sending request carrying the message content may be sent to the device of the virtual user, and for example, the message content may also be sent to the device of the virtual user based on the HTTP POST request.
For example, the message push server may send the message content to the virtual user device through the callback server, and specifically, send a message sending request to the virtual user device through the callback server based on the address of the virtual user device, and the like.
The receiver may be determined to be a real user or a virtual user based on the message receiver identifier, for example, when the message receiver identifier is located in an identifier interval of the real user, the message receiver is determined to be the real user; and when the message receiver identification is positioned in the identification interval of the virtual user, determining that the message receiver is the virtual user.
403. And when the message to be sent designates a receiver and the receiver is a real user in the group session, sending a first group message to equipment of the real user based on a system internal network protocol.
The first group message may include message content and message reminding information; for example, when a real user in a group designated by a message to be sent is a message receiver, the message push server sends a group message with a reminding function to the device of the real user based on a system internal network protocol (such as a private protocol); when the real user equipment receives the group message, the reminding function of the equipment is triggered to remind the user of the group message.
In addition, the message pushing server can also send the group message without the reminding function to the devices of the other members in the group session based on the system internal network protocol.
Specifically, the receiving party is determined to be
404. And when the message to be sent does not designate a receiver, sending a second group message carrying message content to the equipment of the members in the group session based on the network protocol in the system.
The second group message is a common group message, and may not have a reminding function compared to the first group message. For example, when a member in the group session sends a message in the group session, the member device sends the message to the message processing server, the message processing server sends the message to the message pushing server, and the message pushing server identifies that the message is not destined for a receiver, and at this time, the message may be pushed to all member devices based on the system intranet protocol.
By adopting the scheme of the embodiment of the invention, for the message processing server such as the message background, the members in the group chat send messages, so the message background is hardly changed. In the message push server, it is only necessary to distinguish whether to push the message to the real user or to the virtual user, so as to select different channels to push the message. The distinguishing mode is to distinguish through the interval of the group member id.
The embodiment of the present invention further provides another group creation law, and the embodiment of the present invention will be described from the perspective of a second group creation device, which may be specifically integrated in a terminal.
As shown in fig. 5a, a group creation method is provided, where the group creation method may be executed by a processor in a terminal, and the specific process may be as follows:
501. and displaying a user operation interface of the group session, wherein the group session comprises the group session of the real user.
The user operation interface of the group session may include a user operation interface for a user to operate the group session, and the interface may be a UI interface. The user can operate the group session through the user operation interface, such as sending a group message, setting basic information (such as name, head portrait, and the like) of the group session, viewing a message record of the group session, adding and deleting members of the group session, and the like.
For example, the user operation interface may include a message interaction interface of a group session, that is, a group session interface; the user may interact with the members via the group session interface. For another example, the user operation interface may include a detailed information interface of the group session, such as a chat information interface; the user can perform a device on the group session information in the detail information interface, for example, set basic information (such as name, avatar, etc.) of the group session, view message records of the group session, add or delete members of the group session, and so on.
For example, referring to fig. 5b, the terminal may display a chat interface of the group session, and the user may trigger a chat information interface entering the group session through a function button at the upper right corner of the chat interface; wherein, the chat information interface can include: the group chat system comprises a group chat name and setting control thereof, a group two-dimensional code display control, group member information (such as a group member head portrait and the like), a group member adding control and the like.
The current group session may only include real users, may also include real users and virtual users, and in an embodiment, may also include only virtual users.
502. And receiving a member adding instruction triggered by a user through a user operation interface.
For example, when a member needs to be added, the user may perform a member addition operation on the user operation interface to trigger a member addition instruction. For example, when a virtual user needs to be added to an existing group session, a member addition instruction can be triggered through the user operation interface.
The user operation interface can comprise a group member adding control, and a user can trigger a member adding instruction through the group member adding control; at this point, the instruction may be received. The other group member adding control can be in the form of an icon, a button and the like.
For example, taking the user operation interface as the chat information interface as an example, a group member addition control "+" is displayed in the chat information interface; at this point, the user may trigger a member add instruction by clicking on "+".
503. And acquiring the virtual user identifier to be added to the group session according to the member adding instruction.
The virtual user identifier is a user Identifier (ID) of the virtual user, which may be specifically described with reference to the foregoing embodiment. For example, the virtual user may be an application, and at this time, the application ID to be added to the group session may be acquired according to the instruction.
The number of the virtual user identities may be one or more, and specifically, may be determined according to an actual situation.
For example, in one embodiment, a user selection interface to be added may be displayed, so that a user may select a virtual user to be added in the interface, thereby obtaining a virtual user identifier to be added to the group. Specifically, the step "obtaining the virtual user identifier to be added to the group session according to the member addition instruction" may include:
displaying a user selection interface to be added according to the member adding instruction, wherein the user selection interface to be added comprises user information of a plurality of users to be added, and the plurality of users to be added comprise at least one virtual user;
and selecting the virtual user identification of the virtual user to be added to the group session from the plurality of users to be added based on the selection operation aiming at the user selection interface to be added.
The user to be added can include a user to be added having an association relationship with the current user (i.e., the inviting user); such as real users, which may have a one-way or two-way buddy relationship with the current user, or virtual users.
Specifically, the step "displaying a user selection interface to be added according to the member addition instruction" may include:
acquiring the relation chain data of the current user according to the member adding instruction;
and displaying a user selection interface to be added according to the relationship chain data, wherein the user selection interface to be added comprises user information of a plurality of users to be added having an association relationship with the current user.
For example, the terminal may obtain relationship chain data of the current user from a background server of the message system according to the member adding instruction, where the relationship chain data includes user information having an association relationship with the current user, such as a friend relationship, for example, including a user identifier having an association relationship with the current user identifier; the terminal can display a user selection interface to be added according to the relation chain data.
The multiple users to be added can be member users of the same message system, that is, the user identifiers of the multiple users to be added are of the same type; for example, the real user and the virtual user in the multiple users to be added are located in the same message system. In addition, the multiple users to be added may also be member users of different message systems, that is, the user identification types of the multiple users to be added may be different. For example, a real user in the plurality of users to be added belongs to a first message system, a virtual user belongs to a second message system outside the first message system, and the first message system and the second message system are heterogeneous systems.
For example, referring to fig. 5b, when the user clicks the member add control "+", the terminal receives a member add instruction and displays a select contact interface based on the instruction, and the select contact interface may include: an external contact, an address book, and a recent contact; the external contact persons comprise contact persons outside the message system to which the invitation user belongs, the address list comprises contact persons in the message system, and the recent contact persons are contact persons recently contacted by the invitation user. As shown in fig. 5b, the recent contacts include applications such as "conference assistant", "hot news", and the contacts "XXa", "XXb" of the present messaging system. The user may operate in a select contacts interface to select an application "conference assistant" that needs to be added to the group session; the terminal may determine an application to be added to the group session based on the selection operation. When the user clicks the add confirmation control "ok", an add confirmation instruction is triggered, at which point the terminal may add the application "conference assistant" to the current group session.
In an embodiment, in order to facilitate adding users, a virtual user selection entry can be further set in the user selection interface to be added, and the users can view all virtual users through the entry and select from the virtual users. Specifically, the step "obtaining the virtual user identifier to be added to the group session according to the member addition instruction" may include:
displaying a user selection interface to be added according to the member adding instruction, wherein the user selection interface to be added comprises a virtual user selection inlet;
displaying a virtual user list interface based on an entry operation for a virtual user selection entry, the virtual user list interface including user information of at least one virtual user;
and acquiring a virtual user identifier of a virtual user selected to be added to the group session from at least one virtual user based on the selection operation aiming at the virtual user list interface.
The virtual user list includes virtual users having an association relationship with the current user, such as applets, applications, and the like focused by the user.
For example, referring to fig. 5c, when the user clicks the member add control "+", the terminal receives a member add instruction and displays a select contact interface based on the instruction, and the select contact interface may include: an application program entry "application", an address book, and a recent contact; the address list comprises contacts in the message system, and the recent contacts are contacts which invite the user to contact recently. When a user needs to add an application program to a group, the user can click an application program entry ' application ', at this time, the terminal can display an application list interface according to the click operation, and the interface displays a public number inviting the user to pay attention, the application programs ' conference assistant ', hot news ' and the like. The user may select from the application list interface the application "conference assistant" that needs to be added to the group session; the terminal may determine an application to be added to the group session based on a user selection operation at the list interface. When the user clicks the add confirmation control "ok", an add confirmation instruction is triggered, at which point the terminal may add the application "conference assistant" to the current group session.
504. And adding the virtual user to the group session according to the virtual user identification.
In an embodiment, a member adding request may be sent to the message processing server according to the virtual user identifier, where the member adding request may carry information such as a virtual user identifier, a group identifier, and the like to be added to a group; the message processing server may add the virtual user to the group session in accordance with the member addition request. In particular, the message processing server may add the virtual user to the member list of the group session and then the device identified by the members in the group session synchronizes the member list data of the group session.
In an embodiment, the terminal of the inviting user or the terminals of the group members may also synchronize member data of the group session from the message processing server, and update the group session interface according to the synchronized member data, for example, remind a virtual user in the group session interface to join the group session, and update member data (such as the number, etc.) of the group session.
For example, referring to fig. 5b and 5c, when the user clicks the add confirmation control "ok", an add confirmation instruction is triggered, at this time, the terminal may add the application "conference assistant" to the current group session, and display a group session interface, where the application "conference assistant" is included in the interface to prompt for the addition, and the like.
In an embodiment, in order to improve security, the member addition request may further carry identity authentication information of the virtual user, so that the message processing server may verify the identity authentication first when receiving the addition request, and if the verification is passed, add the virtual user to the group session
In one embodiment, when a member adding confirmation instruction is received, the virtual user is added to the group session according to the virtual user identification. Referring to fig. 5b and 5c, when the user clicks the add confirm control "ok", an add confirm instruction is triggered, at which time the terminal may add the application "conference assistant" to the current group session.
Therefore, the scheme of the embodiment of the invention can add the virtual user in the existing group session, and improves the diversity and the flexibility of the group chat.
The method of the present invention will be described below by taking a virtual user as an example.
Referring to fig. 6a, the message interaction system includes user 1, user 2 … …, an application background, a message pushing module, a callback module, and a message background module. The application background can be a background server of the application. The message pushing module, the callback module and the background module can be integrated in one entity device or can be respectively integrated in different entity devices. For example, the message pushing module is integrated in a message pushing server, the callback module is integrated in a callback server, and the message background module is integrated in a message processing server, such as a background server of an instant messaging message.
If the administrator creates a group chat containing an application such as "conference assistant" in the messaging system, the administrator pushes various conference notifications (such as meeting time, location, etc. arrangement) to the members in the system, and explains the application scenario of a conference invitation notification.
The administrator creates a group chat containing an application:
(1) and the management terminal determines a group chat member identification to be added into the group chat, wherein the group chat member identification comprises a user id (real user id) and an application id (virtual user id) of the application.
For example, when a group chat containing an application needs to be created, an administrator selects group chat members including real users and applications. Specifically, the administrator may input or select a group chat member identification in a group chat creation application of the management-side device.
In addition, the administrator may also specify group attribute information such as group owner, group name, etc.; in order to improve the group chat security, the administrator may also input the identity authentication information of the application, such as a password.
Wherein, the application can include: the message system administrator creates an application at the administration end, or an application installed from a third party service provider.
(2) And the management terminal sends a group chat establishing request to the message background module based on the address of the message background module, wherein the group chat establishing request comprises group chat member identification (user id and application id) and identity authentication information of the application.
Because the management terminal and the message background module can be located in the same message system, the management terminal can initiate group chat creation based on the system internal network protocol.
In addition, the group chat creation request can also carry group information specified by an administrator, including information such as a group owner and a group name.
(3) And the message background module creates a group chat containing the application and the user according to the group chat creating request.
For example, a group chat (i.e., a group id) may be created by assigning a group chat id, and storing information such as the group chat id, a group name, a group owner, and a member id (application id and user id are collectively referred to as a group member id) in the background according to a predetermined storage structure.
In an embodiment, before creating the group chat, the message background module further needs to verify the identity of the application and the user, i.e. authenticate the application and the user. For example, the message back-office module may verify an identity authentication, such as a password, of the application and authenticate whether the user is within a visible range of the application (i.e., determine whether the member user is a visible user of the application).
Among these, the application visibility range: applications are only allowed to be seen and used by specific users, i.e. the application visibility range.
(4) And the message background module synchronizes the group chat data to the terminals of the group chat members.
After creating the group chat containing the application in the messaging background, the group chat data may be synchronized to the terminals of the group chat members such that the terminal of each group chat member displays the group chat. The group chat data may include group chat member data, group chat message data, and the like.
The application creates a group chat containing the application:
(1) and the application background determines a group chat member identification to be added into the group chat, wherein the group chat member identification comprises a user id (real user id) and an application id (virtual user id) of the application.
In addition, the application background can also specify group attribute information such as group owner, group name and the like; in order to improve the group chat security, the application background can also input the identity authentication information of the application, such as a password.
For example, the application background may receive indication information of group chat creation sent by the control terminal, the indication information may include group chat member identification, group chat setting information, authentication information, and the like,
for example, when a group chat containing an application needs to be created, a service person of a certain application can configure group chat members, including real users and applications, in the application background through the control terminal. In addition, service personnel of the application can also specify group attribute information such as group owner, group name and the like; in order to improve the group chat security, the administrator may also input the identity authentication information of the application, such as a password.
(2) And the application background sends a group chat establishing request to the message background module based on the address of the message background module, wherein the group chat establishing request comprises group chat member identification (user id and application id) and identity authentication information of the application.
For example, the application background may call an API provided by the message background module to create a group chat, specifically, call the API to send a group chat creation request to the message background module, where the API encapsulates communication information such as a message background model address.
In addition, the group chat creation request can also carry group information specified by an administrator, including information such as a group owner and a group name.
(3) And the message background module creates a group chat containing the application and the user according to the group chat creating request.
For example, a group chat (i.e., a group id) may be created by assigning a group chat id, and storing information such as the group chat id, a group name, a group owner, and a member id (application id and user id are collectively referred to as a group member id) in the background according to a predetermined storage structure.
In an embodiment, before creating the group chat, the message background module further needs to verify the identity of the application and the user, i.e. authenticate the application and the user. For example, the message back-office module may verify an identity authentication, such as a password, of the application and authenticate whether the user is within a visible range of the application (i.e., determine whether the member user is a visible user of the application).
(4) And the message background module synchronizes the group chat data to the terminals of the group chat members.
After creating the group chat containing the application in the messaging background, the group chat data may be synchronized to the terminals of the group chat members such that the terminal of each group chat member displays the group chat. The group chat data may include group chat member data, group chat message data, and the like.
Referring to fig. 3b, taking an application as a "conference assistant" as an example, after creating a group chat containing the application, the message background module may synchronize group data to terminals of each group chat member, and the terminals of each group chat member display the group chat containing the application and the user according to the group data.
Members of the group chat may view information of the application of the group chat. And may push messages to the application separately. As shown in the figure, a 'group associated application' column is displayed in group chat information, and a user can enter an application detail page by clicking; the application detail page has an "enter application" column, and a single chat window with the application can be entered by clicking, referring to fig. 3c and 3 d.
After creating a group chat containing an application, the group chat members can interact in the group chat, for example, the members can interact with the application in the group chat, which roughly comprises: the application sends a message to the group chat, the member sends the message to the application in the group chat, the application replies the member in the group chat, and the member interacts with the member.
For example, in one embodiment, the interaction may be performed according to the following interaction flow:
the application sends the message to the group chat- > the member sends the message to the application in the group chat- > the application replies the member in the group chat- > the member interacts with the member.
1. Group chat users (i.e., real users) send messages:
A. sending common messages by users in group chat:
firstly, a user sends a message through a user terminal, and the message reaches a message background module through a Common Gateway Interface (CGI) (specification of an external program when a Web server runs).
And the message background module processes the message based on the relevant processing logic and transmits the processed message (namely the message to be sent) to the message pushing module.
And the message pushing module pushes the message to the terminals of the group chat members.
B. The group chat user sends a message to the user:
firstly, a user sends a message of which a designated receiver is a user in group chat through a user terminal, and the message reaches a message background module through a CGI. The message may include message content, message recipient designated characters, a message recipient identification (i.e., a real user identification).
For example, a user may input a message recipient designation character "@" in an input box in a group chat session interface, and input or select a message recipient identification as a certain user member in a group chat; when a user clicks a message sending button in a group chat session interface, a message sending instruction is triggered, and at the moment, the user terminal can send a message to a message background module through the CGI.
And the message background module processes the message based on the relevant processing logic and transmits the processed message (namely the message to be sent) to the message pushing module.
The message pushing module may push the message to a terminal of a member in the group chat, such as a terminal of a user 1, 2, or 3, and specifically, may send the message to the terminal of the member through a network protocol in the message system. And when the message is sent to the terminal of the message receiver, the message reminding information is added into the message.
C. Sending messages to applications (i.e., virtual users) by group chat users
Firstly, a user sends a message with an appointed receiving party as an application through a user terminal, and the message reaches a message background module through a CGI. The message may include message content, message recipient designation characters, a message recipient identification (i.e., an application identification of the application).
For example, the user may input a message recipient designation character "@" in an input box in the group chat session interface, and input or select the message recipient identification as an application identification of the application; when a user clicks a message sending button in a group chat session interface, a message sending instruction is triggered, and at the moment, the user terminal can send a message to a message background module through the CGI.
And the message background module processes the message based on the relevant processing logic and transmits the processed message (namely the message to be sent) to the message pushing module.
The message pushing module may push the message to a terminal of a member in the group chat, such as a terminal of a user 1, 2, or 3, and specifically, may send the message to the terminal of the member through a network protocol in the message system.
The message pushing module determines that the message is the message of the appointed receiver by detecting the appointed character of the message receiver in the message and determines that the identification of the message receiver is the application identification (for example, the identification is determined by the interval of the identification), the message pushing module can send the message to the application background through the callback module, for example, the callback module can be called by the application background to send the message to the application background based on the URL and HTTP POST modes of the application background
And fourthly, pushing the message to the background of the application. The user and the application have different message receiving modes, and the message receiving of the user refers to displaying the message on the terminal; the application receiving message means that the message is sent to a specific message processing logic in the application, and the application receiving message is specifically realized as follows:
the virtual user's device, such as the application background, maintains a message handling service responsible for receiving and parsing application messages. The application background configures the URL of the service to the message background module.
Once there is a message sent to the application, the message background module sends the message to the URL configured in the application background through the callback module in an HTTP POST manner, for example, the callback module sends a request to the application background based on an address of the application background, the request carrying message content, and the like.
In the embodiment of the invention, the application and the user are uniformly regarded as group members, the background module does not need to distinguish the application or the user in the transmission and processing processes, the application is distinguished only in the message pushing module, and the message is sent to the application through the callback module. In specific implementation, the application id and the user id can be allocated in different intervals, and the application id and the user id are distinguished through the interval where the id is located.
C. The group chat application sends a message, refer to fig. 6 b:
the application background sends the message content to be sent to a message background module in a request (such as HTTP POST) mode.
For example, the application background may send a message to the message background module through the API, where the API encapsulates address information and the like of the message background module. For example, the application background may call an API of the message background module to send a network request to the message background module, where the network request carries the message content to be sent.
In an embodiment, the identity authentication information of the application can be sent to the message background module through the requester so as to perform identity authentication, and thus the security is improved.
In one embodiment, the application background may receive message content sent by the callback module by means of a request (e.g., HTTP POST); then, processing the message content based on a preset message processing logic to obtain the reply content or the response content of the message content; then, the reply content or the response content is sent to the message background module by a request (such as HTTP POST).
And secondly, the message background module analyzes the request to obtain message content and transmits the message (namely the message to be sent) containing the message content to the message pushing module.
In an embodiment, the message background module may also verify the identity of the application when receiving the request, specifically, verify the authentication information of the application carried in the request, and if the authentication information passes, transmit the message (i.e., the message to be transmitted) including the message content to the message push module; namely, when the message background module passes the verification, the message sent by the application is uniformly regarded as a member to send the message to the message pushing module.
And the message pushing module pushes the message to the terminal of each member in the group chat.
As can be seen from the comparison between fig. 6a and fig. 6b, whether the user sends a message or the application sends a message, the message background is a member of group chat, and thus the message background is hardly used as a modification. In the message push module, it is only necessary to distinguish whether to push the message to the user or to the application, so as to select different channels to push the message. The rule for distinguishing can also be simple, for example, distinguishing by the interval of the group member id.
By adopting the scheme provided by the embodiment of the invention, the application is directly pulled to the group, the message is sent and the user is replied in the group on the application name, and the user can directly discuss in the group, so that the method has abundant application scenes.
In addition, the embodiment of the invention uniformly treats the application and the user as group chat members, can directly use the existing background, does not need to make great changes on the background on the basis of the existing group chat interface, can achieve better effect on development cost and development period, and has good expandability.
In order to better implement the data synchronization method provided by the embodiment of the present invention, in an embodiment, a data synchronization apparatus is further provided, and the data synchronization apparatus is suitable for an interworking server among a plurality of message systems. The terms are the same as those in the data synchronization method, and details of implementation can be referred to the description in the method embodiment.
In an embodiment, there is further provided a group creating apparatus (referred to as a first group creating apparatus), where the group creating apparatus may specifically be integrated in a group creator device, such as a server or a terminal, for example, a server that may be integrated in a management terminal or a virtual user, as shown in fig. 7a, and the group creating apparatus may include: the determining unit 701 and the creating unit 702 are specifically as follows:
a determining unit 701, configured to determine multiple to-be-added user identifiers to be added to a group session, where the multiple to-be-added user identifiers include a virtual user identifier and a real user identifier;
a creating unit 702, configured to create a group session including a virtual user and a real user according to the multiple to-be-added user identifiers.
In an embodiment, the creating unit 702 is configured to obtain address information of the message processing server, and send a group creating request carrying the multiple user identifiers to be added to the message processing server according to the address information, so as to create a group session including a virtual user and a real user.
In an embodiment, the determining unit 701 may be specifically configured to:
receiving a group creation instruction of a user operation interface acting on a client;
displaying user information of a plurality of users including at least one virtual user and at least one real user based on the group creation instruction;
and acquiring user identifications of a plurality of users to be added selected from the plurality of users.
In an embodiment, the determining unit 701 may be specifically configured to:
receiving group creation indication information sent by a terminal, wherein the group creation indication information comprises a plurality of user identifications to be added which need to be added to a group session;
and determining a plurality of user identifications to be added to the group session according to the group creation indication information.
In an embodiment, the creating unit 702 may specifically be configured to:
generating a group creation request according to the user identifications to be added, wherein the group creation request carries the user identifications to be added;
acquiring address information of a message processing server;
and sending the group creation request to the message processor according to the address information so as to create a group session containing virtual users and real users.
In an embodiment, the group creation request further comprises identity authentication information of the virtual user.
In an embodiment, referring to fig. 7b, the group creation apparatus may further include a sending unit 703; the sending unit 703 is further configured to: and sending message content to a message processing server based on an external network protocol so that the message processing server can send the message content to the devices of the members in the group session based on a message system internal network protocol.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
In an embodiment, another group creation apparatus (referred to as a third group creation apparatus) is also provided, the group creation apparatus may specifically be integrated into a group creator device such as a server, for example, a message processing server such as a message background server, as shown in fig. 8a, and the group creation apparatus may include: the request receiving unit 801, the creating unit 802, and the data synchronizing unit 803 are specifically as follows:
a request receiving unit 801, configured to receive a group creation request sent by a group creator device, where the group creation request carries the multiple to-be-added user identifiers, and the multiple to-be-added user identifiers include a virtual user identifier and a real user identifier;
a creating unit 802, configured to create a group session including a virtual user and a real user according to a group creation request;
a data synchronization unit 803, configured to synchronize the group data of the group session to the devices of the members in the group session.
In an embodiment, the group creation request further carries identity authentication information of the virtual user; referring to fig. 8b, the creating unit 802 may include:
a verification subunit 8021, configured to verify the identity authentication information of the virtual user;
and the creating subunit 8022 is configured to, when the verification passes, create a group session including the virtual user and the real user according to the multiple user identifiers to be added.
In an embodiment, the creating sub-unit 8022 may be specifically configured to, when the authentication is passed and all the real users are visible users of the virtual user, create a group session including the virtual user and the real users according to the multiple to-be-added user identifiers.
In an embodiment, referring to fig. 8c, the group creating apparatus may further include: a message sending unit 804; the message sending unit 804 may be configured to:
receiving a message sending request sent by the equipment of the virtual user, wherein the message sending request carries a group identifier, message content and identity authentication information of the virtual user;
verifying the identity authentication information;
and if the verification is passed, sending a group message comprising a group identifier and message content to a message pushing server so that the message pushing server can send the group message to the equipment of the members in the group session.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the group creation apparatus provided in the embodiment of the present invention can create a group including a virtual user and a real user.
In an embodiment, a message interaction apparatus (referred to as a first message interaction apparatus) is further provided, where the message interaction apparatus may specifically be integrated into a group member device such as a terminal, as shown in fig. 9a, and the message interaction apparatus may include: the synchronization unit 901 and the display unit 902 are specifically as follows:
a synchronization unit 901 for synchronizing group data of a group session from a message processing server;
a display unit 902, configured to display a group session interface including a virtual user and a real user according to the group data.
In an embodiment, referring to fig. 9b, the message interaction apparatus may further include: the group message sending unit 903 is specifically configured to:
when detecting that a real user inputs a designated character of a message receiver on the group session interface, selecting a target message receiver from the members of the group session;
when a message sending instruction is received, obtaining message content input by a real user in the group session interface, wherein the message content comprises a designated character of a message receiver;
and sending a group message to the equipment of the members in the group session, wherein the group message comprises the identification of the target message receiver and the message content.
In an embodiment, the target message recipient is a virtual user, and the display unit 902 may be further specifically configured to: and displaying reply content of the target message receiver aiming at the message content in the group session interface.
In an embodiment, the group message sending unit 903 may specifically be configured to:
displaying a member selection interface, the member selection interface including user information for members in the group session;
and selecting a target message receiver from the members of the group session based on the selection operation of the real user on the member selection interface.
In an embodiment, referring to fig. 9c, the message interaction apparatus may further include: the virtual user viewing unit 904 is specifically configured to:
displaying an information interface of the group session based on a group information viewing operation for the group session interface, the information interface comprising: a virtual user view portal;
displaying a detail page of a virtual user based on a viewing operation for a virtual user viewing portal.
In one embodiment, the details page includes a virtual user session entry; a virtual user viewing unit 904, further configured to:
the method further comprises the following steps: displaying a session interface with a virtual user session based on a session operation for a virtual user session portal.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
In an embodiment, there is also provided a message interaction apparatus (referred to as a second message interaction apparatus), which may be specifically integrated in a server, such as a message push server, as shown in fig. 10, and the message interaction apparatus may include: the message receiving unit 1001 and the pushing unit 1002 are specifically as follows:
a message receiving unit 1001, configured to receive a message to be sent, which is sent by a message processing server and is directed to a group session, where the message to be sent includes a message content, and the group session includes a real user and a virtual user;
a pushing unit 1002 for:
when the message to be sent designates a receiver and the receiver is a virtual user in the group session, sending the message content to equipment of the virtual user based on an external network protocol;
when the message to be sent designates a receiver and the receiver is a real user in a group session, sending a first group message to equipment of the real user based on a system internal network protocol, wherein the first group message comprises the message content and message reminding information;
and when the message to be sent does not designate a receiver, sending a second group message carrying the message content to the equipment of the members in the group session based on the network protocol in the system.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the message interaction apparatus provided in the embodiment of the present invention can implement message interaction between members in a group session (e.g., between a virtual user and a real user).
In an embodiment, another group creation apparatus (referred to as a second group creation apparatus) is further provided, where the group creation apparatus may be specifically integrated in a user device, and the user device may be a terminal, for example, a device such as a mobile phone, a tablet computer, and the like, as shown in fig. 11a, the group creation apparatus may include: the display unit 111, the receiving unit 112, the obtaining unit 113, and the adding unit 114 are as follows:
a display unit 111, configured to display a user operation interface of a group session, where the group session includes a group session of a real user;
a receiving unit 112, configured to receive a member adding instruction triggered by the user through the user operation interface;
an obtaining unit 113, configured to obtain, according to the member adding instruction, a virtual user identifier to be added to the group session;
an adding unit 114, configured to add a virtual user to the group session according to the virtual user identifier.
In an embodiment, referring to fig. 11b, the obtaining unit 113 may include:
a display subunit 1130, configured to display a user selection interface to be added according to the member addition instruction, where the user selection interface to be added includes user information of multiple users to be added, and the multiple users to be added include at least one virtual user;
a selecting subunit 1131, configured to select, based on a selection operation for the to-be-added user selection interface, a virtual user identifier of a virtual user to be added to the group session from the multiple to-be-added users.
In one embodiment, the display subunit 1130 may be specifically configured to:
acquiring the relation chain data of the current user according to the member adding instruction;
and displaying a user selection interface to be added according to the relationship chain data, wherein the user selection interface to be added comprises user information of a plurality of users to be added having an association relationship with the current user.
In an embodiment, referring to fig. 11b, the obtaining unit 113 may specifically be configured to:
displaying a user selection interface to be added according to the member adding instruction, wherein the user selection interface to be added comprises a virtual user selection inlet;
displaying a virtual user list interface based on an entry operation for the virtual user selection entry, the virtual user list interface including user information of at least one virtual user;
and acquiring a virtual user identifier of a virtual user selected from at least one virtual user to be added to the group session based on the selection operation aiming at the virtual user list interface.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the group creation apparatus provided in the embodiment of the present invention can add a virtual user to an existing group session.
The embodiment of the present invention further provides a network device, which may be a terminal or a server, for example, the network device may be an interworking server between heterogeneous message systems, a server in a message system, or the like, and for example, the network device may be a user terminal, such as a mobile phone, a tablet computer, or the like. Fig. 12 is a schematic diagram showing a structure of a network device according to an embodiment of the present invention, specifically:
the network device may include components such as a processor 121 of one or more processing cores, memory 122 of one or more computer-readable storage media, a power supply 123, and an input unit 124. Those skilled in the art will appreciate that the network device configuration shown in fig. 12 does not constitute a limitation of network devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 121 is a control center of the network device, connects various parts of the entire network device using various interfaces and lines, and performs various functions of the network device and processes data by running or executing software programs and/or modules stored in the memory 122 and calling data stored in the memory 122, thereby performing overall monitoring of the network device. Alternatively, processor 121 may include one or more processing cores; preferably, the processor 121 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 121.
The memory 122 may be used to store software programs and modules, and the processor 121 executes various functional applications and data processing by operating the software programs and modules stored in the memory 122. The memory 122 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the network device, and the like. Further, the memory 122 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 122 may also include a memory controller to provide the processor 121 with access to the memory 122.
The network device further includes a power supply 123 for supplying power to each component, and preferably, the power supply 123 may be logically connected to the processor 121 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 123 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The network device may also include an input unit 124, and the input unit 124 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the network device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 121 in the network device loads the executable file corresponding to the process of one or more application programs into the memory 122 according to the following instructions, and the processor 121 runs the application program stored in the memory 122, so as to implement various functions as follows:
determining a plurality of user identifications to be added to a group session, wherein the user identifications to be added comprise virtual user identifications and real user identifications;
and creating a group session containing the virtual user and the real user according to the user identifications to be added.
Or
Displaying a user operation interface of a group session, wherein the group session comprises a group session of a real user;
receiving a member adding instruction triggered by a user through the user operation interface;
acquiring a virtual user identifier to be added to the group session according to the member adding instruction;
and adding the virtual user to the group session according to the virtual user identification.
Or
Synchronizing group data for a group session from a message processing server;
and displaying a group session interface comprising a virtual user and a real user according to the group data.
Or
Receiving a group creation request sent by group creator equipment, wherein the group creation request carries a plurality of user identifications to be added to a group session, and the user identifications to be added comprise virtual user identifications and real user identifications;
creating a group session containing a virtual user and a real user according to the group creation request;
synchronizing group data for the group session to devices of members in the group session.
Or
Receiving a message to be sent aiming at a group session sent by a message processing server, wherein the message to be sent comprises message content, and the group session comprises a real user and a virtual user;
when the message to be sent designates a receiver and the receiver is a virtual user in the group session, sending the message content to equipment of the virtual user based on an external network protocol;
when the message to be sent designates a receiver and the receiver is a real user in a group session, sending a first group message to equipment of the real user based on a system internal network protocol, wherein the first group message comprises the message content and message reminding information;
and when the message to be sent does not designate a receiver, sending a second group message carrying the message content to the equipment of the members in the group session based on the network protocol in the system.
As can be seen from the above, the network device provided in the embodiment of the present invention may create a group session including a virtual user, or add a virtual user to an existing group session. In addition, message interaction can be realized between the real users and between the real users and the virtual users in the group session.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the methods (such as the message interaction method and the group creation method) provided by the embodiments of the present invention.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any method provided by the embodiment of the present invention, the beneficial effects that can be achieved by any method provided by the embodiment of the present invention can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The group creating method, the message interacting method, the device and the storage medium provided by the embodiments of the present invention are described in detail above, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in view of the above, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A group creation method, comprising:
receiving group creation indication information sent by a terminal, wherein the group creation indication information comprises a plurality of user identifications to be added, which need to be added to a group session, and the terminal is a device of a virtual user and is used for creating the group session containing the virtual user and a real user;
determining a plurality of user identifications to be added to the group session according to the group creation indication information, wherein the user identifications to be added comprise virtual user identifications and real user identifications;
creating a group session containing a virtual user and a real user according to the user identifications to be added, wherein the group session comprises an external group session, the virtual user and the real user of the external group session are in different message systems, and the virtual user identification and the real user identification of the external group session are in different message systems;
when a real user in the group session sends message content and a virtual user in the group session is designated as a receiver in the message content, generating reply content of the virtual user designated as the receiver aiming at the message content, wherein the reply content is associated with the real user sending the message content;
responding to a triggering operation of a group management application control in a chatting information page of the group session, and displaying a session interface of the real user and the virtual user session in the group session, wherein the session interface comprises a message sending control;
and responding to the triggering operation aiming at the message sending control, and triggering the real user to perform session interaction with the virtual user.
2. The group creation method of claim 1, wherein determining a plurality of to-be-added user identifications to be added to a group session comprises:
receiving a group creation instruction of a user operation interface acting on a client;
displaying user information of a plurality of users including at least one virtual user and at least one real user based on the group creation instruction;
and acquiring user identifications of a plurality of users to be added selected from the plurality of users.
3. The group creation method of claim 1 wherein creating a group session containing virtual users and real users based on the plurality of to-be-added user identifications comprises:
generating a group creation request according to the user identifications to be added, wherein the group creation request carries the user identifications to be added;
acquiring address information of a message processing server;
and sending the group creation request to the message processor according to the address information so as to create a group session containing virtual users and real users.
4. The group creation method of claim 1, wherein the method further comprises:
and sending message content to a message processing server based on an external network protocol so that the message processing server can send the message content to the devices of the members in the group session based on a message system internal network protocol.
5. A group creation method, comprising:
displaying a user operation interface of a group session, wherein the group session comprises a group session of a real user;
receiving a member adding instruction triggered by a user through the user operation interface;
acquiring a virtual user identifier to be added to the group session according to the member adding instruction;
adding a virtual user to the group session according to the virtual user identifier, the group session including an external group session, wherein the virtual user and the real user of the external group session are in different message systems, and the virtual user identifier and the real user identifier of the external group session are in different message systems;
when a real user in the group session sends message content and a virtual user in the group session is designated as a receiver in the message content, generating reply content of the virtual user designated as the receiver aiming at the message content, wherein the reply content is associated with the real user sending the message content;
responding to a triggering operation of a group management application control in a chatting information page of the group session, and displaying a session interface of the real user and the virtual user session in the group session, wherein the session interface comprises a message sending control;
and responding to the triggering operation aiming at the message sending control, and triggering the real user to perform session interaction with the virtual user.
6. The group creation method of claim 5, wherein obtaining the virtual user identity to be added to the group session according to the member addition instruction comprises:
displaying a user selection interface to be added according to the member adding instruction, wherein the user selection interface to be added comprises user information of a plurality of users to be added, and the plurality of users to be added comprise at least one virtual user;
and selecting the virtual user identification of the virtual user to be added to the group session from the plurality of users to be added based on the selection operation aiming at the user selection interface to be added.
7. The group creation method of claim 6, wherein displaying a to-be-added user selection interface according to the member addition instruction comprises:
acquiring the relation chain data of the current user according to the member adding instruction;
and displaying a user selection interface to be added according to the relationship chain data, wherein the user selection interface to be added comprises user information of a plurality of users to be added having an association relationship with the current user.
8. The group creation method of claim 5, wherein obtaining the virtual user identity to be added to the group session according to the member addition instruction comprises:
displaying a user selection interface to be added according to the member adding instruction, wherein the user selection interface to be added comprises a virtual user selection inlet;
displaying a virtual user list interface based on an entry operation for the virtual user selection entry, the virtual user list interface including user information of at least one virtual user;
and acquiring a virtual user identifier of a virtual user selected from at least one virtual user to be added to the group session based on the selection operation aiming at the virtual user list interface.
9. A group creation method, comprising:
receiving a group creation request sent by group creator equipment, wherein the group creation request carries a plurality of user identifications to be added to a group session, and the user identifications to be added comprise virtual user identifications and real user identifications;
creating a group session containing a virtual user and a real user according to a group creation request, wherein the group session comprises an external group session, the virtual user and the real user of the external group session are in different message systems, the virtual user identifier and the real user identifier of the external group session are in different message systems, and the creator device is a device of the virtual user and is used for creating the group session containing the virtual user and the real user;
when a real user in the group session sends message content and a virtual user in the group session is designated as a receiver in the message content, generating reply content of the virtual user designated as the receiver aiming at the message content, wherein the reply content is associated with the real user sending the message content;
when a chat session between the real user and the virtual user is created and the real user and the virtual user perform session interaction in the session, session data of the session between the real user and the virtual user is acquired;
and synchronizing group data of the group session to the devices of the members in the group session, wherein the group data comprises message content sent by the real user, reply content of the message content and session data of the session between the real user and the virtual user.
10. A message interaction method, comprising:
receiving a message to be sent aiming at a group session sent by a message processing server, wherein the message to be sent comprises message content, and the group session comprises a real user and a virtual user;
when the message to be sent designates a receiver and the receiver is a virtual user in a group session, sending the message content to equipment of the virtual user based on an external network protocol, wherein the group session comprises an external group session, the virtual user and the real user of the external group session are in different message systems, and a virtual user identifier and a real user identifier of the external group session are in different message systems;
when the message to be sent designates a receiver and the receiver is a real user in a group session, sending a first group message to equipment of the real user based on a system internal network protocol, wherein the first group message comprises the message content and message reminding information;
when the message to be sent does not designate a receiver, sending a second group message carrying the message content to the equipment of the members in the group session based on the network protocol in the system;
when the message content in the message to be sent is sent by a real user in the group session and the message content designates a virtual user in the group session as a receiver, receiving reply content of the virtual user designated as the receiver and sent by the message processing server for the message content, wherein the reply content is related to the real user sending the message content, and sending the reply content to equipment of the real user based on a system internal network protocol;
and when a chat session between the real user and the virtual user is created and the message content of the message to be sent is sent by the real user in the chat session, sending the message content to equipment of the real user based on a system external network protocol.
11. A group creation apparatus, comprising:
the device comprises a determining unit and a sending unit, wherein the determining unit is used for receiving group creation indication information sent by a terminal, the group creation indication information comprises a plurality of user identifications to be added, the user identifications are required to be added to a group session, and the terminal is a device of a virtual user and is used for creating the group session comprising the virtual user and a real user; determining a plurality of user identifications to be added to the group session according to the group creation indication information, wherein the user identifications to be added comprise virtual user identifications and real user identifications;
a creating unit, configured to create a group session including a virtual user and a real user according to the multiple user identifiers to be added, where the group session includes an external group session, where the virtual user and the real user of the external group session are in different message systems, and the virtual user identifier and the real user identifier of the external group session are in different message systems; when a real user in the group session sends message content and a virtual user in the group session is designated as a receiver in the message content, generating reply content of the virtual user designated as the receiver aiming at the message content, wherein the reply content is associated with the real user sending the message content; responding to a triggering operation of a group management application control in a chatting information page of the group session, and displaying a session interface of the real user and the virtual user session in the group session, wherein the session interface comprises a message sending control; and responding to the triggering operation aiming at the message sending control, and triggering the real user to perform session interaction with the virtual user.
12. A group creation apparatus, comprising:
the display unit is used for displaying a user operation interface of a group session, wherein the group session comprises a group session of a real user, the group session comprises an external group session, a virtual user of the external group session and the real user are in different message systems, and a virtual user identifier of the external group session and a real user identifier of the external group session are in different message systems;
the receiving unit is used for receiving a member adding instruction triggered by the user through the user operation interface;
the acquisition unit is used for acquiring the virtual user identifier to be added to the group session according to the member adding instruction;
an adding unit, configured to add a virtual user to the group session according to the virtual user identifier, where the group session includes an external group session, where the virtual user and the real user of the external group session are in different message systems, and the virtual user identifier and the real user identifier of the external group session are in different message systems; when a real user in the group session sends message content and a virtual user in the group session is designated as a receiver in the message content, generating reply content of the virtual user designated as the receiver aiming at the message content, wherein the reply content is associated with the real user sending the message content; responding to a triggering operation of a group management application control in a chatting information page of the group session, and displaying a session interface of the real user and the virtual user session in the group session, wherein the session interface comprises a message sending control; and responding to the triggering operation aiming at the message sending control, and triggering the real user to perform session interaction with the virtual user.
13. A group creation apparatus, comprising:
the device comprises a request receiving unit, a group creating unit and a group creating unit, wherein the request receiving unit is used for receiving a group creating request sent by a group creator device, the group creating request carries a plurality of user identifications to be added to a group session, and the user identifications to be added comprise virtual user identifications and real user identifications;
a creating unit, configured to create a group session including a virtual user and a real user according to a group creation request, where the group session includes an external group session, where the virtual user and the real user of the external group session are in different message systems, the virtual user identifier and the real user identifier of the external group session are in different message systems, and the creator device is a device of a virtual user and is configured to create the group session including the virtual user and the real user; when a real user in the group session sends message content and a virtual user in the group session is designated as a receiver in the message content, generating reply content of the virtual user designated as the receiver aiming at the message content, wherein the reply content is associated with the real user sending the message content; when a chat session between the real user and the virtual user is created and the real user and the virtual user perform session interaction in the session, session data of the session between the real user and the virtual user is acquired;
and the data synchronization unit is used for synchronizing group data of the group session to the equipment of the members in the group session, wherein the group data comprises message content sent by the real user and reply content of the message content, and session data of the session between the real user and the virtual user.
14. A message interaction apparatus, comprising:
a message receiving unit, configured to receive a message to be sent, which is sent by a message processing server and is directed to a group session, where the message to be sent includes message content, and the group session includes a real user and a virtual user;
a pushing unit for:
when the message to be sent designates a receiver and the receiver is a virtual user in a group session, sending the message content to equipment of the virtual user based on an external network protocol, wherein the group session comprises an external group session, the virtual user and the real user of the external group session are in different message systems, and a virtual user identifier and a real user identifier of the external group session are in different message systems;
when the message to be sent designates a receiver and the receiver is a real user in a group session, sending a first group message to equipment of the real user based on a system internal network protocol, wherein the first group message comprises the message content and message reminding information;
when the message to be sent does not designate a receiver, sending a second group message carrying the message content to the equipment of the members in the group session based on the network protocol in the system;
when the message content in the message to be sent is sent by a real user in the group session and the message content designates a virtual user in the group session as a receiver, receiving reply content of the virtual user designated as the receiver and sent by the message processing server for the message content, wherein the reply content is related to the real user sending the message content, and sending the reply content to equipment of the real user based on a system internal network protocol;
and when a chat session between the real user and the virtual user is created and the message content of the message to be sent is sent by the real user in the chat session, sending the message content to equipment of the real user based on a system external network protocol.
CN201910060390.4A 2019-01-22 2019-01-22 Group creation and message interaction method and device Active CN109587044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910060390.4A CN109587044B (en) 2019-01-22 2019-01-22 Group creation and message interaction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910060390.4A CN109587044B (en) 2019-01-22 2019-01-22 Group creation and message interaction method and device

Publications (2)

Publication Number Publication Date
CN109587044A CN109587044A (en) 2019-04-05
CN109587044B true CN109587044B (en) 2021-01-08

Family

ID=65917717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910060390.4A Active CN109587044B (en) 2019-01-22 2019-01-22 Group creation and message interaction method and device

Country Status (1)

Country Link
CN (1) CN109587044B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166577B (en) * 2019-07-01 2022-02-08 中国工商银行股份有限公司 Distributed application group session processing system and method
CN112261219B (en) * 2019-07-22 2022-06-14 腾讯科技(深圳)有限公司 Information display method, intelligent terminal and computer storage medium
CN110460510B (en) * 2019-07-31 2022-05-20 北京字节跳动网络技术有限公司 Method, device, electronic equipment and medium for establishing multi-person session
CN110661789B (en) * 2019-09-09 2021-11-02 腾讯科技(深圳)有限公司 Address resetting method, device, equipment and computer readable storage medium
CN113079028B (en) * 2020-01-03 2023-11-17 阿尔派株式会社 Electronic device and message notification control method
CN113709022B (en) * 2020-05-22 2024-02-02 腾讯科技(深圳)有限公司 Message interaction method, device, equipment and storage medium
CN113973094B (en) * 2020-07-07 2024-03-15 腾讯科技(深圳)有限公司 Message processing method, system and medium
CN112152913B (en) * 2020-09-29 2022-07-08 支付宝(杭州)信息技术有限公司 Service control method, device and system
CN112822161B (en) * 2020-12-29 2022-12-30 上海掌门科技有限公司 Method and equipment for realizing conference message synchronization
CN113098756B (en) * 2021-03-25 2023-04-07 深圳市艾酷通信软件有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN113794627A (en) * 2021-09-29 2021-12-14 北京字跳网络技术有限公司 Processing method, processing device, equipment and storage medium of instant messaging group
CN114338761B (en) * 2021-12-24 2023-02-24 威艾特科技(深圳)有限公司 Remote field communication method and storage medium
CN114911557B (en) * 2022-04-28 2024-02-02 北京字跳网络技术有限公司 Information processing method, apparatus, electronic device and storage medium
CN117014401A (en) * 2022-07-06 2023-11-07 腾讯科技(深圳)有限公司 Social processing method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009670A (en) * 2007-01-22 2007-08-01 阿里巴巴公司 A method and system for implementing the group communication based on the instant communication
CN101282314A (en) * 2008-05-23 2008-10-08 中国移动通信集团北京有限公司 Group communication method, equipment and system for instant communication
CN103297325A (en) * 2013-05-13 2013-09-11 北京小米科技有限责任公司 Method, device and equipment for interacting with third-party application in instant messaging system
WO2017182888A3 (en) * 2016-04-18 2018-03-29 Elango Allwin Agnel System and method for assisting user communications using bots
CN108040004A (en) * 2018-01-29 2018-05-15 上海壹账通金融科技有限公司 Control method, device, equipment and the readable storage medium storing program for executing of virtual robot

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009670A (en) * 2007-01-22 2007-08-01 阿里巴巴公司 A method and system for implementing the group communication based on the instant communication
CN101282314A (en) * 2008-05-23 2008-10-08 中国移动通信集团北京有限公司 Group communication method, equipment and system for instant communication
CN103297325A (en) * 2013-05-13 2013-09-11 北京小米科技有限责任公司 Method, device and equipment for interacting with third-party application in instant messaging system
WO2017182888A3 (en) * 2016-04-18 2018-03-29 Elango Allwin Agnel System and method for assisting user communications using bots
CN108040004A (en) * 2018-01-29 2018-05-15 上海壹账通金融科技有限公司 Control method, device, equipment and the readable storage medium storing program for executing of virtual robot

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"钉钉群中的机器人";沽名钓誉;《https://www.cnblogs.com/rememberme/p/dingding.html》;20181102;正文第1-4页,图1-5,图11 *

Also Published As

Publication number Publication date
CN109587044A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109587044B (en) Group creation and message interaction method and device
CN110417845B (en) Data synchronization method, device and storage medium
US10063547B2 (en) Authorization authentication method and apparatus
EP2122922B1 (en) Remote control using instant messaging
EP2779708B1 (en) Instant messaging service and method for providing plurality of services extended from instant messaging service
CN110391970B (en) Message management system, method, device and storage medium for communication application
KR102108882B1 (en) Information update method and device, and server
CN101217506B (en) Message processing method, system and client
CN111522604B (en) Application data processing method and device and computer readable storage medium
CN111447133B (en) Message transmission method and device, storage medium and electronic device
CN110635921B (en) Group-based interaction method, device, equipment and readable medium
CN101163027B (en) System and method for facilitating an electronic chat session
CN113746722B (en) Information processing method, device, equipment and storage medium
CN111147348B (en) Instant message sending method, device and readable medium
CN111314201B (en) Application data processing method, system and related equipment
CN110995706B (en) Authentication system, method, device and storage medium for communication application
CN113595856B (en) Information interaction method, device, equipment and medium
CN112383469A (en) Information processing method and device, computer readable medium and electronic equipment
CN109040331B (en) Electronic business card processing method and device, computing equipment and storage medium
CN106161199B (en) A kind of Content of Communication treating method and apparatus
CN113595857B (en) Group operation method, device, equipment and storage medium
CN110661789B (en) Address resetting method, device, equipment and computer readable storage medium
CN114095463A (en) Data processing method, device, equipment and medium based on instant messaging
KR20110108123A (en) System for managing dynamically virtual corporation
KR20140072362A (en) Method and system for providing closed type group messaging services

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
GR01 Patent grant
GR01 Patent grant