Message processing method, device and system of chat robot, medium and product
By using message processing methods on both the user and merchant sides, and switching chatbot accounts across different carriers while carrying session identifiers, the difficulty of users sending messages on different carrier platforms is solved, achieving correct message transmission and accurate user identification.
Patent Information
- Application Number
- CN202510392333.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-12-12
AI Technical Summary
In existing technologies, users need to open chatbot accounts separately on each operator's platform, and the technology cannot identify messages from different SIM cards of the same user using dual SIM cards, resulting in message sending failures and making it difficult for users to confirm whether the selected chatbot account is correct.
By using message processing methods on both the user and merchant sides, the system obtains the carrier used in the target merchant's most recent interaction message, and switches the chatbot account between different carriers, carrying session identifiers and content information, to achieve cross-carrier transmission and association of messages.
This allows users to easily and quickly send messages to target merchants through any carrier, and the merchant side can identify messages from the same user across different carriers, ensuring correct message transmission and accurate replies.
Smart Images

Figure CN121125667A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of wireless communication, in particular to a message processing method and device, system, medium and product of a chat robot. BACKGROUND
[0002] Currently, each operator platform only supports the message exchange between the telephone card users operated by it and the chat robots on its platform. Therefore, the merchant needs to open chatbot accounts on each operator platform respectively, and connect these accounts to the message system of the merchant background.
[0003] In this case, all messages are one-to-one corresponding to the telephone cards of the users. When the user sends a message, the user must select the chatbot account of the same operator as the telephone card used to send the message, otherwise the sending will fail. Since the chatbot account lacks a clear identification, the user cannot confirm whether the correct chatbot account has been selected for sending. The user usually needs to manually find the merchant chatbot account corresponding to the current telephone card operator to send a message. Moreover, for the merchant, it is also impossible to identify the messages of the same user using different telephone cards. SUMMARY
[0004] The purpose of the embodiments of the present application is to provide a message processing method and device, system, medium and product of a chat robot, to solve the problem that the messages of multiple telephone users and the chat robots of the merchant cannot be effectively interacted.
[0005] In order to solve the above technical problems, the present specification is implemented as follows: In a first aspect, a message processing method of a chat robot is provided, applied to a user end, and the method comprises: obtaining a first operator used in the last interaction message with a target merchant and a second operator used in a first message to be sent to the target merchant; if the first operator is different from the second operator, sending the first message to the target merchant through a chat robot account of the second operator, the first message carrying a first session identifier, first content information, a second session identifier and second content information, the first content information being the content information carried in the last interaction message between the chat robot of the first operator and the target merchant, the first session identifier being the identifier of the session corresponding to the last interaction message, the second content information being the latest content information sent to the target merchant through the chat robot of the second operator, and the second session identifier being the identifier of the session corresponding to the first message, wherein the user end stores the chat robot accounts of the target merchant corresponding to multiple operators and the corresponding session identifiers.
[0006] In a second aspect, a message processing method of a chat robot is provided, applied to a merchant end, and the method comprises: receiving a first message sent by a target user through a chat robot account of a second operator, the first message carrying a first session identifier, first content information, a second session identifier and second content information, the first content information being content information carried in a last interactive message of the target user through a chat robot of a first operator and a target merchant, the first session identifier being an identifier of a session corresponding to the last interactive message, the second content information being a latest content information sent by the target user to the target merchant through the chat robot of the second operator, and the second session identifier being an identifier of a session corresponding to the first message; based on the first session identifier and the second session identifier, displaying the first content information and the second content information in a session corresponding to the chat robot account of the first operator to which the target merchant belongs.
[0007] In a third aspect, a message processing device of a chat robot is provided, applied to a user end, and the device comprises: an acquisition module, configured to acquire a first operator used when a last interactive message of a target merchant is received and a second operator used when a target first message is about to be sent to the target merchant; a sending module, configured to send the first message to the target merchant through a chat robot account of the second operator if the first operator is different from the second operator, the first message carrying a first session identifier, first content information, a second session identifier and second content information, the first content information being content information carried in a last interactive message through a chat robot of the first operator and the target merchant, the first session identifier being an identifier of a session corresponding to the last interactive message, the second content information being a latest content information sent through a chat robot of the second operator to the target merchant, and the second session identifier being an identifier of a session corresponding to the first message, wherein the user end stores session identifiers corresponding to chat robot accounts of a plurality of operators of the target merchant.
[0008] In a fourth aspect, a message processing device of a chat robot is provided, applied to a merchant end, and the device comprises: receive a first message sent by a target user through a chat robot account of a second operator, the first message carrying a first session identifier, first content information, a second session identifier and second content information, the first content information being information content carried by a last interactive message of the target user through a chat robot of a first operator and a target merchant, the first session identifier being an identifier of a session corresponding to the last interactive message, the second content information being a latest content information sent by the target user through the chat robot of the second operator to the target merchant, and the second session identifier being an identifier of a session corresponding to the first message; display the first content information and the second content information in a session corresponding to the chat robot account of the first operator to which the target merchant belongs, based on the first session identifier and the second session identifier.
[0009] In a fifth aspect, a message processing system of a chat robot is provided, including a user end and a merchant end, the user end performing steps of the method according to the first aspect, and the merchant end performing steps of the method according to the second aspect.
[0010] In a sixth aspect, a message processing apparatus of a chat robot is provided, including a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions being executed by the processor to implement steps of the method according to the first aspect or the second aspect.
[0011] In a seventh aspect, a readable storage medium is provided, the readable storage medium storing programs or instructions executable by a processor to implement steps of the method according to the first aspect or the second aspect.
[0012] In an eighth aspect, a computer program product is provided, the computer program product including a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform steps of the method according to the first aspect or the second aspect.
[0013] In the embodiment of the present application, the user terminal obtains a first operator used in the last interaction message with a target merchant and a second operator used in a first message to be sent to the target merchant; if the first operator is different from the second operator, the first message is sent to the target merchant through the chat robot account of the second operator, the first message carrying a first session identifier, first content information, a second session identifier and second content information, the first content information being content information carried in the last interaction message of the target merchant through the chat robot of the first operator, the first session identifier being an identifier of a session corresponding to the last interaction message, the second content information being the latest content information sent to the target merchant through the chat robot of the second operator, and the second session identifier being an identifier of a session corresponding to the first message, wherein the user terminal stores the target merchant in chat robot accounts of a plurality of operators and corresponding session identifiers, so that the user can conveniently and quickly send messages to the target merchant through any operator, and the merchant end can associate messages sent by the same user through different operator telephone cards, so that the target merchant can simply and directly identify the same user corresponding to different operator messages for accurate reply. BRIEF DESCRIPTION OF DRAWINGS
[0014] The accompanying drawings, which are included to provide a further understanding of the present application, constitute a part of the present application and illustrate the illustrative embodiments of the present application and its description, which serve to explain the present application, and do not constitute an improper limitation on the present application. In the drawings: Figure 1 is a flowchart of a message processing method of a chat robot of the first embodiment of the present application.
[0015] Figure 2 is a flowchart of a message processing method of a chat robot of the second embodiment of the present application.
[0016] Figure 3 is a flowchart of a message processing method of a chat robot of the embodiment of the present application.
[0017] Figure 4 is a structural block diagram of a message processing device of a chat robot of the first embodiment of the present application.
[0018] Figure 5 is a structural block diagram of a message processing device of a chat robot of the second embodiment of the present application.
[0019] Figure 6 is a structural block diagram of a message processing device of a chat robot of the third embodiment of the present application. DETAILED DESCRIPTION
[0020] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application. The drawing numbers in the present application are only used to distinguish each step in the solutions, and are not used to limit the execution order of each step, and the specific execution order is subject to the description in the specification.
[0021] In the prior art, all messages are one-to-one corresponding to the phone cards of users. When a user sends a message, the user must select a chatbot account of the same operator as the phone card used by the user to send the message, otherwise the sending will fail. Since the chatbot account lacks clear identification, the user cannot confirm whether the correct chatbot account is selected for sending. The user usually needs to manually search for the chatbot account of the current phone card operator to send a message. Moreover, for a merchant, it is also impossible to identify the messages of different phone cards of the same user using double phone cards.
[0022] For example, a car factory wants to send a message of invitation for a test drive to a user of a first operator, and needs to know that the mobile phone number of the user belongs to the first operator, and then sends a message to the user through the chatbot account of the first operator of the car factory. The user is a double-card user, and after receiving the test drive message through the phone card of the first operator, the user can only reply the information of the car factory through the phone card of the first operator. If the user replies the information using the phone card of the second operator in the mobile phone, since the platforms of the merchants of different operators are not interconnected, the information cannot be sent to the car factory. The user can only manually search for the chatbot account of the second operator of the car factory and send a message. When the chatbot account of the second operator of the car factory receives the message, it cannot identify that the user corresponding to the message is the same user as the first operator user corresponding to the invitation for a test drive message, and cannot handle the test drive.
[0023] In order to solve the problems in the prior art, the first embodiment of the present application provides a message processing method of a chat robot, which is applied to a user end. As shown in Figure 1 The method comprises the following steps 102 to 104.
[0024] Step 102, obtaining a first operator used in the last interaction message with a target merchant and a second operator used in a first message to be sent to the target merchant.
[0025] The user terminal is a mobile communication device using a terminal such as a mobile phone, i.e., a user equipment (UE). In this embodiment, the user terminal is adapted to multiple different operator phone cards. The user terminal can interact with a merchant registered or opened for a chatbot service of different operators through different operator phone cards, and the merchant can send messages to the user terminal using chatbots of different operators.
[0026] The last interaction message between the user terminal and the target merchant includes the last message sent by the user terminal to the target merchant and the last message received by the user terminal from the target merchant. The corresponding message when the user terminal interacts with the target merchant for the last time is communicated through the first operator. That is, the message is received or sent through the phone card of the first operator on the user terminal. The last interaction message belongs to historical messages, and the first message to be sent by the user terminal to the target merchant belongs to new messages. The target user inputs corresponding information content to the target merchant on the user equipment of the user terminal, and sends the information content after clicking the send button. The target user inputs the information content using the phone card of the second operator, and correspondingly, the user terminal sends the first message to the target merchant using the second operator.
[0027] In the embodiment of the present application, the message is a messaging as a platform (MAAP) message.
[0028] In step 104, if the first operator is different from the second operator, the first message is sent to the target merchant through the chatbot account of the second operator, the first message carries a first session identifier, first content information, a second session identifier, and second content information, the first content information is carried in the last interaction message between the chatbot of the first operator and the target merchant, the first session identifier is the identifier of the session corresponding to the last interaction message, the second content information is the latest content information sent to the target merchant through the chatbot of the second operator, and the second session identifier is the identifier of the session corresponding to the first message, wherein the user terminal stores the chatbot account and the corresponding session identifier of the target merchant corresponding to multiple operators.
[0029] For step 102, the first operator and the second operator obtained can be the same or different. The target user can send messages to the target merchant using the phone card of any operator without manually searching for the chatbot account of the target merchant corresponding to the currently selected phone card operator or confirming whether the correct operator chatbot account of the target merchant is selected.
[0030] If the second operator used by the target user when selecting to send the first message to the target merchant is different from the second operator used by the target user when last interacting with the target merchant, the user end encapsulates the first session identifier, the first content information, the second session identifier and the second content information into the first message to be sent.
[0031] The first content information is content information carried in the last interaction message of the target user with the target merchant through the chat robot of the first operator, which can be content information input by the target merchant on the merchant end and displayed to the target user, or content information input by the target user on the user end and displayed to the target merchant, and belongs to historical content information. The second content information is content information input by the target user on the user end and to be displayed to the target merchant, and belongs to new content information, i.e. the latest content information sent by the user end to the target merchant through the chat robot of the second operator.
[0032] The session identifier is a session ID used by the user end to distinguish different sessions, the first session identifier is an identifier of a session corresponding to the last interaction message, and the second session identifier is an identifier of a session corresponding to the first message. The sessions between the target user and the target merchant established through different operators correspond to different session identifiers. The target merchant has chat robot accounts of multiple operator platforms for sending messages to target users corresponding to operator telephone cards. The user end stores chat robot accounts of the target merchant corresponding to multiple operators and corresponding session identifiers, and the target merchant includes any merchant interacting with the target user.
[0033] By carrying the first session identifier, the first content information, the second session identifier and the second content information in the first message, the first message can reflect the association between the historical content information and the new content information transmitted by the target user through different operators. Correspondingly, even if the target merchant sends a message to the target user through the first operator and the target user replies to the message through the second operator, the user end can correctly deliver the message to the merchant end of the target merchant. After receiving the first message, the target merchant can also know the association between the first content information and the second content information, so that the target merchant can associate messages sent by the same target user using different operator telephone cards. Thus, it is identified that the second operator user corresponding to the first message and the first operator user corresponding to the historical message are the same user, and messages of different operator telephone cards corresponding to the same user using multiple telephone cards are identified.
[0034] Based on the scheme provided in the above embodiment, optionally, in the step 104, if the first operator is different from the second operator, the first message is sent to the target merchant through the chat robot account of the second operator, comprising: judging whether the first operator is same as the second operator by comparing the phone card identification used when the last interaction message is received and the phone card identification used when the first message is about to be sent; if the first operator is different from the second operator, finding the chat robot account of the second operator corresponding to the target merchant from the user end; and sending the first message to the target merchant through the chat robot account of the second operator found.
[0035] For the first message about to be sent, the user end checks whether the phone card of the last interaction message with the target merchant and the phone card of the first message about to be sent are the same or the same operator before sending, and the operator of the corresponding phone card can be obtained through the phone card identification, such as International Mobile Subscriber Identity (IMSI), and then it is judged whether the first operator is same as the second operator. If the second operator of the first message about to be sent is different from the first operator of the last interaction message of the target merchant, the chat robot account of the second operator corresponding to the target merchant is found from the chat robot accounts of the target merchant corresponding to multiple operators stored in the user end. And the first message is sent to the target merchant through the chat robot account of the second operator found, so that even if the second operator used for sending the first message is different from the first operator used for receiving the message of the target merchant, the chat robot account of the second operator of the target merchant stored in the user end can be used to realize the successful sending of the first message to the target merchant.
[0036] The chat robot accounts of the target merchant corresponding to multiple operators stored in the user end can be extracted and saved when the target merchant sends messages to the target user through different operators.
[0037] Specifically, before the first operator used when the last interaction message with the target merchant is obtained and the second operator used when the first message is about to be sent to the target merchant, it further comprises: receiving the second message sent by the target merchant through the chat robot account of the first operator, the second message carrying the second operator information and the corresponding chat robot account to which the target merchant belongs; according to the second message, storing the chat robot account corresponding to the second operator to which the target merchant belongs and configuring the corresponding session identification, wherein the session identifications of each message sent by the user end through the same chat robot account are the same.
[0038] In this embodiment, the target merchant pre-sends a second message to the target user through the chat robot account of the first operator, wherein the second message additionally carries the chat robot account corresponding to the second operator to which the target merchant belongs. After receiving the second message, the user end extracts the chat robot account corresponding to the second operator to which the target merchant belongs and saves it to the local. The session identifier of the messages sent through the same chat robot account is the same. For example, the target merchant sends a message a to the target user through the chat robot account of the first operator, the target user replies to the message a through the phone card of the first operator, and sends a message b, then the message a and the message b correspond to the same session and the same session identifier. If the target user replies to the message a through the phone card of the second operator and sends a message c, then the message c and the message b correspond to different sessions and different session identifiers.
[0039] Therefore, when the target user subsequently sends a message to the target merchant using the phone card of the second operator, the chat robot account corresponding to the second operator to which the target merchant belongs can be obtained from the local database, and the message can be sent to the target merchant through the obtained chat robot account corresponding to the second operator. If the user end does not save the chat robot account corresponding to the second operator to which the target merchant belongs, when the target user sends a message to the target merchant using the phone card of the second operator, the sending will fail. Therefore, the embodiments of the present application can enable the user to conveniently and quickly send a message to the target merchant through any operator, and can associate different operator messages of the same user to the target merchant for accurate reply.
[0040] In the embodiment of the present application, the user end obtains a first operator used by the target merchant in the last interaction message and a second operator used by the target merchant in a first message to be sent to the target merchant; if the first operator is different from the second operator, the first message is sent to the target merchant through the chat robot account of the second operator, the first message carrying a first session identifier, first content information, a second session identifier and second content information, the first content information being content information carried in the last interaction message of the target merchant through the chat robot of the first operator, the first session identifier being an identifier of a session corresponding to the last interaction message, the second content information being the latest content information sent to the target merchant through the chat robot of the second operator, and the second session identifier being an identifier of a session corresponding to the first message, wherein the user end stores the target merchant in the chat robot accounts of a plurality of operators and corresponding session identifiers, so that the user can conveniently and quickly send the message to the target merchant through any operator, and the merchant end can associate the messages sent by the same user through different operator telephone cards, so that the target merchant can simply and directly identify the same user corresponding to the messages of different operators to accurately reply.
[0041] The second embodiment of the present application provides a message processing method of a chat robot, which is applied to a merchant end. As shown in Figure 2 The second embodiment of the present application provides a message processing method of a chat robot, which is applied to a merchant end. As shown in
[0042] The merchant end involved in the second embodiment is the same as the merchant end involved in the first embodiment, and the user end involved in the second embodiment is the same as the user end involved in the first embodiment, and the corresponding descriptions are the same or similar. To avoid repetition, the relevant descriptions are appropriately omitted.
[0043] In step 202, a first message sent by a target user through a chat robot account of a second operator is received, the first message carrying a first session identifier, first content information, a second session identifier and second content information, the first content information being information content carried in the last interaction message of the target user through a chat robot of a first operator and a target merchant, the first session identifier being an identifier of a session corresponding to the last interaction message, the second content information being the latest content information sent by the target user to the target merchant through the chat robot of the second operator, and the second session identifier being an identifier of a session corresponding to the first message.
[0044] In this step, the target user selects to send the first message through the phone card of the second operator, and the user terminal of the target user sends the first message to the target merchant through the chat robot account of the second operator to which the target merchant belongs. The first message carries the first session identifier, the first content information, the second session identifier and the second content information, so that the first message reflects the association between the historical content information and the new content information transmitted by the target user through different operators.
[0045] In step 204, based on the first session identifier and the second session identifier, the first content information and the second content information are displayed in the session corresponding to the chat robot account of the first operator to which the target merchant belongs.
[0046] The same session has the same session identifier, and different sessions have different session identifiers. Through the first session identifier and the second session identifier, the content information of the corresponding session can be determined.
[0047] Based on the above-mentioned embodiments, optionally, in step 204, based on the first session identifier and the second session identifier, the first content information and the second content information are displayed in the session corresponding to the chat robot account of the first operator to which the target merchant belongs. The above-mentioned step 204 includes: based on the first session identifier and the second session identifier carried in the first message, determining that the first session and the second session are associated sessions; respectively obtaining the first content information corresponding to the first session and the second content information corresponding to the second session from the first message as the associated sessions; and simultaneously displaying the first content information and the second content information in the session corresponding to the chat robot account of the first operator to which the target merchant belongs.
[0048] The first message received by the merchant terminal carries the first session identifier and the second session identifier, which means that the content information of multiple sessions for different sessions and having an association relationship exists in the first message at the same time, so that it can be determined that the first session and the second session are associated sessions. The first message also carries the first content information corresponding to the first session and the second content information corresponding to the second session, so that the first content information and the second content information corresponding to the associated sessions are obtained, and the first content information and the second content information are respectively received by the target merchant through the chat robot account of different operators, but they have a context association relationship. Further, the first content information and the second content information are simultaneously displayed in the same session of the target merchant, i.e. the session corresponding to the chat robot account of the first operator through which the target merchant currently receives the first message.
[0049] Thus, after receiving the first message, the target merchant can know the association between the first content information and the second content information, so that the target merchant can associate the messages sent by the same target user using different operator phone cards. Thus, it is identified that the second operator user corresponding to the first message and the first operator user corresponding to the historical message are the same user, and the messages of different operator phone cards corresponding to the same user using multiple phone cards are identified. After receiving the message, the target merchant can associate the messages of different channels through the related content information carried by the message, so as to make appropriate reply.
[0050] Optionally, before receiving the first message sent by the target user through the chat robot account of the second operator, the method further includes: sending a second message to the target user through the chat robot account corresponding to the first operator to which the target merchant belongs, the second message carrying the first session identifier and the chat robot account corresponding to the second operator to which the target merchant belongs.
[0051] As described above, the chat robot account of the second operator used by the target user to send the first message is the chat robot account of the target merchant pre-stored by the user end. The target merchant previously sends a message to the target user through the chat robot of the first operator, and the message carries the chat robot account of the second operator to which the target merchant belongs. Thus, the user end can extract and save the chat robot account of the second operator from the message, and use the chat robot account of the second operator when the user end selects the phone card of the second operator to send a message in the corresponding session.
[0052] In the embodiment of the present application, the merchant end receives the first message sent by the target user through the chat robot account of the second operator, the first message carrying a first session identifier, first content information, a second session identifier and second content information, the first content information being the information content carried by the last interactive message of the target user through the chat robot of the first operator and the target merchant, the first session identifier being the identifier of the session corresponding to the last interactive message, the second content information being the latest content information sent by the target user to the target merchant through the chat robot of the second operator, and the second session identifier being the identifier of the session corresponding to the first message; based on the first session identifier and the second session identifier, the first content information and the second content information are displayed in the session corresponding to the chat robot account of the first operator to which the target merchant belongs. Thus, not only can the user send messages to the target merchant correctly and successfully through any operator, but also the merchant end can associate the messages sent by the same user through different operator phone cards, so that the target merchant can simply and directly identify the same user corresponding to different operator messages, so as to make accurate reply.
[0053] The following describes the message processing method of the chat robot in the embodiments of the present application in combination with the interaction process between the user end and the merchant end, taking different operators A and B as examples. Figure 3 As shown in FIG. 1, the method comprises the following steps: Figure 3 Step 1, at the merchant end, a MAAP message is sent to the phone card of operator A of the user end, the message carrying parameters including content information identifier (Message-ID) of the current message: 1, and current session identifier (Contribution-ID): a1, and an extra-address field is added in the message packet, accompanying the chatbot account of the merchant of operator B. Step 2, operator A sends the MAAP message to the user end. After receiving the MAAP message, the user end extracts the information in the extra-address in the message packet and saves it, and attaches the messages of all related chatbot accounts in the local database to the same session identifier (thread-id). The thread-id is the session ID used by the terminal (for example, the merchant end) to distinguish the session, and the messages with the same thread-id are displayed in the same session.
[0054] Step 3, when the user end sends a message, it checks whether the phone card of the latest interactive message in the current session and the phone card of the message to be sent are the same or the same operator. The operator of the phone card can be obtained through the IMSI of the phone card, and the rules of the chatbot account belonging to the operator are as follows:
[0055] Steps 4 to 6 describe the case where the operator used by the user and the merchant in the latest interactive message is the same as the operator used to send the message to the merchant.
[0056] Specifically, step 4, the user end sends a MAAP message, the message carrying parameters including content information identifier (Message-ID) of the current message: 2, and current session identifier (Contribution-ID): a1, and the message is sent to the merchant end through operator A.
[0057] Step 5, the MAAP message is sent to the merchant end through operator A, and the merchant end receives the MAAP message carrying parameters Message-ID: 2 and Contribution-ID: a1.
[0058] Step 6, the merchant end sends a MAAP message to the user end, the message carrying parameters including content information identifier (Message-ID) of the current message: 3, and current session identifier (Contribution-ID): a1, and the message is sent to the user end through operator B.
[0059] Step 6, based on the Contribution-ID: a1, the merchant end can find the corresponding content information identifier Message-ID: 1 and Message-ID: 2 from the message system, that is, the session a1 corresponds to two content information (corresponding to the content information identifier Message-ID: 1) and content information (corresponding to the content information identifier Message-ID: 2), and is displayed in the session a1 at the same time, which is convenient for the merchant to select the appropriate content information for reply.
[0060] Steps 7 to 10 describe the case where the operator used by the user in the last interaction message is different from the operator to be used to send messages to the merchant.
[0061] Specifically, step 7, when the user end sends the MAAP message using the phone card of different operator B, according to the previously saved extra-address, the chatbot account corresponding to the operator B is taken out, and the parameters carried by the last interaction message, including Message-ID: 1 and Contribution-ID: a1. And send a message to the chatbot account of the queried operator B.
[0062] Step 8, the user end carries the parameters including the content information identifier (Message-ID) of the current message: 3 and the current session identifier (Contribution-ID): b1 in the message packet, in addition, the related parameters of the last interaction message are also added, including the content information identifier (last-Message-ID) of the last interaction message: 1 and the last session identifier (last-Contribution-ID): a1, and sends the MAAP message to the merchant end.
[0063] Step 9, the MAAP message is sent to the merchant end by the operator B, and the merchant end receives the MAAP message carrying the parameters Message-ID: 3, Contribution-ID: b1, last-Message-ID: 1 and last-Contribution-ID: a1.
[0064] Step 10, the merchant end can get the session a1 and the session b1 as the associated session from the parameters, and based on the Contribution-ID: a1, the session a1 corresponding content information identifier Message-ID: 1 and the session b1 corresponding content information identifier Message-ID: 3 can be found from the message system, that is, the associated session corresponds to two content information (corresponding content information identifier Message-ID: 1) and content information (corresponding content information identifier Message-ID: 3), respectively corresponding to the operator A and the operator B, and at the same time displayed in the session b1, facilitating the merchant to select the appropriate content information for reply.
[0065] Still taking the above-mentioned car factory trying to send an invitation to the first operator's user's test drive message as an example, if the message processing method of the chat robot of the embodiment of the application is used, the user can use any kind of operator's phone card to reply. When the user selects the second operator's phone card to reply, the user end will find the second operator's chatbot account of the car factory according to the extra-address field in the invitation to test drive message packet, and send the message. After the second operator's chatbot account of the car factory receives the message, the merchant end will find the test drive message sent to the first operator's user in the message system of the car factory according to the last-Message-ID and last-Contribution-ID added in the message packet, and display the message together with the current message replied by the user through the second operator in the current session, so as to associate the current message of the user with the historical interaction message of the user, and select the appropriate content to reply to the user to normally handle the test drive business.
[0066] Optionally, as shown in Figure 4 The embodiment of the application further provides a chat robot message processing device 1000 applied to the user end, the device 1000 comprises: The acquisition module 1200 acquires the first operator used when receiving the last interaction message of the target merchant and the second operator used when sending the target first message to the target merchant; The sending module 1400 sends the first message to the target merchant through the chat robot account of the second operator if the first operator is different from the second operator, the first message carrying a first session identifier, first content information, a second session identifier and second content information, the first content information being content information carried in a last interactive message of the target merchant through the chat robot of the first operator, the first session identifier being an identifier of a session corresponding to the last interactive message, the second content information being the latest content information sent to the target merchant through the chat robot of the second operator, and the second session identifier being an identifier of a session corresponding to the first message, wherein the user terminal stores the target merchant in the chat robot accounts of multiple operators and corresponding session identifiers.
[0067] The message processing device of the chat robot of the cloud application provided in the embodiments of the present specification can realize Figure 1 、 Figure 3 The various processes corresponding to the method embodiments are not repeated here to avoid repetition.
[0068] Optionally, as Figure 5 indicated, the embodiments of the present application also provide a message processing device 2000 of a chat robot, applied to a merchant terminal, the device 2000 comprising: A receiving module 2200 receives a first message sent by a target user through a chat robot account of a second operator, the first message carrying a first session identifier, first content information, a second session identifier and second content information, the first content information being information content carried in a last interactive message of the target user with a target merchant through a chat robot of a first operator, the first session identifier being an identifier of a session corresponding to the last interactive message, the second content information being the latest content information sent by the target user to the target merchant through the chat robot of the second operator, and the second session identifier being an identifier of a session corresponding to the first message; A display module 2400 displays the first content information and the second content information in a session corresponding to the chat robot account of the first operator to which the target merchant belongs, based on the first session identifier and the second session identifier.
[0069] The message processing device of the chat robot provided in the embodiments of the present specification can realize Figure 2 、 Figure 3 The various processes corresponding to the method embodiments are not repeated here to avoid repetition.
[0070] Optionally, the embodiments of the present application also provide a message processing system of a chat robot, comprising a user terminal and a merchant terminal, the user terminal being implemented when executed to realizeFigure 1 、 Figure 3 The method embodiments correspond to respective steps, and the merchant end is executed to realize Figure 2 、 Figure 3 The method embodiments correspond to respective steps.
[0071] Optionally, as Figure 6 indicated, the embodiment of the application further provides a message processing device 3000 of a chat robot, comprising a processor 3400 and a memory 3200, the memory 3200 stores programs or instructions executable on the processor 3400, the programs or instructions are executed by the processor 3400 to realize the respective steps of the above-mentioned chat robot message processing method embodiments, and the same technical effects can be achieved. To avoid repetition, it will not be repeated here.
[0072] The embodiment of the application further provides a readable storage medium, the readable storage medium stores programs or instructions, the programs or instructions are executed by the processor to realize the respective processes of any one of the above-mentioned chat robot message processing method embodiments, and the same technical effects can be achieved. To avoid repetition, it will not be repeated here. The readable storage medium includes a computer readable storage medium, such as a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, etc.
[0073] The embodiment of the application further provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute to realize the respective processes of any one of the above-mentioned chat robot message processing method embodiments, and the same technical effects can be achieved. To avoid repetition, it will not be repeated here.
[0074] It should be noted that in this paper, the term "include", "contain" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a…" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0075] Those skilled in the art can clearly understand the above-mentioned embodiment method can be realized by means of software and the necessary general hardware platform, of course, also can be through hardware, but many cases the former is the better embodiment. Based on such understanding, the technical solutions of the present application essentially or say the part of the contribution to the prior art can be embodied in the form of software products, the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), including a number of instructions to make a terminal (may be a mobile phone, computer, server, air conditioner, or network equipment, etc.) executes the method described in various embodiments of the present application.
[0076] The embodiments of the present application are described above in conjunction with the drawings, but the present application is not limited to the above-mentioned specific embodiments, the above-mentioned specific embodiments are only illustrative, but not limited, those skilled in the art can make many forms without departing from the purpose of the present application and the scope of the claims under the inspiration of the present application, all belong to the protection of the present application.
Claims
1. A message processing method for a chatbot, characterized in that, When applied to a user terminal, the method includes: The first carrier used when obtaining the most recent interaction message with the target merchant and the second carrier used for the first message to be sent to the target merchant; If the first operator and the second operator are different, the first message is sent to the target merchant through the chatbot account of the second operator. The first message carries a first session identifier, first content information, a second session identifier, and second content information. The first content information is the content information carried in the last interaction message between the chatbot of the first operator and the target merchant. The first session identifier is the identifier of the session corresponding to the last interaction message. The second content information is the latest content information sent to the target merchant through the chatbot of the second operator. The second session identifier is the identifier of the session corresponding to the first message. The user terminal stores the chatbot accounts and corresponding session identifiers of the target merchant for multiple operators.
2. The method according to claim 1, characterized in that, If the first operator and the second operator are different, then sending the first message to the target merchant through the chatbot account of the second operator includes: By comparing the phone card identifier used when receiving the most recent interaction message with the phone card identifier used when sending the first message, it is determined whether the first operator and the second operator are the same. If the first operator and the second operator are different, then search for the chatbot account corresponding to the second operator to which the target merchant belongs from the user terminal; The first message is sent to the target merchant by finding the chatbot account corresponding to the second operator.
3. The method according to claim 2, characterized in that, Before obtaining the first operator used when acquiring the most recent interaction message with the target merchant and the second operator used for the first message to be sent to the target merchant, the method further includes: Receive a second message sent by the target merchant through the chatbot account of the first operator, the second message carrying the second operator information of the target merchant and the corresponding chatbot account; According to the second message, the chatbot account corresponding to the second operator to which the target merchant belongs is stored and the corresponding session identifier is configured, wherein the session identifier of each message sent by the user terminal through the same chatbot account is the same.
4. A message processing method for a chatbot, characterized in that, Applied to the merchant side, the method includes: The system receives a first message sent by a target user through a chatbot account of a second operator. The first message carries a first session identifier, first content information, a second session identifier, and second content information. The first content information is the information content carried in the last interaction message between the target user and the target merchant through the chatbot of the first operator. The first session identifier is the identifier of the session corresponding to the last interaction message. The second content information is the latest content information sent by the target user to the target merchant through the chatbot of the second operator. The second session identifier is the identifier of the session corresponding to the sending of the first message. Based on the first session identifier and the second session identifier, the first content information and the second content information are displayed in the session corresponding to the chatbot account of the first operator to which the target merchant belongs.
5. The method according to claim 4, characterized in that, The step of displaying the first content information and the second content information in the chatbot account corresponding to the first operator to which the target merchant belongs, based on the first session identifier and the second session identifier, includes: Based on the first session identifier and the second session identifier carried in the first message, it is determined that the first session and the second session are associated sessions; The first content information corresponding to the first session and the second content information corresponding to the second session, which are associated sessions, are obtained from the first message, respectively. In the chatbot account of the first operator to which the target merchant belongs, the first content information and the second content information are displayed simultaneously.
6. The method according to claim 4, characterized in that, Before receiving the first message sent by the target user through the chatbot account of the second operator, the method further includes: A second message is sent to the target user through the chatbot account corresponding to the first operator to which the target merchant belongs. The second message carries the first session identifier and the chatbot account corresponding to the second operator to which the target merchant belongs.
7. A message processing system for a chatbot, characterized in that, It includes a user terminal and a merchant terminal, wherein the user terminal performs the steps of the method as described in any one of claims 1-3, and the merchant terminal performs the steps of the method as described in any one of claims 4-6.
8. A message processing method and apparatus for a chatbot, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the method as claimed in any one of claims 1-3 or any one of claims 4-6.
9. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method as claimed in any one of claims 1-3 or any one of claims 4-6.
10. A computer program product, characterized in that, The computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform the steps of the method as claimed in any one of claims 1-3 or any one of claims 4-6.