Message processing method and device

By analyzing the short message exception code synchronized by the operator, calculating the exception indicators of the short message template, and updating the short message template under the triggering conditions, the problem of short message sending exceptions is solved, and the sending success rate and user reach rate are improved.

CN120151780APending Publication Date: 2025-06-13ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510534860.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

With the expansion of the scope of short message application, service providers face greater challenges and pressures in short message processing, especially in the case of abnormal short message sending, it is difficult to effectively optimize the short message template to improve the sending success rate.

Method used

By obtaining the exception code and template identification of the short message that is synchronized by the operator, the exception code is parsed to determine the exception type. If the exception type is a preset exception type, the exception indicator of the short message template corresponding to the short message identification is calculated based on the indicator data of the short message. When the exception metric triggers the template update condition, the short message template is updated and message generation and sending is performed based on the update template.

Benefits of technology

By real-time monitoring and optimization of short message templates, the success rate of short message sending is improved, resource waste is reduced, and user access rate is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120151780A_ABST
    Figure CN120151780A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a message processing method and device.The message processing method comprises the steps that an exception code and a template identifier of a short message which is sent abnormally and synchronously by an operator are obtained, and when the exception type corresponding to the exception code is a preset exception type, the short message is sent abnormally; the method comprises the steps of calculating an abnormal index of a short message template corresponding to a template identifier from index data of a short message, updating the short message template to obtain an updated message template after detecting that the abnormal index triggers a template updating condition, and generating and sending a message through the updated message template. In this way, template optimization of the short message template is achieved according to the abnormal code of the short message in the message sending process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of data processing technologies, and particularly to a message processing method and apparatus. Background Art

[0002] With the continuous development and progress of communication technologies, short messages have gradually become an important channel for many service providers to communicate with users. As users' service demands for service providers become more and more diversified, in order to improve user retention rates, service providers promote services to users by sending short messages, which has gradually become a feasible means for service providers to promote services. However, with the continuous expansion of the application scope of short messages, higher requirements have been put forward for the sending of short messages, which also poses greater challenges and pressures for service providers in short message processing. Summary of the Invention

[0003] One or more embodiments of this specification provide a message processing method, including: obtaining an exception code and a template identifier of a short message with a sending exception synchronized by an operator. If the exception type obtained by parsing the exception code is a preset exception type, calculating an exception index of a short message template corresponding to the template identifier based on the metric data of the short message. After detecting that the exception index triggers a template update condition, updating the short message template to obtain an updated message template, and generating and sending a message based on the updated message template.

[0004] One or more embodiments of this specification provide a message processing apparatus, including: an obtaining module configured to obtain an exception code and a template identifier of a short message with a sending exception synchronized by an operator. A metric calculation module configured to calculate an exception index of a short message template corresponding to the template identifier based on the metric data of the short message if the exception type obtained by parsing the exception code is a preset exception type. An updating module configured to update the short message template to obtain an updated message template after detecting that the exception index triggers a template update condition, and generate and send a message based on the updated message template.

[0005] One or more embodiments of this specification provide a message processing device, including: a processor; and a memory configured to store computer-executable instructions, where the computer-executable instructions, when executed, cause the processor to: obtain an exception code and a template identifier of a short message with a sending exception synchronized by an operator. If the exception type obtained by parsing the exception code is a preset exception type, calculate an exception index of a short message template corresponding to the template identifier based on the metric data of the short message. After detecting that the exception index triggers a template update condition, update the short message template to obtain an updated message template, and generate and send a message based on the updated message template.

[0006] One or more embodiments of this specification provide a computer-readable storage medium for storing computer-executable instructions, and when the computer-executable instructions are executed, the following steps are implemented: obtaining the exception code and template identifier of a short message with abnormal sending synchronized by an operator. If the exception type obtained by parsing the exception code is a preset exception type, calculating the exception index of the short message template corresponding to the template identifier based on the metric data of the short message. After detecting that the exception index triggers the template update condition, updating the short message template to obtain an updated message template, and generating and sending a message based on the updated message template. Brief Description of the Drawings

[0007] In order to more clearly illustrate the technical solutions in one or more embodiments of this specification or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in this specification. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings; Figure 1 It is a schematic diagram of the implementation environment of a message processing method provided by one or more embodiments of this specification; Figure 2 It is a processing flow chart of a message processing method provided by one or more embodiments of this specification; Figure 3 It is a processing flow chart of a message processing method applied to the short message scenario provided by one or more embodiments of this specification; Figure 4 It is a schematic diagram of an embodiment of a message processing device provided by one or more embodiments of this specification; Figure 5 It is a schematic diagram of the structure of a message processing device provided by one or more embodiments of this specification. Detailed Embodiments

[0008] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will clearly and completely describe the technical solutions in one or more embodiments of this specification in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only some embodiments of this specification, rather than all embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this document.

[0009] The message processing method provided by one or more embodiments of this specification is applicable to the implementation environment of short message processing. Refer toFigure 1 , the implementation environment at least includes: A server 101 for short message processing; in addition, the implementation environment may also include an operator 102, or may include terminal devices 103 of users in the user group.

[0010] Among them, the server 101 can be used to calculate the abnormal index of the short message template based on the index data of the short message when the abnormal type obtained by parsing the abnormal code of the short message with abnormal transmission is a preset abnormal type. If the abnormal index triggers the template update condition, update the short message template, and generate and send messages based on the updated message template obtained by the update; the server 101 can be a single server, or a server cluster composed of several servers, or one or more cloud servers in a cloud computing platform.

[0011] The operator 102 can be used to send short messages to users in the user group; the operator 102 can be a server of the operator, and this server can be a single server, or a server cluster composed of several servers, or one or more cloud servers in a cloud computing platform.

[0012] The terminal device 103 can be used to receive short messages sent by the operator; the terminal device 103 can specifically be a mobile phone, a personal computer, a tablet computer, an e-book reader, a device for information interaction based on VR (Virtual Reality), a vehicle-mounted terminal, an IoT (Internet of Things) device, a wearable intelligent device, a laptop computer, a desktop computer, and so on.

[0013] In this implementation environment, the server 101 obtains the abnormal code and template identifier of the short message with abnormal transmission synchronized by the operator 102. If the abnormal type corresponding to the abnormal code is a preset abnormal type, calculate the abnormal index of the short message template corresponding to the template identifier according to the index data of the short message. When the abnormal index triggers the template update condition, update the short message template to obtain the updated message template, and generate and send messages through the updated message template, so as to realize template optimization of the short message template according to the abnormal code of the short message during the message sending process; among them, the operator 102 can send short messages to the terminal device 103 of the user.

[0014] One or more embodiments of a message processing method provided in this specification are as follows: Refer to Figure 2 , the message processing method provided in this embodiment specifically includes steps S202 to S206.

[0015] Step S202: Obtain the error code and template identifier of the short message with abnormal sending synchronized by the operator.

