Method for establishing social relationship
Through the 5G messaging service, users can receive and reply to friend requests without installing social applications, and use social IDs to establish social relationships, which solves the problems of low efficiency and success rate in establishing social relationships in the existing technology, and improves the establishment efficiency and success rate.
Patent Information
- Application Number
- CN202410981958.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-11
AI Technical Summary
The efficiency and success rate of existing methods of establishing social relationships are low. Especially when the other party has not installed social software or the user has not used it for a long time, it is difficult to confirm the friend application, making it difficult to establish social relationships.
Through the 5G messaging service, users can receive and reply to friend requests without installing social applications, and use the first social ID and the second social ID to establish relationships in social applications, enabling the establishment of social relationships without installing applications. .
It improves the efficiency and success rate of establishing social relationships, lowers the user threshold, enables users to initiate and reply to friend requests without installing social applications, and realizes a closed-loop business process.
Smart Images

Figure CN118764458A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a method, device, electronic device, storage medium and program product for establishing a social relationship. Background Art
[0002] With the rapid development of Internet technology, human communication and social methods have gradually upgraded with the advancement of technology. From traditional letters, landlines and mobile phones, we have once again entered the era of mobile Internet. In particular, the rise of various social software has enabled people to have the opportunity to connect to all their social friends with just a mobile phone, follow and share their friends' latest updates, and make the whole world more closely connected.
[0003] In some scenarios, to establish a social relationship on a new social platform, users need to first download the social software of the social platform, and then send a friend request to the other party in the social software. If the other party has not installed the social software, the invitation will be silent for a long time, and the social relationship of friends cannot be formed. Even if the other party has installed the social software, if the user does not use the social software for a long time, the friend request cannot be confirmed smoothly, and the closed loop of the social relationship cannot be completed. The current method will lead to low efficiency and success rate in establishing social relationships. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for establishing social relationships, which solve the problem of low efficiency and success rate in establishing social relationships.
[0005] In order to solve the above technical problems, the embodiments of the present application are implemented as follows:
[0006] In the first aspect, an embodiment of the present application provides a method for establishing a social relationship, and the method for establishing a social relationship includes: obtaining a request for establishing a social relationship initiated by a first user terminal to a second user terminal, where the social relationship is a friend relationship in a social application, and the request carries a first social ID of a first user of the first user terminal and a second social ID of a second user of the second user terminal; sending a first 5G message to the second user terminal, where the first 5G message carries the request; receiving a second 5G message returned by the second user terminal, where the second 5G message is a reply message of the second user of the second user terminal to the first 5G message; if the second 5G message carries an identifier of consent to establish a relationship, using the first social ID and the second social ID to establish a social relationship between the first user and the second user in the social application.
[0007] In a second aspect, an embodiment of the present application provides another method for establishing a social relationship, which includes: receiving a first input, the first input including reply information for replying based on a card message body of a first 5G message, the first 5G message carrying a request for establishing a social relationship initiated by a first user terminal to a second user terminal, the social relationship being a friend relationship in a social application, the request carrying a first social ID of a first user of the first user terminal and a second social ID of a second user of the second user terminal; in response to the first input, sending a second 5G message to the first user terminal, the second 5G message carrying reply information; if the reply information includes an identifier of consent to establish a relationship, a social relationship between the first user and the second user in the social application is established through the server, and the social relationship is established by the server using the first social ID and the second social ID.
[0008] In a third aspect, an embodiment of the present application provides a device for establishing a social relationship, and the device for establishing a social relationship includes: an acquisition module, used to obtain a request for establishing a social relationship initiated by a first user terminal to a second user terminal, where the social relationship is a friend relationship in a social application, and the request carries a first social ID of a first user of the first user terminal and a second social ID of a second user of the second user terminal; a sending module, used to send a first 5G message to the second user terminal, where the first 5G message carries the request; a receiving module, used to receive a second 5G message returned by the second user terminal, where the second 5G message is a reply message of the second user of the second user terminal to the first 5G message; and an establishment module, used to use the first social ID and the second social ID to establish a social relationship between the first user and the second user in the social application if the second 5G message carries an identifier for agreeing to establish a relationship.
[0009] In a fourth aspect, an embodiment of the present application provides another device for establishing a social relationship, which includes: a receiving module for receiving a first input, the first input including reply information for replying based on a card message body of a first 5G message, the first 5G message carrying a request for establishing a social relationship initiated by a first user terminal to a second user terminal, the social relationship being a friend relationship in a social application, the request carrying a first social ID of a first user of the first user terminal and a second social ID of a second user of the second user terminal; a sending module for sending a second 5G message to the first user terminal in response to the first input, the second 5G message carrying reply information; an establishing module for establishing a social relationship between the first user and the second user in the social application through a server if the reply information includes an identifier of consent to establish a relationship, the social relationship being established by the server using the first social ID and the second social ID.
[0010] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to implement the steps of the method for establishing social relationships as mentioned in the first aspect or the second aspect.
[0011] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for establishing a social relationship as mentioned in the first aspect or the second aspect are implemented.
[0012] In the seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the steps of the method for establishing a social relationship as mentioned in the first aspect or the second aspect.
[0013] Through the technical solution disclosed in the embodiment of the present application, by obtaining a request for establishing a social relationship initiated by the first user terminal to the second user terminal, the social relationship is a friend relationship in a social application, and the request carries the first social ID of the first user of the first user terminal and the second social ID of the second user of the second user terminal; then sending a first 5G message to the second user terminal, the first 5G message carries the request, so that the second user does not need to download the social application on the user terminal, and can receive the request to add a friend in the form of a 5G message; receiving the second 5G message returned by the second user terminal, the second 5G message is a reply message of the second user of the second user terminal to the first 5G message, so that the second user can directly reply to the request on the basis of the first 5G message through a 5G message; if the second 5G message carries an identifier of consent to establish a relationship, the first social ID and the second social ID are used to establish a social relationship between the first user and the second user in the social application. In this way, the present application can make full use of 5G messages, and users can reply to the request to initiate a friend application without installing the application software of the social application, and after the user replies to the first 5G message to agree to establish a relationship, reply through the second 5G message and establish a social relationship of the social application. Improved the efficiency and success rate of establishing social relationships. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0015] Figure 1 A schematic diagram of the structure of a system for establishing social relationships provided in an embodiment of the present application;
[0016] Figure 2 A flowchart of a method for establishing a social relationship provided in an embodiment of the present application;
[0017] Figure 3 A schematic diagram of a process for sending a first 5G message to a second user terminal provided in an embodiment of the present application;
[0018] Figure 4 A flowchart of another method for establishing a social relationship provided in an embodiment of the present application;
[0019] Figure 5 A schematic diagram of a message processing flow in which a second user agrees to a first user's request to add a friend provided in an embodiment of the present application;
[0020] Figure 6 A schematic diagram of a message processing flow in which a second user rejects a first user's request to add a friend provided in an embodiment of the present application;
[0021] Figure 7 A schematic diagram of a processing flow of a second user downloading a client of a social application provided in an embodiment of the present application;
[0022] Figure 8 A schematic diagram of a module composition of a device for establishing a social relationship provided in an embodiment of the present application;
[0023] Fig. 9 A schematic diagram of another module composition of the device for establishing a social relationship provided in an embodiment of the present application;
[0024] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for establishing social relationships, which solve the problem of low efficiency and success rate in establishing social relationships.
[0026] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0027] First, the social relationship establishment system provided in the embodiment of the present application is described. Figure 1 As shown, an embodiment of the present application provides a system for establishing social relationships, which includes: a first user terminal, a second user terminal, a server, a 5G message service providing platform, a message as a platform and a 5G message center.
[0028] The message is that the platform is configured with a chatbot of a social application corresponding to the request.
[0029] The first user terminal sends a request to the server to establish a social relationship with the second user terminal. The social relationship is a friend relationship in a social application. The request carries a first social ID of a first user of the first user terminal and a second social ID of a second user of the second user terminal.
[0030] The server calls the service interface of the 5G message service provider platform to send the first 5G message to the message platform. The first 5G message carries the request and the service identifier of the chatbot.
[0031] The chatbot corresponding to the service identifier forwards the first 5G message to the 5G message center 106.
[0032] The 5G message center sends the first 5G message to the second user terminal;
[0033] The second user terminal returns a second 5G message to the server in response to the first 5G message; the second 5G message is a reply message of the second user of the second user terminal in response to the first 5G message.
[0034] If the second 5G message carries an identifier for consent to establish a relationship, the server uses the first social ID and the second social ID to establish a social relationship between the first user and the second user in the social application.
[0035] Specifically, the first user terminal is installed with a client of a social app and is configured with a Rich Communication Suite (RCS), the server 103 is configured with a social relationship chain module, a 5G messaging service provider platform (Chatbot Service Provider, CSP) access module and a social relationship chain database, and the messaging as a platform (MaaP) is configured with a chatbot service. The server is the server of the social app.
[0036] The following is a detailed description of the system for establishing a social application provided in the embodiment of the present application:
[0037] The first user terminal has a client of a social application installed on it. The first user of the first user terminal initiates a request to add a friend to the second user of the second user terminal on the client of the social application, i.e., requests to establish a friend relationship between the first user and the second user. The request may be a Hypertext Transfer Protocol (HTTP) request, and the request carries the first social ID of the first user of the first user terminal and the second social ID of the second user of the second user terminal. The social relationship chain module on the server side receives the HTTP request for adding a friend sent by the first user to the second user through the client of the social application, and passes the data carried in the request to the CSP access module through the bus. The CSP access module calls the CSP service interface to send the first 5G message to MaaP. The first 5G message carries the request, the service identification id of the chatbot, and the user information of the first user terminal, etc.
[0038] MaaP finds the chatbot corresponding to the service identification ID and forwards the first 5G message to the 5G Message Center (5G Message Center, 5GMC) through the Session Initiation Protocol (Sip). The 5GMC routes the first 5G message to the second user terminal according to the second social ID.
[0039] The second user opens the card information of the first 5G message of the chatbot service on the second user terminal, and checks the brief description of the friend adding request sent by the first user, as well as the functional introduction of the social application. If the second user recognizes the function of the social application and the sincerity of the first user in adding a friend after viewing the first 5G message, and intends to agree to establish a friend relationship with the first user, the second user clicks "Agree" on the message body of the card information of the first 5G message, and the reply message agreeing to the friend request is transmitted uplink through the 5G message. 5GMC forwards the second 5G message of the second user agreeing to the first user adding a friend to MaaP, and MaaP replies the second 5G message uplink to the CSP system through the access layer. The CSP system and the CSP access module on the server side transmit data through the HTTP interface. The data includes the basic information of the second user and the reply message of the second user agreeing to the first user adding a friend.
[0040] The CSP access module transmits the data to the social relationship chain module, which completes the establishment of the social relationship chain between the first user and the second user and stores it in the database. The data table records and stores the user's friend social relationship. The social relationship friend database is as follows:
[0041]
[0042] The first user ID may be the user's mobile phone number, the second user ID may be automatically assigned by the social application, or the second user ID may be the second user's mobile phone number.
[0043] After receiving the data sent by the CSP system, the CSP access module on the server side calls the CSP standard interface and sends a 5G message to the first user terminal according to the social-specific chatbot service, informing the first user of the operation result of the second user.
[0044] If the second user disagrees with the first user's request to add a friend, the second user clicks the "Reject" button on the chatbot card message body of the first 5G message, and the second user's reply message rejecting the first user's request to add a friend will be sent uplink via the 5G message. 5GMC forwards the 5G message of the second user rejecting the first user's request to add a friend to MaaP, and MaaP sends the 5G message uplink to the CSP system through the access layer. After the CSP access module on the server side of the social application receives the data sent by the CSP system, it calls the CSP standard interface and sends a 5G message to the first user terminal according to the social exclusive chatbot service, informing the second user of the operation result, completing the business process closed loop.
[0045] If the second user has further interest in using the simple function introduction of the social application in the card message of the chatbot of the first 5G message, the second user clicks the "Download Client" button on the card message body of the chatbot to complete the business process closed loop.
[0046] The following is an explanation of the method for establishing a social relationship provided by the embodiment of the present application in combination with the above-mentioned system for establishing a social relationship. For example, Figure 2 As shown, the embodiment of the present application provides a method for establishing a social relationship. The execution subject of the method may be a server. The method for establishing a social relationship may specifically include the following steps:
[0047] In step S201, a request for establishing a social relationship initiated by a first user terminal to a second user terminal is obtained.
[0048] The social relationship is a friend relationship in a social application, and the request carries a first social ID of a first user of the first user terminal and a second social ID of a second user of the second user terminal.
[0049] Specifically, the social ID may be a mobile phone number of the first user or the second user, or an ID randomly assigned to the first user or the second user by a social application.
[0050] In step S203, the first 5G message is sent to the second user terminal.
[0051] The first 5G message carries the request.
[0052] In one possible implementation, sending the first 5G message to the second user terminal includes: calling the service interface of the 5G message service provider platform to send the first 5G message to the message platform, the message platform is configured with a chat robot of the social application corresponding to the request, and the first 5G message also carries the service identifier of the chat robot; forwarding the first 5G message to the 5G message center through the chat robot corresponding to the service identifier; and sending the first 5G message to the second user terminal through the 5G message center.
[0053] like Figure 3 As shown, sending the first 5G message to the second user terminal may be as follows:
[0054] A user terminal (first user terminal) calls the RCS interface on the client side of the social app to initiate a friend adding request to the social relationship chain module on the social app server side. The social app server side passes the request data of the social relationship chain module to the CSP access module through the bus. The CSP access module calls the CSP standard service interface to send the first 5G message to the Maap platform, which carries the chatbot service ID and the user information of A user terminal (the user information of the first user). The CSP system forwards the first 5G message to the Maap platform through the access layer. The Maap platform finds the chatbot service with the corresponding ID and forwards the first 5G message to the 5GMC system through the SIP protocol. 5GMC routes the first 5G message to B user terminal (second user terminal) based on the user information of the first user terminal. B user (second user) calls the RCS module on the B user terminal to open the chatbot card message of the first 5G message, and views the brief description of the friend adding request sent by A user (first user), as well as some functional introductions of the social app.
[0055] In step S205, a second 5G message returned by the second user terminal is received.
[0056] Among them, the second 5G message is a reply message of the second user of the second user terminal to the first 5G message.
[0057] In one possible implementation, the first 5G message also carries application function information of the social application and user information of the first user; receiving the second 5G message returned by the second user terminal includes: displaying the application function information of the social application, the user information of the first user and the card message body of the first 5G message through the second user terminal; the second user through the second user terminal replies based on the card message body of the first 5G message to obtain a second 5G message, and returning the second 5G message through the second user terminal; receiving the second 5G message.
[0058] Specifically, the card message body includes an agree button, a reject button, and a download button. If the user clicks the agree button, it means that the second user is willing to establish a friend relationship with the first user, and the second 5G message carries an identification of agreeing to establish a relationship; if the user clicks the reject button, it means that the second user is unwilling to establish a friend relationship with the first user, and the second 5G message carries an identification of rejecting to establish a relationship; if the user clicks the download button, it means that the user wants to download the application software of the social application.
[0059] In step S207, if the second 5G message carries an identifier for agreeing to establish a relationship, the first social ID and the second social ID are used to establish a social relationship between the first user and the second user in the social application.
[0060] After receiving the second 5G message returned by the second user terminal, the method also includes: calling the service interface of the 5G message service provider platform to send the second 5G message to the message platform; forwarding the second 5G message to the 5G message center through the chat robot; and sending the second 5G message to the first user terminal through the 5G message center.
[0061] Through the technical solution disclosed in the embodiment of the present application, by obtaining a request for establishing a social relationship initiated by the first user terminal to the second user terminal, the social relationship is a friend relationship in a social application, and the request carries the first social ID of the first user of the first user terminal and the second social ID of the second user of the second user terminal; then sending a first 5G message to the second user terminal, the first 5G message carries the request, so that the second user does not need to download the social application on the user terminal, and can receive the request to add a friend in the form of a 5G message; receiving the second 5G message returned by the second user terminal, the second 5G message is a reply message of the second user of the second user terminal to the first 5G message, so that the second user can directly reply to the request on the basis of the first 5G message through a 5G message; if the second 5G message carries an identifier of consent to establish a relationship, the first social ID and the second social ID are used to establish a social relationship between the first user and the second user in the social application. In this way, the present application can make full use of 5G messages, and users can reply to the request to initiate a friend application without installing the application software of the social application, and after the user replies to the first 5G message to agree to establish a relationship, reply through the second 5G message and establish a social relationship of the social application. Improved the efficiency and success rate of establishing social relationships.
[0062] The following is an explanation of the method for establishing a social relationship provided by the embodiment of the present application in combination with the above-mentioned system for establishing a social relationship. For example, Figure 4 As shown, the embodiment of the present application provides a method for establishing a social relationship. The execution subject of the method may be a second user terminal. The method for establishing a social relationship may specifically include the following steps:
[0063] Step S401, receiving a first input, the first input including reply information based on a card message body of a first 5G message.
[0064] The first 5G message carries a request initiated by the first user terminal to the second user terminal to establish a social relationship, where the social relationship is a friend relationship in a social application, and the request carries the first social ID of the first user of the first user terminal and the second social ID of the second user of the second user terminal.
[0065] Step S403: In response to the first input, send a second 5G message to the first user terminal, and the second 5G message carries reply information.
[0066] In one possible implementation, sending a second 5G message to the first user terminal includes: calling the service interface of the 5G message service provider platform to send the second 5G message to the message platform, the message platform is configured with a chat robot of the social application corresponding to the request, and the second 5G message also carries the service identifier of the chat robot; forwarding the second 5G message to the 5G message center through the chat robot corresponding to the service identifier; and sending the second 5G message to the first user terminal through the 5G message center.
[0067] Step S405: If the reply information includes an identifier for agreeing to establish a relationship, a social relationship between the first user and the second user in the social application is established through the server.
[0068] The social relationship is established by the server using the first social ID and the second social ID.
[0069] Furthermore, before receiving the first input, the method also includes: displaying application function information of the social application, user information of the first user, and a card message body of the first 5G message; receiving the first input includes: receiving a first input from a second user on a target button in the card message body of the first 5G message.
[0070] Specifically, the application function information of the social application, the user information of the first user, and the card message body of the first 5G message can be displayed on the second user terminal. The user information includes but is not limited to the mobile phone number of the first user, the personal information of the first user, etc. The card message body includes a download button, an agree button, and a reject button. The target button can be an agree button and a reject button. The first input can be clicking, selecting, or long pressing the target button. When the second user clicks the agree button, it indicates that he is willing to establish a social relationship with the first user. When the second user clicks the reject button, it indicates that he refuses to establish a social relationship with the first user.
[0071] For example, the present application further describes the method for establishing the above social relationship. Figure 5 , shows the message processing flow of the second user agreeing to the first user's request to add a friend:
[0072] User B (the second user) clicks the "Agree" button on the card message body of the first 5G message on the user B terminal (the second user terminal), and agrees to request that the friend's reply will be uplinked via the 5G message.
[0073] 5GMC forwards the second 5G message from user B terminal (second user terminal) that user B agrees to user A (first user) adding a friend to the Maap platform.
[0074] The Maap platform sends the second 5G message to the CSP system through the access layer.
[0075] The CSP system and the CSP access module on the server side of the social app transmit data through the HTTP interface. The data includes the basic information of user B (the second user) and the reply information of user B (the second user) agreeing to user A adding a friend.
[0076] The CSP access module transmits the data to the social relationship chain module on the server side, and the social relationship chain module completes the establishment of the social relationship between user A and user B.
[0077] The server records the friend relationship in the friend library and stores it in the database.
[0078] Returns the database entry results of the social relationship chain module.
[0079] The social relationship chain module returns the database operation result to the CSP access module.
[0080] The server notifies the client of user A's social app of the result of user B's operation.
[0081] The CSP access module calls the CSP standard interface and sends a second 5G message to user A's user terminal according to the social-specific chatbot service to inform user B of the operation result.
[0082] The CSP sends the second 5G message to the Maap platform through the access layer.
[0083] The Maap platform forwards the second 5G message to the 5GMC.
[0084] 5GMC routes and forwards the second 5G message to user A's terminal according to the terminal information of user A's terminal, informing user A that user B agrees to add the friend request, thus completing the closed loop of the interaction process.
[0085] See also Figure 6 , shows the message processing flow of the second user rejecting the first user's request to add a friend:
[0086] User B (the second user) clicks the "Reject" button on the card message body of the first 5G message on the user B terminal (the second user terminal), and the reply to the request to reject the friend addition will be uplinked through the second 5G message.
[0087] 5GMC forwards the second 5G message in which user B refuses user A to add a friend to the Maap platform.
[0088] The Maap platform sends the second 5G message to the CSP system through the access layer.
[0089] The CSP system and the CSP access module on the server side of the social app transmit data through the HTTP interface. The data includes the basic information of user B and the reply information of user B refusing user A to add him as a friend.
[0090] The server notifies user B’s operation result to user A’s social app client.
[0091] The CSP access module calls the CSP standard interface and sends a second 5G message to user A's user terminal according to the social-specific chatbot service to inform user B of the operation result.
[0092] The CSP sends the second 5G message to the Maap platform through the access layer.
[0093] The Maap platform forwards the second 5G message to 5GMC.
[0094] 5GMC routes and forwards the second 5G message to user terminal A according to the terminal information of user terminal A, completing the closed loop of the interaction process.
[0095] In a possible implementation, the method also includes: receiving a second input from a second user in response to the first 5G message, the second input indicating downloading a social application; in response to the second input, displaying an H5 page of the social application; obtaining download resources of the social application from a server through the H5 page; and downloading the download resources through the H5 page.
[0096] Specifically, the card message body of the first 5G message can be displayed on the second user terminal, and the card message body includes a download button, so that the second user terminal receives the second input of the second user for the download button. The second input can be that the second user clicks the "download" button on the card message body of the first 5G message, or selects the "download" button, etc. Figure 7 As shown, the processing flow of the client of the second user downloading the social application is shown:
[0097] User B (the second user) clicks the "Download Client" button on the card message body of the first 5G message.
[0098] User terminal B (second user terminal) opens the browser / webview to enter the client of the social app and download the H5 page.
[0099] The H5 page transmits the download request of the social app client to the server via HTTP.
[0100] The server sends the download resources of the social app client (APK for Android and jumps to the corresponding Appstore shelf location for iOS) to the H5 front-end;
[0101] The H5 page executes the download command of the client of the social application, downloads the download resources, and completes the client download.
[0102] In this way, through the technical solution provided in the embodiment of the present application, there is no need to install the social application app based on 5G messages, and the messages can reach the user terminal. Friends can be added without the recipient user installing the corresponding social app, which lowers the threshold for users to establish social relationships with friends and improves the efficiency and success rate of establishing social relationships.
[0103] Secondly, configure the Chatbot service of the corresponding social app in the Maap platform, and then use the Maap access module to notify the recipient of the user's request to add friends in a standard 5G message. Even if the recipient has not installed the corresponding social app, he can enter the service chatbot of the social app through 5G messages, and browse the basic information of the initiator of the friend and a simple function introduction of the social app on the chatbot, and click the corresponding button to complete the addition of friends and the subsequent social app client download guidance, which fully utilizes the convenience and message delivery of the 5G message Maap service, completes the closed loop of the entire business process, lowers the threshold for customer acquisition, and improves business accessibility.
[0104] Corresponding to the method for establishing a social relationship provided in the above embodiment, based on the same technical concept, the embodiment of the present application also provides a device for establishing a social relationship. Figure 8 A schematic diagram of the module composition of a device for establishing a social relationship provided in an embodiment of the present application, wherein the device for establishing a social relationship is used to execute Figure 1 Describe the method of establishing social relationships, such as Figure 8 As shown, the social relationship establishment device 800 includes: an acquisition module 801, used to obtain a request for establishing a social relationship initiated by a first user terminal to a second user terminal, where the social relationship is a friend relationship in a social application, and the request carries a first social ID of a first user of the first user terminal and a second social ID of a second user of the second user terminal; a sending module 802, used to send a first 5G message to the second user terminal, where the first 5G message carries the request; a receiving module 803, used to receive a second 5G message returned by the second user terminal, where the second 5G message is a reply message of the second user of the second user terminal to the first 5G message; an establishment module 804, used to use the first social ID and the second social ID to establish a social relationship between the first user and the second user in the social application if the second 5G message carries an identifier for agreeing to establish a relationship.
[0105] It can be seen from the technical solutions provided by the above embodiments of the present application that the present application can make full use of 5G messages. Users can reply to requests for friend applications without installing the application software of the social application, and after the user replies to the first 5G message to agree to establish a relationship, the user replies through the second 5G message and establishes a social relationship of the social application. The efficiency and success rate of establishing social relationships are improved.
[0106] In a possible implementation, the sending module 802 is also used to call the service interface of the 5G message service provider platform to send a first 5G message to the message platform, where the message platform is configured with a chat robot of the social application corresponding to the request, and the first 5G message also carries the service identifier of the chat robot; the chat robot corresponding to the service identifier forwards the first 5G message to the 5G message center; and the first 5G message is sent to the second user terminal through the 5G message center.
[0107] In one possible implementation, the sending module 802 is also used to call the service interface of the 5G message service providing platform to send a second 5G message to the message platform; forward the second 5G message to the 5G message center through the chat robot; and send the second 5G message to the first user terminal through the 5G message center.
[0108] In one possible implementation, the receiving module 803 is also used to display application function information of the social application, user information of the first user and the card message body of the first 5G message through the second user terminal; the second user of the second user terminal replies based on the card message body of the first 5G message to obtain a second 5G message, and returns the second 5G message through the second user terminal; and receives the second 5G message.
[0109] In a possible implementation manner, the first social ID of the first user of the first user terminal is a mobile phone number corresponding to the first user terminal.
[0110] Corresponding to the method for establishing a social relationship provided in the above embodiment, based on the same technical concept, the embodiment of the present application also provides a device for establishing a social relationship. Fig. 9 A schematic diagram of the module composition of a device for establishing a social relationship provided in an embodiment of the present application, wherein the device for establishing a social relationship is used to execute Figure 4 Describe the method of establishing social relationships, such as Fig. 9As shown, the social relationship establishment device 900 includes: a receiving module 901, which is used to receive a first input, the first input includes reply information based on the card message body of the first 5G message, the first 5G message carries a request for establishing a social relationship initiated by the first user terminal to the second user terminal, the social relationship is a friend relationship in a social application, and the request carries the first social ID of the first user of the first user terminal and the second social ID of the second user of the second user terminal; a sending module 902, which is used to send a second 5G message to the first user terminal in response to the first input, and the second 5G message carries the reply information; an establishing module 903, which is used to establish a social relationship between the first user and the second user in the social application through the server if the reply information includes an identification of consent to establish a relationship, and the social relationship is established by the server using the first social ID and the second social ID.
[0111] This application can make full use of 5G messages. Users can reply to the request to initiate a friend application without installing the application software of the social application. After the user replies to the first 5G message to agree to establish a relationship, the user replies through the second 5G message and establishes a social relationship of the social application. The efficiency and success rate of establishing social relationships are improved.
[0112] In one possible implementation, the sending module 902 is also used to call the service interface of the 5G message service provider platform to send a second 5G message to the message platform, where the message platform is configured with a chat robot of the social application corresponding to the request, and the second 5G message also carries the service identifier of the chat robot; the chat robot corresponding to the service identifier forwards the second 5G message to the 5G message center; and the second 5G message is sent to the first user terminal through the 5G message center.
[0113] In one possible implementation, the receiving module 901 is also used to receive a second input from a second user in response to the first 5G message, where the second input indicates downloading a social application; in response to the second input, displaying an H5 page of the social application; obtaining download resources of the social application from a server through the H5 page; and downloading the download resources through the H5 page.
[0114] In a possible implementation, it also includes: a display module, used to display the card message body of the first 5G message, and the card message body includes a download button; a receiving module 901, also used to receive the second input of the second user for the download button.
[0115] In a possible implementation, the display module is also used to display application function information of the social application, user information of the first user, and the card message body of the first 5G message; the receiving module 901 is also used to receive a first input from a second user to a target button in the card message body of the first 5G message.
[0116] The device for establishing a social relationship provided in the embodiment of the present application can implement each process in the embodiment corresponding to the above-mentioned method for establishing a social relationship, and has the same or similar beneficial effects. To avoid repetition, it will not be described here.
[0117] It should be noted that the device for establishing a social relationship provided in the embodiment of the present application and the method for establishing a social relationship provided in the embodiment of the present application are based on the same application concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned method for establishing a social relationship, and has the same or similar beneficial effects, and the repetitive parts will not be repeated.
[0118] Corresponding to the method for establishing a social relationship provided in the above embodiment, based on the same technical concept, the embodiment of the present application further provides an electronic device, which is used to execute the method for establishing a social relationship. Fig.10 A schematic diagram of the structure of an electronic device for implementing each embodiment of the present application is shown in FIG. Fig.10 As shown. The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors 1001 and memory 1002, and the memory 1002 may store one or more storage applications or data. Among them, the memory 1002 may be a temporary storage or a permanent storage. The application stored in the memory 1002 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the electronic device.
[0119] Furthermore, the processor 1001 may be configured to communicate with the memory 1002 to execute a series of computer executable instructions in the memory 1002 on the electronic device. The electronic device may also include one or more power supplies 1003, one or more wired or wireless network interfaces 1004, one or more input and output interfaces 1005, and one or more keyboards 1006.
[0120] Specifically in this embodiment, the electronic device includes a processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate with each other through the bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to achieve the above Figure 2 or Figure 4 The various steps in the method embodiment are similar to those in the method embodiment, and have the beneficial effects of the above method embodiments. To avoid repetition, the embodiments of the present application will not be described again here.
[0121] This embodiment also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above Figure 2 or Figure 4 Each step in the method embodiment has the beneficial effects of the above method embodiments. To avoid repetition, the embodiments of the present application will not be described again here.
[0122] The present application provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the above Figure 2 or Figure 4 Each step in the method embodiment has the beneficial effects of the above method embodiments. To avoid repetition, the embodiments of the present application will not be described again here.
[0123] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0124] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0125] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0126] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0127] In a typical configuration, an electronic device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0128] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0129] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0130] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0131] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0132] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for establishing a social relationship, characterized in that: The method for establishing the social relationship includes: Obtaining a request initiated by a first user terminal to a second user terminal to establish a social relationship, where the social relationship is a friend relationship in a social application, and the request carries a first social ID of a first user of the first user terminal and a second social ID of a second user of the second user terminal; Sending a first 5G message to the second user terminal, where the first 5G message carries the request; receiving a second 5G message returned by the second user terminal, where the second 5G message is a reply message from a second user of the second user terminal in reply to the first 5G message; If the second 5G message carries an identifier for agreeing to establish a relationship, the first social ID and the second social ID are used to establish a social relationship between the first user and the second user in the social application.
2. The method for establishing a social relationship according to claim 1, characterized in that: The sending the first 5G message to the second user terminal includes: Calling the service interface of the 5G message service provider platform to send the first 5G message to the message-as-a-platform, where the message-as-a-platform is configured with a chat robot of the social application corresponding to the request, and the first 5G message also carries a service identifier of the chat robot; Forwarding the first 5G message to the 5G message center through the chat robot corresponding to the service identifier; The first 5G message is sent to the second user terminal through the 5G message center.
3. The method for establishing a social relationship according to claim 2, characterized in that: After receiving the second 5G message returned by the second user terminal, the method further includes: Calling the service interface of the 5G message service providing platform to send the second 5G message to the message platform; Forwarding the second 5G message to the 5G message center through the chat robot; The second 5G message is sent to the first user terminal through the 5G message center.
4. The method for establishing a social relationship according to claim 1, characterized in that: The first 5G message also carries application function information of the social application and user information of the first user; The receiving a second 5G message returned by the second user terminal includes: Displaying, by the second user terminal, application function information of the social application, user information of the first user, and a card message body of the first 5G message; The second user through the second user terminal replies based on the card message body of the first 5G message to obtain the second 5G message, and returns the second 5G message through the second user terminal; Receive the second 5G message.
5. The method for establishing a social relationship according to claim 1, characterized in that: The first social ID of the first user of the first user terminal is a mobile phone number corresponding to the first user terminal.
6. A method for establishing a social relationship, characterized in that: Applied to the second user terminal, the method for establishing a social relationship includes: Receive a first input, where the first input includes reply information based on a card message body of a first 5G message, where the first 5G message carries a request initiated by a first user terminal to the second user terminal to establish a social relationship, where the social relationship is a friend relationship in a social application, and the request carries a first social ID of a first user of the first user terminal and a second social ID of a second user of the second user terminal; In response to the first input, sending a second 5G message to the first user terminal, where the second 5G message carries the reply information; If the reply information includes an identification of consent to establish a relationship, a social relationship between the first user and the second user in the social application is established through the server, and the social relationship is established by the server using the first social ID and the second social ID.
7. The method for establishing a social relationship according to claim 6, characterized in that: The sending a second 5G message to the first user terminal includes: Calling the service interface of the 5G message service providing platform to send the second 5G message to the message platform, wherein the message platform is configured with a chat robot of the social application corresponding to the request, and the second 5G message also carries the service identifier of the chat robot; Forwarding the second 5G message to the 5G message center through the chat robot corresponding to the service identifier; The second 5G message is sent to the first user terminal through the 5G message center.
8. The method for establishing a social relationship according to claim 6, characterized in that: The method further comprises: receiving a second input from the second user in response to the first 5G message, where the second input indicates downloading the social application; In response to the second input, displaying an H5 page of the social application; Obtaining download resources of the social application from the server through the H5 page; The download resource is downloaded through the H5 page.
9. The method for establishing a social relationship according to claim 8, characterized in that: Before receiving a second input performed by the second user for the first 5G message, the method further includes: Display a card message body of the first 5G message, where the card message body includes a download button; The receiving a second input performed by the second user with respect to the first 5G message includes: A second input from the second user on the download button is received.
10. The method for establishing a social relationship according to claim 6, characterized in that: Before receiving the first input, the method further includes: Display application function information of the social application, user information of the first user, and a card message body of the first 5G message; The receiving a first input comprises: Receive a first input from a second user on a target button in the card message body of the first 5G message.
