Message processing method and apparatus, electronic device, and computer readable medium

By constructing a message processing method for internet hospital consultation scenarios, selecting the best message channel, and building a delivery strategy, the problem of message loss and delay caused by the uncertainty of the user's network environment was solved, thereby improving user experience and operational efficiency.

CN115632994BActive Publication Date: 2025-10-21BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211235640.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-10
Publication Date
2025-10-21
Estimated Expiration
2042-10-10

AI Technical Summary

Technical Problem

In the context of online hospital consultations, message loss or delays caused by uncertainties in the user's network environment can lead to duplicate messages that disturb the user and increase operating costs.

Method used

By determining the characteristics of the message to be sent and the recipient, the message body is constructed based on the perceived message channel and performance information. The best message channel is selected using a preset channel performance relationship table, and a message delivery strategy is constructed to reduce duplicate messages and optimize message transmission.

Benefits of technology

This reduces the disturbance of duplicate messages to users, lowers the operational costs of message delivery on the server side, and improves message delivery efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115632994B_ABST
    Figure CN115632994B_ABST
Patent Text Reader

Abstract

The present disclosure provides a message processing method and device. A specific embodiment of the method comprises: determining a message feature of a to-be-sent message and an object feature of a receiving object corresponding to the to-be-sent message; determining a perceived message channel of the receiving object based on the object feature; determining performance information of the to-be-sent message based on the message feature; and constructing a message body corresponding to the to-be-sent message based on the perceived message channel, the performance information, and a preset channel performance relationship table, the channel performance relationship table being used to represent a corresponding relationship between a message channel and a channel performance. This embodiment improves the efficiency of message processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet medical technology, and in particular to a message processing method and device, an electronic device, and a computer-readable medium. Background Art

[0002] With the development of internet technology, the application of online healthcare is becoming increasingly widespread. In online hospital consultation scenarios, complex consultation processes can be streamlined through various channels, such as IM (Instant Messaging), Push, SMS, and WeChat official accounts. However, due to the uncertainty of the user's network environment, for example, if the user's message receiving terminal is in arrears or the user's area has poor reception capacity for various channels, there is a chance that pushed messages will be lost or delayed. Summary of the Invention

[0003] The embodiments of the present disclosure provide a message processing method and apparatus, an electronic device, and a computer-readable medium.

[0004] In a first aspect, an embodiment of the present disclosure provides a message processing method, the method comprising: determining message characteristics of a message to be sent and object characteristics of a receiving object corresponding to the message to be sent; based on the object characteristics, determining a perceived message channel of the receiving object; based on the message characteristics, determining performance information of the message to be sent; based on the perceived message channel, performance information and a preset channel performance relationship table, constructing a message body corresponding to the message to be sent, the channel performance relationship table being used to characterize the correspondence between the message channel and the channel performance.

[0005] In some embodiments, the above-mentioned construction of a message body corresponding to the message to be sent based on the perceived message channel, performance information and a preset channel performance relationship table includes: determining the optimal message channel based on the perceived message channel, performance information and a preset channel performance relationship table; and constructing a message body corresponding to the message to be sent based on the optimal message channel.

[0006] In some embodiments, the above-mentioned determination of the optimal message channel based on the perceived message channel, performance information and the preset channel performance relationship table includes: obtaining a message reach strategy for sending the message to be sent based on the perceived message channel, performance information and the preset channel performance relationship table; and determining the optimal message channel based on the message reach strategy.

[0007] In some embodiments, the above-mentioned message reach strategy for sending the message to be sent based on the perceived message channel, performance information and a preset channel performance relationship table includes: matching multiple message channels that match the perceived message channel with the channel performance of each message channel from the channel performance relationship table; based on the performance information and the channel performance of each message channel, selecting a message channel that matches the message to be sent from multiple message channels; based on the performance information, determining the priority order of the selected message channels to obtain the message reach strategy for the message to be sent.

[0008] In some embodiments, the above method further includes: using a message reach strategy to send a message body to a message receiving terminal of a recipient, and storing a sending record of the message body in a database.

[0009] In some embodiments, the above method also includes: receiving the message sending result feedback from the message receiving terminal; updating the channel performance relationship table based on the message sending result; receiving the terminal status feedback from the message receiving terminal; and updating the correspondence between the object characteristics and the perceived message channel based on the terminal status.

[0010] In some embodiments, the above-mentioned object characteristics include: basic information characteristics and device information characteristics; the above-mentioned determination of the perception message channel of the receiving object based on the object characteristics includes: selecting a first perception message channel corresponding to the basic information characteristics from a pre-constructed basic channel relationship table, the basic channel relationship table is used to characterize the correspondence between the basic information characteristics and the first perception message channel; selecting a second perception message channel corresponding to the device information characteristics from a pre-constructed device channel relationship table, the device channel relationship table is used to characterize the correspondence between the device information characteristics and the second perception message channel; combining the first perception message channel and the second perception message channel to obtain the perception message channel of the receiving object.

[0011] In some embodiments, the above-mentioned determination of performance information of the message to be sent based on the message characteristics includes: selecting performance information corresponding to the message characteristics from a pre-built message performance relationship table, the message performance relationship table is used to characterize the correspondence between the message characteristics and the performance information; and using the selected performance information as the performance information of the message to be sent.