[0016] In this embodiment, the operator may be a telecommunications operator that sends short messages; the short message may include a text message or an operator message, and the short message may be one or more; the short message may be generated based on a short message template and may be used for service push of an application or in-application services; optionally, the short message is used to perform service push of in-application resource services to the target users in the user group corresponding to the short message template; the target users in the user group here refer to the recipients of the short message with abnormal sending.

[0017] The short message with abnormal sending may be a short message with abnormal sending or sending failure by the operator, and these short messages may not reach the users; the short message with abnormal sending may be in a message set; the short messages included in the message set may be generated based on at least one short message template and may be used to perform service push of in-application resource services to the users in the user group corresponding to at least one short message template; the short messages included in the message set may be generated for the users in the corresponding user group based on each short message template in at least one short message template. Specifically, each short message template in at least one short message template may have a corresponding user group, and short messages may be generated for the users in the corresponding user group based on each short message template, and these short messages may form a message set, and the message set may be a set composed of one or more short messages. Each short message template in at least one short message template may correspond to a different service push category, and each short message template corresponds one-to-one to each service push category. The service push category may include a first push category for pushing entitlement resources of resource services at the push time node of resource services, a second push category for reminding the project progress of the resource item of the resource service for the user, or a third push category for pushing the resource item of the resource service; among them, the push time node of the resource service may be the push time point for pushing entitlement resources of the resource service, such as the big promotion time point of the resource service; the service push category may also include a fourth push category for pushing entitlement resources of resource services at the critical time node of the user, such as the birthday time point of the user being the critical node of the user.

[0018] In the process of service push for resource services as described above, optionally, the service push includes: pushing resource items of the resource service, or reminding the user to return resources for the resource items in the resource service; the resource item push here may include pushing of resource application items, and the resource items of the user in the resource service may include resource application items, fund application items, resource credit items or fund credit items; in addition, the service push may also include reminding the user of the project progress for the resource items in the resource service; the service push may include one or more of pushing resource items of the resource service, reminding the user to return resources for the resource items in the resource service, and reminding the user of the project progress for the resource items in the resource service; the resource service may be a fund service, a resource application service, a resource credit service, a fund application service or a fund credit service. Specifically, the fund credit service may be a fund credit service that grants funds to the user, and the fund application service may be a resource application service for the user to apply for funds.

[0019] As described above, short messages can be used for service push of application programs or services within application programs; among them, the application program can be an application program in any field. For example, the application program includes a shopping application program, a food delivery application program, a logistics application program or a payment application program; the service within the application program can be any service within the application program. For example, the food delivery service or the resource service within the payment application program; the short messages included in the message set can also be used for service push of resource services to users in the user group corresponding to at least one short message template; it should be noted that the resource service here and in this embodiment can be a resource service within the application program, and the resource service within the application program can also be replaced by a service, and the service can be a resource service, a food delivery service, a tourism service or a government service; the resource service can be a resource application program, or a resource service subroutine within the application program, or a resource service module within the application program. When the service within the application program can be a food delivery service, a tourism service or a government service, the above service push may include pushing service items of the service, and / or reminding the user of the project progress for the service items in the service; for example, when the service is a food delivery service, the service push includes pushing food delivery packages and / or food delivery stored-value cards of the food delivery service, and / or reminding the user to recharge the food delivery stored-value card in the food delivery service and / or reminding the user of the package delivery progress for the food delivery package in the food delivery service; for another example, when the service is a government service, the service push includes pushing service policies of the government service, and / or reminding the user of the progress of event handling for government events in the government service.

[0020] The exception code of the short message may be an identification code indicating that the short message sending is abnormal or failed. The form of the exception code may be a string, a two-dimensional code, or a multi-dimensional code. In addition, the form of the exception code may also be other forms, and the exception code may include numbers, letters, and / or characters. The template identifier of the short message may be a template identifier indicating the short message template to which the short message belongs. In addition to the exception code and template identifier of the short message with abnormal sending, the operator may also synchronize the operator identifier to which the short message belongs. The exception code and template identifier may be synchronized by one operator or multiple different operators.

[0021] In specific implementation, obtain the exception code and template identifier of the short message with abnormal sending synchronized by the operator. Specifically, the exception code and template identifier of the short message with abnormal sending in the message set synchronized by the operator can be obtained. Specifically, the operator can send the short messages in the message set. After the message sending is abnormal or fails, the exception code and template identifier are determined. Correspondingly, the exception code and template identifier of the short message with abnormal sending in the message set synchronized by the operator can be obtained. Here, the operator synchronizing the exception code and template identifier can be one or more.

[0022] In the specific execution process, the message sending task including the message set can be sent to the operator. Correspondingly, the operator can send the short messages in the message set included in the message sending task. The message sending task may also include the identifier of the target user corresponding to the short message in the message set and / or the sending policy of the short message. The sending policy may include the sending time, sending frequency, and / or sending priority of the short message. The target user corresponding to the short message in the message set may be the sending object of the short message in the message set, and the short message in the message set can be sent to the target user.

[0023] The message sending task can be generated in the following way: Configure the short message template for the resource service in the application program to obtain at least one short message template; Screen users based on each short message template in the at least one short message template and user behavior data to obtain the user group corresponding to each short message template; Generate short messages for the users in the corresponding user group according to each short message template, and generate a message sending task based on the short message and the sending policy of the short message. In the process of generating the message sending task based on the short message and the sending policy of the short message, the sending policy and the short message of the short message can be allocated and processed, and the message sending task can be generated based on the allocation result.

[0024] Among them, the user group can be obtained by screening users based on at least one short message template and user behavior data. Here, the user group refers to the user group corresponding to at least one short message template; the user behavior data can include at least one of the following: user attribute data, access data of the user in the application program and / or resource service, and resource application data of the user in the resource service; the user screening can be performed on the user set of the application program, or on the user set of the resource service, or on the user set composed of both the application program and the resource service; the user set here can be a registered user set, and the registered user set can be a set composed of registered users, or a converted user set, and the converted user set can be a set composed of transaction users who conduct transactions in the application program and / or resource service; the user attribute data refers to the attribute data of users in the user set of the application program and / or resource service. For example, the user attribute data is occupation, salary, or growth duration; the access data of the user in the application program and / or resource service can include the browsing data of the user in the application program and / or resource service. For example, the access data includes access frequency and access time; the resource application data of the user in the resource service can include the resource application data of the user for resource application in the resource service. For example, the resource application data is the number of resource applications and / or the amount of resource applications.

