CN109639444B - Message processing method and device, electronic equipment and storage medium - Google Patents

Message processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109639444B
CN109639444B CN201910125685.5A CN201910125685A CN109639444B CN 109639444 B CN109639444 B CN 109639444B CN 201910125685 A CN201910125685 A CN 201910125685A CN 109639444 B CN109639444 B CN 109639444B
Authority
CN
China
Prior art keywords
user
target
session
group
target group
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
CN201910125685.5A
Other languages
Chinese (zh)
Other versions
CN109639444A (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 CN201910125685.5A priority Critical patent/CN109639444B/en
Publication of CN109639444A publication Critical patent/CN109639444A/en
Application granted granted Critical
Publication of CN109639444B publication Critical patent/CN109639444B/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
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a message processing method and device, electronic equipment and a storage medium, and belongs to the technical field of the Internet. The method comprises the following steps: when detecting that a first user joins a target group, determining user information of the first user; determining a session message of the first user in the target group based on the user information of the first user; and issuing the session message of the first user in the target group. Therefore, the conversation message can be automatically issued, and the greeting is automatically carried out on a plurality of second users in the group from the angle of the first user, so that the conversation communication among the users in the group is promoted, and the activeness of the group conversation when a new user enters the group is improved.

Description

Message processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a message processing method and apparatus, an electronic device, and a storage medium.
Background
With the development of internet technology, social applications are also rich and diverse in functions. In social applications, group conversation is a common conversation method. For example, in a business social application, multiple users belonging to the same business may form a business group, and a conversation may be conducted within the business group. Certainly, the user who newly enters the enterprise needs to join the enterprise group, so that the communication requirement among members in the enterprise is met, and the work is promoted to be smoothly carried out.
In the related art, taking a business social application as an example, the message processing process may include: when a server of the enterprise social application receives a joining request of a first user, the server joins the first user to an enterprise group, and sends notification messages to the first user and a plurality of second users included in the enterprise group, wherein the notification messages are displayed on application interfaces of the enterprise social applications of the first user and the second users, and are used for notifying that a new member is joined in the enterprise group.
The method actually sends a notification message through the server to inform the members in the group that a new member of the group joins. However, the new user group processing mode has the problem of low user activity.
Disclosure of Invention
The embodiment of the invention provides a message processing method and device, electronic equipment and a storage medium, which can solve the problem of low user activity of message processing in the related art. The technical scheme is as follows:
in one aspect, a message processing method is provided, and the method includes:
when detecting that a first user joins a target group, determining user information of the first user;
determining a session message of the first user in the target group based on the user information of the first user;
and issuing the session message of the first user in the target group.
In one aspect, a message processing method is provided, and the method includes:
when a target event is detected, sending a joining request to a server, wherein the joining request is used for requesting to join a target group;
when a first user joins the target group, receiving session messages of the first user, which are issued by the server in the target group;
displaying the conversation message on a conversation interface of the target group.
In another aspect, a message processing apparatus is provided, the apparatus including:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining user information of a first user when the first user is detected to join a target group;
the determining module is further configured to determine, based on the user information of the first user, a session message of the first user in the target group;
and the publishing module is used for publishing the session message of the first user in the target group.
In another aspect, a message processing apparatus is provided, the apparatus including:
the system comprises a sending module, a sending module and a sending module, wherein the sending module is used for sending a joining request to a server when a target event is detected, and the joining request is used for requesting to join a target group;
a receiving module, configured to receive, when a first user joins the target group, a session message of the first user issued by the server in the target group;
and the display module is used for displaying the conversation message on a conversation interface of the target group.
In another aspect, an electronic device is provided, which includes one or more processors and one or more memories, and at least one instruction is stored in the one or more memories, and the at least one instruction is loaded and executed by the one or more processors to implement the operations performed by the message processing method as described above.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the operations performed by the message processing method as described above.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
when a first user joins a target group, a server determines the session message of the first user in the target group based on the user information of the first user, and publishes the session message of the first user in the target group, so that the session message can be automatically published, and a plurality of second users in the group can be automatically greeted from the angle of the first user, thereby promoting the session exchange among the users in the group, and improving the activity of group session when a new user enters the 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. 1 is a schematic diagram of an implementation environment of a message processing method according to an embodiment of the present invention;
fig. 2 is a signaling interaction diagram of a message processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a terminal interface according to an embodiment of the present invention;
fig. 4 is a flow chart of a message process provided by an embodiment of the present invention;
fig. 5 is a flow chart of a message process provided by an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a message processing process according to an embodiment of the present invention;
fig. 7 is a flow chart of a message process provided by an embodiment of the present invention;
fig. 8 is a signaling interaction diagram of a message processing method according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a server 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 some, not all, embodiments of the present invention. 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.
Fig. 1 is a schematic diagram of an implementation environment of a message processing method according to an embodiment of the present invention, and referring to fig. 1, the implementation environment includes: the terminal comprises a server 101 and a terminal 102, wherein the terminal 102 is provided with a social application, and the server 101 is a background server of the social application. The terminal 102 and the server 101 perform data interaction based on the social application.
A plurality of groups are established in advance in the social application, and any user included in the groups can publish session messages in the groups. The users outside the group may apply for joining the group, or the users inside the group may invite the users outside the group to join the group. The social application may be a dedicated social application for different fields, and in one possible scenario, the social application may be a business social application, and the business social application may include a plurality of business groups, each business group includes a plurality of users belonging to the same business, for example, a staff belonging to a business may establish a business group a, and issue a work notification in the business group a, so that when a new staff of the business enters the business, the new staff needs to be added into the business group.
When a first user joins the target group, the server 101 may determine a session message of the first user based on user information of the first user, where the session message is used to represent a greeting of the first user to the at least one second user, and the server 101 may issue the session message into the target group, so as to promote session communication among users in the group and improve user activity in the target group.
Wherein, the terminal 102 is configured to send a join request to the server, where the join request is used to request to join the target group. The server 101 joins the first user to the target group based on the join request of the terminal 102. The terminal 102 may be a terminal where a first user applying for joining the target group is located. In addition, the second user in the target group may also invite the first user to join the target group, and at this time, the terminal 102 may also be a terminal where the second user initiating the invitation to the first user is located.
The terminal 102 may be any terminal that installs the social application. For example, the terminal 102 may be a mobile phone terminal, a PAD (Portable Android Device) terminal, or a computer terminal. The server 101 is a background server for the social application. The server 101 may be a server, a server cluster composed of several servers, or a cloud computing server center. The embodiment of the present invention is not particularly limited to this.
Fig. 2 is a signaling interaction diagram of a message processing method according to an embodiment of the present invention. The embodiment of the invention can be interactively executed by a server and a terminal, and referring to fig. 2, the method comprises the following steps:
201. when a target event is detected, the terminal sends a join request to the server.
Wherein the join request is for requesting to join the target group. The target event may be an event triggered by the terminal on an application interface, and when the terminal detects the target event in the application interface, the terminal sends a join request to the server of the social application according to the user identifier of the first user, where the join request may carry the user identifier of the first user.
The first user can apply for joining the target group by himself, the second user in the target group can invite the first user to join the target group, and in addition, the first user can automatically join the target group when the personal account of the social application is activated. Therefore, the target event may be an account activation operation triggered by the first user in the application interface, or a group application operation triggered by the first user in the application interface, or a group invitation operation to the first user in the application interface. Accordingly, the present step may include the following three implementations.
In a first mode, when the terminal detects account activation operation triggered by a first user in the application interface, the terminal sends the join request to a server.
The account activation operation may be an operation of registering a personal account on the social application for the first user. The application interface may activate a page for an account of the social application. When the terminal detects the account activation operation in the application interface, the terminal may obtain the user information of the first user, and send the join request to the server according to the user information of the first user, where the join request is used to instruct to activate the personal account of the first user and join the first user in the target group. The join request may carry account information and user information of the first user.
In one possible implementation manner, the terminal opens the social application and displays an account login page of the social application. And when the terminal detects that a login button in the account login page is triggered, the terminal acquires the personal account and displays a user information acquisition page. The user information acquisition page comprises a plurality of information options, and each information option is used for indicating to input user information corresponding to the information option; in the user information acquisition page, the first user may input user information based on the plurality of information options. The terminal acquires the user information of the first user based on the personal information acquisition page, and the terminal sends the joining request to the server based on the user information and the personal account of the first user.
And in the second mode, when the terminal detects the group adding application operation triggered by the first user in the application interface, the terminal sends the adding request to the server.
The application interface may be in the social application, and the first user may apply for joining the target group based on the group identifier of the target group. In a possible implementation manner, the group adding application operation may be that an application join button in the application interface is triggered, and when the terminal detects that the application join button is triggered, the terminal sends the join request to the server according to the group identifier of the target group, where the join request carries the group identifier of the target group.
It should be noted that, in the first manner and the second manner, the terminal may be a terminal where the first user is located. That is, the first user triggers the terminal to send a join request to the server.
And in a third mode, when the terminal detects the group invitation operation of the first user in the application interface, the terminal sends the joining request to the server.
The second user may invite the first user to join the target group by triggering the invite button. The group invitation operation may be triggered by an invitation button in the application interface, the application interface may be a user invitation page of the social application, user identifications of a plurality of users may be provided in the user invitation page, or a plurality of invitation buttons corresponding to the plurality of users, and when any one of the user identifications is triggered or the invitation button is triggered, the terminal sends a join request to the server. The join request carries the user identifier of the invited user, that is, the user identifier of the first user, and in addition, the join request may also carry the group identifier of the target group.
The terminal may display an invitation tag in a session interface of the target group, and when the invitation tag is triggered, the terminal displays the user invitation page.
It should be noted that, in the third manner, the terminal may be a terminal where a user initiating the invitation is located. That is, the user initiating the invitation triggers the terminal to send a join request to the server.
202. The server joins the first user to the target group based on the joining request.
The server receives a joining request sent by the terminal, acquires the user identification of the first user from the joining request, and joins the first user into the target group based on the user identification. The server may send a notification message to a target user in the target group, receive a feedback message of the target user, join the first user to the target group when the feedback message of the target user indicates that the first user is allowed to join the target group, and the notification message is used to notify the target user that the first user requests to join the target group.
When the join request further carries a group identifier, the server may first determine a target group corresponding to the group identifier according to the group identifier, and then join the first user in the target group. Or, when the join request also carries account information of the first user, the server may first verify the account information, and when the verification passes, join the first user into the target group according to the user identifier of the first user. Of course, when the target user invites the first user to join the target group, the server may also send a prompt message to the invited user, that is, the terminal of the first user sends a prompt message, and when the server receives a feedback message that the first user agrees to join, the server joins the first user to the target group.
In a possible implementation scenario, the server may obtain and store account information and user information of the first user in advance, and determine a target group corresponding to the first user, when receiving a join request of the first user, authenticate the join request of the first user according to the previously stored account information and user information of the first user, and when the authentication passes, determine that the personal account of the first user is activated, and the server joins the first user in the target group. For example, in an enterprise social application, members belonging to the same enterprise may form an enterprise group, when a new member joins the enterprise, a management user of the enterprise group may send a personal account and user information of the new member to a server in advance, and when the new member logs in the enterprise social application based on the personal account for the first time, the server activates the personal account for the new member and joins the new member in the enterprise group.
It should be noted that, in the step 201-202, the terminal may initiate the join request to the server based on the account activation operation, the group join request operation, or the group join invitation operation of the user, so as to enrich the way in which the user joins the target group, so that the message processing method according to the embodiment of the present invention may be applied to various scenarios, and improve the applicability of the message processing according to the present invention.
203. The server determines user information for the first user.
The user information of the first user at least includes a user identifier of the first user, and the user information of the first user may further include but is not limited to: the position information of the first user, the target sub-group information to which the first user belongs, the interest and hobbies of the first user, the user feature tag of the first user or the geographical position of the first user and the like. The target sub-population information is used for indicating a sub-population to which the first user belongs in a plurality of sub-populations included in a target user population, and the target user population is a population formed by the first user and at least one second user in the target population. Of course, the user information may also include: the sex, age, email or phone number of the first user. The embodiment of the present invention is not particularly limited thereto.
In a possible implementation manner, the server may obtain the user information of the first user from a terminal where the first user is located, and when the first user inputs the user information on the user information obtaining page, the terminal where the first user is located obtains the user information of the first user, and sends the user information of the first user to the server, and the server receives the user information of the first user.
In a possible implementation manner, the server may further obtain the user information of the first user from a terminal where a target user of the target group is located. The target user may be an administrative user of the target group and the social application may be an enterprise social application. The terminal where the target user is located may send the personal account and the user information of the first user to the server in advance, and the server receives the personal account and the user information of the first user sent by the terminal where the target user is located, so as to obtain the user information of the first user. The server may also send an acquisition request to the terminal where the management user is located when the acquisition of the user information from the terminal of the first user fails, where the acquisition request carries the user identifier of the first user, and the acquisition request is used to request the acquisition of the user information of the first user, and then the terminal where the management user is located receives the acquisition request, acquires the user information of the first user, sends the user information of the first user to the server, and the server receives the user information of the first user sent by the terminal where the management user is located.
It should be noted that, the step 201 and 203 are actually processes in which the server receives the join request in real time, joins the first user to the target group based on the join request, and determines the user information of the first user. However, the server may also obtain the user information when there is a user joining the target group, and step 201 and 203 may be replaced with: when the first user is detected to join the target group, the server determines the user information of the first user. That is, the server may detect whether a new user joins the target group in real time, and when it is detected that the first user joins the target group, the server acquires the user information of the first user.
In the embodiment of the invention, if the terminal sends the joining request to the server based on the account activating operation of the first user, the server can create the account activating task and the joining target group task, and the server can asynchronously process the account activating task and the joining target group task. In a possible implementation manner, the server may verify the account information and the user information when acquiring the account information and the user information of the first user, and add the join target group task in the asynchronous task queue. And when the server passes the verification of the account information, the server sends a feedback message to the terminal of the first user, wherein the feedback message is used for prompting that the first user successfully logs in based on the account information. In the asynchronous task queue, the server performs the process of step 204 and 206 described below.
It should be noted that, in this step, the server may obtain various different information as the user information, and the server may also obtain the user information of the first user from the terminal of the management user, so as to enrich the user information and provide various ways of obtaining the user information, and even if one way of obtaining fails, the server may continue to obtain the user information of the first user from another way, thereby improving reliability of obtaining the user information and robustness of the message processing process according to the embodiment of the present invention.
204. The server obtains a target session template for the target group.
The target session template refers to a message body for carrying user information of the first user in a target format. The target group may correspond to a plurality of session templates, and the server obtains a target session template of the target group from the plurality of session templates according to the target group. The representation of the target session template may include, but is not limited to: text, images, or personal business cards, etc.
The target session template may be obtained by the server through self-behavior screening by the first user, or may be specified by the first user, or the target session template may be a template bound in advance by the target group. Accordingly, this step can be implemented in the following three ways.
In the first mode, the server obtains a plurality of session templates corresponding to the group type of the target group from the corresponding relationship between the group type and the session templates according to the group type of the target group, and screens out a target session template matched with the user information from the plurality of session templates of the target group.
In the embodiment of the invention, different group types can correspond to different session templates, and the server can store the corresponding relation between the group types and the session templates. The server obtains the group type of the target group, obtains a plurality of session templates corresponding to the group type of the target group from the corresponding relationship between the group type and the session templates according to the group type of the target group, and determines the obtained plurality of session templates as a plurality of session templates of the target group. And the server screens out a target conversation template matched with the user information from the plurality of conversation templates of the target group according to the user information of the first user.
Wherein, the information types carried by different session templates can be different. The user information of the first user may include a plurality of information of different information categories. The server may store one or more information categories carried by each session template in advance, and the server may obtain, according to information categories to which a plurality of pieces of information in the user information of the first user belong, a session template carrying the information categories to which the plurality of pieces of information in the user information belong from a correspondence between the session template and the information categories, and determine the session template as a target session template matched with the user information of the first user.
The plurality of group types may include a group of coworkers, a group of alumni, a group of city deals, and the like. The plurality of categories of information may include profession, industry, personal mailbox, department of affiliation, nickname, gender, current city, etc. For example, the target group may be a co-worker group, and the information type of the first user may include: job, name and mailbox. The server can screen out a target conversation template bearing positions, names and mailboxes from a plurality of conversation templates corresponding to the colleagues.
In the second mode, the server obtains the target template identification selected by the first user, and obtains the target session template corresponding to the target template identification.
The server can obtain the target template identification selected by the first user from the terminal where the first user is located, and obtain the target session template according to the target template identification.
The terminal where the first user is located can display a plurality of template options in the application interface, each session template option is used for indicating a session template, and the first user can select from the plurality of session template options. The terminal acquires a target template identifier corresponding to the template option selected by the first user from the plurality of template options, sends the target template identifier to a server, and the server receives the target template identifier.
And in the third mode, the server acquires the bound preset template identifier of the target group and acquires a target session template corresponding to the preset template identifier.
In the embodiment of the present invention, the target group may also be bound with a preset template identifier, where the preset template identifier preset by a management user of the target group, the server may obtain the preset template identifier bound to the target group from a terminal where the management user is located, and obtain the target session template according to the preset template identifier.
It should be noted that the server may be provided with a plurality of session templates, and the server may automatically match a target session template better meeting the requirements of the first user for the first user according to the group type of the target group and the user information of the first user, so that a template close to the actual requirements of the user can be accurately selected for the user, and the accuracy of determining the target session template is improved. Or, the server can also directly obtain the target session template selected by the user, or the server can also directly obtain a template set by the management user in advance, so that the efficiency of obtaining the target session template can be greatly improved.
205. And the server generates the session message of the first user according to the user information of the first user and the target session template of the target group.
Wherein the session message is used for indicating a greeting from the first user to at least one second user in the target group; the server may add the user information of the first user to the target session template according to the bearing position of the user information in the target session template, so as to obtain the session message of the first user. If the user information of the first user includes information of multiple information categories, the server may further add multiple information in the user information to the bearing position corresponding to the information category to which each piece of information belongs according to multiple bearing positions of different information categories in the target session template, so as to obtain the session message. Of course, the server may also add information such as the current date, weather conditions, etc. to the session message.
The user information may include position information of the first user, target sub-group information to which the first user belongs, or a user identifier of the first user, and the like, and the implementation process of this step may include: the server extracts the position information of the first user, the target sub-group information of the first user or the user identification of the first user from the user information according to the target session template; the server adds at least one item of position information of the first user or target sub-group information to which the first user belongs and the user identification of the first user to the target session template to obtain session information of the first user. The target sub-population information is used for indicating a sub-population to which the first user belongs in a plurality of sub-populations included in a target user population, and the target user population is a population formed by the first user and at least one second user in the target population. For example, the target sub-group information to which the first user belongs may be a department to which the first user belongs. Of course, the server may also add the first user's mailbox, phone number, etc. to the target session template.
In a possible implementation scenario, the target group may be a peer group, the peer group may include multiple peers belonging to the same enterprise, and when the first user joins the target group, the server may add the position information of the first user, the department to which the first user belongs, and the identifier of the first user to a target session template to form the first user session message.
In a possible implementation manner, the server may further add a plurality of pieces of information in the user information to the target session template according to the user information and the target session template, and generate a session message in a target display format according to the target display format. The target display format may be a display format of characters and personal business cards, or the target display format may also be a picture format, etc. Of course, the target display format may also be configured in advance according to the user requirement, and this is not particularly limited in the embodiment of the present invention.
It should be noted that, the step 204 and 205 are a specific implementation manner of the step "the server determines the session message of the first user in the target group based on the user information of the first user", and the step is actually a process of determining a target session template first and generating the session message based on the user information and the target session template. However, the server may also directly obtain the session message, and in a possible embodiment, the server may also store the target character, and the server directly concatenates the user information and the target character into the session message of the first user.
In addition, in the embodiment of the present invention, the server may further determine whether to generate the session message based on the group information of the target group in real time. The group information may include whether the automatic hello function of the target group is turned on and the number of users in the target group. The social application is configured with a group entry auto-greeting function, which refers to a function that automatically sends a conversation message for users joining a group. The server may determine whether to generate the session message based on whether the group entry auto-hello function of the target group is on. Alternatively, the server may also determine whether to generate the session message based on the number of users. The process may be: the server acquires the number of users in the target group, and when the number of users is smaller than the target number, the server determines the session message of the first user in the target group based on the user information of the first user; or, when the automatic hello function of the target group is started, the server executes the step that the server determines the session message of the first user in the target group based on the user information of the first user. The target number may be set based on needs, and is not particularly limited in this embodiment of the present invention. For example, the target number may be 20, 50, 100, etc.
For example, as shown in fig. 3, the group management interface of the target group is provided with an on or off option of the automatic hello function, and the administrative user of the target group can turn on or off the automatic hello function of the target group based on the on or off option. In the group management interface shown in fig. 3, the group incoming automatic greeting function of the target group may correspond to the group incoming greeting tag in the interface, as shown in fig. 3, the group incoming greeting tag is in an on state, that is, the group incoming automatic greeting function of the target group is already on.
As shown in fig. 4, when a first user joins a target group, the server may acquire the number of users of the target group, and detect whether an automatic hello function of the target group is turned on, and when the automatic hello function is turned on, perform a step of acquiring user information of the first user and generating a first user session message, otherwise, if the automatic hello function is not turned on, perform a step of sending a notification message to the first user and at least one second user in the target group, where the notification message may be a system-level prompt message, for example, a grey body message for the first user to join the group chat.
The server can default the automatic hello function of the target group to be in an open state, and when the management user of the target group does not actively close the automatic hello function of the target group, the server automatically and default issues the session message. As shown in fig. 5, taking the target number as 20 as an example, the server may first determine whether the number of users in the target group is greater than 20, and when the number of users in the target group is not greater than 20, the server continues to issue session messages in the target group; if the active status of the automatic hello function of the group is not the default active status of the system, that is, the active status of the automatic hello function of the group indicates that the management user actively opens the automatic hello function of the group, the server continues to issue the session message in the target group. If the automatic hello function of the group of the target group is not actively operated by the management user, the current opening state is the opening state of the default configuration of the system, and the server closes the automatic hello function of the group of the target group because the number of the users is more than the number of the targets. Further, when the automatic hello function of the group is turned off, the server may send a reminding message to the administrative user of the target group, where the reminding message is used to prompt the first user to join the target group, and the automatic hello function of the target group is turned off, and the automatic hello function of the group may be turned on manually.
It should be noted that the server may automatically generate a conversation message for the first user based on the user information and the conversation template, so that the conversation message has the personal characteristics of the first user, and the attention of the conversation message in the group is promoted. In addition, the format of the session message can be a picture format, a personal name card format and the like, the display form of the session message is enriched, more users in the group can be attracted to browse the session message, the attention degree of the session message is further improved, and the activity of the session in the group is further improved.
206. The server publishes the session message of the first user in the target group.
And the server sends the session message of the first user to the first user and the at least one second user according to the first user and the at least one second user in the target group.
The server may send a message publishing instruction to the terminal where the first user is located and at least one second terminal where at least one second user is located, where the message publishing instruction is used to instruct to display the session message of the first user in the target group. The message issuing instruction may carry a session message of the first user and a group identifier of the target group.
Wherein, the server may also issue the session message according to the session open time period or the session restricted area of the target group, and then this step may be: the server acquires a session starting time interval of the target group, and when the current time is within the session starting time interval, the server issues a session message of the first user in the target group; or, the server obtains the session restricted area of the target group, and when the current location of the first user is located in the session restricted area, the server issues the session message of the first user in the target group.
Wherein the session open period refers to a period during which session message interaction within the target group is allowed. The session message can only be sent within the target group when the current time is within the session start period. For example, the session open time may be work hours, from 9:00 am to 18:00 pm each day. The conversation limit area is a position area which allows conversation message interaction in the target group, and when the user in the group is in the position area, the conversation message can be sent in the target group. For example, the session restriction area may be a geographic location area where the first user is located at an enterprise. The distribution of session messages within the target group is only allowed when users within the target group are located within the geographic location area of the business.
It should be noted that the server may automatically issue a session message in the target group from the perspective of the first user to represent that the first user calls a plurality of second users in the group, and when a new user joins the group, the communication between the first user and the second users is stored, so that the liveness of the group session is improved, and the user experience is improved. Moreover, the server can also issue the session message based on the session opening time, the session limiting area and the like, and avoids the disturbance of users in multiple groups by limiting the session time period and the session place. Moreover, the retention degree of the small and medium-sized enterprise group in a certain period is improved by actively promoting the communication in the user.
207. When the first user joins the target group, the terminal receives the session message of the first user, which is issued in the target group by the server.
The terminal may receive a session issuing instruction sent by the server, and obtain the session message of the first user and the group identifier of the target group from the session issuing instruction. Wherein, the session message comprises a target session template and user information of the first user.
208. The terminal displays the session message on the session interface of the target group.
The terminal may display the session message of the first user on the session interface of the target group according to the session issue instruction. Wherein the session message includes a target session template and user information of the first user. The terminal can display the template content and the user information to a user corresponding to the terminal, so that the user can know the newly added first user in the target group in time.
For more clearly describing the flow of the embodiment of the present invention, the above steps 201 and 208 are described below only by taking the system framework diagram shown in fig. 6 and the flow chart shown in fig. 7 as examples. As shown in fig. 6, fig. 6 is a system architecture diagram of the embodiment of the present invention, and as shown in fig. 6, the server may be configured with an access layer, a logic layer, and a storage layer. The access layer is used for determining processing logic based on the request type of the user request, the logic layer stores a plurality of processing logics, and different processing logics are used for indicating processing procedures of different types of user requests. The access layer may be a Proxy, distribution, and load balancing (Proxy distributor) based distributed access layer, and the logical layer may be a Common Gateway Interface (CGI) logical layer. The storage layer may be stored by using a Key-Value model storage database, for example, a Key-Value model database based on Paxos (consistency algorithm) synchronization protocol, that is, a PKV (Paxos Key-Value) storage database, or a Key-Value model database based on a Quorum (Quorum) synchronization protocol, that is, an XKV (Quorum Key-Value) storage database. The server may establish a long connection or a short connection with the terminal where the user is located based on the length of time the user interacts with the social application. For example, in the above step 201 and 208, during the interaction between the server and the terminal, the server may establish a long connection with the terminal. When the server receives a user request, firstly, according to the request type of the user request, a target processing logic corresponding to the user request is determined in an access layer, and according to the processing logic, the user request is distributed to the target processing logic in a logic layer for processing. The social application may be provided with a plurality of services, the logic layer may be configured with processing logic corresponding to the plurality of services, and the plurality of services may include but are not limited to: a login service, a message service, a group service, an account service, etc., wherein the server may process the plurality of services asynchronously. In addition, for example, in the step 201-202, if the terminal sends the join request to the server based on the account activation operation of the first user, for the account activation task and the join target group task, the server may adopt the processing logic corresponding to the login service to execute the account activation task and asynchronously execute the join target group task, that is, the server first activates the personal account of the first user based on the account service and feeds back the login success to the first user. In the process of executing the task of joining the target group, the server executes the above step 203 and 206 based on the processing logic corresponding to the group service, so as to distribute the session message in the target group. Certainly, the processing process of joining the target group may be longer, and the server feeds back the message that the account is successfully activated to the user first and then feeds back the message of joining the group to the user through the asynchronous processing mode, so that the situation that the user still has no feedback after waiting for a long time is avoided, the processing time is reduced from the user perception through asynchronous processing and asynchronous feedback, and the user experience is improved.
As shown in fig. 7, in the embodiment of the present invention, for example, when a user activates an account in an enterprise social application, the user automatically joins the enterprise group, and when a first terminal where a first user is located detects an account activation operation of the first user, a join request is sent to a server, where the join request is used to instruct that the user logs in the personal account on the social application and joins the target group. The server processes the joining request based on processing logic corresponding to the login service of the logic layer, and sends a feedback message to the first terminal when the login is successful, wherein the feedback message is used for indicating that the login of the first user is successful. The server adds a task of joining a target group to an asynchronous task queue, in the process of processing the task of joining the target group in the asynchronous task queue, the server acquires the number of users of the target group based on processing logic corresponding to group service in the logic layer, and detects whether the target group starts an automatic greeting function for the group, the processing logic corresponding to the group service feeds back the number of the users and the starting state of the automatic greeting function for the group of the target group to the asynchronous task queue, and when the number of the users is not more than the target number and the automatic greeting function is started, the server issues a session message of a first user in the target group through the processing logic corresponding to the message service in the logic layer, so that the session message can be displayed on a session interface when the users in the target group are located. Of course, the first user also receives the session message and displays the session message on the session interface of the target group.
In the embodiment of the invention, when a first user joins a target group, the server determines the session message of the first user in the target group based on the user information of the first user and publishes the session message of the first user in the target group, so that the session message can be automatically published, and a plurality of second users in the group can be automatically greeted from the angle of the first user, thereby improving the activity of group session when a new user enters the group.
Fig. 8 is a signaling interaction diagram of a message processing method according to an embodiment of the present invention. The embodiment of the present invention may be interactively executed by a server and a terminal, referring to fig. 8, the method includes:
801. when a target event is detected, the terminal sends a join request to the server.
Wherein the join request is for requesting to join the target group. The implementation manner of this step is the same as that of step 201, and is not described in detail here.
802. The server joins the first user to the target group based on the joining request.
The implementation manner of this step is the same as that of step 202, and is not described in detail here.
803. The server determines user information for the first user.
The implementation manner of this step is the same as that of step 203, and is not described in detail here.
804. The server acquires the user information of at least one second user in the target group except the first user.
The at least one second user refers to a user other than the first user in the target group, and the server may store user information of the at least one second user in the target group in advance. In this step, the server may obtain the user information of at least one second user in the target group according to the group identifier of the target group.
Wherein the user information of the at least one second user may include, but is not limited to: the position information of at least one second user, the affiliated sub-group information of at least one second user, the interest and hobbies of at least one second user, the user characteristic label of at least one second user or the geographic position of the at least one second user and the like. The sub-group information of the at least one second user is used for indicating a sub-group to which the at least one second user belongs in a plurality of sub-groups included in a target user group, and the target user group is a group formed by the first user and the at least one second user in the target group. Of course, the user information may also include: gender, age, email or phone number of the at least one second user. The embodiment of the present invention is not particularly limited thereto.
805. And the server determines the session message of the first user in the target group according to the user information of the first user and the user information of at least one second user.
Wherein the server may determine the user characteristics of the second user based on the user information of the at least one second user. The user information of the first user may include the plurality of information, and the server may extract target information matching the user characteristic of the second user from the plurality of information included in the user information of the first user according to the user characteristic of the second user, and generate the session message of the first user according to the target information. The session message contains the target information. Further, the server may further analyze the character feature of the first user according to the user information of the first user, and generate a session message that includes the target information and is matched with the character feature of the first user according to the target information matched with the user feature of the second user and the character feature of the first user.
The server can analyze the character characteristics of the first user and the user characteristics of the second user in a machine learning mode to generate the conversation message. Then this step may be: the server may obtain a session message generation model, where the session message generation model is used to generate a session message of a session initiating user based on user information of the session initiating user and user information of a session receiving user; the server inputs the user information of the first user and the user information of the at least one second user into a conversation message generation model, and outputs the conversation message of the first user. The inputting of the user information of the conversation message generation model may include: personality descriptive information, hobbies, geographic location, job position information, hometown, etc. of the first user or the second user.
The server may train a preset model based on user information and historical conversation messages of a plurality of conversation initiating users and user information of a plurality of conversation receiving users in advance to obtain a conversation message generation model, where the historical conversation messages may be used to represent greetings of the conversation initiating users to the conversation receiving users. The predetermined model may be a neural network model, a decision tree model, or the like. In one possible implementation, the conversation message generation model may store conversation templates of a plurality of historical conversations corresponding to a plurality of character features. In the session message model, the server may analyze the personality characteristics of the first user based on the user information of the first user, obtain a session template corresponding to the personality characteristics according to the personality characteristics, and output the session message of the first user according to the user information of the first user and the session template. Of course, the conversation message generation model may further store a word embedding matrix, and generate the conversation message of the first user based on the word embedding matrix. The embodiment of the present invention is not limited thereto.
It should be noted that the server may generate the session message based on the personality characteristics of the first user, so that the session message is more personalized, and the server also generates the session message in combination with the user characteristics of the second user, predicts the reaction of the user receiving the session message in the group, obtains a more pertinent and personalized greeting message, and further improves the activity of the user in the group.
806. The server publishes the session message of the first user in the target group.
The implementation manner of this step is the same as that of step 206, and is not described in detail here.
In addition, the server can also count the user activity of the target group in a preset segment after the session message is issued, and update the session message generation model according to the user activity after the session message is issued.
807. When the first user joins the target group, the terminal receives the session message of the first user, which is issued in the target group by the server.
The implementation manner of this step is the same as that of step 207, and is not described in detail here.
808. The terminal displays the session message on the session interface of the target group.
The implementation manner of this step is the same as that of step 208, and is not described in detail here.
In the embodiment of the invention, when the first user joins the target group, the server determines the session message of the first user in the target group based on the user information of the first user and publishes the session message of the first user in the target group, so that the session message can be automatically published, and the greeting is automatically carried out on a plurality of second users in the group from the angle of the first user, thereby promoting the session communication among the users in the group and improving the activity of the group session when the new user enters the group.
Fig. 9 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention. The apparatus can be applied to a server, and referring to fig. 9, the apparatus includes:
a determining module 901, configured to determine user information of a first user when it is detected that the first user joins a target group;
the determining module 901 is further configured to determine, based on the user information of the first user, a session message of the first user in the target group;
a publishing module 902, configured to publish the session message of the first user in the target group.
Optionally, the determining module 901 is further configured to obtain a target session template of the target group; and generating the session message of the first user according to the user information of the first user and the target session template of the target group.
Optionally, the determining module 901 is further configured to obtain user information of at least one second user in the target group, except for the first user; and determining the session message of the first user in the target group according to the user information of the first user and the user information of at least one second user.
Optionally, the determining module 901 is further configured to obtain a session message generation model, where the session message generation model is configured to generate a session message of a session initiating user based on user information of the session initiating user and user information of a session receiving user; inputting the user information of the first user and the user information of the at least one second user into the conversation message generation model, and outputting the conversation message of the first user.
Optionally, the determining module 901 is further configured to:
according to the group type of the target group, acquiring a plurality of session templates corresponding to the group type of the target group from the corresponding relation between the group type and the session templates, and screening out a target session template matched with the user information of the first user from the plurality of session templates of the target group;
acquiring a target template identification selected by the first user, and acquiring a target session template corresponding to the target template identification;
and acquiring a preset template identifier bound to the target group, and acquiring a target session template corresponding to the preset template identifier.
Optionally, the determining module 901 is further configured to extract at least one of position information of the first user or target sub-group information to which the first user belongs and a user identifier of the first user from the user information of the first user according to the target session template; adding at least one item of position information of the first user or target sub-group information to which the first user belongs and a user identifier of the first user to the target session template to obtain session information of the first user; the target sub-population information is used for indicating a sub-population to which the first user belongs in a plurality of sub-populations included in a target user population, and the target user population is a population formed by the first user and at least one second user in the target population.
Optionally, the determining module 901 is further configured to at least one of:
acquiring the number of users in the target group, and when the number of users is smaller than the target number, executing the step of determining the session message of the first user in the target group based on the user information of the first user;
when the automatic hello function of the group is started, executing the step of determining the session message of the first user in the target group based on the user information of the first user, wherein the automatic hello function refers to the function of automatically sending the session message for the users joining the group.
Optionally, the publishing module 902 is further configured to:
acquiring a session starting time interval of the target group, and issuing the session message of the first user in the target group when the current time is within the session starting time interval;
and acquiring a session limit area of the target group, and issuing the session message of the first user in the target group when the current position of the first user is located in the session limit area.
In the embodiment of the invention, when the first user joins the target group, the server determines the session message of the first user in the target group based on the user information of the first user and publishes the session message of the first user in the target group, so that the session message can be automatically published, and the greeting is automatically carried out on a plurality of second users in the group from the angle of the first user, thereby promoting the session communication among the users in the group and improving the activity of the group session when the new user enters the group.
Fig. 10 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention. The apparatus can be applied to a terminal, and referring to fig. 10, the apparatus includes:
a sending module 1001, configured to send a join request to a server when a target event is detected, where the join request is used to request to join a target group;
a receiving module 1002, configured to receive a session message of a first user issued by the server in the target group when the first user joins the target group;
a display module 1003, configured to display the session message on the session interface of the target group.
Optionally, the apparatus further comprises:
the acquisition module is used for displaying a plurality of template options on the application interface and acquiring a target template identifier corresponding to a target template option selected by the first user from the plurality of template options; and sending the target template identification to the server.
Optionally, the target event is an account activation operation triggered by the first user in the application interface, or a group adding application operation triggered by the first user in the application interface, or a group invitation operation to the first user in the application interface.
In the embodiment of the invention, when the target event is detected, the joining request is sent to the server, when the target event is joined, the session message of the first user sent by the server is received, and the session message is displayed in the session interface of the target group, so that the session message can be automatically displayed, and the greeting is automatically carried out on a plurality of second users in the group from the angle of the first user, thereby promoting the session communication among the users in the group, and improving the activity of the group session when a new user enters the group.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
It should be noted that: in the message processing apparatus provided in the foregoing embodiment, when processing a message, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the message processing apparatus and the message processing method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal 1100 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1100 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so forth.
In general, terminal 1100 includes: a processor 1101 and a memory 1102.
Processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1101 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 1101 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1102 may include one or more computer-readable storage media, which may be non-transitory. Memory 1102 can also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1102 is used to store at least one instruction for execution by processor 1101 to implement the message processing methods provided by method embodiments herein.
In some embodiments, the terminal 1100 may further include: a peripheral interface 1103 and at least one peripheral. The processor 1101, memory 1102 and peripheral interface 1103 may be connected by a bus or signal lines. Various peripheral devices may be connected to the peripheral interface 1103 by buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1104, touch display screen 1105, camera 1106, audio circuitry 1107, positioning component 1108, and power supply 1109.
The peripheral interface 1103 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, memory 1102, and peripheral interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102 and the peripheral device interface 1103 may be implemented on separate chips or circuit boards, which is not limited by this embodiment.
The Radio Frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1104 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1104 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1104 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1104 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to capture touch signals on or over the surface of the display screen 1105. The touch signal may be input to the processor 1101 as a control signal for processing. At this point, the display screen 1105 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1105 may be one, providing the front panel of terminal 1100; in other embodiments, the display screens 1105 can be at least two, respectively disposed on different surfaces of the terminal 1100 or in a folded design; in still other embodiments, display 1105 can be a flexible display disposed on a curved surface or on a folded surface of terminal 1100. Even further, the display screen 1105 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display screen 1105 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
Camera assembly 1106 is used to capture images or video. Optionally, camera assembly 1106 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1106 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1107 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1101 for processing or inputting the electric signals to the radio frequency circuit 1104 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1100. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1101 or the radio frequency circuit 1104 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1107 may also include a headphone jack.
Positioning component 1108 is used to locate the current geographic position of terminal 1100 for purposes of navigation or LBS (Location Based Service). The Positioning component 1108 may be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union galileo System.
Power supply 1109 is configured to provide power to various components within terminal 1100. The power supply 1109 may be alternating current, direct current, disposable or rechargeable. When the power supply 1109 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1100 can also include one or more sensors 1110. The one or more sensors 1110 include, but are not limited to: acceleration sensor 1111, gyro sensor 1112, pressure sensor 1113, fingerprint sensor 1114, optical sensor 1115, and proximity sensor 1116.
Acceleration sensor 1111 may detect acceleration levels in three coordinate axes of a coordinate system established with terminal 1100. For example, the acceleration sensor 1111 may be configured to detect components of the gravitational acceleration in three coordinate axes. The processor 1101 may control the touch display screen 1105 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1112 may detect a body direction and a rotation angle of the terminal 1100, and the gyro sensor 1112 may cooperate with the acceleration sensor 1111 to acquire a 3D motion of the user with respect to the terminal 1100. From the data collected by gyroscope sensor 1112, processor 1101 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1113 may be disposed on a side bezel of terminal 1100 and/or on an underlying layer of touch display screen 1105. When the pressure sensor 1113 is disposed on the side frame of the terminal 1100, the holding signal of the terminal 1100 from the user can be detected, and the processor 1101 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1113. When the pressure sensor 1113 is disposed at the lower layer of the touch display screen 1105, the processor 1101 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1105. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1114 is configured to collect a fingerprint of the user, and the processor 1101 identifies the user according to the fingerprint collected by the fingerprint sensor 1114, or the fingerprint sensor 1114 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the user is authorized by the processor 1101 to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 1114 may be disposed on the front, back, or side of terminal 1100. When a physical button or vendor Logo is provided on the terminal 1100, the fingerprint sensor 1114 may be integrated with the physical button or vendor Logo.
Optical sensor 1115 is used to collect ambient light intensity. In one embodiment, the processor 1101 may control the display brightness of the touch display screen 1105 based on the ambient light intensity collected by the optical sensor 1115. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1105 is turned down. In another embodiment, processor 1101 may also dynamically adjust the shooting parameters of camera assembly 1106 based on the ambient light intensity collected by optical sensor 1115.
Proximity sensor 1116, also referred to as a distance sensor, is typically disposed on a front panel of terminal 1100. Proximity sensor 1116 is used to capture the distance between the user and the front face of terminal 1100. In one embodiment, the touch display screen 1105 is controlled by the processor 1101 to switch from a bright screen state to a dark screen state when the proximity sensor 1116 detects that the distance between the user and the front face of the terminal 1100 is gradually decreasing; when the proximity sensor 1116 detects that the distance between the user and the front face of the terminal 1100 becomes gradually larger, the touch display screen 1105 is controlled by the processor 1101 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 11 does not constitute a limitation of terminal 1100, and may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
Fig. 12 is a schematic structural diagram of a server 1200 according to an embodiment of the present invention, where the server 1200 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1201 and one or more memories 1202, where the memory 1202 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 1201 to implement the message processing method provided by each method embodiment. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in an electronic device to perform the message processing method in the above-described embodiments is also provided. For example, the computer-readable storage medium may be a ROM (Read-Only Memory), a RAM (random access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (15)

1. A method of message processing, the method comprising:
when a first user is detected to join a target group, determining user information of the first user, wherein the target group comprises at least one second user;
determining a conversation message of the first user in the target group based on the user information of the first user, wherein the conversation message is used for representing the greeting of the first user to the at least one second user;
and issuing the session message of the first user in the target group.
2. The method of claim 1, wherein the determining the session message of the first user in the target group based on the user information of the first user comprises:
acquiring a target session template of the target group;
and generating the session message of the first user according to the user information of the first user and the target session template of the target group.
3. The method of claim 1, wherein the determining the session message of the first user in the target group based on the user information of the first user comprises:
acquiring user information of at least one second user in the target group except the first user;
and determining the conversation message of the first user in the target group according to the user information of the first user and the user information of the at least one second user.
4. The method of claim 3, wherein the determining the session message of the first user in the target group according to the user information of the first user and the user information of the at least one second user comprises:
acquiring a session message generation model, wherein the session message generation model is used for generating a session message of a session initiating user based on user information of the session initiating user and user information of a session receiving user;
and inputting the user information of the first user and the user information of the at least one second user into the conversation message generation model, and outputting the conversation message of the first user.
5. The method of claim 2, wherein the obtaining the target session template of the target group comprises any one of:
according to the group type of the target group, acquiring a plurality of session templates corresponding to the group type of the target group from the corresponding relation between the group type and the session templates, and screening out a target session template matched with the user information of the first user from the plurality of session templates of the target group;
acquiring a target template identifier selected by the first user, and acquiring a target session template corresponding to the target template identifier;
and acquiring a preset template identifier bound to the target group, and acquiring a target session template corresponding to the preset template identifier.
6. The method of claim 2, wherein the generating the session message of the first user according to the user information of the first user and the target session template of the target group comprises:
extracting at least one of position information of the first user or target sub-group information to which the first user belongs and a user identifier of the first user from user information of the first user according to the target session template;
adding at least one of the position information of the first user or the target sub-group information to which the first user belongs and the user identifier of the first user to the target session template to obtain session information of the first user;
the target sub-population information is used for indicating a sub-population to which the first user belongs in a plurality of sub-populations included in a target user population, and the target user population is a population formed by the first user and at least one second user in the target population.
7. The method of claim 1, further comprising at least one of:
acquiring the number of users in the target group, and when the number of users is smaller than the target number, executing the step of determining the session message of the first user in the target group based on the user information of the first user;
and when the automatic hello function of the target group is started, executing the step of determining the session message of the first user in the target group based on the user information of the first user, wherein the automatic hello function refers to a function of automatically sending the session message for the user joining the group.
8. The method of claim 1, wherein the publishing the session message of the first user in the target group comprises any one of:
acquiring a session starting time interval of the target group, and issuing the session message of the first user in the target group when the current time is within the session starting time interval;
and acquiring a session restricted area of the target group, and issuing the session message of the first user in the target group when the current position of the first user is located in the session restricted area.
9. A method of message processing, the method comprising:
when a target event is detected, sending a joining request to a server, wherein the joining request is used for requesting to join a target group, and the target group comprises at least one second user;
when a first user joins the target group, receiving a session message of the first user issued by the server in the target group, wherein the session message is determined by the server based on user information of the first user, and the session message is used for representing a greeting of the first user to the at least one second user;
displaying the conversation message on a conversation interface of the target group.
10. The method of claim 9, further comprising:
displaying a plurality of template options on an application interface, and acquiring a target template identifier corresponding to a selected target template option in the plurality of template options;
and sending the target template identification to the server.
11. The method according to claim 9, wherein the target event is an account activation operation triggered by the first user in an application interface, or a group application operation triggered by the first user in the application interface, or a group invitation operation to the first user in the application interface.
12. A message processing apparatus, characterized in that the apparatus comprises:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining user information of a first user when the first user is detected to join a target group, and the target group comprises at least one second user;
the determining module is further configured to determine, based on the user information of the first user, a session message of the first user in the target group, where the session message is used to represent a greeting of the first user to the at least one second user;
and the publishing module is used for publishing the session message of the first user in the target group.
13. A message processing apparatus, characterized in that the apparatus comprises:
the system comprises a sending module, a sending module and a sending module, wherein the sending module is used for sending a joining request to a server when a target event is detected, the joining request is used for requesting to join a target group, and the target group comprises at least one second user;
a receiving module, configured to receive, when a first user joins the target group, a session message of the first user issued by the server in the target group, where the session message is determined by the server based on user information of the first user, and the session message is used to represent a greeting of the first user to the at least one second user;
and the display module is used for displaying the conversation message on a conversation interface of the target group.
14. An electronic device, comprising one or more processors and one or more memories having stored therein at least one instruction that is loaded and executed by the one or more processors to perform operations performed by the message processing method of any of claims 1 to 11.
15. A computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to perform operations performed by the message processing method of any one of claims 1 to 11.
CN201910125685.5A 2019-02-20 2019-02-20 Message processing method and device, electronic equipment and storage medium Active CN109639444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910125685.5A CN109639444B (en) 2019-02-20 2019-02-20 Message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910125685.5A CN109639444B (en) 2019-02-20 2019-02-20 Message processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109639444A CN109639444A (en) 2019-04-16
CN109639444B true CN109639444B (en) 2021-06-18

Family

ID=66065648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910125685.5A Active CN109639444B (en) 2019-02-20 2019-02-20 Message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109639444B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727877B (en) * 2019-09-18 2023-05-12 上海大智慧信息科技有限公司 Group operation method and system suitable for social software
CN110971424B (en) * 2019-11-29 2021-10-29 广州市百果园信息技术有限公司 Message processing method, device and system, computer equipment and storage medium
CN113239003A (en) * 2021-05-21 2021-08-10 携程商旅信息服务(上海)有限公司 Automatic message prompting method, system, equipment and medium
CN114157627B (en) * 2021-12-09 2023-05-23 北京达佳互联信息技术有限公司 Group processing method, device, electronic equipment and medium
CN116055484A (en) * 2022-05-25 2023-05-02 李继昂 Interactive data processing method and server based on big data

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100450225C (en) * 2006-03-01 2009-01-07 华为技术有限公司 Method and system for realizing work group
US20080071875A1 (en) * 2006-08-21 2008-03-20 Stephanie Koff Systems and methods for multimedia messaging
CN101588323B (en) * 2009-06-11 2011-07-06 腾讯科技(深圳)有限公司 Method and system for publishing message actively in IM group by using chat robots
CN101631291B (en) * 2009-07-02 2012-06-13 中兴通讯股份有限公司 Method and device for group sending of short message
CN102044009A (en) * 2009-10-23 2011-05-04 华为技术有限公司 Group recommending method and system
CN103024066B (en) * 2012-12-26 2017-05-17 广东欧珀移动通信有限公司 Method for automatically pushing terminal themes
US20150039710A1 (en) * 2013-08-05 2015-02-05 John C. Feghali System and method for sending and receiving action-based digital greeting cards
CN104168179A (en) * 2014-07-24 2014-11-26 小米科技有限责任公司 Information sending method and device
CN105991847B (en) * 2015-02-16 2020-11-20 北京三星通信技术研究有限公司 Call method and electronic equipment
CN105763420B (en) * 2016-02-04 2019-02-05 厦门幻世网络科技有限公司 A kind of method and device of automatic information reply
CN107040450B (en) * 2016-07-20 2018-06-01 平安科技(深圳)有限公司 Automatic reply method and device
CN106302996B (en) * 2016-07-29 2020-01-31 腾讯科技(深圳)有限公司 Message display method and device
CN108763548A (en) * 2018-05-31 2018-11-06 北京百度网讯科技有限公司 Collect method, apparatus, equipment and the computer readable storage medium of training data

Also Published As

Publication number Publication date
CN109639444A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN109639444B (en) Message processing method and device, electronic equipment and storage medium
CN111324259B (en) Group creation method, device and storage medium
CN110278464B (en) Method and device for displaying list
CN112492339B (en) Live broadcast method, device, server, terminal and storage medium
CN112118477B (en) Virtual gift display method, device, equipment and storage medium
CN112764608B (en) Message processing method, device, equipment and storage medium
CN112583806B (en) Resource sharing method, device, terminal, server and storage medium
CN113204298A (en) Method and device for displaying release progress, electronic equipment and storage medium
CN111343346B (en) Incoming call pickup method and device based on man-machine conversation, storage medium and equipment
CN110102063B (en) Identification binding method, device, terminal, server and storage medium
CN113098700A (en) Group creation method and device, electronic equipment and storage medium
CN111106997B (en) Message reminding method, device, equipment and storage medium
CN111126958A (en) Schedule creating method, schedule creating device, schedule creating equipment and storage medium
CN109218169B (en) Instant messaging method, device and storage medium
CN112311661B (en) Message processing method, device, equipment and storage medium
CN111130985B (en) Incidence relation establishing method, device, terminal, server and storage medium
CN110958173A (en) Mail sending method, device, equipment and storage medium
CN116418771A (en) Message display method, message processing method, device and electronic equipment
CN113518198B (en) Session interface display method, conference interface display method, device and electronic equipment
CN111245629B (en) Conference control method, device, equipment and storage medium
CN111131619B (en) Account switching processing method, device and system
CN112087366B (en) Account management method and device and instant messaging system
CN114546188A (en) Interaction method, device and equipment based on interaction interface and readable storage medium
CN111444289A (en) Incidence relation establishing method
CN112600806B (en) Audio playing method, device, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant