Message processing method, electronic device, and storage medium

By acquiring the processing status of instant messaging applications and automating the processing of session messages, the problem of message delay in cross-time zone information exchange is solved, and efficient message processing is achieved.

CN123164083APending Publication Date: 2026-11-24ADVANCED NOVA TECH (SINGAPORE) PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611507470.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-24
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In cross-time zone information exchange scenarios, there is a delay between message reception and processing, resulting in low message processing efficiency.

Method used

By obtaining the processing status of the target instant messaging application, a processing strategy is determined, and session messages are automatically analyzed and processed to generate target messages and push them to the proxy message handler for processing.

Benefits of technology

Even if the message handler is not online or is not in a response period, it can improve the efficiency of message processing and ensure the timeliness and accuracy of message processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164083A_ABST
    Figure CN123164083A_ABST
Patent Text Reader

Abstract

Embodiments of this specification provide a message processing method, an electronic device, and a storage medium. The method includes: obtaining a target processing state of a target instant messaging application; determining a target processing strategy based on the target processing state; and analyzing and processing at least one session message related to the target instant messaging application based on the target processing strategy to generate a target message, and then pushing the target message to a target object in the target instant messaging application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of instant messaging, and more particularly to a message processing method, electronic device, and storage medium. Background Technology

[0002] With the continued development of global economic integration, the demand for cross-time zone information exchange is also growing. For example, companies need to respond to customer inquiries and questions in different time zones to ensure the continuity and timeliness of services. Furthermore, multiple teams across time zones need to collaborate on tasks and achieve collaborative work.

[0003] However, in cross-time zone information exchange scenarios, there is a delay between message reception and processing. Therefore, there is an urgent need to provide an efficient message processing method.

[0004] The information in the background section is merely information known only to the inventor and does not imply that such information had entered the public domain before the date of this application, nor does it imply that it can be considered prior art in this disclosure. Summary of the Invention

[0005] This specification provides a message processing method, an electronic device, and a storage medium.

[0006] In a first aspect, this specification provides a message processing method, comprising: obtaining the target processing state of the target instant messaging application; determining a target processing strategy based on the target processing state; analyzing and processing at least one session message related to the target instant messaging application based on the target processing strategy to generate a target message; and pushing the target message to a target object in the target instant messaging application.

[0007] Secondly, this specification also provides an electronic device, comprising: at least one storage medium storing at least one instruction set for message processing; and at least one processor communicatively connected to at least one storage medium, wherein, when the electronic device is in operation, the at least one processor reads at least one instruction set and executes the message processing method as described above according to the instructions of at least one instruction set.

[0008] Thirdly, this specification also provides a computer-readable non-volatile storage medium storing at least one instruction set, which, when executed by at least one processor, implements the message processing method described above.

[0009] As can be seen from the above technical solutions, the message processing method, electronic device, and storage medium provided in this specification obtain the target processing state of the target instant messaging application, determine the target processing strategy based on the target processing state, and then analyze and process at least one session message related to the target instant messaging application based on the target processing strategy. This allows for automatic and accurate generation of target messages and their push to target objects within the target instant messaging application without waiting for the message processor to come online and then manually processing the messages. Thus, even if the message processor is not online or is in a non-response period (e.g., non-working hours), message processing can be delegated to the message processor, thereby improving message processing efficiency.

[0010] Other functions of the message processing methods, electronic devices, and storage media provided in this specification will be partially listed in the following description. The inventive aspects of the message processing methods, electronic devices, and storage media provided in this specification can be fully understood through practice or use of the methods, apparatus, and combinations described in the detailed examples below. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of this specification, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 A schematic diagram of a message processing scenario provided according to an embodiment of this specification is shown; Figure 2 A hardware structure diagram of an electronic device provided according to an embodiment of this specification is shown; Figure 3 A flowchart of a message processing method provided according to an embodiment of this specification is shown; Figure 4 A schematic diagram of a level provided according to an embodiment of this specification is shown; and Figure 5 A schematic diagram of a message processing method provided according to an embodiment of this specification is shown. Detailed Implementation

[0013] The following description provides specific application scenarios and requirements for this specification, intended to enable those skilled in the art to make and use the contents of this specification. Various partial modifications to the disclosed embodiments will be apparent to those skilled in the art, and the general principles defined herein can be applied to other embodiments and applications without departing from the spirit and scope of this specification. Therefore, this specification is not limited to the embodiments shown, but rather to the widest scope consistent with the claims.

[0014] The terminology used herein is for the purpose of describing particular exemplary embodiments only and is not restrictive. For example, unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “the” used herein may also include the plural forms. When used in this specification, the terms “comprising,” “including,” and / or “containing” mean that the associated integers, steps, operations, elements, and / or components are present, but do not exclude the presence of one or more other features, integers, steps, operations, elements, components, and / or groups, or that other features, integers, steps, operations, elements, components, and / or groups may be added to the system / method.

[0015] Considering the following description, these and other features of this specification, as well as the operation and function of the related components of the structure, and the economy of assembly and manufacture of the parts, can be significantly improved. All of these form part of this specification with reference to the accompanying drawings. However, it should be clearly understood that the drawings are for illustrative and descriptive purposes only and are not intended to limit the scope of this specification. It should also be understood that the drawings are not drawn to scale.

[0016] The flowcharts used in this specification illustrate operations implemented according to some embodiments of this specification. It should be clearly understood that the operations in the flowcharts may not be implemented in a sequential order. Instead, the operations may be implemented in reverse order or simultaneously. Furthermore, one or more additional operations may be added to the flowcharts. One or more operations may be removed from the flowcharts.

[0017] The following section introduces the application scenarios of this manual.

[0018] Information exchange is an indispensable part of daily life and work. With the continuous development of internet technology, instant messaging applications have become the mainstream method of information exchange. Instant messaging applications are applications that support dialogue and communication between at least two conversation partners (i.e., at least two message handlers). For example, users can send messages to contacts they want to initiate conversations with through social communication software deployed on their terminals, and receive messages back from those contacts to complete the information exchange process.

[0019] However, this method of information exchange via instant messaging applications has certain limitations. For example, in cross-time zone information exchange scenarios, because the time zones of the conversation objects (i.e., message processors) are different, messages sent by one party often cannot be viewed and replied to until the other party comes online. Therefore, there is a delay between message reception and processing, resulting in low message processing efficiency. To address this, embodiments of this specification provide a message processing method that establishes an automated message processing mechanism. Specifically, this method does not require waiting for the message processor to come online before manually processing messages. Instead, it obtains the target processing state of the target instant messaging application, determines the target processing strategy based on the target processing state, and then analyzes and processes at least one conversation message related to the target instant messaging application based on the target processing strategy. This automatically and accurately generates target messages and pushes them to target objects in the target instant messaging application. In this way, even if the message processor is not online or is in a non-reply time (e.g., non-working hours), message processing can be performed on behalf of the message processor, thereby improving message processing efficiency.

[0020] Figure 1 A schematic diagram of a message processing scenario provided according to an embodiment of this specification is shown. Figure 1 As shown, the application scenario 100 may include a first session object 110, a first session terminal 120, a second session object 130, a second session terminal 140, a target instant messaging application 150, and a message processing system 160.

[0021] In this context, the first session object 110 and the second session object 130 represent two session objects (i.e., two message processors) that need to engage in a session. The session objects can be entity objects comprised of at least one user, virtual objects such as virtual robots, or a combination of entity objects and virtual objects. For example, in a scenario where a company responds to customer inquiries, the first session object 110 could be a customer service employee of the company, and the second session object 130 could be an individual buyer. As another example, in a scenario involving multiple team collaboration tasks, the first session object 110 could be an employee in the first department, and the second session object 130 could be an employee in the second department.

[0022] The first session terminal 120 is the terminal device used by the first session object 110, and the second session terminal 140 is the terminal device used by the second session object 130. Terminal devices include, but are not limited to, smart hardware with integrated interactive functions such as smartphones, personal computers, or tablets. Both the first session terminal 120 and the second session terminal 140 have a target instant messaging application 150 deployed on them. This specification does not limit the deployment form of the target instant messaging application 150; it can be deployed through mini-programs, mobile applications (apps), web applications, dedicated clients, etc. Furthermore, the deployment form of the target instant messaging application 150 on the first session terminal 120 can differ from its deployment form on the second session terminal 140. For example, the first session terminal 120 may deploy the target instant messaging application 150 as a web application, while the second session terminal 140 may deploy the target instant messaging application 150 as a mobile app.

[0023] The target instant messaging application 150 supports information interaction between the first session object 110 and the second session object 130. It can be understood that when the first session object 110 sends a message to the second session object 130 through the target instant messaging application 150, the first session object 110 acts as the message initiator, and the second session object 130 acts as the message receiver; conversely, when the second session object 130 sends a message to the first session object 110 through the target instant messaging application 150, the first session object 110 acts as the message receiver, and the second session object 130 acts as the message initiator. For ease of description, the following explanation will primarily focus on the perspective of the current session object, i.e., the current session object as the message processor. The current session object can be either the first session object 110 or the second session object 130.

[0024] The message processing system 160 is communicatively connected to the target instant messaging application 150. In some embodiments, the message processing system 160 can be implemented through a standalone physical server, a server cluster consisting of multiple physical servers, a distributed system, or a cloud server providing cloud computing services. In some embodiments, the message processing system 160 can also be deployed as a plug-in in the target instant messaging application 150. The message processing system 160 is primarily used in this specification to acquire at least one session message related to the target instant messaging application 150 in order to execute the message processing method provided in this specification. At this time, the message processing system 160 may store data or instructions for executing the message processing method described in this specification, and can execute or be used to execute said data or instructions. In some embodiments, the message processing system 160 may include a hardware device with data information processing capabilities and the necessary programs required to drive the hardware device to operate.

[0025] It should be understood that Figure 1The number of nodes shown is merely illustrative; the number can be adjusted according to implementation needs. For example, the message processing system 160 can connect to multiple target instant messaging applications 150, and each target instant messaging application 150 can connect to multiple session terminals to achieve a wider range of message processing. In some application scenarios, if multiple target instant messaging applications 150 exist, the providers (e.g., development companies) of these applications can be different to ensure compatibility with message processing scenarios across multiple different target instant messaging applications 150.

[0026] The message processing scenarios exemplified above are just one of the many usage scenarios provided in this manual. The message processing methods provided in this manual can be applied not only to the scenarios listed above, but also to other scenarios involving message processing.

[0027] This specification also provides an electronic device 200. The electronic device 200 may be integrated or deployed with... Figure 1 Electronic device 200 of message processing system 160 in the middle. Figure 2 A hardware structure diagram of an electronic device according to embodiments of this specification is shown. In some embodiments, one or more electronic devices 200 may perform one or more steps of one or more methods described or illustrated herein.

[0028] This specification considers any suitable number of electronic devices 200. The electronic devices 200 are considered to take any suitable physical form. By way of example and not limitation, the electronic devices 200 can be embedded computer systems, system-on-a-chip (SOC), single-board computer systems (SBC) (e.g., computer-on-module (COM) or system-on-module (SOM)), desktop computer systems, notebook or laptop systems, interactive kiosks, mainframes, grids of computer systems, mobile phones, personal digital assistants (PDAs), servers, tablet systems, or any suitable combination thereof. Where appropriate, one or more electronic devices 200 can be single or distributed; can span multiple locations or multiple machines; can span one or more data centers; or reside in the cloud, which may include one or more cloud components and communicate through one or more networks. Where appropriate, one or more electronic devices 200 can perform one or more steps of one or more methods described or illustrated herein without substantial spatial or temporal limitations, and can be performed in real-time or batch mode, or at different times and / or different locations.

[0029] In some embodiments, electronic device 200 includes: processor 202, memory 204, storage 206, input / output (I / O) interface 208, communication interface 210, and interconnect structure 212. Although this specification describes and illustrates an example electronic device 200 having a specific number of specific components arranged in a specific manner, this specification contemplates any suitable number of any suitable components arranged in any suitable manner.

[0030] In some embodiments, processor 202 is used to execute instructions. Processor 202 can retrieve instructions through internal registers, internal caches, memory 204, or storage 206, decode and execute them, and write one or more results to internal registers, internal caches, memory 204, or storage 206. Where appropriate, processor 202 may include one or more internal caches. Processor 202 may also include one or more internal registers, one or more arithmetic logic units (ALUs), and one or more processor cores. Processor 202 may be a multi-core processor and may include, but is not limited to: microcontrollers, microprocessors, RISC, ASICs, ASIPs, CPUs, GPUs, PPUs, DSPs, FPGAs, ARMs, and programmable logic devices (PLDs), or other circuits or processors capable of performing one or more functions, or any combination thereof.

[0031] In some embodiments, memory 204 may be used to store instructions to be executed by processor 202 and / or data to be operated by processor 202. Memory 204 may include main memory and may include random access memory (RAM). Where appropriate, memory 204 may be volatile memory (e.g., dynamic RAM (DRAM) or static RAM (SRAM)), or other suitable memory types. Processor 202 may couple to memory 204 via one or more memory paths for instruction and data access. Where appropriate, memory 204 may include one or more memory cells.

[0032] In some embodiments, storage 206 may be used to provide non-volatile storage for data and / or instructions. Storage 206 may include, but is not limited to: hard disk drive (HDD), solid-state drive (SSD), flash memory, ROM, erasable ROM, optical media (e.g., optical disc), magnetic media (e.g., magnetic disk or magnetic tape), USB storage device, or combinations thereof. Where appropriate, storage 206 may be located inside or outside of electronic device 200 and may include one or more storage control units to facilitate communication between processor 202 and storage 206.

[0033] In some embodiments, I / O interface 208 may be used to provide an interface between electronic device 200 and one or more I / O devices. I / O interface 208 may include hardware, software, or a combination of both. I / O devices enable communication between a person and electronic device 200 or between electronic device 200 and external devices. Exemplary I / O devices may include, but are not limited to: keyboard, keypad, microphone, display, mouse, printer, scanner, speaker, camera, touch input device, stylus, trackball, tablet, and other suitable I / O devices; and I / O devices may also include one or more sensors. Where appropriate, I / O interface 208 may include one or more device or software drivers to enable processor 202 to control one or more associated I / O devices.

[0034] In some embodiments, communication interface 210 may be used to provide a communication interface between electronic device 200 and one or more other electronic devices 200 and / or one or more networks. Communication interface 210 may include hardware, software, or a combination of both. Communication interface 210 may support wired or wireless communication and may include a network interface controller (NIC) or a wireless adapter (e.g., a Wi-Fi adapter). Exemplary networks may include, but are not limited to: ad hoc networks, personal area networks (PANs), local area networks (LANs), wide area networks (WANs), metropolitan area networks (MANs), one or more portions of the Internet, and so on. Where appropriate, communication interface 210 may include one or more communication interfaces 210.

[0035] In some embodiments, the interconnect structure 212 is used to interconnect the components of the electronic device 200. The interconnect structure 212 may include, but is not limited to: bus, switching structure, cross switch, on-chip interconnect network, point-to-point interconnect or other suitable interconnect structure, or any combination thereof.

[0036] This specification also provides a computer-readable non-volatile storage medium that stores a computer program. When executed by a processor, the computer program can be used to perform one or more steps of one or more methods described or shown herein, or to implement one or more functions described or shown herein. The computer-readable non-volatile storage medium may include one or more semiconductor or other integrated circuit (IC) based memories (e.g., FPGA or ASIC built-in memory / configuration memory), HDDs, HHDs, optical discs, optical disc drives (ODDs), magneto-optical discs, magneto-optical drives, floppy disks, floppy disk drives (FDDs), magnetic tapes, SSDs, RAM drives, secure digital cards, or combinations thereof, or other suitable media.

[0037] For illustrative purposes only, only one processor 220 is shown in the accompanying drawings of electronic device 200. However, it should be noted that electronic device 200 may also include multiple processors. Therefore, the operation and / or method steps disclosed herein may be executed by one processor or by multiple processors in combination. For example, if processor 220 of electronic device 200 in this specification executes steps A and B, it should be understood that steps A and B may also be executed jointly or separately by two different processors 220 (e.g., a first processor executes step A, a second processor executes step B, or the first and second processors jointly execute steps A and B).

[0038] Figure 3 A flowchart of a message processing method according to an embodiment of this specification is shown. As previously described, electronic device 200 can execute the message processing method P300 of this specification. Specifically, processor 220 in electronic device 200 can read an instruction set stored in its local storage medium and then execute the message processing method P300 of this specification according to the instructions in the instruction set. Figure 3 As shown, method P300 may include the following steps S310 to S340.

[0039] S310: Obtain the target processing status of the target instant messaging application.

[0040] In this specification, the target processing state is used to indicate the state of message processing through the target instant messaging application 150. The target processing state includes at least an external response state and an internal handover state. The external response state refers to the state where the current session object (e.g., the first session object 110 or the second session object 130), as the message receiver, needs to respond to and reply to messages sent by other session objects. For example, the current session object, acting as a customer service representative, needs to reply to messages sent by customers. The internal handover state refers to the state where the current session object (e.g., the first session object 110 or the second session object 130), as the message initiator, needs to send messages to other session objects for work handover. For example, the current session object, acting as a project participant, needs to send messages for work handover to other project participants. In some embodiments, the target processing state may also include other processing states, such as a personal organization state, where the current session object both acts as the message initiator sending a first message that needs to be organized (e.g., categorized, structured, archived, etc.) and as the message receiver receiving a second message after the first message has been organized.

[0041] In some embodiments, the electronic device 200 can read the configuration parameters corresponding to the target instant messaging application 150 and obtain the target processing state of the target instant messaging application 150 based on the configuration parameters. For example, if the status flag bit in the configuration parameters is set to 1, the electronic device 200 determines that the target processing state is an external response state; if the status flag bit in the configuration parameters is set to 0, the electronic device 200 determines that the target processing state is an internal handover state.

[0042] In some embodiments, the electronic device 200 may determine the target processing status based on the detected auto-response event for the target instant messaging application 150. In this specification, the auto-response event is used to trigger an automated message processing mechanism. In some embodiments, the auto-response event may be an event generated in response to a first interactive action by the current session object towards the target instant messaging application 150. For example, a user enters the command "off" or "relay" at a specified location within the target instant messaging application 150 to initiate a first interactive action, and then the electronic device 200 generates an auto-response event in response to this first interactive action. "Off" indicates that the user is offline or has finished get off work and needs to automatically respond to and reply to received messages; "relay" indicates that the user needs to hand over work (e.g., the user has requested leave or has reached a handover time). In some embodiments, the auto-response event may also be an event automatically generated by the electronic device 200. For example, the electronic device 200 may automatically generate an auto-response event when a first time node is reached (e.g., 6 PM every day).

[0043] Upon detecting an automatic response event, the electronic device 200 can determine the target processing state based on the automatic response event. In some embodiments, the electronic device 200 can determine the corresponding target processing state based on the status identifier carried in the automatic response event. For example, a status identifier of "off" corresponds to an external response state, and a status identifier of "relay" corresponds to an internal handover state. In some embodiments, the electronic device 200 can also determine the target processing state based on the type of the automatic response event. For example, an automatic response event of type one corresponds to an external response state, and an automatic response event of type two corresponds to an internal handover state. This specification is not limited to the above.

[0044] S320: Determine the target processing strategy based on the target processing status.

[0045] In this specification, the target processing strategy is used to indicate the message processing mode of the electronic device 200. In other words, the target processing strategy reflects how the electronic device 200 acts as an agent for message processing. For example, the target processing strategy may include a risk-level-based processing strategy, a handover and summarization strategy, a timed push strategy (a strategy for periodically pushing messages outwards), a message organization strategy (a strategy for classifying, organizing, or archiving received messages), etc. The risk-level-based processing strategy and the handover and summarization strategy will be described in detail below and will not be repeated here. In some embodiments, the electronic device 200 can determine the target processing strategy matching the target processing state from a first mapping relationship. The first mapping relationship includes a mapping relationship between candidate processing states and candidate processing strategies. For example, in the first mapping relationship, the external response state corresponds to candidate processing strategy A, the internal handover state corresponds to candidate processing strategy B, the personal organization state corresponds to candidate processing strategy C, and so on.

[0046] In some embodiments, the above-described S320 can be implemented in either the first or second manner.

[0047] Method 1: Responding to the target processing status being an outward response status, the target processing strategy is determined to be a risk-level-based strategy. A risk-level-based strategy refers to classifying received messages into risk levels and employing different response methods for different risk levels. This risk-level-based strategy enables tiered responses to received messages, ensuring the reliability of the replies.

[0048] Method 2: Responding to the target processing status being internal handover, the target processing strategy is determined to be a handover summary strategy. The handover summary strategy refers to the processing strategy for sending summarized messages related to the work handover. This strategy helps reduce redundant communication, ensures the continuity and accuracy of team collaboration, and improves collaboration efficiency.

[0049] S330: Based on the target processing strategy, analyze and process at least one session message related to the target instant messaging application to generate a target message.

[0050] In this specification, at least one session message related to the target instant messaging application 150 refers to an interaction message obtained through the target instant messaging application 150 and generated with other session objects (e.g., customers, team members, etc.). This specification does not limit the form of the session message, which includes, but is not limited to, text, voice, images, videos, files, jump links, etc., or any combination thereof. In some embodiments, there is a correspondence between the target processing strategy and at least one session message; that is, the at least one session message may be different under different target processing strategies.

[0051] In some embodiments, prior to S330, the message processing method further includes: acquiring at least one raw message related to the target instant messaging application, and standardizing the at least one raw message to obtain at least one session message. In this specification, at least one raw message refers to an unprocessed (e.g., format-converted) interactive message generated by the target instant messaging application 150 with other session objects (e.g., customers, team members, etc.). As an example, the processing of the raw message may involve standardizing its format and converting it into at least one session message that can be subsequently identified and analyzed. This method obtains standardized session messages, improving the efficiency of subsequent analysis and processing. Furthermore, it facilitates interfacing with target instant messaging applications 150 provided by different providers.

[0052] The following describes the risk-level-based processing strategy in the external response state. In some embodiments, S330 above includes S331 to S334 as follows.

[0053] S331: In response to the target processing strategy being a risk-level-based processing strategy, analyze at least one session message and determine the target risk level indicator corresponding to at least one session message.

[0054] In some embodiments, if the target processing status is an outward response status, that is, if the target processing strategy is a risk-level-based processing strategy, the affiliated organizations of other session objects may be different from those of the current session object. For example, other session objects and the current session object may belong to different enterprises, teams, organizations, or departments. In some embodiments, the electronic device 200 may use at least one interactive message sent by other session objects within a preset time window as at least one session message. The preset time window is set according to actual needs, such as 1 minute, 5 minutes, 10 minutes, etc. For example, assuming that customer A sends interactive message 1, interactive message 2, and interactive message 3 to the current session object through the target instant messaging application 150 within 1 minute, the electronic device 200 will use interactive message 1, interactive message 2, and interactive message 3 together as session messages related to the target instant messaging application 150 to analyze interactive message 1, interactive message 2, and interactive message 3 to obtain the target risk level index.

[0055] In this specification, the target risk level indicator is used to quantify the risk level of at least one session message, such as a risk score and / or risk level. In some embodiments, the target risk level indicator is negatively correlated with the risk level of at least one session message; that is, the smaller the value of the target risk level indicator (or the lower the level of the target risk level indicator), the higher the risk level of at least one session message.

[0056] The process for determining the target risk level indicators is described below. In some embodiments, S331 above includes S3311 to S3315 as follows.

[0057] S3311: Perform a matching operation between at least one session message and a preset thesaurus.

[0058] In this specification, the preset thesaurus is a thesaurus composed of multiple preset keywords. Preset keywords refer to at least one of the characters, words, phrases, or fixed text collocations that may appear in conversation messages. In some embodiments, the preset thesaurus may be a configured static thesaurus obtained by the electronic device 200 from a database, or it may be a dynamic thesaurus that the electronic device 200 continuously updates based on historical conversation messages. This specification does not impose any limitations.

[0059] In some embodiments, each of the multiple preset keywords can correspond to a preset level, with each preset level representing a different degree of risk; the higher the preset level, the higher the risk. For example, the preset keywords include preset keyword 1 to preset keyword 10. Preset keyword 1, preset keyword 2, and preset keyword 3 all correspond to the first level, preset keyword 4 and preset keyword 5 all correspond to the second level, and preset keyword 6 to preset keyword 10 all correspond to the third level. The degree of risk corresponding to the first, second, and third levels increases sequentially, and so on. Specifically, for example, keywords such as "accident" and "complaint" correspond to higher preset levels, representing a higher degree of risk.

[0060] In some embodiments, the electronic device 200 may perform word segmentation on each of the at least one session message to obtain at least one first word in the session message, and perform a matching operation between each of the at least one first word and a preset thesaurus. For example, it may calculate the semantic similarity between the first word and each preset keyword. In some embodiments, the electronic device 200 may also perform a matching operation between the at least one session message and the preset thesaurus using regular expressions corresponding to preset keywords; however, this specification is not limited to the above.

[0061] S3312: Based on the matching results of the matching operation, determine the matching risk level index corresponding to at least one session message.

[0062] In this specification, the matching result in S3312 is used to indicate the matching status between at least one session message and a preset thesaurus. In some embodiments, the matching result in S3312 may include a first matching similarity, which is used to quantify the degree of matching between at least one session message and the preset thesaurus, such as the semantic similarity between a first word used in at least one session message and the preset thesaurus. In some embodiments, the more semantically similar (e.g., identical) the first word is to at least one preset keyword in the preset thesaurus, the greater the semantic similarity between at least one session message and the preset thesaurus. In some embodiments, the matching result in S3312 may also include a hit count, representing the number of preset keywords hit by at least one session message.

[0063] The matching risk level index is a metric determined through a pre-defined thesaurus to quantify the risk level of at least one session message. In some embodiments, the matching risk level index is negatively correlated with the risk level of at least one session message. That is, the smaller the value of the matching risk level index (or the lower the level), the higher the risk level of at least one session message; the larger the value of the matching risk level index (or the higher the level), the lower the risk level of at least one session message.

[0064] In some embodiments, the electronic device 200 may determine a matching risk level index based on a first matching similarity and / or the number of hits.

[0065] In some embodiments, the matching risk level indicator is positively correlated with the first match similarity and / or the number of hits. That is, the higher the first match similarity and / or the greater the number of hits, the higher the value of the corresponding matching risk level indicator (or the higher the level); the lower the first match similarity and / or the smaller the number of hits, the lower the value of the corresponding matching risk level indicator (or the lower the level).

[0066] In some embodiments, the electronic device 200 may determine the corresponding matching risk level indicator based on the first matching similarity and / or the number of hits. In some embodiments, the electronic device 200 may directly use the first matching similarity (e.g., a value between 0 and 1) as the matching risk level indicator.

[0067] In some embodiments, the electronic device 200 can convert the first match similarity and / or hit count into a corresponding match risk level indicator based on a second mapping relationship. In some embodiments, the second mapping relationship includes a first sub-mapping relationship and a second sub-mapping relationship. The first sub-mapping relationship refers to the mapping relationship between the first match similarity and the match risk level indicator, and the second sub-mapping relationship refers to the mapping relationship between the hit count and the match risk level indicator. Further, the electronic device 200 can convert the first match similarity into a similarity sub-indicator through the first sub-mapping relationship, and convert the hit count into a quantity sub-indicator through the second sub-mapping relationship, and fuse (e.g., weighted summation) the similarity sub-indicator and the quantity sub-indicator to obtain the match risk level indicator.

[0068] In some embodiments, the matching result in S3312 may further include a matching level, indicating which / which preset levels correspond to the preset keywords matched by at least one session message. Accordingly, in some embodiments, the electronic device 200 may also determine a matching risk level indicator based on the matching level.

[0069] In some embodiments, the matching risk level indicator is negatively correlated with the matching level. For example, the higher the matching level, the higher the risk level, and the smaller the value of the corresponding matching risk level indicator (or the lower the level); the lower the matching level, the lower the risk level, and the larger the value of the corresponding matching risk level indicator (or the higher the level).

[0070] In some embodiments, the electronic device 200 can convert the matching level into a corresponding matching risk level indicator through a third mapping relationship, wherein the third mapping relationship represents the mapping relationship between the preset level and the matching risk level indicator. Specifically, for example, as mentioned above, the matching risk level indicator corresponding to the first level is 0.9, the matching risk level indicator corresponding to the second level is 0.6, and the matching risk level indicator corresponding to the third level is 0 (or other values ​​close to 0, such as 0.01, 0.05, 0.1, etc.). In some application scenarios, there may be multiple matching levels (for example, if at least one session message simultaneously hits the aforementioned preset keyword 1 and preset keyword 6, then the matching levels include the aforementioned first level and third level). In this case, the electronic device 200 can determine the matching risk level indicator based on the highest level among the matching levels (e.g., the third level). In some embodiments, the electronic device 200 can also determine the corresponding level sub-indicator for each of the multiple matching levels and fuse (e.g., weighted summation) all the level sub-indicators to obtain the matching risk level indicator; this specification is not limited to this.

[0071] The above methods can also be used in combination. In some embodiments, if at least one of the matching levels is greater than or equal to a set level, the corresponding matching risk level indicator is determined based on the set level and the third mapping relationship. If the matching level is less than the set level, the matching risk level indicator is determined based on the first matching similarity and / or the number of hits (see above for details). The set level can be understood as the preset level corresponding to certain high-risk preset keywords (e.g., "accident" or "complaint"). That is, if at least one session message hits a higher-risk preset keyword (correspondingly, the matching level is higher (greater than or equal to the set level)), the matching risk level indicator is directly determined based on the matching level (i.e., the matching risk level indicator is lower); conversely, if at least one session message does not hit a higher-risk preset keyword (correspondingly, the matching level is lower than the set level), the matching risk level indicator is determined based on the first matching similarity and / or the number of hits. It should be noted that the set level can be set according to the actual situation. For example, if the preset level includes 10 levels from 1 to 10, the set level can be level 7. As another example, if the preset level includes 100 levels from 1 to 100, the set level can be level 80.

[0072] S3313: If the matching risk level indicator meets the preset conditions, then the matching risk level indicator will be designated as the target risk level indicator.

[0073] In this specification, the electronic device 200 determines whether to introduce model risk level indicators and / or knowledge base risk level indicators based on preset conditions. Generally, the preset conditions are used to determine whether the matching risk level indicators are sufficient to characterize the risk level of at least one session message. That is, if the matching risk level indicators are sufficient to characterize the risk level of at least one session message, then the matching risk level indicators meet the preset conditions. In this case, the electronic device 200 can directly specify the matching risk level indicators as the target risk level indicators. This ensures the accuracy of the target risk level indicators, improves calculation speed, and eliminates the need to call large models to calculate model risk level indicators or call knowledge bases to calculate knowledge base risk level indicators, thus reducing resource consumption.

[0074] The preset conditions can be set according to actual needs. In some embodiments, whether the matching risk level indicator is within a preset indicator range can be used as a preset condition. For example, if the matching risk level indicator is within the preset indicator range, it is determined that the matching risk level indicator meets the preset condition; if the matching risk level indicator is not within the preset indicator range, it is determined that the matching risk level indicator does not meet the preset condition. In some embodiments, the preset indicator range can be determined based on a first preset value and a second preset value, wherein the first preset value is close to 1 and the second preset value is close to 0. In this specification, "close to" means that the difference between the two values ​​is less than a set threshold (e.g., 0.0001, 0.01, 0.1, etc., which can be set according to actual needs). In some embodiments, the preset indicator range can be greater than or equal to the first preset value or less than or equal to the second preset value. Specifically, in conjunction with the foregoing, if the matching risk level indicator is greater than or equal to the first preset value (e.g., 0.9), it indicates that at least one conversation message has a high degree of similarity to the preset thesaurus and / or at least one conversation message hits a large number of preset keywords. In this case, the semantics of at least one conversation message are relatively clear, and the matching risk level indicator is sufficient to characterize the corresponding risk level. If the matching risk level indicator is less than or equal to the second preset value (e.g., 0), it means that at least one session message has hit a preset keyword with a higher risk level, and therefore carries a greater risk. The matching risk level indicator can also sufficiently characterize the corresponding risk level. Furthermore, in both of these cases, the electronic device 200 can determine that the matching risk level indicator meets the preset conditions; otherwise, it can determine that the matching risk level indicator does not meet the preset conditions.

[0075] S3314: If the matching risk level indicators do not meet the preset conditions, then determine the model risk level indicators and / or the knowledge base risk level indicators.

[0076] In this specification, if the matching risk level indicator does not meet the preset conditions, it means that the matching risk level indicator is insufficient to characterize the risk level of at least one session message. In order to improve the accuracy of the target risk level indicator, it is still necessary to determine the model risk level indicator and / or the knowledge base risk level indicator.

[0077] The model risk level index is a metric determined using a large model to quantify the risk level of at least one session message. In some embodiments, the model risk level index is negatively correlated with the risk level of at least one session message. That is, the smaller the value of the model risk level index (or the lower the level), the higher the risk level of at least one session message; the larger the value of the model risk level index (or the higher the level), the lower the risk level of at least one session message. The following describes how the model risk level index is obtained. In some embodiments, the electronic device 200 can call a large model to process at least one session message to obtain the model risk level index corresponding to at least one session message.

[0078] In this specification, a large model is a model with semantic understanding and reasoning capabilities, including but not limited to a Large Language Model (LLM). In some embodiments, the electronic device 200 can analyze the message intent of at least one conversational message using the large model and determine the model risk level index corresponding to the at least one conversational message based on the message intent. Here, message intent refers to the core semantics carried by at least one conversational message, such as business inquiry, problem escalation, casual conversation, information confirmation, service complaint, etc. In some embodiments, different message intents can correspond to different model risk level indices. The electronic device 200 can determine the model risk level index corresponding to at least one conversational message according to a fourth mapping relationship. The fourth mapping relationship includes the mapping relationship between message intent and model risk level index; for example, the model risk level index corresponding to a service complaint is 0.1, and the model risk level index corresponding to casual conversation is 0.9.

[0079] In some embodiments, the electronic device 200 may also input at least one session message into a large model, which will then parse the message from multiple evaluation dimensions to generate sub-risk indicators for each dimension. These sub-risk indicators will be then fused to obtain the final model risk level indicator. In some embodiments, the electronic device 200 may also pre-train the large model using risk indicators from multiple session samples, enabling it to directly output the corresponding model risk level indicator from at least one session message during the usage phase. This specification is not limited to the above.

[0080] By utilizing the above methods, the semantic understanding and contextual reasoning capabilities of large models can be leveraged to obtain model risk level indicators more efficiently, thereby improving the reliability of target risk level indicators.

[0081] The knowledge base risk level index is an indicator determined using a knowledge base to quantify the risk level of at least one session message. In some embodiments, the knowledge base risk level index is negatively correlated with the risk level of at least one session message. That is, the smaller the value of the knowledge base risk level index (or the lower the level), the higher the risk level of at least one session message; the larger the value of the knowledge base risk level index (or the higher the level), the lower the risk level of at least one session message. The following describes how to obtain the knowledge base risk level index. In some embodiments, the electronic device 200 can call the knowledge base to process at least one session message to obtain the knowledge base risk level index corresponding to at least one session message.

[0082] In some embodiments, the knowledge base may include at least one of the following: pushed historical messages, standard reference Q&A, and object-related information. Pushed historical messages refer to historical interaction messages sent by the current session object to other session objects. For example, historical replies sent to questions from other session objects can be archived according to the type of the other session object and / or the question type. Standard reference Q&A refers to reference standards, behavioral norms, business guidelines, etc., for responses, including but not limited to Frequently Asked Questions (FAQs), standard processing paths (e.g., fund inquiry process, Virtual Account (VA) application process, Request for Information (RFI) processing process, ticket refund / refund process, contract signing steps, account onboarding operation guidelines, etc.), function descriptions (e.g., product guides), etc., or any combination thereof. Object-related information records candidate-related information for multiple candidate session objects, including but not limited to classification identifiers (e.g., VIP customer or regular customer), historical service records, preference information (e.g., preferred language, preferred communication method, preferred processing method), communication focus, triggered work orders, and other structured information, or any combination thereof.

[0083] In some embodiments, the electronic device 200 can convert content in the knowledge base (e.g., standard reference questions and answers, pushed historical messages, etc.) into a first semantic vector, and calculate a similarity score between at least one session message and the knowledge base based on the second semantic vector corresponding to at least one session message and the first semantic vector, so as to obtain the corresponding knowledge base risk level index based on the similarity score. For example, the electronic device 200 can directly use the calculated similarity score as the knowledge base risk level index. Alternatively, the electronic device 200 can convert the calculated similarity score into the corresponding knowledge base risk level index based on a fifth mapping relationship between the similarity score and the knowledge base risk level index. In some embodiments, the knowledge base risk level index is positively correlated with the similarity score; that is, the higher the similarity score, the larger the value of the corresponding knowledge base risk level index (or the higher the level); the lower the similarity score, the smaller the value of the corresponding knowledge base risk level index (or the lower the level).

[0084] In some embodiments, the electronic device 200 may also employ a multi-layered search strategy. In some embodiments, there is a progressive relationship between each layer in the multi-layered search strategy. For example, a multi-layered search strategy may include a three-layered search strategy, where the first layer is used for exact matching, the second layer for semantic search, and the third layer for supplementary search. In some embodiments, the electronic device 200 may perform a matching operation (e.g., comparing whether the text is the same) on at least one session message with a standard reference question and answer, obtaining a first operation result of whether at least one session message matches a standard reference question and answer; search a target vector database (e.g., storing semantic vectors converted from standard reference question and answer) for semantic vectors similar to at least one session message, obtaining a second operation result; search in the pushed historical messages for identical or similar messages, obtaining a third operation result; and obtain a knowledge base risk level index based on at least one of the first, second, or third operation results.

[0085] In some embodiments, the electronic device 200 can first obtain a first operation result. When the accuracy of the first operation result is greater than or equal to a first accuracy threshold, a knowledge base risk level index is directly obtained based on the first operation result. When the accuracy of the first operation result is less than the accuracy threshold, a second operation result is obtained. Further, when the accuracy of the second operation result is greater than or equal to the second accuracy threshold, the first and second operation results are directly fused (e.g., weighted fusion) to obtain the knowledge base risk level index. When the accuracy of the second operation result is less than the second accuracy threshold, a third operation result is obtained, and the first, second, and third operation results are fused (e.g., weighted fusion) to obtain the knowledge base risk level index. The accuracy can be measured by the degree of matching or similarity. Through this method, precise matching is prioritized to quickly hit standard reference questions and answers, reducing time consumption. When the accuracy of the first operation result is insufficient, semantic search is used to identify messages with different textual expressions but similar semantics. When the accuracy of the second operation result is insufficient, the search scope is expanded through previously pushed historical messages to achieve supplementary retrieval. In this way, the reliability of the knowledge base risk level index can be improved.

[0086] In some embodiments, the electronic device 200 may also invoke a knowledge base to obtain target-related information (e.g., the initiator's classification identifier, historical service records, preference information, communication focus, triggered work orders, etc.) from multiple candidate related information, and determine the corresponding knowledge base risk level index based on the target-related information. In some embodiments, multiple risk dimensions (e.g., work order quantity dimension, etc.) can be obtained based on the candidate related information. Furthermore, the electronic device 200 can identify multiple risk features corresponding to multiple risk dimensions from the target-related information (e.g., using the number of triggered work orders as a risk feature under the work order quantity dimension, etc.), and based on the sixth mapping relationship between risk features and risk values, convert multiple risk features into corresponding multiple risk values, and fuse (e.g., weighted summation) the multiple risk values ​​to obtain the knowledge base risk level index. For example, the more triggered work orders in the target-related information, the larger the risk value corresponding to the risk feature under the work order quantity dimension, and the smaller the value of the knowledge base risk level index (or the lower the level). In some embodiments, the electronic device 200 may also input the target-related information into an intelligent agent, which will analyze and obtain the knowledge base risk level index; this specification is not limited to this.

[0087] In some embodiments, the above methods can also be used in combination. For example, the electronic device 200 can calculate a similarity score between at least one session message and a knowledge base to obtain a corresponding first sub-indicator based on the similarity score, and determine a corresponding second sub-indicator based on target-related information. The corresponding knowledge base risk level indicator can be obtained by fusing (e.g., weighted summation) the first and second sub-indicators.

[0088] This document only exemplifies some methods for obtaining knowledge base risk level indicators, and is not limited to these methods. In this way, knowledge base risk level indicators can be obtained efficiently, thereby improving the reliability of the target risk level indicators.

[0089] S3315: Determine the target risk level indicator based on the matching risk level indicator, the model risk level indicator, and / or the knowledge base risk level indicator.

[0090] In this specification, the electronic device 200 may determine the target risk level indicator based on the matching risk level indicator and the model risk level indicator; it may also determine the target risk level indicator based on the matching risk level indicator and the knowledge base risk level indicator; or it may determine the target risk level indicator based on the matching risk level indicator, the model risk level indicator, and the knowledge base risk level indicator.

[0091] In some embodiments, the electronic device 200 may fuse the matching risk level indicator, the model risk level indicator, and / or the knowledge base risk level indicator to obtain a target risk level indicator. In some embodiments, the electronic device 200 may perform weighted fusion (e.g., weighted summation, weighted multiplication, etc.) of the matching risk level indicator, the model risk level indicator, and / or the knowledge base risk level indicator to obtain a target risk level indicator, but this specification is not limited thereto.

[0092] Compared to a single matching risk level indicator, obtaining the target risk level indicator in this way is more comprehensive and reliable.

[0093] At this point, the electronic device 200 has determined the target risk level indicator, and can then proceed to step S332 below.

[0094] S332: Determine the target response strategy based on the target risk level indicators.

[0095] In this specification, the target response strategy is a strategy used to generate the initial message. In some embodiments, the target response strategy includes automated response strategies (such as template response strategies, knowledge base retrieval strategies, or artificial intelligence (AI) generation strategies), semi-automated response strategies (such as strategies where AI-generated responses are then manually reviewed or randomly checked), and manual intervention strategies (such as forcing manual response processing, generating work orders and transferring them to the corresponding processing personnel).

[0096] In some embodiments, the electronic device 200 can determine a target response strategy that matches the target risk level indicator from a plurality of candidate response strategies based on a seventh mapping relationship. The seventh mapping relationship includes the mapping relationship between each of the plurality of candidate response strategies and its corresponding indicator triggering condition. In some embodiments, the indicator triggering condition includes a numerical range corresponding to the target risk level indicator. If the target risk level indicator is within the numerical range of a certain indicator triggering condition, it means that the target risk level indicator meets the indicator triggering condition. If the target risk level indicator is not within the numerical range of a certain indicator triggering condition, it means that the target risk level indicator does not meet the indicator triggering condition. For example, taking a target risk level indicator that is greater than or equal to 0 and less than 1 as an example, candidate response strategy A corresponds to indicator trigger condition 1, which includes the range of values ​​where the target risk level indicator is ≥ 0.8; candidate response strategy B corresponds to indicator trigger condition 2, which includes the range of values ​​where 0.6 ≤ target risk level indicator < 0.8; candidate response strategy C corresponds to indicator trigger condition 3, which includes the range of values ​​where 0.4 ≤ target risk level indicator < 0.6; and candidate response strategy D corresponds to indicator trigger condition 4, which includes the range of values ​​where the target risk level indicator < 0.4. In other words, when the target risk level indicator is ≥ 0.8, indicator trigger condition 1 is met, and the target response strategy is candidate response strategy A; when 0.6 ≤ target risk level indicator < 0.8, indicator trigger condition 2 is met, and the target response strategy is candidate response strategy B. The rest are similar and will not be elaborated further here.

[0097] In some embodiments, the target risk level indicator determines the level of the target response strategy. In some embodiments, the target risk level indicator and the level of the target response strategy are negatively correlated. For example, the smaller the value of the target risk level indicator (or the lower the level), the higher the level of the target response strategy, in order to achieve a safer and more reliable response. The level of the target response strategy can be understood as a control scale over the message content. Generally speaking, the higher the level, the more constraints, and the lower the risk of the generated response. In some embodiments, the levels of automated response strategies, semi-automated response strategies, and manual intervention strategies increase sequentially.

[0098] In some embodiments, the indicator triggering conditions are determined based on the classification identifier of the target object. In this specification, the classification identifier is used to indicate the category of the target object; for example, it distinguishes between ordinary objects and VIP objects. In some embodiments, the numerical ranges in the indicator triggering conditions corresponding to different classification identifiers can be different. For example, the threshold values ​​of the numerical ranges in the indicator triggering conditions corresponding to ordinary objects and VIP objects are different. In this way, the numerical ranges in the indicator triggering conditions can be flexibly adjusted. For example, indicator triggering condition 1 for ordinary objects includes a numerical range of risk level indicators ≥ 0.8, while indicator triggering condition 1 for VIP objects includes a numerical range of risk level indicators ≥ 0.9, thereby enabling a more precise and secure response strategy for more important target objects.

[0099] In some embodiments, S332 above includes at least one of S3321, S3322 or S3323 below.

[0100] S3321: In response to the target risk level indicator being greater than the first threshold, an automated response strategy is designated as the target response strategy. The automated response strategy includes at least one of a template response strategy, a historical information retrieval strategy, or an AI-generated strategy.

[0101] In this specification, when the target risk level indicator exceeds a first threshold, the electronic device 200 will use an automated response strategy as the target response strategy. An automated response strategy refers to a message output method determined automatically by the electronic device 200 without human intervention. The first threshold is a critical value (e.g., 0.8, 0.85, 0.9) used to trigger the automated response strategy, and it can be set according to actual needs.

[0102] In some embodiments, the electronic device 200 may further classify the automated response strategy. For example, if the target risk level index is greater than a first threshold (e.g., 0.8), and the target risk level index is in a first range (e.g., 0.8~0.85), the electronic device 200 designates a template response strategy as the target response strategy. If the target risk level index is in a second range (e.g., 0.85~0.9), the electronic device 200 designates a historical information retrieval strategy as the target response strategy. If the target risk level index is in a third range (e.g., 0.9~1), the electronic device 200 designates an AI generation strategy as the target response strategy.

[0103] S3322: In response to a target risk level indicator being less than or equal to the first threshold and greater than the second threshold, specify the semi-automated response strategy as the target response strategy.

[0104] In this specification, when the second threshold < target risk level index ≤ first threshold, the electronic device 200 adopts a semi-automatic response strategy as the target response strategy. The semi-automatic response strategy refers to a message output method determined by the electronic device 200 in conjunction with human intervention, such as random sampling or secondary review of messages obtained based on AI-generated strategies. The second threshold is a critical value used to trigger the human intervention strategy, and it is also set according to actual needs. In some embodiments, the second threshold is a number greater than 0 and less than the first threshold, for example, 0.6.

[0105] S3323: In response to the target risk level indicator being less than or equal to the second threshold, the manual intervention strategy is designated as the target response strategy.

[0106] In this specification, when the target risk level indicator is ≤ the second threshold, the electronic device 200 adopts a manual intervention strategy as the target response strategy. A manual intervention strategy refers to a human-led message output method, such as forcing a manual response or generating a work order for processing by the appropriate personnel.

[0107] In some embodiments, the first threshold and the second threshold can be determined based on the classification identifier of the target object. Specifically, the threshold for VIP objects is higher than the threshold for ordinary objects. For example, let the first threshold for ordinary objects be a1 and the second threshold be a2, and the first threshold for VIP objects be a1+0.1 and the second threshold be a2+0.1, thereby adopting a more accurate and secure response strategy for more important target objects.

[0108] By using the tiered response method described above, a risk-level-based processing strategy can be efficiently implemented.

[0109] In some embodiments, S332 may include S3324 and S3325.

[0110] S3321: Determine the initial response strategy based on the target risk level indicators.

[0111] In this specification, the process of S3321 can refer to the process of S332 described above, and will not be repeated here. For example, electronic device 200 can refer to at least one of S3321, S3322 or S3323 described above to determine the initial response strategy.

[0112] S3322: In response to multiple historical risk level indicators corresponding to the target object meeting the trigger conditions within a historical period, the initial response strategy is upgraded to determine the target response strategy, which has a higher level than the initial response strategy.

[0113] In this specification, the target object is the message recipient of the target message. For an introduction to the target object, please refer to S340 below; it will not be repeated here. The historical time period is used to indicate a past time period, which is set according to requirements, such as the past 24 hours. It is understood that within the historical time period, the current session object can receive at least one historical session message from the target object through the target instant messaging application 150. Then, under the risk-level-based processing strategy, the electronic device 200 analyzes at least one historical session message to obtain the corresponding historical risk level indicator. For example, within the past 24 hours, the current session object received historical session message 1, historical session message 2, and historical session message 3 from the target object at three different historical time points. In response to the risk-level-based processing strategy, the electronic device 200 analyzes historical session message 1 to obtain the corresponding historical risk level indicator 1, analyzes historical session message 2 to obtain the corresponding historical risk level indicator 2, and analyzes historical session message 3 to obtain the corresponding historical risk level indicator 3. Then, the electronic device 200 determines whether historical risk level indicators 1, 2, and 3 meet the triggering conditions.

[0114] The electronic device 200 determines whether to upgrade the response strategy based on trigger conditions, which can be set according to actual needs. For example, the trigger condition may be that K consecutive historical risk level indicators are less than a first indicator threshold (e.g., two consecutive historical risk level indicators are less than 0.5 within a historical period), the average value of multiple historical risk level indicators is less than a second indicator threshold (e.g., the average value of all historical risk level indicators within a historical period is less than 0.3), or the number of historical risk level indicators less than the first indicator threshold reaches a preset number (e.g., three historical risk level indicators are less than 0.5 within a historical period). The first and second indicator thresholds may be the same or different, and this specification is not limited to the above.

[0115] Furthermore, if multiple historical risk level indicators within a historical period meet the triggering conditions, the electronic device 200 will upgrade the initial response strategy to determine the target response strategy. In this specification, the upgrade process is to increase the level of the initial response strategy; that is, the target response strategy has a higher level than the initial response strategy.

[0116] To more clearly explain the levels in this manual, the following is combined with... Figure 4 Please provide an explanation. Figure 4 A schematic diagram of a level provided according to an embodiment of this specification is shown. Figure 4Examples of response strategies arranged in order of level are provided. In some embodiments, the levels from high to low are: creating a work order strategy (i.e., generating a work order and transferring it to the corresponding processing personnel), forcing a manual response strategy (i.e., forcing a manual response), AI generation and review strategy (i.e., AI-generated and then manually reviewed), AI generation and sampling strategy (i.e., AI-generated and then manually sampled), template response strategy, historical information retrieval strategy, and AI generation strategy. Figure 4 This is merely an example; the order of priority between different response strategies can be adjusted as needed. This manual does not necessarily reflect the intended purpose of this example. Figure 4 Limited to.

[0117] This manual does not limit the level difference between the initial response strategy and the target response strategy. Please refer to [link / reference needed]. Figure 4 In some embodiments, assuming the initial response strategy is an AI-generated and sampling strategy, if multiple historical risk level indicators meet the triggering conditions, the electronic device 200 can use the AI-generated and audited strategy, the forced manual response strategy, or the work order creation strategy as the target response strategy. In some embodiments, the level difference between the initial response strategy and the target response strategy can be determined based on the aforementioned multiple historical risk level indicators. For example, the larger K is, the larger the level difference; another example is that the smaller the average value among multiple historical risk level indicators, the larger the level difference; yet another example is that the more indicators less than the first indicator threshold, the larger the level difference.

[0118] By using the above methods, we can leverage triggering conditions to employ a higher-level response strategy to respond to target individuals with whom we have communicated and who may pose a risk, thereby improving the reliability of message processing.

[0119] It is understood that in some embodiments, if multiple historical risk level indicators corresponding to the target object do not meet the triggering conditions within a historical period, the electronic device 200 can directly use the preliminary response strategy as the target response strategy.

[0120] At this point, the electronic device 200 has determined the target response strategy and proceeds to step S333 below.

[0121] S333: Generate an initial message based on the target response strategy.

[0122] In this specification, the initial message is the message generated by the electronic device 200 using the target response strategy.

[0123] The following describes the implementation of the template reply strategy in the automated reply strategy. In some embodiments, if the target reply strategy includes a template reply strategy, then S332 above includes: using a reply template that matches at least one session message as the initial message. In some embodiments, the electronic device 200 can determine the reply template corresponding to the matching level based on the matching level in S3312. In some embodiments, the electronic device 200 can also determine the reply template that matches the first word in at least one session message (obtained through word segmentation). In some embodiments, the electronic device 200 can also input at least one session message into an agent, which determines at least one reply template that matches the session message from multiple candidate reply templates; this specification is not limited to this. In this way, an initial message can be quickly generated using a template.

[0124] The following describes the implementation of the historical information retrieval strategy in the automated response strategy. In this specification, the historical information retrieval strategy refers to the strategy for retrieving how to respond from historically relevant information, which includes, but is not limited to, the aforementioned knowledge base. In some embodiments, if the target response strategy includes a historical information retrieval strategy, then step S333 above includes: matching an initial message from the knowledge base based on the semantic similarity between at least one session message and previously pushed historical messages and / or standard reference questions and answers in the knowledge base. For example, if at least one session message has a high semantic similarity to question Q1 in the standard reference questions and answers (e.g., greater than a second similarity threshold), then the electronic device 200 can use the response A1 corresponding to question Q1 in the standard reference questions and answers as the initial message. In this way, a more accurate initial message can be obtained by referring to the knowledge base.

[0125] The following describes the implementation of the AI-generated strategy in the automated response strategy. In some embodiments, if the target response strategy includes an AI-generated strategy, then S333 above includes the following S1 to S4.

[0126] S1: Retrieve historical cache information related to at least one session message.

[0127] In this specification, historical cache information refers to the context associated with at least one session message, including but not limited to historical session messages and / or the corresponding response content. In some embodiments, historical cache information may also include content from the aforementioned knowledge base. This specification does not limit the storage format of historical cache information; it may be a relational database, a vector database, a remote dictionary server like Redis, or any combination thereof.

[0128] S2: If a reply content matching at least one session message is found in the historical cache information, the reply content is used as the initial message.

[0129] In this specification, a response content that matches at least one session message refers to the response content in historical cache information that semantically matches at least one session message. For example, if electronic device 200 searches historical cache information and finds a question asked one hour ago that was the same or similar, then electronic device 200 can reuse the previous response as the initial message.

[0130] S3: If no reply content is found in the historical cache information, check if there are any remaining resources.

[0131] In this specification, remaining resources refer to available resources used to call the preset response interface, including but not limited to the number of service connections, bandwidth resources, memory, CPU, or any combination thereof. Electronic device 200 can determine that there are remaining resources if the number of available resources has not reached the preset resource limit, and determine that there are no remaining resources if the number of available resources has reached the preset resource limit.

[0132] S4: If there are no remaining resources, enter a waiting state until there are remaining resources; or, if there are remaining resources, call the preset reply interface to generate an initial message.

[0133] In this specification, the waiting state is used to wait for the resources required to call the preset response interface. In some embodiments, the electronic device 200 may periodically (e.g., every minute) check for remaining resources during the waiting state, and then, if remaining resources are detected, call the preset response interface to generate an initial message. The preset response interface refers to a pre-configured AI service interface with message generation capabilities, which can generate corresponding response content as an initial message based on at least one input conversation message. It includes, but is not limited to, third-party service interfaces such as large language models (e.g., LLM) and / or custom interfaces such as preset rule engine interfaces.

[0134] In this way, by using the above method, the initial message can be automatically generated using AI capabilities through a preset reply interface.

[0135] In some embodiments, after S332, the electronic device 200 can also directly generate an initial message via a preset response interface. In some embodiments, after S332, the electronic device 200 can also perform memory injection using historical cache information, retrieving required information (such as historical service records and preference information of the target object) from the historical cache information, concatenating the required information and prompt words, and inputting it into the agent, which then outputs the initial message. The above only lists some optional methods for generating initial messages based on the target response strategy, and this specification is not limited to these methods.

[0136] S334: Determine the target message based on the initial message.

[0137] In this specification, S334 can be implemented in either method one or method two.

[0138] Method 1: Electronic device 200 directly uses the initial message as the target message.

[0139] Method 2: Electronic device 200 processes the initial message to obtain the target message. In this specification, the processing operation is used to process at least one of the content, format, or form of the initial message, including but not limited to desensitization processing, filtering processing, tone adjustment processing, language conversion processing, manual intervention processing, or any combination thereof.

[0140] The following describes some optional methods for processing an initial message to obtain a target message. In some embodiments, the above-mentioned "processing an initial message to obtain a target message" includes the following steps S3341 to S3342.

[0141] S3341: Perform matching operations on the initial message and the post-filter library.

[0142] In this specification, the post-filter library is a collection of words, expressions, or sentence structures that need to be filtered from the initial message. In some embodiments, the post-filter library may include multiple restricted words, which are words that should not or are inappropriate to appear in the response. Similar to the preset dictionary, the post-filter library can be a static dictionary or a dynamically updated dictionary; this specification does not impose any limitations. The matching operation in S3341 is used to match the initial message with the post-filter library to obtain the matching result in S3342. In some embodiments, the process of the matching operation in S3341 can refer to the process of the matching operation in S3311 described above, and will not be repeated here.

[0143] S3342: Based on the matching result of the matching operation, perform post-processing on the initial message to determine the target message.

[0144] In this specification, the matching result in S3342 is used to indicate the matching status between the initial message and the post-filter library. Similarly, the matching result in S3342 may include a second matching similarity, which is used to quantify the degree of matching between the initial message and the post-filter library, such as the semantic similarity between a second word in the initial message (obtained through word segmentation) and the post-filter library. In some embodiments, the more semantically similar (e.g., identical) the second word is to at least one restrictive word in the post-filter library, and the greater the number of similar words, the greater the degree of similarity between the second word and the post-filter library.

[0145] The matching result in S3342 is used to determine how to perform post-processing on the initial message. In some embodiments, different second matching similarities can correspond to different post-processing. That is, the electronic device 200 can determine the corresponding processing method based on the second matching similarity and perform post-processing on the initial message using this processing method to obtain the target message. In some embodiments, the larger the second matching similarity, the stronger the post-processing. For example, taking a second matching similarity value between 0 and 1 as an example, when the second matching similarity is within the first similarity range (e.g., 0 to 0.5), the electronic device 200 performs tone adjustment processing on the initial message to obtain the target message. When the second matching similarity is within the second similarity range (e.g., 0.5 to 0.7), the electronic device 200 performs de-identification processing on the initial message to obtain the target message. When the second matching similarity is within the third similarity range (e.g., 0.7 to 1), the electronic device 200 performs manual intervention processing on the initial message to obtain the target message.

[0146] Thus, by post-processing the initial message using the matching results in S3342, the reliability of the target message can be improved.

[0147] Another post-processing method is described below. In some embodiments, S3342 described above includes S3342a and / or S3342b.

[0148] S3342a: In response to the presence of at least one Class I word in the initial message as indicated by the matching result, replace or delete at least one Class I word to obtain the target message.

[0149] In this specification, the multiple restricted words in the post-filter library can be divided into first-category words and second-category words. First-category words refer to words that should not appear in the initial message, including but not limited to confidential information (such as the name of a system that needs to be kept confidential internally), absolute terms (such as "guarantee," "certainly"), or any combination thereof. In some embodiments, if the matching result indicates that at least one first-category word exists in the initial message, the electronic device 200 can delete at least one first-category word from the initial message to obtain the target message. For example, the electronic device 200 can delete all first-category words from the initial message. By deleting first-category words in this way, the risk level of the initial message can be quickly reduced.

[0150] In some embodiments, the post-filter library may further include at least one safe word corresponding to at least one first-class word. The safe word is a substitute word that has the same or similar meaning as the first-class word but carries a lower risk. Furthermore, the electronic device 200 can replace at least one first-class word with the corresponding safe word to obtain the target message. For example, the electronic device 200 can replace absolute terms such as "guarantee" or "certainly" in the initial message with relative terms such as "strive" or "try its best." In some embodiments, the electronic device 200 may also replace at least one first-class word with the corresponding safe word in other ways, such as through an intelligent agent; this specification is not limited to the above.

[0151] In some embodiments, replacement and deletion can be used in combination. For example, at least one portion of the first-category words present in the initial message is deleted, while another portion is replaced with corresponding safe words to obtain the target message. By replacing the first-category words in this way, the core semantics of the initial message can be preserved while reducing the risk level of the initial message.

[0152] In some embodiments, after the electronic device 200 replaces or deletes at least one first-class word, it may also output corresponding alarm information (such as an alarm work order) to promptly notify relevant personnel.

[0153] S3342b: In response to the matching result indicating that there is at least one second-class word in the initial message, a manual review prompt is triggered, and the target message is obtained based on the reviewed initial message.

[0154] In this specification, the second category of words refers to words in the initial message that require discussion or review, including but not limited to emotional wording, controversial expressions, easily misunderstood or ambiguous content, or any combination thereof. In some embodiments, if the matching result indicates that at least one second category of words exists in the initial message, the electronic device 200 can trigger a manual review prompt. This embodiment does not limit the form of the manual review prompt, which includes but is not limited to voice prompts, text prompts, vibration prompts, or any combination thereof. Further, after triggering the manual review prompt, the reviewer can review the initial message, for example, modify the initial message or use the initial message (i.e., without modifying the initial message). Furthermore, the electronic device 200 can obtain the target message based on the reviewed initial message. The above examples illustrate some ways to obtain the target message based on the initial message, and this specification is not limited to the above. Manual review can further improve the reliability of the target message.

[0155] It is understood that in some embodiments, S3342a and S3342b described above can also be used in combination, which will not be elaborated here. Through this two-layer filtering mechanism, even if the initial message contains risky content, it will be filtered before being sent to the target object, thus ensuring the security and reliability of the target message.

[0156] The above examples only illustrate some optional methods. In some embodiments, after S334, the electronic device 200 can also directly trigger a manual review prompt to obtain the target message based on the reviewed initial message.

[0157] The handover summary strategy under internal handover conditions is described below. In some embodiments, S330 above includes S335 to S337 as follows.

[0158] S335: In response to the target processing strategy being a handover and aggregation strategy, analyze the progress-related information of at least one target item associated with at least one session message.

[0159] In some embodiments, if the target processing state is an internal handover state, that is, if the target processing strategy is a handover and aggregation strategy, then at least one session message can be a chat log between the current session object and all other contacts or contact groups in the target instant messaging application 150. The target project is the matter, task, or work order mentioned or referred to in the content of at least one session message. Progress-related information is used to reflect the progress of the target project, including but not limited to historical communication results, the latest communication conclusions, to-do items, key decision points, bottlenecks, related links, etc., or any combination thereof. Among them, historical communication results refer to the consensus and conclusions reached in previous communications of the target project; latest communication conclusions refer to the consensus and conclusions reached in the latest communication of the target project; to-do items are used to indicate the specific matters that need to be executed, followed up and implemented by the corresponding personnel in the current and next stages; key decision points are used to indicate the core nodes that determine the direction, progress, plan and cost of the target project in the process of its advancement; blocking issues are used to indicate various constraints that hinder the normal progress of the target project and cause the progress of the target project to stagnate or be delayed (such as lack of resources, demand disputes, external restrictions, etc.); related links are the links used to directly jump to the detailed information of the target project, including but not limited to documents, work orders, meetings and other information related to the target project.

[0160] In some embodiments, the electronic device 200 may employ a natural language model (e.g., LLM) to analyze at least one session message to parse at least one target item associated with the at least one session message and determine progress-related information of the at least one target item. In some embodiments, the electronic device 200 may also retrieve at least one associated target item from at least one session message based on keyword or rule matching and extract progress-related information of the at least one target item; this specification does not impose limitations.

[0161] S336: For each of at least one target project, query the project context information corresponding to the target project from the preset storage space.

[0162] In this specification, the pre-set storage space refers to a local database, cloud database, project ledger library, file storage pool, cached dataset, vector database, or any combination thereof used to store project data. Project context information refers to pre-stored information related to the target project, which includes, but is not limited to, basic project information (e.g., project name, project number, project department, project requirements, etc.), participant information (e.g., project leader, client, R&D personnel, etc.), project timeline (e.g., project cycle), historical handover content (e.g., historical meeting minutes), project constraints (e.g., budget, delivery standards, etc.), solution library (e.g., common problems and corresponding solutions), or any combination thereof.

[0163] S337: For each of at least one target project, generate a target message summarizing the handover of the target projects based on progress-related information and project context information.

[0164] In some embodiments, for each of at least one target project, the electronic device 200 can input progress-related information and project context information into an agent, which then performs handover and summarization of the target projects to obtain the corresponding target message. In some embodiments, for each of at least one target project, the electronic device 200 can also fill the target placeholder area of ​​a preset handover template with progress-related information and project context information, automatically assembling it into a target message. In some embodiments, for each of at least one target project, the electronic device 200 can generate a target message oriented towards the target object based on progress-related information and project context information. That is, the target messages corresponding to different target objects can be different (e.g., the content may differ or the level of detail may differ, etc.).

[0165] In this way, target information for work handover can be obtained automatically without human intervention, so that other relevant personnel can quickly grasp the status of the target project, reduce information transmission deviation and delay, and improve the standardization and efficiency of work handover.

[0166] At this point, the electronic device 200 has generated the target message and will proceed to step S340 below.

[0167] S340: Push target messages to target objects in the target instant messaging application.

[0168] In this specification, in the external response state, the target object is the initiator of at least one session message. That is, the electronic device 200 can act as a proxy for the current session object to generate a target message to reply to that session message. For example, the current session object might be a customer service representative or service engineer replying to an inquiry sent by a customer.

[0169] In the internal handover state, the target object is a related object that is associated with at least one target project (described in detail in S341 below). The target message is a handover message obtained based on at least one session message. The handover message is used to indicate the project status of at least one target project associated with the user of the target instant messaging application 150. In some embodiments, the handover message can be presented in a structured form, such as a structured relay report or a structured information display card. That is, the electronic device 200 can also act as an agent for the current session object to send handover messages to related objects through the target instant messaging application 150 to conduct work handover through the handover message. For example, the current session object, as the project leader, sends a handover message to other project participants. After the project participants come online, they can quickly understand the status of the target project by reading the handover message without having to browse the chat history.

[0170] In some embodiments, the handover message may include at least one of the following: (1) a status summary of at least one target project, which is a concise text summarizing the name, progress stage, completion progress, running status, etc. of the target project. (2) at least one to-do item corresponding to each of the at least one target project. (3) the priority order among the at least one to-do item, which is the execution order formed by sorting the at least one to-do item. In some embodiments, the priority order may be determined according to the urgency of the target project, the deadline, the business weight, the scope of the impact of the blockage, etc. (4) the key decision point of at least one target project. (5) the blockage problem of at least one target project. (6) the handling method of the blockage problem, which is the solution or coping strategy for the blockage problem. (7) the relevant links of at least one target project.

[0171] In some embodiments, S340 described above includes S341 to S342 as follows.

[0172] S341: Analyze relevant objects that are associated with at least one target item from at least one session message.

[0173] In this specification, relevant objects are those that have a business relationship with the target project or need to know project information. These include, but are not limited to, project managers, project participants, project acceptors, project users, or any combination thereof. In some embodiments, the electronic device 200 can match relevant objects associated with each target project based on the content of at least one conversation message. For example, if the chat content mentions that project M is managed by employee 1 and employee 2, then project M will be associated with employee 1 and employee 2. In some embodiments, the electronic device 200 can also input at least one conversation message into an intelligent agent, which will analyze relevant objects that are associated with at least one target project.

[0174] S342: For each of at least one target project, push the target message corresponding to the target project to the relevant object corresponding to the target project.

[0175] This specification does not limit the form in which target messages are pushed to relevant objects. In some embodiments, the electronic device 200 can independently send target messages to each relevant object individually. In some embodiments, the electronic device 200 can group relevant objects corresponding to the same target item into the same session group and uniformly push the target message corresponding to the target item within that session group. Through these methods, relevant objects requiring work handover can be automatically identified, improving message processing efficiency.

[0176] In some embodiments, the message processing method described above further includes the following steps S350 to S360.

[0177] S350: In response to detecting a manual response event for the target instant messaging application, stop generating the target message.

[0178] In this specification, a manual response event is used to trigger a manual message processing mechanism, that is, to restore the state of manual message processing by the current session object. In some embodiments, the manual response event may be an event generated in response to a second interactive action of the current session object towards the target instant messaging application 150. For example, a user enters an "on" command at a specified location within the target instant messaging application 150 to initiate a second interactive action, and the electronic device 200 generates a manual response event in response to this second interactive action. Here, "on" indicates that the user is online and can manually respond to and reply to received messages. In some embodiments, the manual response event may also be an event automatically generated by the electronic device 200. For example, the electronic device 200 may automatically generate a manual response event when a second time node is reached (e.g., 9:00 AM every day). Subsequently, the electronic device 200 can respond to this manual response event, stop generating target messages, that is, stop the automated message processing mechanism, and switch to a manual message processing mechanism.

[0179] S360: In response to detecting a session action, push an interactive message to a specified object in the target instant messaging application. The session action is used to identify the specified object and the interactive message.

[0180] In this specification, under the manual message handling mechanism, the current session object needs to manually process session messages in the target instant messaging application 150 to initiate a session operation. A session operation can also be understood as an interactive operation initiated by the current session object due to manually processing session messages, which includes, but is not limited to, mouse operations, keyboard operations, voice operations, or any combination thereof. The specified object is another session object with whom the current session object wants to have a conversation and communication, and the interactive message is the communication content that the current session object wants to send. For example, a user selects a contact in the target instant messaging application and sends "Hello" to that contact to initiate a session operation. Then, the electronic device 200 will push the "Hello" interactive message to that contact through the target instant messaging application 150. In this way, it is possible to switch from an automated message handling mechanism to a manual one at any time, improving the flexibility of message handling.

[0181] In some embodiments, the message processing method described above further includes: in response to detecting a status query instruction, obtaining status-related information of the target instant messaging application.

[0182] In this specification, a status query command is used to query information related to the status of a target instant messaging application 150. In some embodiments, the status query command may be a command automatically generated by the electronic device 200; for example, the electronic device 200 may generate a status query command periodically (e.g., every hour). In some embodiments, the status query command may also be a command generated in response to a third interactive action by a session object toward the target instant messaging application 150; for example, a user enters the command "status" at a specified location in the target instant messaging application 150 to initiate a third interactive action, causing the electronic device 200 to generate a corresponding status query command.

[0183] Status-related information is information related to the status of the target instant messaging application 150. In some embodiments, status-related information includes at least one of the following: (1) the current processing status of the target instant messaging application 150, for example, if the current processing status is "off", it indicates an external response status under an automated message processing mechanism; if the current processing status is "relay", it indicates an internal handover status under an automated message processing mechanism; if the current processing status is "on", it indicates a status where messages are manually processed by the current session object. (2) the number of historical session messages generated by the target instant messaging application 150 within a preset time period, for example, how many messages were received by the target instant messaging application 150 today. (3) the message processing status corresponding to the historical session messages, including but not limited to target messages generated for historical session messages, work orders created for historical session messages, target risk level indicators corresponding to each historical session message, corresponding risk levels, message processing reports, etc., or any combination thereof. In this way, the status-related information of the target instant messaging application 150 can be understood flexibly and intuitively through the status query command.

[0184] In summary, the message processing method, electronic device, and storage medium provided in this specification obtain the target processing state of the target instant messaging application, determine the target processing strategy based on the target processing state, and then analyze and process at least one session message related to the target instant messaging application based on the target processing strategy. This allows for automatic and accurate generation of target messages and their push to target objects within the target instant messaging application without waiting for the message processor to come online and then manually processing the messages. Thus, even if the message processor is not online or is in a non-response period (e.g., outside of working hours), message processing can be delegated to the message processor, efficiently responding to the corresponding session messages, thereby improving message processing efficiency.

[0185] To more clearly illustrate the message processing method of this application, this paper combines... Figure 5 Please provide an explanation. Figure 5 A schematic diagram of a message processing method according to an embodiment of this specification is shown, such as... Figure 5 As shown, the electronic device 200 can execute the message processing method according to the following process.

[0186] S501: In response to detecting an auto-response event for the target instant messaging application, determine the target processing state of the target instant messaging application based on the auto-response event.

[0187] S502: In response to the target processing status being an external response status, determine the target processing strategy as a risk level-based processing strategy.

[0188] S503: In response to the target processing strategy being a risk-level-based processing strategy, perform a matching operation between at least one session message and a preset thesaurus.

[0189] S504: Based on the matching results of the matching operation, determine the matching risk level index corresponding to at least one session message.

[0190] S505: If the matching risk level indicator meets the preset conditions, then the matching risk level indicator will be designated as the target risk level indicator.

[0191] S506: If the matching risk level indicator does not meet the preset conditions, the large model is called to process at least one session message to obtain the model risk level indicator corresponding to at least one session message, and / or the knowledge base is called to process at least one session message to obtain the knowledge base risk level indicator corresponding to at least one session message.

[0192] S507: Determine the target risk level indicator based on the matching risk level indicator, the model risk level indicator, and / or the knowledge base risk level indicator.

[0193] S508: Determine the target response strategy based on the target risk level indicators.

[0194] S509: Generate an initial message based on the target response strategy. For example, in response to a target risk level indicator being greater than a first threshold, an automated response strategy is designated as the initial response strategy; in response to a target risk level indicator being less than or equal to the first threshold but greater than a second threshold, a semi-automated response strategy is designated as the initial response strategy; in response to a target risk level indicator being less than or equal to the second threshold, a manual intervention strategy is designated as the initial response strategy. Further, in response to multiple historical risk level indicators corresponding to the target object within a historical period meeting the triggering conditions, the initial response strategy is upgraded to determine the target response strategy; in response to multiple historical risk level indicators corresponding to the target object within a historical period not meeting the triggering conditions, the initial response strategy is used as the target response strategy.

[0195] S510: Performs matching operations on the initial message and the post-filter library.

[0196] S511: In response to the matching result indicating that at least one first-class word exists in the initial message, replace or delete at least one first-class word to obtain the target message.

[0197] S512: In response to the matching result indicating that there is at least one second-class word in the initial message, a manual review prompt is triggered, and the target message is obtained based on the reviewed initial message.

[0198] S513: In response to the target processing status being internal handover status, determine the target processing strategy as the handover and summary strategy.

[0199] S514: In response to the target processing strategy being a handover and aggregation strategy, analyze the progress-related information of at least one target project associated with at least one session message.

[0200] S515: For each of at least one target project, query the project context information corresponding to the target project from the preset storage space.

[0201] S516: For each of at least one target project, generate a target message summarizing the handover of the target project based on progress-related information and project context information.

[0202] S517: Push target messages to target objects in the target instant messaging application.

[0203] S518: In response to detecting a manual response event for the target instant messaging application, stop generating the target message.

[0204] S519: In response to detecting a session action, push an interactive message to a specified object in the target instant messaging application, whereby the session action is used to identify the specified object and the interactive message.

[0205] S520: In response to the detection of a status query command, obtain status-related information of the target instant messaging application.

[0206] The processes S501 to S520 can be referred to the above embodiments, and will not be repeated here. It should be noted that this specification does not limit the scope of the invention. Figure 5 The execution order between some steps, for example, S520 can be executed at any stage.

[0207] In summary, this specification provides a hierarchical response and bidirectional bridging message processing method. The electronic device 200 can act as a digital twin of the current session object, acting as a proxy for message processing when the current session object is offline (or outside of working hours). First, the bidirectional bridging architecture supports both external response and internal handover, simultaneously resolving customer service gaps and inefficient project relay in cross-timezone collaboration through a unified message processing pipeline. Second, hierarchical responses enhance message security. Third, when matching risk level indicators meet preset conditions, explicit communication scenarios can be prioritized, ensuring processing speed while reducing large model and / or knowledge base calls by over 60%, thus lowering system costs. When risk level indicators do not meet preset conditions, large model and / or knowledge base calls improve processing accuracy. Fourth, the current session object (e.g., a user) can directly operate within existing workflows using commands such as off, on, relay, and status, without switching tools. In some embodiments, as shown in Table 1, comparing the current message processing schemes and the message processing method provided in this specification, the message processing method provided in this specification is more efficient and more secure in terms of message response time, service coverage duration, context transmission time (e.g., synchronizing project context), security, project handover duration, and impact on project cycle.

[0208] Table 1

[0209] It should be noted that the mapping relationships mentioned in this specification (such as the first mapping relationship, the second mapping relationship, etc.) can be static or non-static mapping relationships such as lookup tables, formulas, and function models. Furthermore, the mapping relationships mentioned in this specification can be linear or non-linear, and this specification does not impose any restrictions.

[0210] All confidential data obtained in this specification has been authorized by the user and does not involve user privacy. In the embodiments described in this specification, any processing of confidential data (including but not limited to collection, storage, use, processing, transmission, provision, or disclosure) is conducted with the user's consent or on other legal grounds (such as fulfillment of contracts or legal obligations), and strictly complies with relevant laws. Confidential data refers to data that needs to be kept confidential during storage, processing, computation, and transmission due to compliance requirements, commercial confidentiality needs, or other security requirements. Confidential data includes, but is not limited to: personal privacy data (such as user identity information and transaction records), commercially sensitive data (such as risk control strategy parameters and merchant risk assessment information), derivative data derived from the above data (such as risk scores, feature statistics, list matching results, and other risk control indicator data), and other data that requires security protection.

[0211] This specification, in another aspect, provides a computer-readable non-transitory storage medium storing at least one set of instructions for message processing. When the at least one set of instructions is executed by a processor, it instructs the processor to perform the steps of the message processing method P300 described herein. In some possible embodiments, various aspects of this specification can also be implemented as a program product comprising program code. When the program product is run on an electronic device 200, the program code causes the electronic device 200 to perform the steps of the message processing method P300 described herein. The program product for implementing the above method may employ a portable compact disc read-only memory (CD-ROM) containing program code and may run on the electronic device 200. However, the program product of this specification is not limited thereto. In this specification, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system. The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media include: portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. The computer-readable storage medium may include a data signal propagated as part of a carrier wave in baseband, carrying readable program code. This propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium may also be any readable medium other than a readable storage medium that can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof. Program code for performing operations of this specification may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc.—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on electronic device 200, partially on electronic device 200, as a standalone software package, partially on electronic device 200 and partially on a remote computing device, or entirely on a remote computing device.

[0212] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0213] In summary, after reading this detailed disclosure, those skilled in the art will understand that the foregoing detailed disclosure is presented by way of example only and is not restrictive. Although not explicitly stated herein, those skilled in the art will understand that this specification requires various reasonable changes, improvements, and modifications to the embodiments. These changes, improvements, and modifications are intended to be made by this specification and are within the spirit and scope of the exemplary embodiments described herein.

[0214] Furthermore, certain terms in this specification have been used to describe embodiments of this specification. For example, "an embodiment," "an embodiment," and / or "some embodiments" mean that a particular feature, structure, or characteristic described in connection with that embodiment may be included in at least one embodiment of this specification. Therefore, it is to be emphasized and understood that two or more references to "an embodiment" or "an embodiment" or "alternative embodiment" in various parts of this specification do not necessarily refer to the same embodiment. Moreover, specific features, structures, or characteristics may be suitably combined in one or more embodiments of this specification.

[0215] It should be understood that in the foregoing description of the embodiments in this specification, various features are combined in a single embodiment, drawing, or description for the purpose of simplifying the description and to aid in understanding a feature. However, this does not mean that the combination of these features is necessary, and those skilled in the art, upon reading this specification, may readily identify some of the devices as separate embodiments. That is, the embodiments in this specification can also be understood as an integration of multiple secondary embodiments. And the content of each secondary embodiment is valid even if it contains fewer than all the features of a single foregoing disclosed embodiment.

[0216] Every patent, patent application, publication of a patent application, and other material such as articles, books, specifications, publications, documents, articles, etc., cited herein, except for those inconsistent with or conflicting with this document, or those having a restrictive effect on the widest scope of the claims, may be incorporated herein by reference for all purposes now or hereafter associated with this document. Furthermore, in the event of any inconsistency or conflict between the description, definition, and / or use of relevant terms in any material and the description, definition, and / or use of relevant terms in this document, the terms in this document shall prevail.

[0217] Finally, it should be understood that the embodiments disclosed herein are illustrative of the principles of the embodiments described in this specification. Other modified embodiments are also within the scope of this specification. Therefore, the embodiments disclosed in this specification are merely examples and not limitations. Those skilled in the art can implement the applications described in this specification using alternative configurations based on the embodiments in this specification. Therefore, the embodiments in this specification are not limited to the embodiments precisely described in the applications.

Claims

1. A message processing method, comprising: Obtain the target processing status of the target instant messaging application; Based on the target processing status, determine the target processing strategy; Based on the target processing strategy, at least one session message related to the target instant messaging application is analyzed and processed to generate a target message; as well as The target message is pushed to the target object in the target instant messaging application.

2. The method of claim 1, wherein, The step of determining the target processing strategy based on the target processing state includes: In response to the target processing status being an external response status, the target processing strategy is determined to be a risk-level-based processing strategy; or In response to the target processing state being an internal handover state, the target processing strategy is determined to be a handover and aggregation strategy.

3. The method of claim 2, wherein, The step of analyzing and processing at least one session message related to the target instant messaging application based on the target processing strategy to generate a target message includes: In response to the target processing strategy being the risk-level-based processing strategy, the at least one session message is analyzed to determine the target risk level index corresponding to the at least one session message; Based on the target risk level indicators, determine the target response strategy; An initial message is generated based on the target response strategy; and The initial message can be used as the target message, or the initial message can be processed to obtain the target message.