[0025] Specifically, in the process of screening users based on at least one short message template and user behavior data, user screening can be performed on the user set of the application program and / or resource service for each short message template according to the user behavior data to obtain the user group corresponding to each short message template; for example, the short message templates include Short Message Template 1, Short Message Template 2, and Short Message Template 3. Short Message Template 1 is used to push Resource Application Item 1 of the resource service, Short Message Template 2 is used to push Resource Application Item 2 of the resource service, and the amount of resource application for Resource Application Item 1 is higher than that for Resource Application Item 2. Short Message Template 3 is used to remind users of resource return for the resource application items of the users in the resource service. User screening is performed on Short Message Template 1, Short Message Template 2, and Short Message Template 3 according to the user attribute data, the access data of the user in the application program and / or resource service, and / or the resource application data of the user in the resource service to obtain the user groups corresponding to Short Message Template 1, Short Message Template 2, and Short Message Template 3 respectively; In the process of allocating and processing the sending strategy and short messages of short messages, the short messages and the sending strategy of short messages can be split into multiple message batches, and each message batch is allocated to the corresponding short message gateway to send each message batch to the corresponding operator, so as to send each message batch to the operator through different short message gateways, improving the message synchronization efficiency; in the process of generating a message sending task based on the allocation result, a message sending task for the short message gateway corresponding to each message batch can be generated based on the short messages included in each message batch, the identifier of the user corresponding to the short message, and / or the sending strategy of the short message. In the process of configuring short message templates for in-application resource services to obtain at least one short message template, at least one short message template can be generated according to the template description information input by the service provider of the resource service; the sending strategy of the short message can be configured by the service provider of the resource service; the template description information here can be the template content, and when the short message template can be the short message copywriting, the template description information can be the copywriting content.

[0026] The above-mentioned short messages with sending exceptions can be used to push services of in-application resource services to target users in the user group corresponding to the short message template; on this basis, optionally, the user group is obtained by filtering users based on the short message template and user behavior data; the user behavior data includes at least one of the following: user attribute data, access data of the user in the application and / or resource service, and resource application data of the user in the resource service.

[0027] Specifically, based on the user behavior data, users in the user group under the service push category to which the short message template belongs can be filtered from the user set of the application and / or resource service; the user set here can be a user set composed of registered users of the application and / or resource service; the user behavior data and service push category therein are similar to the user behavior data and service push category introduced in detail above, and can be referred to for reading, and will not be elaborated here.

[0028] It should be added that the operation of obtaining the exception code and template identifier of the short message with sending exception synchronized by the operator can be replaced by obtaining the exception code and / or template identifier of the short message with sending exception synchronized by the operator; or it can be replaced by obtaining the exception code and / or template identifier of the short message with sending exception. Optionally, the exception code and / or template identifier are obtained through synchronization by the operator; and it forms a new implementation method with other processing steps provided in this embodiment.

[0029] Step S204, if the exception type obtained by parsing the exception code is a preset exception type, calculate the exception index of the short message template corresponding to the template identifier based on the index data of the short message.

[0030] For the above-mentioned exception code and template identifier of the short message with abnormal transmission obtained from the operator synchronization, in this step, when the exception type obtained by parsing the exception code is a preset exception type, calculate the exception metrics of the short message template corresponding to the template identifier based on the metric data of the short message; if the exception type is not a preset exception type, no processing is required.

[0031] The exception type described in this embodiment may be the reason for the abnormal transmission of the short message. The exception type may include the transmission failure type of the short message transmission failure or the transmission abnormal type of the abnormal transmission. The exception type may include the sensitive word exception type, the format exception type, and / or the network exception type. In addition, the exception type may also include other forms of exception types; the preset exception type may be a specific exception type, and the preset exception type may be the sensitive word exception type, the format exception type, or the network exception type; the sensitive word exception type may be the sensitive word exception type that causes the operator to send abnormally or fail to send due to the existence of sensitive words in the short message; the short message template may be the short message copywriting used to generate the short message.

[0032] The metric data of the short message may be the metric data used in the calculation process of the exception metrics of the short message template corresponding to the template identifier; optionally, the metric data of the short message includes: the number of short messages, the operator to which the communication identifier of the target user corresponding to the short message belongs, the geographical area where the target user is located, and / or the sending time of the short message; among them, the target user corresponding to the short message may be the sending object for sending the short message, and the short message may be sent to the target user; the sending time of the short message may be the sending time when the operator sends the short message. In addition, the metric data of the short message may also include the geographical area to which the communication identifier of the target user corresponding to the short message belongs, and the communication identifier may be a communication number.

[0033] The exception metrics of the short message template may include the abnormal transmission metrics of the short message template. For example, the exception metric is the abnormal transmission ratio of the short message template, specifically, it may be the message transmission abnormal ratio of the short message template; optionally, the exception metrics of the short message template include: the proportion of short messages with abnormal transmission among the sent messages corresponding to the short message template, or the proportion of short messages with abnormal transmission among the short messages corresponding to the short message template; the short messages corresponding to the short message template may be all short messages generated based on the short message template, and the sent messages corresponding to the short message template may be the sent short messages among all short messages generated based on the short message template; in addition, the exception metrics of the short message template may also include other forms of exception metrics, such as the exception metric of the short message template includes the number of abnormal transmissions, specifically, it is the number of short messages with abnormal transmission.

[0034] In specific implementation, the exception code can be parsed to obtain the exception type. If the exception type is a preset exception type, the exception metrics of the short message template corresponding to the template identifier are calculated based on the metric data of the short message. Specifically, the number of sent messages of the short message template corresponding to the template identifier and the number of messages with sending exceptions can be calculated according to the number of short messages with sending exceptions. The sending exception ratio of the short message template is calculated based on the number of messages with sending exceptions and the number of sent messages. Among them, the number of sent messages corresponding to the short message template refers to the number of sent short messages corresponding to the short message template, and the number of messages with sending exceptions corresponding to the short message template refers to the number of short messages with sending exceptions corresponding to the short message template. For example, for short message template 1, the number of sent messages is x1, the number of messages with sending exceptions is x2, and the sending exception ratio is (x2 / x1).

[0035] In the specific execution process, in order to locate the cause of the short message exception in a timely manner, and then be able to effectively respond and avoid resource waste caused by the long-term sending exception of the short message; in an optional implementation manner provided in this embodiment, during the process of parsing the exception code, the following operations are performed: Search for the exception type mapped by the exception code in the relationship between the exception code and the type.

[0036] Optionally, the relationship between the exception code and the type is obtained by the service provider of the resource service within the application based on the exception codes of the historical short messages with sending exceptions, or obtained by reading from the operator.

[0037] Among them, the relationship between the exception code and the type may include one or more exception codes and the exception types mapped by these exception codes. The relationship between the exception code and the type may specifically be an exception code and type mapping table. Specifically, the relationship between the exception code and the type can be obtained by the service provider of the resource service. In addition to obtaining the relationship between the exception code and the type by the service provider of the resource service and reading the relationship between the exception code and the type from the operator, the relationship between the exception code and the type can also be obtained by the service provider of the application.