[0012] In the second aspect, an embodiment of the present disclosure provides a message processing device, which includes: an object determination unit, configured to determine the message characteristics of the message to be sent and the object characteristics of the receiving object corresponding to the message to be sent; a channel determination unit, configured to determine the perceived message channel of the receiving object based on the object characteristics; a score determination unit, configured to determine the performance information of the message to be sent based on the message characteristics; a construction unit, configured to construct a message body corresponding to the message to be sent based on the perceived message channel, performance information and a preset channel performance relationship table, wherein the channel performance relationship table is used to characterize the correspondence between the message channel and the channel performance.

[0013] In some embodiments, the construction unit is further configured to: determine the best message channel based on the perceived message channel, performance information, and a preset channel performance relationship table; and construct a message body corresponding to the message to be sent based on the best message channel.

[0014] In some embodiments, the above-mentioned construction unit is further configured to: obtain a message reach strategy for sending the message to be sent based on the perceived message channel, performance information and a preset channel performance relationship table; and determine the optimal message channel based on the message reach strategy.

[0015] In some embodiments, the above-mentioned construction unit is further configured to: match multiple message channels that match the perceived message channel with the channel performance of each message channel from the channel performance relationship table; based on the performance information and the channel performance of each message channel, select a message channel that matches the message to be sent from multiple message channels; based on the performance information, determine the priority order of the selected message channels to obtain the message reach strategy for the message to be sent.

[0016] In some embodiments, the above-mentioned device further includes: a sending unit, configured to use a message reaching strategy to send a message body to a message receiving terminal of a receiving object, and store a sending record of the message body in a database.

[0017] In some embodiments, the above-mentioned device also includes: a result receiving unit, configured to receive the message sending result fed back by the message receiving terminal; a message updating unit, configured to update the channel performance relationship table based on the message sending result; a status receiving unit, configured to receive the terminal status fed back by the message receiving terminal; and an object updating unit, configured to update the correspondence between the object characteristics and the perceived message channel based on the terminal status.

[0018] In some embodiments, the above-mentioned object characteristics include: basic information characteristics and device information characteristics; the above-mentioned channel determination unit is further configured to: select a first perception message channel corresponding to the basic information characteristics from a pre-constructed basic channel relationship table, and the basic channel relationship table is used to characterize the correspondence between the basic information characteristics and the first perception message channel; select a second perception message channel corresponding to the device information characteristics from a pre-constructed device channel relationship table, and the device channel relationship table is used to characterize the correspondence between the device information characteristics and the second perception message channel; combine the first perception message channel and the second perception message channel to obtain the perception message channel of the receiving object.

[0019] In some embodiments, the above-mentioned scoring determination unit is further configured to: select performance information corresponding to the message characteristics from a pre-constructed message performance relationship table, the message performance relationship table is used to characterize the correspondence between message characteristics and performance information; and use the selected performance information as the performance information of the message to be sent.

[0020] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising: one or more processors; a storage device on which one or more programs are stored; when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation method in the first aspect.

[0021] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.

[0022] The message processing method and device provided by the embodiments of the present disclosure first determine the message characteristics of the message to be sent and the object characteristics of the receiving object corresponding to the message to be sent; secondly, based on the object characteristics, determine the perceived message channel of the receiving object; thirdly, based on the message characteristics, determine the performance information of the message to be sent; finally, based on the perceived message channel, performance information and a preset channel performance relationship table, construct a message body corresponding to the message to be sent, and the channel performance relationship table is used to characterize the correspondence between the message channel and the channel performance. Thus, the message body corresponding to the message to be sent is constructed based on the object characteristics, message characteristics and the preset channel performance relationship table, fully considering the characteristics of the object and the message, which can reduce the disturbance of repeated messages to the user, improve the user experience, reduce the cost of message reach operations on the server side, and improve the message reach efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Other features, objects and advantages of the present disclosure will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following drawings:

[0024] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;

[0025] Figure 2 is a flowchart of an embodiment of a message processing method according to the present disclosure;

[0026] Figure 3 This is a schematic diagram of the structure of the message queue disclosed in the present invention;

[0027] Figure 4 It is a structural diagram of the message processing process of the present disclosure;

[0028] Figure 5 is a structural diagram of an embodiment of a message processing device according to the present disclosure;

[0029] Figure 6 It is a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure. DETAILED DESCRIPTION

[0030] The present disclosure will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the relevant invention and are not intended to limit the invention. It should also be noted that, for ease of description, only portions relevant to the relevant invention are shown in the accompanying drawings.

[0031] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0032] Figure 1 An exemplary system architecture 100 is shown to which the message processing method of the present disclosure may be applied.

[0033] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is used to provide a medium for communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, and may generally include wireless communication links, etc.

[0034] The terminal devices 101 , 102 , 103 interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications, such as instant messaging tools, email clients, etc., may be installed on the terminal devices 101 , 102 , 103 .

[0035] Terminal devices 101, 102, and 103 can be hardware or software. When terminal devices 101, 102, and 103 are hardware, they can be user devices with communication and control functions, and the above user settings can communicate with server 105. When terminal devices 101, 102, and 103 are software, they can be installed in the above user devices. Terminal devices 101, 102, and 103 can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or as a single software or software module. No specific limitations are given here.

[0036] The server 105 may be a server that provides various services, such as a background server that provides a message body to the message processing system on the terminal devices 101, 102, and 103. The background server may construct a message body based on object characteristics, message characteristics, and a preset channel performance relationship table, and send the constructed message body to the terminal device.

[0037] It should be noted that the server can be either hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software or software modules (e.g., software or software modules for providing distributed services), or as a single software or software module. No specific limitations are given here.

[0038] It should be noted that the message processing method provided in the embodiments of the present disclosure is generally executed by the server 105 .

[0039] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0040] Traditionally, for online hospital consultation scenarios, message delivery in online hospitals requires the following characteristics: 1) Message delivery features are unique to each user, influencing how messages are delivered to that user. 2) Priority is defined for each business message. In the event of network congestion or data backlogs, high-priority messages are prioritized with a delivery strategy that prioritizes reliability and real-time performance. 3) Each message channel has clear characteristics such as reliability, real-time performance, and delivery cost, forming a comprehensive, tiered messaging strategy.

[0041] In order to ensure the reliability and real-time delivery of messages, messages are usually sent to users simultaneously through multiple message channels. This method of sending the same message through multiple channels will, on the one hand, cause a large number of duplicate messages to disturb users, and on the other hand, it will increase the operating costs of the consultation service.

[0042] In view of the above defects, the present disclosure provides a message processing method, such as Figure 2 , shows a process 200 of an embodiment of a message processing method according to the present disclosure, the message processing method comprising the following steps:

[0043] Step 201 : Determine the message characteristics of the message to be sent and the object characteristics of the receiving object corresponding to the message to be sent.

[0044] In this embodiment, the message to be sent is a business message that needs to be sent to a receiving object. For different business systems, the form of expression of the message to be sent is different.

[0045] In this embodiment, the receiving object is the object that receives the message. For different business systems, the receiving object can be different users who hold message receiving terminals. It is related to the network environment in which the users are located. The message receiving capabilities of the message receiving terminals of various users are different, that is, the users' perception of messages is different. For example, for the Internet hospital service system, some users have a stronger perception of Push, and some users have a stronger perception of SMS or public accounts.

[0046] In this embodiment, each recipient has unique object characteristics. For example, object characteristics include basic characteristics such as age and gender. Since message reception is determined by the message receiving terminal held by the recipient, and message receiving terminals have different software and hardware models and different message support capabilities, object characteristics may also include device characteristics such as device model and system application version.

[0047] Step 202: Determine a perception message channel for receiving the object based on the object characteristics.

[0048] In this embodiment, a perceived message channel is a message channel that can be perceived by the receiving object. Since different objects have different abilities to perceive message channels, corresponding message channels can be set for different object characteristics. The set message channel can be a single message channel (such as WeChat) or multiple message channels (such as WeChat, Push, SMS, phone calls, etc.). After analyzing the receiving object of the message to be sent, the perceived message channel corresponding to the object characteristics of the receiving object can be obtained based on the above fixed correspondence.

[0049] Optionally, different types of objects can be labeled with object characteristics, and the labels can be corresponded to different perception message channels. After determining the receiving object, the corresponding label can be searched through the object characteristics of the receiving object, and then the message perception channel corresponding to the object characteristics can be determined through the label.

[0050] Step 203: Determine the performance information of the message to be sent based on the message characteristics.

[0051] In this embodiment, the message characteristics are information that reflects the main features of the message to be sent. For example, the message characteristics include: the timing of message sending, the do not disturb time period, the message priority, the message sending conditions, the message sending restriction conditions, the message failure retry, etc. The message characteristics can effectively reflect the performance of the message to be sent.

[0052] In this embodiment, the performance requirements of the message recipients for various business scenarios vary. For example, in an internet medical consultation scenario, which includes numerous message reminders, different message push scenarios have different requirements for reliability and real-time performance. Messages with high reliability and real-time requirements can be sent first. Performance information is a reflection of the performance requirements of the message characteristics of the message to be sent in the current business scenario. For different performance requirements of different businesses, performance information may include: reliability score, real-time score, and importance score, or reliability level, real-time level, and importance level, etc.

[0053] Step 204: construct a message body corresponding to the message to be sent based on the perceived message channel, performance information, and a preset channel performance relationship table.

[0054] In this embodiment, each message channel performs differently in terms of different message performance. For example, each message channel performs differently in terms of reliability and real-time performance. The channel performance relationship table can reflect the reliability and real-time performance of messages in different message channels.

[0055] Channel performance reflects the degree of message performance when different message channels transmit different messages. Channel performance manifests itself differently when message performance varies. For example, when message performance measures reliability and timeliness, channel performance can include a reliability score and a timeliness score, or a reliability level and a timeliness level. When message performance measures transmission cost, channel performance can include a transmission cost score or a transmission cost level. By matching the performance information in channel performance with the performance information of the message to be sent, the most efficient message channel for sending the message can be effectively determined among the perceived message channels.

[0056] In this embodiment, the channel performance relationship table is used to represent the correspondence between message channels and channel performance. It should be noted that as the performance of the message channels changes, the channel performance relationship table can be updated in real time based on the message body transmission results, thereby obtaining the most accurate correspondence between message channels and channel performance. Furthermore, there is a correspondence between channel performance and the performance information of the message to be sent. For example, the message channel with the same channel performance and performance information among the perceived message channels is selected as the optimal message channel for sending the message body. Based on the performance information, the message channel with the higher channel performance among the perceived message channels is selected as the optimal message channel for sending the message body.

[0057] Specifically, the channel performance relationship table may be a table as shown in Table 1. In Table 1, message channels include: IM, Push, SMS, WeChat official account, and phone; channel performance includes: reliability level, real-time level, and cost level; reliability level, real-time level, and cost level corresponding to different message channels each have three different levels: A, B, C, and D, where level A > level B > level C > level D. For example, when reliability is level A, reliability is determined to be the highest. When cost is level A, cost is determined to be the lowest. When real-time performance is level A, real-time performance is determined to be the highest.

[0058] Table 1

[0059] Message Channel Reliability level Real-time level Cost level IM B B A Push C B A Short message B D C WeChat official account A B B Telephone A A D

[0060] In this embodiment, the message body is information sent to a receiving object through a message channel. Specifically, the message body may include: message content, sending object, receiving object, link and other information.

[0061] In business scenarios, a large number of messages are generated. In order to solve the problem of network congestion and message backlog during high concurrency, after the message body is constructed, a priority value can be optionally assigned to the message body and the message body is stored in a message queue. The message body with the highest priority in the message queue is sent first. Figure 3 The figure shows a structural diagram of a message queue.

[0062] In this embodiment, the message queue can adopt a distributed message queue with priority. The message with high priority (i.e., high timeliness requirement) will be directly placed at the head of the message queue and processed first. In the message queue, a priority value is saved for each message record. Any message will normally enter the queue from the end and will be dequeued according to the priority value. Figure 3 In the figure, a circle represents a message body, and the numbers in the circle, such as "13", "15", "16", "30", "40", "50", "58", and "62", represent the priority levels of different message bodies.

[0063] Optionally, to ensure reliable message processing, a confirmation mechanism can be enabled when consuming a message queue. This mechanism allows for re-consumption if the current consumption fails. In a distributed architecture, to address message processing concurrency in a multi-threaded environment, a distributed lock is applied to the group message object before processing. To reduce system complexity and improve performance, a cache-based distributed lock is employed. After the current thread acquires the lock, it proceeds to the next logical step and releases the lock upon completion. This locking process ensures reliable and high-performance message delivery.

[0064] The message processing method provided by the embodiments of the present disclosure first determines the message characteristics of the message to be sent and the object characteristics of the receiving object corresponding to the message to be sent; secondly, based on the object characteristics, determines the perceived message channel of the receiving object; thirdly, based on the message characteristics, determines the performance information of the message to be sent; finally, based on the perceived message channel, performance information, and a preset channel performance relationship table, constructs a message body corresponding to the message to be sent. Thus, by constructing the message body corresponding to the message to be sent based on the object characteristics, message characteristics, and a preset channel performance relationship table, the characteristics of the object and message are fully considered, which can reduce the disturbance of repeated messages to users, improve user experience, reduce the cost of message reach operations on the server side, and improve message reach efficiency.

[0065] In some disclosed embodiments, the above method includes: constructing a message body corresponding to the message to be sent based on the perceived message channel, performance information and a preset channel performance relationship table, including: determining the optimal message channel based on the perceived message channel, performance information and a preset channel performance relationship table; constructing a message body corresponding to the message to be sent based on the optimal message channel.

[0066] In this optional implementation, a model corresponding to the message channel and performance information can be pre-trained, and the perceived message channel, performance information, and channel performance relationship table can be input into the model to obtain the optimal message channel in the perceived message channel output by the model. It should be noted that the optimal message channel can be the message channel in the channel performance relationship table. Since the perceived message channel includes at least one message channel, the optimal message channel can also be a message channel in the perceived message channel, or multiple message channels in the perceived message channel.

[0067] In this embodiment, the above-mentioned construction of a message body corresponding to the message to be sent based on the optimal message channel includes: when the message to be sent is converted into message content adapted to the optimal message channel; based on the receiving object, determining the receiving information; and combining the message content and the receiving information in a format adapted to the optimal message channel to obtain the message body.

[0068] The method for constructing a message body corresponding to a message to be sent provided in this embodiment determines the optimal message channel based on the perceived message channel and performance information; based on the optimal message channel, constructs a message body corresponding to the message to be sent. Therefore, after determining the optimal message channel for transmitting the message to be sent, the constructed message body can be closer to the requirements of the message to be sent, thereby improving the reliability of message body construction.

[0069] Optionally, after determining the optimal message channel, a sending object (the execution subject on which the message processing method of this embodiment runs) may also be determined, and a sending message may be generated based on the sending object and added to the message body.

[0070] In some embodiments of the present disclosure, the above-mentioned determination of the optimal message channel based on the perceived message channel, performance information and the preset channel performance relationship table includes: obtaining a message reach strategy for sending messages to be sent based on the perceived message channel, performance information and the preset channel performance relationship table; and determining the optimal message channel based on the message reach strategy.

[0071] In this embodiment, the message delivery strategy is a message body sending rule, which is used to specify the timing of sending the message to be sent to the receiving object and the priority requirements for sending messages in different time periods. The message sending rule includes the priority requirements for transmitting messages in different time periods using different message channels.

[0072] In this embodiment, the message channel corresponding to the message reach strategy is the optimal message channel. The optimal message channel can be one message channel or multiple message channels. The multiple message channels can be message channels that send message bodies at the same time, or they can be message channels that send message bodies in different time periods.

[0073] The method for determining the optimal message channel provided in this embodiment obtains a message reach strategy for sending messages to be sent based on the perceived message channel and performance information, and determines the optimal message channel based on the message reach strategy. The optimal message channel can be determined on the basis of the message reach strategy, thereby improving the reliability of obtaining the optimal message channel.

[0074] In some optional implementations of this embodiment, the message delivery strategy for sending the message to be sent based on the perceived message channel, performance information, and a preset channel performance relationship table includes:

[0075] Match multiple message channels that match the perceived message channel with the channel performance of each message channel from the channel performance relationship table; based on the performance information and the channel performance of each message channel, select a message channel that matches the message to be sent from the multiple message channels; based on the performance information, determine the priority order of the selected message channels to obtain the message reach strategy for the message to be sent.

[0076] In this embodiment, the channel performance relationship table includes all message channels, the perception message channel is a part of all message channels, and the multiple message channels matching the perception message channel refer to the message channels that are the same as the perception message channel in the channel performance relationship table. Based on the same message channels, the channel performance of the corresponding message channels can be obtained from the channel performance relationship table.

[0077] In this embodiment, channel performance includes performance information and cost scores. After selecting a message channel that matches the message to be sent from multiple message channels, the message channels that are the same as the perceived message channel can be prioritized based on the sorting order of the performance information of each message channel. Based on the rules for sending messages through the message channel and the above-mentioned priority sorting, different messages in the message body (which can be the entire message to be sent or different sub-messages in the message to be sent) are sent in different time periods. This sending strategy is the message reach strategy.

[0078] The method for obtaining the message reach strategy for the message to be sent provided in this embodiment can effectively determine the channel score of the perceived message channel through the channel performance relationship table, and can determine the message channel that matches the message to be sent through the relationship between the performance information and the channel score. Based on the sequential relationship of the performance information, the priority order of the selected message channels is determined, thereby obtaining a message reach strategy that matches the message to be sent, and improving the reliability of the message reach strategy.

[0079] Optionally, obtaining a message delivery strategy for sending a message to be sent based on the perceived message channel, performance information, and a preset channel performance relationship table further includes:

[0080] Match multiple message channels that match the perceived message channel with the channel performance of each message channel from the channel performance relationship table; based on the performance information and the channel performance of each message channel, select a message channel that matches the message to be sent from the multiple message channels; sort the channel scores of the selected message channels from high to low, and based on the sorting order, determine the priority order of the selected message channels, and use the triggering strategy of the message channels sorted in priority order as the message reach strategy for the message to be sent.

[0081] In some embodiments of the present disclosure, the above method further includes: using a message reach strategy to send a message body to a message receiving terminal of a recipient, and storing a sending record of the message body in a database.

[0082] In this embodiment, the message sending record includes: the sending time of the message body, the content of the message body, the recipient corresponding to the message body, and information of the message receiving terminal.

[0083] In this embodiment, the message sending module that sends the message body in the execution body on which the message processing method runs can use a multi-threaded parallel sending priority queue (such as Figure 4 The message body in the queue (which stores the message body) is parsed and the corresponding message channel contact strategy is selected based on the message channel type to send the message. Message sending records are also stored in the database to facilitate subsequent message status updates and full message tracking.

[0084] The message processing method provided by the embodiment of the present disclosure sends the message body to the message receiving terminal of the receiving object after obtaining the message body, and records the sending record of the message body, so that the message processing server can effectively record the message processing status and provide an effective information basis for the message sending status of the subsequent message receiving terminal.

[0085] In some embodiments of the present disclosure, the above method also includes: receiving the message sending result fed back by the message receiving terminal; updating the channel performance relationship table based on the message sending result; receiving the terminal status fed back by the message receiving terminal; and updating the correspondence between the object characteristics and the perceived message channel based on the terminal status.

[0086] like Figure 4 As shown, the dotted box is the work content of the execution subject of the present disclosure. Specifically, the execution subject: determines the channel access strategy for sending the message to be sent based on the object characteristics, the message characteristics of the message to be sent, and the channel performance relationship table, generates the message body based on the channel access strategy, stores the message body in the priority queue, and sends the highest priority message body from the priority queue to the message receiving terminal Z first.

[0087] After the execution subject sends the message body to the message receiving terminal Z, the execution subject receives the terminal status and the message body sending result from the message receiving terminal Z, updates the channel performance relationship table based on the message sending result, and updates the correspondence between the object and the perception message channel based on the terminal status.

[0088] In this embodiment, the message sending results include: successful sending of the message to be sent and failed sending of the message to be sent. After the message to be sent is successfully sent, the channel score corresponding to the message channel that transmits the message to be sent can be increased accordingly; after the message to be sent fails to be sent, the channel score corresponding to the message channel that transmits the message to be sent can be reduced accordingly.

[0089] In this embodiment, the terminal status fed back by the message receiving terminal includes: viewing pending messages, closing pending messages, and ignoring pending messages. When the terminal status is viewing pending messages, updating the correspondence between the object characteristics and the perceived message channel includes: detecting whether there is a correspondence between the object characteristics and the message channel transmitting the pending messages, and if there is no correspondence, adding a correspondence between the object characteristics and the message channel transmitting the pending messages. When the terminal status is closing pending messages or ignoring pending messages, updating the correspondence between the object characteristics and the perceived message channel includes: detecting whether there is a correspondence between the object characteristics and the message channel transmitting the pending messages, and if there is a correspondence, removing the correspondence between the object characteristics and the message channel transmitting the pending messages.

[0090] The message processing method provided in this embodiment updates the correspondence between the message channel and the channel performance based on the message sending results fed back by the message receiving terminal, which can effectively score the message channel, thereby providing a reliable basis for obtaining a valid message body; based on the terminal status, the correspondence between the object characteristics and the perceived message channel is updated, which can effectively provide an effective correspondence basis for the correspondence between the user and the user's perceived message channel.

[0091] Optionally, the message processing method may further include: updating the correspondence between the message characteristics and the performance information based on the message sending result.

[0092] In this embodiment, the recipients may be people of different age groups and social classes. Therefore, the types of message receiving terminals for different groups may be different. In this embodiment, the basic information of the recipient and the recipient's terminal device can be associated with the message channel, thereby providing a reliable basis for comprehensive analysis of the recipient.

[0093] In some optional implementations of this embodiment, the object characteristics include: basic information characteristics and device information characteristics; determining the perception message channel of the receiving object based on the object characteristics includes:

[0094] A first perception message channel corresponding to the basic information feature is selected from a pre-constructed basic channel relationship table, and the basic channel relationship table is used to characterize the correspondence between the basic information feature and the first perception message channel; a second perception message channel corresponding to the device information feature is selected from a pre-constructed device channel relationship table, and the device channel relationship table is used to characterize the correspondence between the device information feature and the second perception message channel; the first perception message channel and the second perception message channel are combined to obtain the perception message channel of the receiving object.

[0095] In this optional implementation, basic information features refer to different basic information about the recipient, including gender, age, and address. The basic channel relationship table is used to represent the corresponding relationship between the recipient and the first perceived message channel under different basic information. The first perceived message channel is a message channel that the recipient can perceive or use at their current stage of life. The first perceived message channel can include at least one message channel. A message channel is an objectively existing channel for transmitting message bodies, such as WeChat. The perceived message channel and the optimal message channel can be obtained through the message channel.

[0096] In this optional implementation, the device information feature refers to the different device information of the terminal held by the object. The different device information includes: brand, system, application version, etc. The device channel relationship table is used to characterize the correspondence between the second perception message channels that can be supported by the terminal held by the object under different software and hardware information. The second perception message channel is the message channel that can be supported by the receiving terminal currently used by the receiving object. The second perception message channel can also include at least one message channel. In this embodiment, the message channel in the first perception message and the second perception message channel can have the same message channel or different message channels. See Table 2 and Table 3.

[0097] Table 2

[0098]

[0099] Table 3

[0100]

[0101] In Table 2, the basic information of the receiving object includes: gender, age, and address. There are two types of gender: "male" and "female". Among them, the first perception message channels corresponding to "male" include: Push, SMS, and official accounts. The first perception message channels corresponding to "female" include: IM, SMS, and official accounts; the first perception message channels corresponding to receiving objects under the age of 16 include: SMS.

[0102] Table 3 shows device information such as brand, operating system, and application version. Brands are categorized as Brand E and Brand F, application versions as Version E and Version F, and systems as System 1, System 2, and System 3. In Table 3, the secondary perception message channels corresponding to "Brand E" include IM and Push, while those corresponding to "Brand F" include SMS. It should be noted that the information in Tables 2 and 3 is collected through statistical analysis with user authorization, and the construction of Tables 2 and 3 complies with relevant laws and regulations.

[0103] In this embodiment, the message channels in the first perception message channel corresponding to the basic information characteristics and the second perception message channel corresponding to the device information characteristics can be the same. When combining the first perception message channel and the second perception message channel, the overlapping message channels in the first perception message channel corresponding to the basic information characteristics and the second perception message channel corresponding to the device information characteristics are removed to obtain the perception message channel of the receiving object.

[0104] If the first perception message channel corresponding to the basic information of a receiving object includes: IM, SMS, and official account, and the second perception message channel corresponding to the device information of the receiving object includes: IM, Push, SMS, and telephone, then the perception message channel of the receiving object includes: IM, SMS, official account, Push, and telephone.

[0105] The method for determining the perception message channel of a receiving object provided in this embodiment determines the first perception message channel and the second perception message channel corresponding to the receiving object based on the basic information characteristics of the receiving object and the device information characteristics of the message receiving terminal of the receiving object, respectively, and combines the first perception message channel and the second perception message channel as the perception message channel of the receiving object, thereby improving the comprehensiveness of determining the perception message channel of the receiving object and ensuring the reliability of the perception message channel analysis.

[0106] In some optional implementations of the present disclosure, determining the performance information of the message to be sent based on the message characteristics includes:

[0107] Performance information corresponding to the message characteristics is selected from a pre-built message performance relationship table, where the message performance relationship table is used to characterize the correspondence between the message characteristics and the performance information; the selected performance information is used as the performance information of the message to be sent.

[0108] In this embodiment, the performance information can also be used to characterize the proportion of the performance of the message characteristics in the current sending business of the message to be sent. The higher the performance information, the greater the proportion of the message to be sent in the current sending business.

[0109] In this embodiment, the performance of the message feature can be effectively measured through the performance information. For example, when the message feature includes timeliness, the performance information may include: reliability score, real-time score or reliability level, real-time level.

[0110] The method for determining the performance information of the message to be sent provided by this optional implementation method selects the performance information corresponding to the message characteristics through a pre-built message performance relationship table, so as to quickly and effectively obtain the performance information of the message to be sent, thereby improving the efficiency of message processing.

[0111] Optionally, the message features may be input into a pre-trained message scoring model to obtain performance information of the message scoring model input, wherein the message scoring model is used to characterize the correspondence between the message features and the performance information.

[0112] Optionally, the message performance relationship table can also characterize the relationship between message characteristics and performance information of different messages. The above-mentioned determination of the performance information of the message to be sent based on the message characteristics includes: selecting performance information corresponding to the message to be sent from a pre-built message performance relationship table, the message performance relationship table is used to characterize the correspondence between different messages and performance information; and using the selected performance information as the performance information of the message to be sent.

[0113] Table 4

[0114] information Validity period Reliability level Real-time level Order reminder message 60 seconds A A Prescription reminder 10 minutes A B End of consultation reminder 60 seconds B A

[0115] As shown in Table 4, the messages to be sent include: dispatch reminder messages, prescription reminder messages, and end-of-consultation reminder messages. The message feature of the message to be sent is the validity period, and the performance information of the message feature includes: reliability level and real-time level. In Table 4, the performance information of different messages to be sent is different. When the message to be sent is a dispatch reminder message, its validity period is 60 seconds, and the corresponding reliability level and real-time level are both A. A reliability level indicates the highest reliability, and A real-time level indicates the best real-time performance.

[0116] Further references Figure 5 As an implementation of the message processing method shown in the above figures, the present disclosure provides an embodiment of a message processing device. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0117] like Figure 5 As shown, an embodiment of the present disclosure provides a message processing device 500, which includes: an object determination unit 501, a channel determination unit 502, a score determination unit 503, and a construction unit 504. The object determination unit 501 can be configured to determine the message characteristics of the message to be sent and the object characteristics of the receiving object corresponding to the message to be sent. The channel determination unit 502 can be configured to determine the perceived message channel of the receiving object based on the object characteristics. The score determination unit 503 can be configured to determine the performance information of the message to be sent based on the message characteristics. The construction unit 504 can be configured to construct a message body corresponding to the message to be sent based on the perceived message channel, performance information and a preset channel performance relationship table. The channel performance relationship table is used to characterize the correspondence between the message channel and the channel performance.