4. The method of claim 3, wherein, The analysis of the at least one session message to determine the target risk level indicator corresponding to the at least one session message includes: The at least one conversation message is matched against a preset dictionary. Based on the matching result of the matching operation, determine the matching risk level index corresponding to the at least one session message; and If the matching risk level indicator meets the preset conditions, then the matching risk level indicator is designated as the target risk level indicator.

5. The method of claim 4, wherein, The analysis of the at least one session message to determine the target risk level indicator corresponding to the at least one session message includes: If the matching risk level indicator does not meet the preset conditions, then: The large model is invoked to process the at least one session message to obtain the model risk level index corresponding to the at least one session message; and / or The knowledge base is invoked to process the at least one session message to obtain the knowledge base risk level index corresponding to the at least one session message; The target risk level indicator is determined based on the matching risk level indicator, the model risk level indicator, and / or the knowledge base risk level indicator.

6. The method of claim 3, wherein, The determination of the target response strategy based on the target risk level index includes at least one of the following: In response to the target risk level indicator being greater than a first threshold, an automated response strategy is designated as the target response strategy, wherein the automated response strategy includes at least one of a template response strategy, a historical information retrieval strategy, or an AI generation strategy; In response to the target risk level indicator being less than or equal to the first threshold and greater than the second threshold, a semi-automated response strategy is designated as the target response strategy; or In response to the target risk level indicator being less than or equal to the second threshold, a manual intervention strategy is designated as the target response strategy.

7. The method of claim 3, wherein, The determination of the target response strategy based on the target risk level indicator includes: Based on the aforementioned target risk level indicators, a preliminary response strategy is determined; In response to multiple historical risk level indicators corresponding to the target object meeting the trigger conditions within a historical period, the initial response strategy is upgraded to determine the target response strategy, wherein the level of the target response strategy is higher than that of the initial response strategy.

8. The method of claim 3, wherein, The process of processing the initial message to obtain the target message includes: Perform a matching operation on the initial message and the post-filter library; Based on the matching result of the matching operation, post-processing is performed on the initial message to determine the target message.

9. The method of claim 8, wherein, The post-processing of the initial message to determine the target message includes: In response to the matching result indicating the presence of at least one first-category word in the initial message, the at least one first-category word is replaced or deleted to obtain the target message; and / or In response to the matching result indicating the presence of at least one second-category word in the initial message, a manual review prompt is triggered, and the target message is obtained based on the reviewed initial message.

10. The method of claim 2, wherein, The step of analyzing and processing at least one session message related to the target instant messaging application based on the target processing strategy to generate a target message includes: In response to the target processing strategy being a handover and aggregation strategy, the progress-related information of at least one target project associated with the at least one session message is analyzed; For each of the at least one target project, Query the project context information corresponding to the target project from the preset storage space; Based on the progress-related information and the project context information, a target message summarizing the handover for the target project is generated.

11. The method of claim 1, wherein, The process of obtaining the target processing state of the target instant messaging application includes: In response to the detection of an auto-response event for the target instant messaging application, the target processing status is determined based on the auto-response event.

12. An electronic device, comprising: At least one storage medium storing at least one instruction set for message processing; as well as At least one processor is communicatively connected to the at least one storage medium. When the electronic device is running, the at least one processor reads the at least one instruction set and executes the method as described in any one of claims 1-11 according to the instructions of the at least one instruction set.

13. A computer readable non-transitory storage medium, wherein, The computer-readable non-volatile storage medium stores at least one instruction set, which, when executed by at least one processor, implements the method as described in any one of claims 1-11.