[0038] In practical applications, the geographical area where the target user corresponding to the short message is located and the operator may affect the exception metrics of the short message template. In view of this, in order to improve the comprehensiveness of calculating the exception metrics of the short message template; in an optional implementation manner provided in this embodiment, during the process of calculating the exception metrics of the short message template corresponding to the template identifier based on the metric data of the short message, the exception metrics of the short message template are calculated according to the geographical area where the target user corresponding to the short message is located and / or the operator to which the communication identifier of the target user belongs. Specifically, the following operations can be performed: Determine the geographical area where the target user corresponding to the short message is located; Cluster the short messages according to the geographical region and the operator to which the communication identifier of the target user belongs to obtain at least one cluster, and calculate an anomaly metric based on the cluster.

[0039] Among them, the target user corresponding to the short message can be the recipient of the short message, and the short message can be sent to the target user; the geographical region where the target user is located can include the geographical region where the target user is currently located, can also include the geographical region where the target user was located in the previous instance, and in addition, the geographical region where the target user is located can also include the geographical region where the target user was located in any instance, such as the geographical region where the target user was located in the previous instance and / or the geographical regions where the target user was located in the previous two instances; the geographical region where the target user is located can be obtained through the operator, can also be obtained through the application, and can also be obtained through the resource service; the communication identifier of the target user can include the communication number.

[0040] Specifically, in the process of clustering the short messages according to the geographical region and the operator to which the communication identifier of the target user belongs to obtain at least one cluster, the short messages with the same geographical region and operator can be divided into the same cluster according to the geographical region and the operator to which the communication identifier of the target user belongs to obtain at least one cluster; in the process of calculating the anomaly metric based on the cluster, the number of short messages included in each cluster in the at least one cluster can be used as the anomaly metric of the short message template, or the message sending anomaly ratio of the short message template in the geographical region and operator corresponding to each cluster can be calculated based on the number of short messages included in each cluster as the anomaly metric of the short message template.

[0041] In addition to the above-provided methods for calculating the anomaly metric of the short message template, the short messages can also be clustered according to the geographical region where the target user corresponding to the short message is located, the operator to which the communication identifier of the target user belongs, and / or the sending time of the short message to obtain at least one cluster, and the anomaly metric of the short message template is calculated based on the cluster; in the process of clustering the short messages to obtain at least one cluster, the short messages with the same geographical region, operator, and / or sending time period where the geographical region, operator, and / or sending time of the short message are located can be divided into the same cluster to obtain at least one cluster; in the process of calculating the anomaly metric of the short message template based on the cluster, the number of short messages included in each cluster in the at least one cluster can be used as the anomaly metric of the short message template, or the message sending anomaly ratio of the short message template in the geographical region, operator, and / or sending time period corresponding to each cluster can be calculated based on the number of short messages included in each cluster as the anomaly metric of the short message template.

[0042] It should be added that if the exception type obtained by parsing the exception code above is a preset exception type, the operation of calculating the exception index of the short message template corresponding to the template identifier based on the index data of the short message can be replaced by calculating the exception index of the short message template corresponding to the template identifier based on the index data of the short message, or can be replaced by calculating the exception index of the short message template corresponding to the template identifier based on the index data of the short message if the exception type corresponding to the exception code is a preset exception type; and it forms a new implementation method with the processing steps provided in this embodiment.

[0043] Step S206, after detecting that the exception index triggers the template update condition, update the short message template to obtain an updated message template, and generate and send a message based on the updated message template.

[0044] In the case that the exception type obtained by parsing the exception code above is a preset exception type, calculate the exception index of the short message template corresponding to the template identifier based on the index data of the short message. In this step, if the exception index triggers the template update condition, perform the update process of the short message template to obtain an updated message template, and generate and send a message based on the updated message template; in the case that the exception index does not trigger the template update condition, no processing may be performed or continue to obtain the exception code and template identifier of the short message synchronized by the operator, and perform index calculation, etc.; thereby realizing the optimization of the short message template and improving the success rate of subsequent short message sending.

[0045] The template update condition described in this embodiment may include that the exception index exceeds a preset index threshold. For example, when the exception index is the number of short messages included in each clustering cluster, the exception index triggering the template update condition includes that the number of short messages included in any one clustering cluster exceeds the quantity threshold. When the exception index is the message sending exception ratio corresponding to each clustering cluster, the exception index triggering the template update condition includes that the message sending exception ratio corresponding to any one (any) clustering cluster exceeds the ratio threshold; the exception index triggering the template update condition may include that the number of sending exceptions exceeds a preset quantity threshold and / or the message sending exception ratio exceeds a preset ratio threshold; the updated message template refers to the updated message template after updating the short message template.

[0046] During specific implementation, after detecting that an abnormal indicator triggers the template update condition, the short message template can be updated according to the sensitive word library to obtain an updated message template. Based on the updated message template, message generation and message sending are performed, thereby avoiding resource waste caused by ineffective short message sending, improving resource utilization rate, and being able to optimize the short message template in a timely manner. In addition, after detecting that an abnormal indicator triggers the template update condition, the message sending of the unsent messages of the short message template corresponding to the template identifier can also be terminated. The unsent messages can be the remaining short messages other than the sent messages corresponding to the short message template, that is, they can be the unsent messages or unsent short messages corresponding to the short message template, or the target short messages among the remaining short messages corresponding to the short message template. The sent messages corresponding to the short message template refer to the sent short messages corresponding to the short message template.

[0047] In practical applications, when an abnormal indicator triggers the template update condition, there is a need to update the short message template. By updating the short message template, the short message template can be optimized in a timely manner, and then the short message sending can be restarted to avoid the ineffective propagation of short messages. In the first optional implementation manner provided in this embodiment, during the process of updating the short message template to obtain an updated message template, the template keywords included in the short message template are merged with the sensitive words included in the sensitive word library to obtain merged keywords, and the short message template is updated according to the merged keywords to obtain an updated message template. The specific operations can be as follows: Merge the template keywords included in the short message template with the sensitive words included in the sensitive word library to obtain merged keywords, and determine target keywords in the template keywords based on the merged keywords; Perform a replacement process on the target keywords in the short message template to obtain an updated message template.

[0048] Among them, the template keywords included in the short message template can be one or more. The template keywords can be obtained after word segmentation of the short message template. For example, the template keywords obtained by using the Jieba Chinese word segmentation tool to perform word segmentation on the short message template; the sensitive word library refers to a sensitive word library composed of one or more sensitive words.

[0049] Specifically, during the process of performing a replacement process on the target keywords in the short message template to obtain an updated message template, the replacement keywords used to replace the target keywords can be determined, the target replacement keywords are selected from the replacement keywords, and the target keywords in the short message template are replaced with the target replacement keywords to obtain an updated message template; the above-mentioned determining target keywords in the template keywords based on the merged keywords can be replaced with determining target keywords in the merged keywords.