[0118] In this embodiment, the specific processing of the object determination unit 501, the channel determination unit 502, the score determination unit 503, and the construction unit 504 and the technical effects thereof can be referred to in the respective Figure 2These correspond to steps 201, 202, 203, and 204 in the embodiment.

[0119] In some embodiments, the construction unit 504 is further configured to: determine the best message channel based on the perceived message channel, performance information, and a preset channel performance relationship table; and construct a message body corresponding to the message to be sent based on the best message channel.

[0120] In some embodiments, the construction unit 504 is further configured to: obtain a message reach strategy for sending the message to be sent based on the perceived message channel, performance information, and a preset channel performance relationship table; and determine the optimal message channel based on the message reach strategy.

[0121] In some embodiments, the above-mentioned construction unit 504 is further configured to: match multiple message channels that match the perceived message channel with the channel performance of each message channel from the channel performance relationship table; based on the performance information and the channel performance of each message channel, select a message channel that matches the message to be sent from multiple message channels; based on the performance information, determine the priority order of the selected message channels to obtain the message reach strategy for the message to be sent.

[0122] In some embodiments, the above-mentioned device 500 also includes: a sending unit (not shown in the figure), which can be configured to adopt a message reach strategy to send a message body to the message receiving terminal of the receiving object, and store the sending record of the message body in the database.

[0123] In some embodiments, the above-mentioned device 500 further includes: a result receiving unit (not shown in the figure), a message updating unit (not shown in the figure), a state receiving unit (not shown in the figure), and an object updating unit (not shown in the figure), wherein the result receiving unit can be configured to receive the message sending result fed back by the message receiving terminal. The message updating unit can be configured to update the channel performance relationship table based on the message sending result. The state receiving unit can be configured to receive the terminal state fed back by the message receiving terminal. The object updating unit can be configured to update the correspondence between the object characteristics and the perceived message channel based on the terminal state.

[0124] In some embodiments, the above-mentioned object characteristics include: basic information characteristics and device information characteristics; the above-mentioned channel determination unit 502 is further configured to: select a first perception message channel corresponding to the basic information characteristics from a pre-constructed basic channel relationship table, and the basic channel relationship table is used to characterize the correspondence between the basic information characteristics and the first perception message channel; select a second perception message channel corresponding to the device information characteristics from a pre-constructed device channel relationship table, and the device channel relationship table is used to characterize the correspondence between the device information characteristics and the second perception message channel; combine the first perception message channel and the second perception message channel to obtain the perception message channel of the receiving object.

[0125] In some embodiments, the above-mentioned score determination unit 503 is further configured to: select performance information corresponding to the message characteristics from a pre-constructed message performance relationship table, the message performance relationship table is used to characterize the correspondence between message characteristics and performance information; and use the selected performance information as the performance information of the message to be sent.

[0126] The message processing device provided by the embodiment of the present disclosure is as follows: first, the object determination unit 501 determines the message characteristics of the message to be sent and the object characteristics of the receiving object corresponding to the message to be sent; secondly, the channel determination unit 502 determines the perceived message channel of the receiving object based on the object characteristics; thirdly, the score determination unit 503 determines the performance information of the message to be sent based on the message characteristics; finally, the construction unit 504 constructs a message body corresponding to the message to be sent based on the perceived message channel, performance information and a preset channel performance relationship table, and the channel performance relationship table is used to characterize the correspondence between the message channel and the channel performance. Thus, the message body corresponding to the message to be sent is constructed based on the object characteristics, the message characteristics and the preset channel performance relationship table, fully considering the characteristics of the object and the message, which can reduce the disturbance of repeated messages to the user, improve the user experience, and reduce the cost of the message reaching operation on the server side, thereby improving the message reaching efficiency.

[0127] Reference below Figure 6 , which shows a structural diagram of an electronic device 600 suitable for implementing the embodiments of the present disclosure.

[0128] like Figure 6As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0129] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as needed.

[0130] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0131] It should be noted that the computer-readable medium of the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or component. In the embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or convey a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code embodied on the computer-readable medium may be conveyed using any suitable medium, including but not limited to wires, optical cables, RF (Radio Frequency), or any suitable combination thereof.

