Session service processing method and device, equipment and medium
By obtaining session channel identification and user input information, finding the target session channel and determining the message reply end, realizing message forwarding, solving the problem of high logical code coupling in the existing technology of session service system processing, and improving the maintainability of session services and scalability.
Patent Information
- Application Number
- CN202411463821.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing session service system has high coupling in processing logical code, resulting in poor maintainability and scalability of session services, making it difficult to adapt to changes in the business platform and parameter modifications.
By obtaining the session channel identification and user input information, finding the target session channel and obtaining channel configuration information, determining the target message response end, realizing the forwarding of messages, and then maintaining and expanding the session channel without modifying the processing logic code.
It improves the maintainability and scalability of session services, reduces the need to modify logical code processing in the session service system, and reduces the coupling between the service platform and the message reply end.
Smart Images

Figure CN118972432A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a session service processing method, device, equipment and medium. Background Art
[0002] With the continuous development and expansion of business scale, more and more business platforms need to access the conversation service system to provide users with online information consultation services.
[0003] At present, the processing logic in the conversation service system needs to meet the business requirements and business parameters of each business platform, and the code complexity is high. If a new business platform needs to be connected, or the existing business platform and business parameters need to be modified, the processing logic code of the conversation service system needs to be modified again. In this method, the coupling degree between the business system and the conversation service system is high, resulting in poor maintainability and scalability of the conversation business. Summary of the invention
[0004] The present invention provides a session service processing method, device, equipment and medium to improve the maintainability and scalability of the session service.
[0005] In a first aspect, the present invention provides a session service processing method, comprising:
[0006] Obtaining the session channel identifier, user input information, and message attribute information of the user input information;
[0007] According to the session channel identifier, find the target session channel where the user is located, and obtain the channel configuration information of the target session channel;
[0008] Determine the target message response terminal of the user according to the message attribute information and channel configuration information;
[0009] Send the user input information to the target message response end;
[0010] A response message is received from the target message response end in response to the user input information feedback, and the response message is sent to the target session channel, so that the target session channel displays the response message to the user.
[0011] In a second aspect, the present invention further provides a session service processing device, including:
[0012] An information acquisition module, used to acquire a conversation channel identifier, user input information, and message attribute information of the user input information;
[0013] A channel determination module, used to find the target session channel where the user is located according to the session channel identifier, and obtain channel configuration information of the target session channel;
[0014] A response end determination module, used to determine a target message response end of the user according to the message attribute information and the channel configuration information;
[0015] A first sending module, used to send the user input information to the target message answering end;
[0016] The second sending module is used to receive a response message from the target message response end in response to the user input information feedback, and send the response message to the target conversation channel, so that the target conversation channel displays the response message to the user.
[0017] In a third aspect, an embodiment of the present invention further provides an electronic device, including:
[0018] at least one processor; and
[0019] a memory communicatively coupled to at least one processor; wherein
[0020] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the session service processing method provided by any embodiment of the present invention.
[0021] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the session service processing method of any embodiment of the present invention when executed.
[0022] The technical solution of the embodiment of the present invention finds the target session channel of the user through the obtained session channel identifier, and then obtains the channel configuration information of the target session channel; determines the user's target message response end through the obtained message attribute information and channel configuration information, so as to forward messages between the target message response end and the user end; when maintaining and expanding the session channels in each business platform, only the channel configuration information needs to be adjusted, thereby realizing the decoupling between the business platform and the message response end, and improving the maintainability and scalability of the session business.
[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 is a flowchart of a session service processing method provided according to Embodiment 1 of the present invention;
[0026] Figure 2 is a schematic diagram of a channel configuration information management page provided according to Embodiment 1 of the present invention;
[0027] Figure 3 is a schematic diagram of an interface configuration information management page provided according to Embodiment 1 of the present invention;
[0028] Figure 4 is a processing flow chart of a session service provided according to the first embodiment of the present invention;
[0029] Figure 5 is a flowchart of a session service processing method provided according to Embodiment 2 of the present invention;
[0030] Figure 6 is a structural diagram of a session service processing device provided according to Embodiment 3 of the present invention;
[0031] Figure 7 It is a structural diagram of an electronic device for implementing the session service processing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "first" and "second" and the like in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] In the technical solution of the embodiment of the present invention, the acquisition, storage and application of the session channel identifier and user input information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0035] Embodiment 1
[0036] Figure 1 A flowchart of a session service processing method provided in Embodiment 1 of the present invention is applicable to situations where session services are processed. The method can be executed by a session service processing device, which can be implemented in the form of hardware and / or software and specifically configured in an electronic device, such as a server.
[0037] See also Figure 1 The session service processing method shown includes:
[0038] S101: Acquire a conversation channel identifier, user input information, and message attribute information of the user input information.
[0039] S102: Find the target session channel where the user is located according to the session channel identifier, and obtain channel configuration information of the target session channel.
[0040] S103: Determine the target message response terminal of the user according to the message attribute information and the channel configuration information.
[0041] S104: Send the user input information to the target message response end.
[0042] S105: Receive a response message from the target message response end in response to the user input information feedback, and send the response message to the target conversation channel, so that the target conversation channel displays the response message to the user.
[0043] In this embodiment, the session channel identifier can be used to uniquely identify the session channel. The session channel can be a channel that provides session services to users. For example, the session channel can be a service consultation channel a in web page A, a service consultation channel b in web page B, and a service consultation channel c in application C, etc. The user input information can be information input by the user in the session service provided by the session channel. The message attribute information can include but is not limited to the input time of the user input information, the message type, and the message content, etc.
[0044] The target conversation channel may be the conversation channel in which the user is located. The target message answering end may be a message answering end that processes the user input information; wherein the message answering end may be used to provide feedback on the user's input information, and the message answering end may be, for example, a robot customer service end or a manual customer service end. The channel configuration information of the target conversation channel may include, but is not limited to, a preset message answering end type, an available time period of the manual answering end, a conversation channel identifier, a channel name, a preset robot answering end, manual answering end configuration information, and speech configuration information. Among them, the preset message answering end type may include, but is not limited to, a robot answering end type and a manual answering end type; the robot answering end type may refer to a type in which the message answering end is a robot customer service end; the manual answering end type may refer to a type in which the message answering end is a manual customer service end. The available time period of the manual answering end may refer to a time period in which the manual customer service can provide services to the user; the manual answering end configuration information may include at least one manual answering end and switch attribute information of each manual answering end; the speech configuration information may include, but is not limited to, the ending speech and the ending switch attribute information. The response message may be a message in which the message answering end responds to the user input information. It should be noted that the channel configuration information may be independently set by the technician according to actual needs or practical experience, and the present invention does not limit this.
[0045] In an optional embodiment, the session channel identifier may include but is not limited to a channel identifier and a business identifier; wherein the channel identifier is used to uniquely identify the platform to which the session channel belongs; and the business identifier may be used to uniquely identify the business of the session channel. For example, if the platform identified by the channel identifier is web page A; and the business identified by the business identifier is business b, then according to the session channel identifier, the target session channel found is business b consulting channel of web page A.
[0046] In an optional embodiment, the interface configuration information of the target session channel may be searched according to the session channel identifier; the interface configuration information may include, but is not limited to, the session channel identifier of the target session channel, available time period transfer to manual information, disabled time period information, message sending interface information, user information interface information, satisfaction survey interface information, and conversation termination interface information, etc.; wherein, the available time period transfer to manual information may initiate a request to transfer to the manual answering terminal in response to a user's click; the disabled time period information may be used to prompt the user that the manual answering terminal is unavailable in the time period in which the user is located; the message sending interface information may be parameter information of the message sending interface; the message sending interface may be used to send a reply message to the target session channel; the user information interface information may be parameter information of the user information interface; the user information interface may be used to obtain user attribute information, which may be, for example, age, gender, and contact information, etc.; it should be noted that the acquisition and storage of user attribute information shall be authorized by the user, comply with the provisions of relevant laws and regulations, and not violate public order and good morals; the satisfaction survey interface information may be parameter information of the satisfaction survey interface; the satisfaction survey interface may be used to conduct a survey on user satisfaction; the conversation termination interface information may be parameter information of the conversation termination interface; the conversation termination interface may be used to terminate the user's conversation in the target session channel. The available time period transfer manual information and the disabled time period information can be in the form of a website link; the message sending interface information, user information interface information, satisfaction survey interface information and conversation end interface information can be in the form of an interface address.
[0047] Optional, Figure 2 This is a schematic diagram of a channel configuration information management page. Figure 2 As shown, the Add option can be used to add configuration information of a new session channel; the Modify option can be used to modify the configuration information of a session channel; and the Delete option can be used to delete the configuration options of a session channel; Figure 2 There are 5 session channels, namely the session channel of A microservice-b business, the session channel of B official website-b business, the session channel of B official website-c business, the session channel of C application-c business and the session channel of C microservice-a business, and the channel identifiers are 1, 2, 2, 3 and 3 respectively; the business identifiers of the session channel of A microservice-b business and the session channel of B official website-b business are 1 and 1 respectively; the business identifiers of the session channel of B official website-c business, the session channel of C application-c business and the session channel of C microservice-a business are empty; the preset robot answering end of the session channel of A microservice-b business is the robot answering end named "jtgwzxkf"; the session channel of B official website-b business, the session channel of B official website-c business, the session channel of C application-c business and the session channel of C microservice-a business are not configured with a preset robot answering end.
[0048] Optional, Figure 3 This is a schematic diagram of an interface configuration information management page. Figure 3 As shown in , the Add option can be used to add interface configuration information of a third-party interface; the Modify option can be used to modify the interface configuration information of a third-party interface; and the Delete option can be used to delete the configuration options of a third-party interface. There is an association relationship between the third-party interface and the session channel, such as Figure 3 As shown, the third-party interface of A microservice-b business and the session channel of A microservice-b business are associated with each other; the third-party interface of the session channel of B official website-b business and the session channel of the session channel of B official website-b business are associated with each other; the third-party interface of the session channel of B official website-c business and the session channel of the session channel of B official website-c business are associated with each other; the third-party interface of the session channel of C application-c business and the session channel of C application-c business are associated with each other.
[0049] Optional, Figure 4 The present invention is a flow chart of a session service processing method; the session service processing method provided by the embodiment of the present invention can be deployed in a message gateway. Figure 4 As shown, the message gateway obtains the session channel identifier, user input information and message attribute information of the user input information from the third-party channel; according to the session channel identifier, it searches for the target session channel (i.e., the third-party channel) where the user is located, and obtains the channel configuration information of the target session channel; according to the message attribute information and the channel configuration information, it determines the user's target message response end; the user input information is sent to the target message response end; the target message response end determines the response message, and sends the response message to the message official website by calling the message sending method; the message gateway receives the response message fed back by the target message response end in response to the user input information, and according to the sending message interface information in the interface configuration information, it sends the response message to the target session channel by calling the sending message interface, so that the target session channel displays the response message to the user.
[0050] In an optional embodiment, before sending the user input information to the target message response end, it also includes: according to the user information interface information in the interface configuration information, by calling the user information interface, obtaining the user attribute information of the user, and encapsulating the user attribute information as a data object and storing it in the cache; while sending the user input information to the target message response end, it also includes: sending the user attribute information to the target message response end.
[0051] The technical solution of the embodiment of the present invention finds the target session channel of the user through the obtained session channel identifier, and then obtains the channel configuration information of the target session channel; determines the user's target message response end through the obtained message attribute information and channel configuration information, so as to forward messages between the target message response end and the user end; when maintaining and expanding the session channels in each business platform, only the channel configuration information needs to be adjusted, thereby realizing the decoupling between the business platform and the message response end, and improving the maintainability and scalability of the session business.
[0052] Embodiment 2
[0053] Figure 5 This is a flow chart of a session service processing method provided in the second embodiment of the present invention. Based on the technical solutions of the above embodiments, the embodiment of the present invention optimizes and improves the determination operation of the target message response end.
[0054] Furthermore, "determine the user's target message answer end based on the message attribute information and channel configuration information" is refined into "if the message type is a message format type, and the preset message answer end type is a manual answer end type, then based on the message input time and the available time period of the manual answer end, verify whether the manual answer end is available to obtain a verification result; if the message type is a conversion to manual conversation instruction type, then based on the message input time and the available time period of the manual answer end, verify whether the manual answer end is available to obtain a verification result; based on the verification result, determine the target message answer end from the preset robot answer end and each candidate manual answer end" to improve the operation of determining the target message answer end.
[0055] It should be noted that, for the parts not described in detail in the embodiments of the present invention, reference may be made to the descriptions in the aforementioned embodiments.
[0056] See also Figure 5 The session service processing method shown includes:
[0057] S201: Acquire a conversation channel identifier, user input information, and message attribute information of the user input information.
[0058] S201. According to the session channel identifier, find the target session channel where the user is located, and obtain the channel configuration information of the target session channel.
[0059] S202: If the message type is a message format type and the preset message answering terminal type is a manual answering terminal type, verify whether the manual answering terminal is available based on the message input time and the available time period of the manual answering terminal to obtain a verification result.
[0060] In this embodiment, the message attribute information may include but is not limited to the message type and the message input time; the message type may include but is not limited to the message format type and the manual conversation instruction type; the message format type may be, for example, a text type, an image type, and an audio type; the manual conversation instruction type may refer to the user input information as an instruction to transfer to the manual answering terminal; the channel configuration information may include but is not limited to the preset message answering terminal type, the preset robot answering terminal, at least one candidate manual answering terminal, and the manual answering terminal available time period; the preset message answering terminal type includes the manual answering terminal type. The candidate manual answering terminal may be the manual answering terminal corresponding to the target conversation channel.
[0061] Specifically, check whether the message input time is within the available time period of the manual answering terminal; if the message input time is within the available time period of the manual answering terminal, determine the verification result as the manual answering terminal is available; if the message input time is not within the available time period of the manual answering terminal, determine the verification result as the manual answering terminal is unavailable.
[0062] S203: If the message type is a manual conversation transfer instruction type, then verify whether the manual answering terminal is available according to the message input time and the available time period of the manual answering terminal, and obtain a verification result.
[0063] Specifically, check whether the message input time is within the available time period of the manual answering terminal; if the message input time is within the available time period of the manual answering terminal, determine the verification result as the manual answering terminal is available; if the message input time is not within the available time period of the manual answering terminal, determine the verification result as the manual answering terminal is unavailable.
[0064] S204. According to the verification result, determine the target message response end from the preset robot response end and each candidate human response end.
[0065] Specifically, a certain algorithm is used to determine the target message response end from the preset robot response end and each candidate human response end according to the verification result.
[0066] Optionally, while obtaining the session channel identifier, user input information and message attribute information of the user input information, it also includes: obtaining the user identifier of the user; determining the target message answering end from a preset robot answering end and each candidate manual answering end based on the verification result, including: if the verification result is unavailable, determining the preset robot answering end as the target message answering end; if the verification result is available, querying the user's manual session status based on the user identifier; and determining the target message answering end from each candidate manual answering end based on the manual session status.
[0067] Among them, the user identifier can be used to uniquely identify the user. The artificial session state can refer to the session state between the user and the artificial answering terminal. Specifically, if the verification result is unavailable, the preset robot answering terminal is determined as the target message answering terminal; if the verification result is available, the user's artificial session state is queried in the cache according to the user identifier; a certain algorithm is used to determine the target message answering terminal from each candidate artificial answering terminal according to the artificial session state.
[0068] It can be understood that by adopting the above-mentioned technical scheme, when the manual answering end is unavailable, the preset robot answering end can be determined as the target message answering end; when the manual answering end is available, the user's manual session status is queried through the user identifier, and then the target message answering end is determined, thereby ensuring that an available target message answering end is allocated to the user, thereby improving the stability of the conversation service.
[0069] Optionally, according to the manual conversation status, a target message answering end is determined from each candidate manual answering end, including: if the manual conversation status is in conversation, obtaining the current manual answering end, and determining the current manual answering end as the target message answering end; wherein the current manual answering end is a candidate manual answering end assigned to the user; if the manual conversation status is not in conversation, assigning the target message answering end to the user according to each candidate manual answering end, and changing the user's manual conversation status to in conversation.
[0070] Specifically, if the manual session status is in session, the current manual answering end is obtained, and the current manual answering end is determined as the target message answering end; a prompt message that the manual answering end already exists is returned to the target session channel, for example, "a manual customer service representative is already serving you"; if the manual session status is not in session, an idle manual answering end in an idle state is determined from each candidate manual answering end; according to the session creation interface information in the channel configuration information, the session creation interface is called to allocate a target message answering end to the user from the idle manual answering ends, and the user's manual session status is changed to in session.
[0071] It can be understood that by adopting the above-mentioned technical scheme, when the user is in a conversation state, the allocated message answering end can be determined as the target message answering end, thereby avoiding repeated allocation of message answering ends and improving the efficiency of determining the target message answering end; when the user is not in a conversation state, the target message answering end is allocated to the user from the idle manual answering ends, thereby ensuring the availability of the target message answering end.
[0072] S205: Send the user input information to the target message response end.
[0073] In an optional embodiment, the message format type may include but is not limited to an image type and an audio type; before sending the user input information to the target message answering end, it also includes: if the message format type is an image type, and the target message answering end is a preset robot answering end, the user input information can be converted into a json (JavaScript Object Notation) string, and the user input information is updated to the obtained json string; if the message format type is an audio format type, the user input information can be converted into text by calling a speech-to-text interface, and the user input information is updated to the obtained text.
[0074] S206: Receive a response message from the target message response end in response to the user input information feedback, and send the response message to the target conversation channel, so that the target conversation channel displays the response message to the user.
[0075] Optionally, the channel configuration information also includes robot response abnormality prompt information; before sending the response message to the target session channel, it also includes: if the target message response end is a robot response end, then detecting whether the response message is abnormal and obtaining a detection result; if the detection result is abnormal, then according to the verification result, splicing the response message and the robot response abnormality prompt information to obtain splicing information; according to the splicing information, updating the response message.
[0076] Among them, the robot response abnormal prompt information can be used to prompt the user that the response message fed back by the robot response end is abnormal; the splicing information is the splicing result of the response message and the robot response abnormal prompt information. Specifically, if the target message response end is the robot response end, it is detected whether the content of the response message is empty; if the content of the response message is empty, it is determined that the detection result of the response message is abnormal; if the detection result is abnormal, a certain algorithm is used to splice the response message and the robot response abnormal prompt information according to the verification result to obtain the splicing information; the response message is updated to the obtained splicing information.
[0077] It can be understood that by adopting the above-mentioned technical scheme, the response message fed back by the robot response end can be detected, and when the detection result is abnormal, the response message can be updated to the spliced information obtained by splicing the response message and the robot response abnormal prompt information, thereby prompting the user that the response message of the robot response end is abnormal.
[0078] Optionally, the robot's response exception prompt information includes a prompt information for transferring to a manual session and a waiting prompt information; according to the verification result, the response message and the robot's response exception prompt information are spliced to obtain spliced information, including: if the verification result is unavailable, the response message and the waiting prompt information are spliced to obtain spliced information; if the verification result is available, the response message and the prompt information for transferring to a manual session are spliced.
[0079] Among them, the waiting prompt information can be used to prompt the user to wait; the transfer to manual session prompt information can be used to prompt the user to transfer to the manual answering end. It can be understood that, by adopting the above technical solution, when the verification result is unavailable, the answer message and the waiting prompt information are spliced, thereby prompting the user to wait for the manual answering end to be available; when the verification result is available, the answer message and the transfer to manual session prompt information are spliced, thereby prompting the user to transfer to the manual answering end, ensuring the normal processing of the session service and improving the stability of the session service.
[0080] In a specific implementation, the disabled time period information in the interface configuration information may be used as the waiting prompt information, and the available time period transfer to manual session information in the interface configuration information may be used as the transfer to manual session prompt information.
[0081] Optionally, the channel configuration information also includes session end interface information and session non-existence prompt information; the method also includes: if the message type is an instruction type for ending a manual session, determining that the target message response end is empty, and querying the user's manual session status based on the user identifier; if the manual session status is in session, calling the session end interface based on the session end interface information to end the user session; if the manual session status is not in session, determining the session non-existence prompt information as a response message.
[0082] The instruction type for ending a manual session may refer to an instruction for ending a session input by the user. The prompt message indicating that a session does not exist may be used to prompt the user that the session does not exist, for example, "You have not entered the session yet". It is understandable that, by adopting the above technical solution, when the message type is the instruction type for ending a manual session, the session may be ended or the prompt message indicating that a session does not exist may be fed back to the user according to the state of the user's manual session, thereby improving the flexibility of session service processing.
[0083] In an optional embodiment, the message type also includes a function query type and a business information query type; the business information may be information about the business handled by the user, such as insurance policy information. If the message type is a business query type, the function configuration information is obtained through the preset robot answering end, and the function configuration information is sent to the target conversation channel, so that the target conversation channel displays the response message to the user. Among them, the function configuration information may be the configuration information of the function provided by the target conversation channel, which can implement the corresponding function in response to the user's click; the form of the function configuration information may be the form of a window; if the message type is a business information query type; the business information may be obtained through the preset robot answering end, and the business information may be sent to the target conversation channel, so that the target conversation channel displays the response message to the user.
[0084] In the technical solution of the embodiment of the present invention, if the message type is a message format type, and the preset message answer end type is a manual answer end type, then according to the message input time and the available time period of the manual answer end, it is verified whether the manual answer end is available to obtain a verification result; if the message type is a manual conversation instruction type, then according to the message input time and the available time period of the manual answer end, it is verified whether the manual answer end is available to obtain a verification result; according to the verification result, the target message answer end is determined from the preset robot answer end and each candidate manual answer end, and it is possible to verify whether the manual answer end is available according to the message input time and the available time period of the manual answer end, and according to the verification result, the target message answer end is determined from the preset robot answer end and each candidate manual answer end, thereby improving the flexibility of determining the target message answer end.
[0085] Embodiment 3
[0086] Figure 6 This is a structural diagram of a session service processing device provided in Embodiment 3 of the present invention. This embodiment is applicable to the case of processing session services, the device can execute a session service processing method, the session service processing device can be implemented in the form of hardware and / or software, and the device can be configured in an electronic device.
[0087] See also Figure 6 The session service processing device shown includes an information acquisition module 301, a channel determination module 302, a response end determination module 303, a first sending module 304 and a second sending module 305, wherein:
[0088] The information acquisition module 301 is used to acquire the conversation channel identifier, user input information, and message attribute information of the user input information;
[0089] The channel determination module 302 is used to find the target session channel where the user is located according to the session channel identifier, and obtain the channel configuration information of the target session channel;
[0090] A response end determination module 303 is used to determine a target message response end of a user according to message attribute information and channel configuration information;
[0091] The first sending module 304 is used to send the user input information to the target message answering end;
[0092] The second sending module 305 is used to receive a response message from the target message response end in response to the user input information feedback, and send the response message to the target conversation channel, so that the target conversation channel displays the response message to the user.
[0093] The embodiment of the present invention obtains the session channel identifier, user input information and message attribute information of the user input information through an information acquisition module; searches for the target session channel where the user is located according to the session channel identifier through a channel determination module, and obtains the channel configuration information of the target session channel; determines the target message response end of the user according to the message attribute information and the channel configuration information through a response end determination module; sends the user input information to the target message response end through a first sending module; receives a response message fed back by the target message response end to the user input information through a second sending module, and sends the response message to the target session channel, so that the target session channel displays the response message to the user, and can achieve maintenance and expansion of the session channels in each business platform by only adjusting the channel configuration information, thereby achieving decoupling between the business platform and the message response end, and improving the maintainability and scalability of the session business.
[0094] Optionally, the message attribute information includes the message type and the message input time; the message type includes the message format type and the manual conversation conversion instruction type; the channel configuration information includes the preset message answering terminal type, the preset robot answering terminal, at least one candidate manual answering terminal and the manual answering terminal available time period; the preset message answering terminal type includes the manual answering terminal type;
[0095] The response end determination module 303 includes:
[0096] A first verification unit is used to verify whether the manual answering terminal is available according to the message input time and the available time period of the manual answering terminal, and obtain a verification result if the message type is a message format type and the preset message answering terminal type is a manual answering terminal type;
[0097] A second verification unit is used to verify whether the manual answering terminal is available according to the message input time and the available time period of the manual answering terminal if the message type is a manual conversation transfer instruction type, and obtain a verification result;
[0098] The response end determination unit is used to determine the target message response end from the preset robot response end and each candidate human response end according to the verification result.
[0099] Optionally, the device further includes:
[0100] A user ID acquisition module, used to acquire a user ID of a user;
[0101] The answering end determination unit comprises:
[0102] A first determination subunit is used to determine the preset robot response end as the target message response end if the verification result is unavailable;
[0103] A session status query unit, used to query the user's manual session status according to the user identifier if the verification result is available;
[0104] The second determining unit is used to determine a target message response end from each candidate manual response end according to the manual session state.
[0105] Optionally, the second determining unit is specifically configured to:
[0106] If the manual conversation state is in progress, the current manual answering end is obtained, and the current manual answering end is determined as the target message answering end; wherein the current manual answering end is a candidate manual answering end that has been assigned to the user;
[0107] If the manual session status is not in session, a target message answering terminal is assigned to the user according to each candidate manual answering terminal, and the manual session status of the user is changed to in session.
[0108] Optionally, the channel configuration information also includes robot response abnormal prompt information; the device also includes:
[0109] A detection module, for detecting whether the response message is abnormal if the target message response end is a robot response end, and obtaining a detection result;
[0110] A splicing module is used to splice the response message and the robot response abnormal prompt information according to the verification result to obtain splicing information if the detection result is abnormal;
[0111] The updating module is used to update the response message according to the splicing information.
[0112] Optionally, the robot's abnormal response prompt information includes a prompt information for switching to a manual conversation and a prompt information for waiting;
[0113] Splicing module, including:
[0114] A first splicing unit is used for splicing the response message and the waiting prompt information to obtain splicing information if the verification result is unavailable;
[0115] The second splicing unit is used to splice the response message and the manual session transfer prompt information if the verification result is available.
[0116] Optionally, the channel configuration information also includes session termination interface information and session non-existence prompt information;
[0117] The device also includes:
[0118] The status query module determines that the target message response end is empty if the message type is an instruction type for ending a manual session, and queries the user's manual session status according to the user identifier;
[0119] The session ending module is used to call the session ending interface according to the session ending interface information to end the user session if the manual session state is in progress;
[0120] The message determination module is used to determine the prompt information of the non-existence of the session as the response message if the state of the manual session is no session.
[0121] The session service processing device provided in the embodiment of the present invention can execute the session service processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the session service processing method.
[0122] Embodiment 4
[0123] Figure 7 A schematic diagram of the structure of an electronic device 400 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0124] like Figure 7As shown, the electronic device 400 includes at least one processor 401, and a memory connected to the at least one processor 401 in communication, such as a read-only memory (ROM) 402, a random access memory (RAM) 403, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 401 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 402 or the computer program loaded from the storage unit 408 to the random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 can also be stored. The processor 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0125] Multiple components in the electronic device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0126] The processor 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 401 executes the various methods and processes described above, such as a session service processing method.
[0127] In some embodiments, the session service processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the processor 401, one or more steps of the session service processing method described above may be performed. Alternatively, in other embodiments, the processor 401 may be configured to execute the session service processing method in any other appropriate manner (e.g., by means of firmware).
[0128] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0129] The computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable session service processing device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0130] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0131] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0132] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0133] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS (Virtual Private Server) services.
[0134] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0135] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for processing a session service, characterized in that: The method comprises: Acquire a conversation channel identifier, user input information, and message attribute information of the user input information; According to the session channel identifier, searching for the target session channel where the user is located, and obtaining channel configuration information of the target session channel; Determining a target message response terminal of the user according to the message attribute information and the channel configuration information; Sending the user input information to the target message answering end; A response message from the target message response end to the user input information feedback is received, and the response message is sent to the target conversation channel, so that the target conversation channel displays the response message to the user.
2. The method according to claim 1, characterized in that The message attribute information includes the message type and the message input time; the message type includes the message format type and the manual conversation instruction type; the channel configuration information includes the preset message answering terminal type, the preset robot answering terminal, at least one candidate manual answering terminal and the manual answering terminal available time period; The preset message response terminal type includes a manual response terminal type; The determining, according to the message attribute information and the channel configuration information, a target message response terminal of the user includes: If the message type is a message format type, and the preset message answering end type is a manual answering end type, then verifying whether the manual answering end is available according to the message input time and the available time period of the manual answering end, and obtaining a verification result; If the message type is a manual conversation transfer instruction type, verifying whether the manual answering terminal is available according to the message input time and the available time period of the manual answering terminal to obtain a verification result; According to the verification result, a target message response end is determined from the preset robot response end and each of the candidate human response ends.
3. The method according to claim 2, characterized in that While obtaining the session channel identifier, the user input information, and the message attribute information of the user input information, it also includes: Obtaining a user ID of the user; The step of determining a target message response end from the preset robot response end and each of the candidate human response ends according to the verification result includes: If the verification result is unavailable, determining the preset robot response end as the target message response end; If the verification result is available, querying the manual session status of the user according to the user identifier; According to the artificial session state, a target message response end is determined from each of the candidate artificial response ends.
4. The method according to claim 3, characterized in that The step of determining a target message response end from each of the candidate manual response ends according to the manual session state includes: If the manual conversation state is in progress, the current manual answering end is obtained, and the current manual answering end is determined as the target message answering end; wherein the current manual answering end is a candidate manual answering end that has been assigned to the user; If the artificial session state is not in session, a target message answering end is allocated to the user according to each candidate artificial answering end, and the artificial session state of the user is changed to in session.
5. The method according to claim 2, characterized in that: The channel configuration information also includes robot response abnormal prompt information; Before sending the response message to the target session channel, the method further includes: If the target message response end is a robot response end, detecting whether the response message is abnormal and obtaining a detection result; If the detection result is abnormal, splicing the response message and the robot response abnormal prompt information according to the verification result to obtain spliced information; The response message is updated according to the splicing information.
6. The method according to claim 5, characterized in that The robot responds to abnormal prompt information including transfer to manual conversation prompt information and waiting prompt information; The step of splicing the response message and the robot response abnormality prompt information according to the verification result to obtain spliced information includes: If the verification result is unavailable, the response message and the waiting prompt information are spliced to obtain spliced information; If the verification result is available, the response message and the prompt information for transferring to the manual session are spliced.
7. The method according to claim 3, characterized in that The channel configuration information also includes session termination interface information and session non-existence prompt information; The method further comprises: If the message type is an instruction type for ending a manual session, determining that the target message response end is empty, and querying the manual session state of the user according to the user identifier; If the manual session state is in progress, calling the session end interface according to the session end interface information to end the user session; If the state of the artificial session is no session, the prompt information indicating that the session does not exist is determined as a response message.
8. A session service processing device, characterized in that: The device comprises: An information acquisition module, used to acquire a conversation channel identifier, user input information, and message attribute information of the user input information; A channel determination module, used to find the target session channel where the user is located according to the session channel identifier, and obtain channel configuration information of the target session channel; A response end determination module, used to determine a target message response end of the user according to the message attribute information and the channel configuration information; A first sending module, used to send the user input information to the target message answering end; The second sending module is used to receive a response message from the target message response end in response to the user input information feedback, and send the response message to the target conversation channel, so that the target conversation channel displays the response message to the user.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the session service processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the session service processing method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Multi-channel service access method, device and equipment and readable storage medium
CN115460165A
Customer service session request processing method and related equipment
CN116233048A
Session message display method, electronic device and storage medium
US20220247707A1
Message push method, apparatus, device and medium
US20220303347A1
Display method and apparatus for session message, and device and storage medium
WO2024002047A1
Cited By
Intelligent agent publishing method and device, electronic equipment and computer readable storage medium
CN122261586A