[0050] On this basis, in an alternative implementation provided in this embodiment, in the process of determining the target keyword from the template keywords based on the combined keyword, the target keyword can be determined from the template keywords based on the deduplicated keyword of the combined keyword, the template word frequency in the short message template, and the word frequency in the sensitive word library. The specific operations can be as follows: Deduplicate the combined keyword to obtain the deduplicated keyword, and determine the template word frequency of the deduplicated keyword in the short message template and the word frequency in the sensitive word library; Determine the target keyword from the template keywords according to the template word frequency and the word frequency.

[0051] Among them, the template word frequency refers to the number of occurrences of the deduplicated keyword in the short message template; the word frequency refers to the number of occurrences of the deduplicated keyword in the sensitive word library; the target keyword can be one or more.

[0052] Specifically, the template keywords included in the short message template and the sensitive words included in the sensitive word library can be combined to obtain the combined keyword. The combined keyword is deduplicated to obtain the deduplicated keyword. Determine the template word frequency of the deduplicated keyword in the short message template and the word frequency in the sensitive word library. The deduplicated keyword with a template word frequency greater than the first preset value and a word frequency greater than the second preset value is determined as the target keyword in the template keywords. And query the replacement keyword for replacing the target keyword. Specifically, the replacement keyword of the target keyword can be queried in the replacement keyword table, and the target keyword in the short message template is replaced according to the replacement keyword to obtain the updated message template; the first preset value and the second preset value can be the same or different, and the first preset value and the second preset value can be integers greater than 0.

[0053] For example, the template keywords included in the short message template include template keyword 1, template keyword 2, and template keyword 3, and the sensitive words included in the sensitive word library include sensitive word 1, sensitive word 2, and sensitive word 3. The template keywords included in the short message template and the sensitive words included in the sensitive word library are combined to obtain the combined keyword including template keyword 1, template keyword 2, template keyword 3, sensitive word 1, sensitive word 2, and sensitive word 3. The combined keyword is deduplicated to obtain the deduplicated keyword including template keyword 1, template keyword 2, sensitive word 1, sensitive word 2, and sensitive word 3. Determine that the template word frequency of the deduplicated keyword in the short message template and the word frequency in the sensitive word library are (2, 1), (0, 1), (2, 0), (1, 0), (0, 1) respectively. The deduplicated keyword - template keyword 1 with a template word frequency greater than the first preset value 0 and a word frequency greater than the second preset value 0 is determined as the target keyword in the template keywords, and the target keyword in the short message template is replaced to obtain the updated message template.

[0054] In addition to the above method of determining target keywords from template keywords based on template word frequency and word frequency, it is also possible to determine deduplicated keywords in the template keywords where the template word frequency is greater than a first preset value and the word frequency is greater than a second preset value as candidate keywords, and then determine candidate keywords with a difference between the template word frequency and the word frequency greater than a preset value as target keywords; before performing the merging of the template keywords included in the short message template and the sensitive words included in the sensitive word library to obtain merged keywords, the short message template can also be preprocessed and / or standardized. The preprocessing can include removing invalid characters, and the standardization processing can include unifying the format, such as uniformly converting full-width characters to half-width characters and / or unifying the encoding.

[0055] The above method of determining target keywords from template keywords based on template word frequency and word frequency can be replaced by determining target keywords from deduplicated keywords based on template word frequency and word frequency.

[0056] In practical applications, due to the continuous changes in Internet buzzwords and the like, there is also a need to update the sensitive word library. In view of this, in order to improve the comprehensiveness and effectiveness of the sensitive word library, the sensitive word library can be updated. Specifically, the sensitive word library can be updated based on historical short messages with abnormal sending; in an optional implementation manner provided in this embodiment, the sensitive word library is updated in the following way: Perform word segmentation on historical short messages with abnormal sending to obtain keywords, and calculate the word frequency of the keywords in the historical short messages; Extract keywords with a word frequency greater than the word frequency threshold from the keywords and update them to the sensitive word library.

[0057] Among them, the sensitive words included in the sensitive word library can be sensitive words in any scenario. For example, the sensitive words are illegal advertising words or commercial sensitive words.

[0058] Specifically, word segmentation can be performed on historical short messages with abnormal sending to obtain keywords, and the number of occurrences of the keywords in the historical short messages can be calculated. Keywords with the number of occurrences greater than the number threshold are extracted from the keywords, and the extracted keywords are updated to the sensitive word library.

[0059] In order to ensure the accuracy and reliability of the sensitive word library, verification processing can be performed on the newly added sensitive words in the sensitive word library. In the case of passing the verification, no processing is required. In the case of failing the verification, the newly added sensitive words can be removed from the sensitive word library; the verification processing can include manual review and / or cross-verification through other verification channels; in addition, the sensitive word library can also be cleaned regularly. Specifically, invalid sensitive words can be removed from the sensitive word library regularly.

[0060] In addition to the above-mentioned update methods for the sensitive word library, historical short messages with abnormal transmissions can also be clustered according to the operator, the transmission time period in which the sending time is located, and / or the geographical area, to obtain multiple clusters. The historical short messages included in each cluster are segmented to obtain keywords, and the word frequencies of the keywords in the historical short messages are calculated. Keywords with word frequencies greater than the word frequency threshold are extracted from the keywords and updated to the sensitive word library corresponding to each cluster, specifically, it can be updated to the sensitive word library under the operator, transmission time period, and / or geographical area corresponding to each cluster; the operator among them can be the operator to which the communication identifier of the target user corresponding to the historical short message with abnormal transmission belongs, the sending time can be the sending time of the historical short message with abnormal transmission, and the geographical area can be the geographical area where the target user corresponding to the historical short message with abnormal transmission is located or the geographical area to which the communication identifier of the target user corresponding to the historical short message with abnormal transmission belongs.

[0061] As described above, at least one clustering cluster is obtained by clustering short messages according to the geographical area and the operator to which the communication identifier of the target user belongs. Based on the clustering cluster, the abnormal index of the short message template is calculated. On this basis, in the second optional implementation manner provided in this embodiment, in the process of obtaining the updated message template by updating the short message template, the corresponding sensitive word library is queried according to the operator and geographical area corresponding to at least one clustering cluster, and the short message template is updated to obtain the updated message template according to the template keywords included in the short message template and the corresponding sensitive word library. The following operations can be specifically performed: Query the corresponding sensitive word library according to the operator and geographical area corresponding to the clustering cluster, and calculate the similarity between the template keywords included in the short message template and the sensitive words included in the corresponding sensitive word library; Based on the similarity, candidate keywords are determined among the template keywords, target keywords are determined according to the word frequencies of the candidate keywords in the short message template, and the short message template is updated based on the target keywords to obtain the updated message template.

[0062] Specifically, in the process of determining candidate keywords among the template keywords based on the similarity and determining target keywords according to the word frequencies of the candidate keywords in the short message template, the template keywords can be sorted based on the similarity, and the template keywords with sorting positions before the preset position in the sorting result are determined as candidate keywords, and the candidate keywords with word frequencies greater than the word frequency threshold are determined as target keywords according to the word frequencies of the candidate keywords in the short message template; in the process of obtaining the updated message template by updating the short message template based on the target keywords, the target keywords included in the short message template can be updated or replaced to obtain the updated message template.