[0132] The computer-readable medium may be included in the server, or may exist independently and not incorporated into the server. The computer-readable medium carries one or more programs that, when executed by the server, cause the server to: determine message characteristics of a message to be sent and object characteristics of a recipient corresponding to the message to be sent; determine the recipient's perceived message channel based on the object characteristics; determine performance information of the message to be sent based on the message characteristics; and construct a message body corresponding to the message to be sent based on the perceived message channel, the performance information, and a preset channel-performance relationship table, wherein the channel-performance relationship table is used to represent the correspondence between the message channel and the channel performance.

[0133] Computer program code for performing the operations of embodiments of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0134] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to the various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0135] The units involved in the embodiments described in the present disclosure may be implemented in software or in hardware. The described units may also be provided in a processor, for example, may be described as: a processor comprising an object determination unit, a channel determination unit, a scoring confirmation unit, and a construction unit. The names of these units do not, in some cases, constitute a limitation on the units themselves. For example, the object determination unit may also be described as a unit "configured to determine the message characteristics of the message to be sent and the object characteristics of the receiving object corresponding to the message to be sent."

[0136] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also encompass other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned inventive concept. For example, a technical solution formed by mutually replacing the above-mentioned features with (but not limited to) technical features having similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A message processing method, the method comprising: Determining message characteristics of a message to be sent and object characteristics of a recipient corresponding to the message to be sent, wherein the message characteristics include at least one of the following: a timing for message sending, a do not disturb period, a message priority, a message sending condition, a message sending restriction condition, and a message failure retry; Determining a perception message channel of the receiving object based on the object characteristics; Determining performance information of the message to be sent based on the message characteristics; A message body corresponding to the message to be sent is constructed based on the perceived message channel, the performance information and a preset channel performance relationship table, where the channel performance relationship table is used to characterize the correspondence between the message channel and the channel performance.

2. The method according to claim 1, wherein The constructing a message body corresponding to the to-be-sent message based on the perception message channel, the performance information, and a preset channel performance relationship table includes: Determining an optimal message channel based on the perceived message channel, the performance information, and a preset channel performance relationship table; Based on the optimal message channel, a message body corresponding to the message to be sent is constructed.

3. The method according to claim 2, wherein: The determining the optimal message channel based on the perceived message channel, the performance information, and a preset channel performance relationship table includes: Based on the perceived message channel, the performance information, and a preset channel performance relationship table, a message delivery strategy for sending the message to be sent is obtained; Based on the message delivery strategy, determine the optimal message channel.

4. The method according to claim 3, wherein: The obtaining, based on the perceived message channel, the performance information, and a preset channel performance relationship table, a message delivery strategy for sending the message to be sent, includes: Matching a plurality of message channels that match the perceived message channel with the channel performance of each message channel from the channel performance relationship table; Selecting a message channel that matches the message to be sent from the multiple message channels based on the performance information and the channel performance of each message channel; Based on the performance information, the priority order of the selected message channels is determined to obtain the message delivery strategy for the message to be sent.

5. The method according to claim 4, further comprising: The message body is sent to the message receiving terminal of the receiving object using the message reaching strategy, and the sending record of the message body is stored in the database.

6. The method according to claim 5, further comprising: receiving a message sending result fed back by the message receiving terminal; Based on the message sending result, updating the channel performance relationship table; receiving a terminal status fed back by the message receiving terminal; Based on the terminal state, the correspondence between the object feature and the perception message channel is updated.

7. The method according to claim 1, wherein The object characteristics include: basic information characteristics and device information characteristics; and determining the perception message channel of the receiving object based on the object characteristics includes: Selecting a first perception message channel corresponding to the basic information feature from a pre-constructed basic channel relationship table, wherein the basic channel relationship table is used to represent a correspondence between the basic information feature and the first perception message channel; Selecting a second perception message channel corresponding to the device information feature from a pre-constructed device channel relationship table, wherein the device channel relationship table is used to represent a correspondence between the device information feature and the second perception message channel; The first perception message channel and the second perception message channel are combined to obtain the perception message channel of the receiving object.

8. The method according to claim 1, wherein The determining, based on the message characteristics, the performance information of the message to be sent includes: Selecting performance information corresponding to the message feature from a pre-built message performance relationship table, wherein the message performance relationship table is used to represent the corresponding relationship between the message feature and the performance information; The selected performance information is used as the performance information of the message to be sent.

9. A message processing device, comprising: an object determination unit configured to determine message characteristics of a message to be sent and object characteristics of a recipient corresponding to the message to be sent, wherein the message characteristics include at least one of the following: a timing for message sending, a do not disturb period, a message priority, a message sending condition, a message sending restriction condition, and a message failure retry; a channel determining unit, configured to determine a perception message channel of the receiving object based on the object feature; a score determination unit, configured to determine performance information of the message to be sent based on the message features; The construction unit is configured to construct a message body corresponding to the message to be sent based on the perception message channel, the performance information and a preset channel performance relationship table, wherein the channel performance relationship table is used to characterize the correspondence between the message channel and the channel performance.

10. The device according to claim 9, wherein The construction unit is further configured to: determine an optimal message channel based on the perceived message channel, the performance information, and a preset channel performance relationship table; Based on the optimal message channel, a message body corresponding to the message to be sent is constructed.

11. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

12. A computer-readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Push channel selection, message pushing method, device and equipment, readable medium

    CN107395697A

  • Message pushing method and message pushing device

    CN107888641A