[0063] In addition to the two alternative implementation manners for updating the short message template provided above, in the process of obtaining an updated message template by updating the short message template, feature extraction may also be respectively performed on the template keywords included in the short message template and the sensitive words included in the sensitive word library to obtain template keyword features and sensitive word features, and the similarity between the template keywords and the sensitive words is calculated based on the template keyword features and the sensitive word features. The template keywords with a similarity greater than a preset similarity are determined as target keywords in the template keywords, and the short message template is updated based on the target keywords to obtain an updated message template; the similarity may be a cosine similarity, a Euclidean distance, or an edit distance, or may also be other forms of similarity.

[0064] For example, the template keywords included in the short message template are , and the sensitive words included in the sensitive word library are . Feature extraction is respectively performed on the template keywords included in the short message template and the sensitive words included in the sensitive word library to obtain template keyword features and sensitive word features , and the similarity between the template keywords and the sensitive words is calculated based on the template keyword features and the sensitive word features. The template keywords with a similarity greater than a preset similarity are determined as target keywords in the template keywords, and the short message template is updated based on the target keywords to obtain an updated message template; represents the i-th template keyword, represents the j-th sensitive word, represents the i-th template keyword feature, represents the j-th sensitive word feature.

[0065] The preset abnormal types mentioned above may be sensitive word abnormal types. In addition, the preset abnormal types may also be format abnormal types. Different update manners for the short message template may be provided for different preset abnormal types to improve the update flexibility of the short message template; in the third alternative implementation manner provided in this embodiment, the preset abnormal types include format abnormal types. In the process of obtaining an updated message template by updating the short message template, the following operations are performed: Detect whether the short message template contains a close tag for closing the short message sending. If it exists, perform access verification on the access link included in the short message template; In the case where the verification fails, update the access link included in the short message template based on the update link to obtain an updated message template.

[0066] Among them, the close tag may include a close prompt for closing the short message sending. For example, the close prompt is to reject and reply x; the access verification may include verifying whether the access link is available.

[0067] Specifically, if the short message template contains a closing tag for closing the short message sending, the access link included in the short message template can be accessed and verified. In the case where the verification fails, the updated link of the access link can be queried and the access link included in the short message template can be updated based on the updated link to obtain an updated message template; in the case where the short message template does not contain a closing tag for closing the short message sending, a closing tag can be added to the short message template to obtain an updated message template; in the case where the access verification passes, no processing is required.

[0068] Specifically in implementation, after obtaining the updated message template by updating the short message template, message generation and message sending can be performed based on the updated message template, and the user reach rate of subsequent short messages can be improved by regenerating messages through the updated message template; in an optional implementation manner provided in this embodiment, during the process of message generation and message sending based on the updated message template, the following operations are performed: Generate a short message to be sent for users who have not been sent in the corresponding user group according to the updated message template; Send the short message to be sent to the operator to send the message according to the sending time of the short message to be sent.

[0069] In addition, during the process of message generation and message sending based on the updated message template, short messages to be sent can also be generated for users who have not been sent and / or users with abnormal sending in the corresponding user group according to the updated message template, and the short messages to be sent are synchronized to the operator to send the message through the operator according to the sending time of the short messages to be sent; the users with abnormal sending can be the users corresponding to the short messages with abnormal sending.

[0070] This embodiment can be applied to a server, and the server can deploy a short message detection system and an exception collection system; the exception collection system can obtain the exception code and template identifier of the short message with abnormal sending synchronized by the operator. If the exception type obtained by parsing the exception code is a preset exception type, the exception index of the short message template corresponding to the template identifier is calculated based on the index data of the short message. After detecting that the exception index triggers the template update condition, the message sending of the short message to be sent corresponding to the short message template is terminated, the short message template is preprocessed and standardized to obtain a standard template, and the standard template is sent to the short message detection system. The short message detection system can update the standard template to obtain an updated message template; the process of updating the standard template to obtain an updated message template is similar to the process of updating the short message template to obtain an updated message template, and will not be elaborated here.

[0071] It should be noted that steps S202 to S206 can be replaced by obtaining the error code and / or template identifier of the short message with abnormal transmission synchronized by the operator; if the error type corresponding to the error code is a preset error type, calculate the abnormal index of the short message template corresponding to the template identifier based on the index data of the short message; after detecting that the abnormal index triggers the template update condition, update the short message template to obtain an updated message template, and generate and send a message based on the updated message template.

[0072] It should be added that considering that relevant data such as user attribute data may, to a certain extent, belong to the user's privacy, therefore, to obtain relevant data such as user attribute data, authorization from the user can be obtained before obtaining the data, so that the operation of obtaining data complies with relevant data management regulations. For example, data authorization can be performed during the user's access to the resource service within the application, or data authorization can also be performed during the user's first access to the resource service. In addition, other methods can also be used for data authorization; the specific method of data authorization can be to send a user data authorization reminder to the user, and the user can obtain data collection authorization after confirming the reminder through an instruction. Or, the method of data authorization can also be to obtain data acquisition authorization by signing a data authorization agreement; this embodiment will not elaborate further here.

[0073] It should also be added that each optional implementation manner and each feasible execution manner in steps S202 to S206 provided in this embodiment can be independently executed according to needs, or can be combined and referenced with each other. At the same time, each specific execution step in each optional implementation manner or each feasible execution manner can also be independently executed and combined according to needs. This embodiment will not elaborate further here; for the operations executed under the conditions of "if", "in a certain situation", or "detected" in this embodiment, the conditions of any one or more of "if", "in a certain situation", or "detected" can be deleted, and the subsequent operations can be directly executed. For example, the condition that the error type obtained by parsing the error code is a preset error type can be deleted, and the abnormal index of the short message template corresponding to the template identifier can be directly calculated based on the index data of the short message; the limitation made by "in order to" in the execution steps can also be deleted according to needs; this embodiment does not make specific limitations on this.

[0074] In summary, for one or more message processing methods provided in this embodiment, an exception code and a template identifier of a short message with a sending exception synchronized by an operator are obtained. When the exception type obtained by parsing the exception code is a preset exception type, the sending exception ratio of the short message template corresponding to the template identifier is calculated based on the metric data of the short message. After detecting that the sending exception ratio exceeds the ratio threshold, the message sending of the unsent short messages corresponding to the short message template is terminated, the short message template is updated to obtain an updated message template, and message generation and message sending are performed based on the updated message template. In this way, by timely terminating the message sending of unsent short messages, resource waste caused by long-term ineffective sending is avoided, the resource utilization rate is improved, and the short message template is optimized by updating the short message template, thereby improving the sending success rate of short messages sent by the operator subsequently and enhancing the user reach rate of short messages.

[0075] Taking the application of a message processing method provided in this embodiment in the short message scenario as an example, the message processing method provided in this embodiment is further described. Refer to Figure 3 , the message processing method applied to the short message scenario specifically includes the following steps.

[0076] Step S302, obtain the exception code and the template identifier of the short messages with sending exceptions in the short message set synchronized by the operator.

[0077] Step S304, if the exception type obtained by parsing the exception code is the sensitive word exception type, calculate the sending exception ratio of the short message template corresponding to the template identifier based on the number of short messages with sending exceptions.

[0078] Step S306, after detecting that the sending exception ratio exceeds the ratio threshold, terminate the short message sending of the unsent short messages corresponding to the short message template in the short message set.

[0079] Step S308, merge the template keywords included in the short message template with the sensitive words included in the sensitive word library to obtain merged keywords.

[0080] Step S310, remove duplicates from the merged keywords to obtain deduplicated keywords, and determine the template word frequency of the deduplicated keywords in the short message template and the word frequency in the sensitive word library.

[0081] Step S312, determine target keywords from the deduplicated keywords according to the template word frequency and the word frequency, and perform replacement processing on the target keywords in the short message template to obtain an updated short message template.

[0082] Step S314, generate a to-be-sent short message for the unsent users in the corresponding user group according to the updated short message template.

[0083] It can also be to generate a to-be-sent short message for users who have not been sent and / or users with abnormal sending in the corresponding user group according to the updated short message template.

[0084] Step S316: Send the to-be-sent short message to the operator to send the short message according to the sending time of the to-be-sent short message.

[0085] It should be noted that any one step or any combination of steps from step S302 to step S316 can be replaced by the corresponding technical means provided in the above step S202 to step S206 according to the needs of implementation and deployment. Also, any one step or any combination of steps from step S302 to step S316 can be combined into a new implementation manner according to the needs of implementation and deployment; and any one step or any combination of steps from step S302 to step S316 can also be combined with one or more steps provided in the above step S202 to step S206 to form a new implementation manner according to the actual deployment requirements, or combined with one or more optional implementation manners provided in step S202 to step S206 to form a new implementation manner, which will not be elaborated here one by one.

[0086] An embodiment of a message processing device provided in this specification is as follows: In the above embodiment, a message processing method is provided. Correspondingly, a message processing device is also provided. The following will be described with reference to the drawings.

[0087] Refer to Figure 4 , which shows a schematic diagram of an embodiment of a message processing device provided in this embodiment.

[0088] Since the device embodiment corresponds to the method embodiment, it is described relatively simply. For the relevant parts, please refer to the corresponding description of the method embodiment provided above. The device embodiments described below are only illustrative.

[0089] This embodiment provides a message processing device, including: An acquisition module 402, configured to acquire the exception code and template identifier of the short message with abnormal sending synchronized by the operator; An index calculation module 404, configured to calculate the exception index of the short message template corresponding to the template identifier based on the index data of the short message if the exception type obtained by parsing the exception code is a preset exception type; An update module 406, configured to update the short message template to obtain an updated message template after detecting that the exception index triggers the template update condition, and generate and send a message based on the updated message template.

[0090] An embodiment of a message processing device provided in this specification is as follows: A message processing method corresponding to the above description. Based on the same technical concept, one or more embodiments of this specification also provide a message processing device, which is used to execute a message processing method provided above. Figure 5 It is a schematic structural diagram of a message processing device provided by one or more embodiments of this specification.

[0091] A message processing device provided in this embodiment includes: As Figure 5 shown, the message processing device may vary greatly due to configuration or performance differences, and may include one or more processors 501 and a memory 502. One or more application programs or data may be stored in the memory 502. Among them, the memory 502 may be short-term storage or persistent storage. The application programs stored in the memory 502 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in the message processing device. Further, the processor 501 may be configured to communicate with the memory 502 and execute a series of computer-executable instructions in the memory 502 on the message processing device. The message processing device may also include one or more power supplies 503, one or more wired or wireless network interfaces 504, one or more input / output interfaces 505, one or more keyboards 506, etc.

[0092] In a specific embodiment, the message processing device includes a memory and one or more programs. One or more of the programs are stored in the memory, and one or more of the programs may include one or more modules, and each module may include a series of computer-executable instructions in the message processing device, and is configured to be executed by one or more processors. The one or more programs include computer-executable instructions for performing the following: Obtain the exception code and template identifier of the short message with abnormal sending synchronized by the operator; If the exception type obtained by parsing the exception code is a preset exception type, calculate the exception index of the short message template corresponding to the template identifier based on the metric data of the short message; After detecting that the exception index triggers the template update condition, update the short message template to obtain an updated message template, and generate and send messages based on the updated message template.

[0093] An embodiment of a computer-readable storage medium provided by this specification is as follows: Corresponding to a message processing method described above, based on the same technical concept, one or more embodiments of this specification also provide a computer-readable storage medium.

[0094] The computer-readable storage medium provided in this embodiment is used to store computer-executable instructions, and when the computer-executable instructions are executed, the following steps are implemented: Obtain the error code and template identifier of the short message with abnormal sending synchronized by the operator; If the error type obtained by parsing the error code is a preset error type, calculate the error index of the short message template corresponding to the template identifier based on the index data of the short message; After detecting that the error index triggers the template update condition, update the short message template to obtain an updated message template, and generate and send a message based on the updated message template.

[0095] It should be noted that the embodiment of a computer-readable storage medium in this specification and the embodiment of a message processing method in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding method described above, and the repeated parts will not be elaborated.

[0096] An embodiment of a computer program product provided in this specification is as follows: Corresponding to the described message processing method, based on the same technical concept, one or more embodiments of this specification also provide a computer program product.

[0097] A computer program product includes a computer program / instructions, and when the computer program / instructions are executed by a processor, the following steps are implemented: Obtain the error code and template identifier of the short message with abnormal sending synchronized by the operator; If the error type obtained by parsing the error code is a preset error type, calculate the error index of the short message template corresponding to the template identifier based on the index data of the short message; After detecting that the error index triggers the template update condition, update the short message template to obtain an updated message template, and generate and send a message based on the updated message template.

[0098] It should be noted that the embodiment of a computer program product in this specification and the embodiment of a message processing method in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding method described above, and the repeated parts will not be elaborated.

[0099] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. For example, the apparatus embodiment, the device embodiment, and the computer-readable storage medium embodiment are all similar to the method embodiment, so the description is relatively simple. To read the relevant content in the apparatus embodiment, the device embodiment, and the computer-readable storage medium embodiment, please refer to the corresponding description in the method embodiment.

[0100] The above describes 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 in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0101] In the 1930s, it was obvious to distinguish whether an improvement in a technology was a hardware improvement (e.g., improvement in circuit structures such as diodes, transistors, switches, etc.) or a software improvement (improvement in method processes). However, with the development of technology, many improvements in method processes today can be regarded as direct improvements in hardware circuit structures. Almost all designers obtain the corresponding hardware circuit structures by programming the improved method processes into the hardware circuits. Therefore, it cannot be said that an improvement in a method process cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device. Designers can program by themselves to "integrate" a digital system on a piece of PLD, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in program development and writing. The original code before compilation also has to be written in a specific programming language, which is called a hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones currently are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also be clear that only by slightly logically programming the method process with the above-mentioned several hardware description languages and programming it into the integrated circuit can the hardware circuit implementing the logical method process be easily obtained.

[0102] The controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of the controller include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that, in addition to implementing the controller in the form of pure computer-readable program code, it is entirely possible to logically program the method steps to enable the controller to be implemented in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. to achieve the same function. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be regarded as the structures within the hardware component. Or even, the devices for implementing various functions can be regarded as either software modules for implementing the method or structures within the hardware component.

[0103] The systems, devices, modules, or units illustrated in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.

[0104] For the convenience of description, when describing the above devices, they are described separately as various units according to their functions. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0105] Those skilled in the art should understand that one or more embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, one or more embodiments of this specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.

[0106] This specification is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the specification. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable test processing devices to produce a machine, such that the instructions executed by the processors of the computer or other programmable test processing devices produce means for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.

[0107] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable test processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including instruction means that implement the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.

[0108] These computer program instructions can also be loaded onto a computer or other programmable test processing device, such that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.

[0109] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.

[0110] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of computer-readable media.

[0111] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0112] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of features includes not only those features, but also other features not explicitly listed, or also includes features inherent to such process, method, commodity or device. In the absence of further restrictions, features defined by the phrase "including a ..." do not exclude the existence of other identical features in the process, method, commodity or device including the features.

[0113] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0114] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0115] The above are only examples of this document and are not intended to limit this document. For those skilled in the art, this document may have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document shall be included within the scope of the claims of this document.

Claims

1. A message processing method, comprising: Get the exception code and template identifier of the abnormal short message sent synchronously by the operator; If the exception type obtained by parsing the exception code is a preset exception type, calculating the exception index of the short message template corresponding to the template identifier based on the index data of the short message; After detecting that the abnormal indicator triggers a template update condition, the short message template is updated to obtain an updated message template, and a message is generated and sent based on the updated message template.

2. The message processing method according to claim 1, wherein the short message is used to push a service of a resource service within an application to a target user in a user group corresponding to the short message template.

3. The message processing method according to claim 2, wherein the service push comprises: Push resource items of the resource service, or remind the user to return the resource items of the resource service.

4. The message processing method according to claim 1, wherein the preset exception type includes a sensitive word exception type; The updating of the short message template to obtain an updated message template includes: Merging the template keywords contained in the short message template with the sensitive words contained in the sensitive word library to obtain a merged keyword, and determining a target keyword in the template keywords based on the merged keyword; The target keyword in the short message template is replaced to obtain the updated message template.

5. The message processing method according to claim 4, wherein the step of determining a target keyword in the template keywords based on the merged keyword comprises: Deduplication is performed on the merged keywords to obtain deduplication keywords, and the template word frequency of the deduplication keywords in the short message template and the word frequency in the sensitive word library are determined; The target keyword is determined in the template keywords according to the template word frequency and the word frequency.

6. According to the message processing method of claim 4, the sensitive word library is updated in the following manner: Perform word segmentation processing on the historical short messages with abnormal sending to obtain keywords, and calculate the word frequency of the keywords in the historical short messages; Keywords with a frequency greater than a frequency threshold are extracted from the keywords and updated to the sensitive word library.

7. The message processing method according to claim 1, wherein the indicator data of the short message comprises: The number of the short message, the operator to which the communication identifier of the target user corresponding to the short message belongs, the geographical area where the target user is located, and / or the sending time of the short message; The abnormality index of the short message template includes: the proportion of short messages with abnormal sending in the sent messages corresponding to the short message template.

8. The message processing method according to claim 1, wherein parsing the exception code comprises: Searching for the exception type mapped by the exception code in the relationship between the exception code and the type; The relationship between the exception code and the type is constructed and obtained by the service provider of the resource service within the application based on the exception code of the historical short message sending exception, or is read and obtained from the operator.

9. The message processing method according to claim 1, wherein the preset exception type comprises a format exception type; The updating of the short message template to obtain an updated message template includes: Detecting whether the short message template contains a closing tag for closing the sending of the short message, and if so, performing access verification on the access link contained in the short message template; In the case where the verification fails, the access link included in the short message template is updated based on the update link to obtain the updated message template.

10. The message processing method according to claim 1, wherein the step of calculating the abnormality index of the short message template corresponding to the template identifier based on the index data of the short message comprises: Determine the geographical area where the target user corresponding to the short message is located; According to the geographical area and the operator to which the communication identifier of the target user belongs, the short messages are clustered to obtain at least one cluster, and based on the cluster, the abnormality index is calculated.

11. The message processing method according to claim 10, wherein updating the short message template to obtain an updated message template comprises: Querying a corresponding sensitive word library according to the operator and the geographical area corresponding to the cluster, and calculating the similarity between the template keywords included in the short message template and the sensitive words included in the corresponding sensitive word library; Determine candidate keywords from the template keywords based on the similarity, determine target keywords according to the word frequency of the candidate keywords in the short message template, and update the short message template based on the target keywords to obtain the updated message template.

12. The message processing method according to claim 2, wherein the user group is obtained by screening users based on the short message template and user behavior data; The user behavior data includes at least one of the following: User attribute data, user access data within the application and / or the resource service, and user resource application data within the resource service.

13. The message processing method according to claim 1, wherein the generating and sending of the message based on the updated message template comprises: Generating a short message to be sent to the users in the corresponding user group who have not sent the message according to the update message template; The short message to be sent is sent to the operator so that the message is sent according to the sending time of the short message to be sent.

14. A message processing device, comprising: An acquisition module is configured to acquire an abnormal code and a template identifier of an abnormal short message sent synchronously by an operator; an indicator calculation module, configured to calculate an abnormal indicator of the short message template corresponding to the template identifier based on the indicator data of the short message if the abnormal type obtained by parsing the abnormal code is a preset abnormal type; The updating module is configured to update the short message template to obtain an updated message template after detecting that the abnormal indicator triggers a template updating condition, and to generate and send a message based on the updated message template.

15. A message processing device, comprising: processor; and a memory configured to store computer executable instructions that, when executed, cause the processor to: Get the exception code and template identifier of the abnormal short message sent synchronously by the operator; If the exception type obtained by parsing the exception code is a preset exception type, calculating the exception index of the short message template corresponding to the template identifier based on the index data of the short message; After detecting that the abnormal indicator triggers a template update condition, the short message template is updated to obtain an updated message template, and a message is generated and sent based on the updated message template.

16. A computer-readable storage medium for storing computer-executable instructions, wherein the computer-executable instructions implement the steps of the method of claim 1 when executed.