Message parsing and processing method and apparatus
By generating message templates and links through the message parsing platform and identifying the parsing agent, the problem of connecting user terminals and message senders is solved. This enables efficient scheduling and parsing volume allocation of the parsing agent, thereby improving message parsing efficiency and accuracy.
Patent Information
- Application Number
- CN202411826715.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-12-12
AI Technical Summary
During message parsing, user terminals cannot directly connect with message senders, making it difficult to allocate and schedule parsing load for parsing agents. Existing technologies lack effective methods to support the allocation and scheduling of parsing load based on the development status of different parsing agents.
The message parsing platform generates message templates and links, identifies the parsing agent, and performs message parsing, enabling the scheduling of the parsing agent and the efficient allocation of parsing volume.
It improves the efficiency of message parsing, ensures the accuracy and consistency of message display, simplifies the message construction process, and enhances message relevance and effectiveness.
Smart Images

Figure CN119815294B_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of data processing, and in particular to a message parsing and processing method and apparatus. Background Technology
[0002] With the development of the messaging industry, messages in the form of text plus URL links have emerged. The message sender sends this type of message to the user terminal, and the user terminal can use URL parsing capabilities to upgrade the message into an interactive rich media SMS.
[0003] However, during message parsing, the user terminal relies on the parsing capabilities of a parsing proxy to perform URL parsing. In this case, the message sender cannot directly connect with the user terminal, but instead connects with the parsing proxy corresponding to the user terminal. Furthermore, the same user terminal can cooperate with different parsing proxies. During URL parsing, it is impossible to determine which parsing proxy of the user terminal to connect with. To address this, it is necessary to allocate and schedule the parsing load of each parsing proxy of the user terminal. However, the method and implementation mechanism that supports the allocation and scheduling of parsing load based on the development status of different parsing proxies is still a technological gap in the industry and requires further evolution to meet the needs of business development. Summary of the Invention
[0004] The purpose of one embodiment of this specification is to provide a message parsing processing method and apparatus to solve the problem of low message parsing accuracy.
[0005] To solve the above-mentioned technical problems, one embodiment of this specification is implemented as follows:
[0006] Firstly, one embodiment of this specification provides a message parsing and processing method, including:
[0007] Determine the message template based on the message parameters sent by the message sender, and generate a message link corresponding to the message template;
[0008] The message link is sent to the message sender; the message sender then sends a message carrying the message link to the user terminal.
[0009] Obtain a message parsing request sent by a parsing agent, carrying the message link; the parsing agent is determined by the terminal service platform corresponding to the user terminal based on the message link;
[0010] The message link is parsed to obtain the message template, and the message template is returned to the parsing agent; wherein, the parsing agent returns the message template to the terminal service platform, the terminal service platform sends the message template to the user terminal, and the user terminal displays the message based on the message material downloaded based on the message template.
[0011] Secondly, one embodiment of this specification provides another message parsing and processing method, including:
[0012] Receive messages containing a message link sent by the message sender;
[0013] Generate a link resolution request for the message link and send the request;
[0014] The message is displayed based on the message material downloaded from the message template; the message template is obtained after the link is parsed according to the link parsing request.
[0015] Thirdly, another embodiment of this specification provides a message parsing and processing apparatus, including:
[0016] The message link generation module is configured to determine a message template based on the message parameters sent by the message sender and generate a message link corresponding to the message template.
[0017] The message link sending module is configured to send the message link to the message sender; the message sender then sends a message carrying the message link to the user terminal.
[0018] The parsing request acquisition module is configured to acquire a message parsing request sent by a parsing proxy carrying the message link; the parsing proxy is determined by the terminal service platform corresponding to the user terminal based on the message link.
[0019] The link parsing module is configured to parse the message link to obtain the message template and return the message template to the parsing agent; wherein, the parsing agent returns the message template to the terminal service platform, the terminal service platform sends the message template to the user terminal, and the user terminal displays the message based on the message material downloaded based on the message template.
[0020] Fourthly, another embodiment of this specification provides a message parsing and processing apparatus, comprising:
[0021] The message receiving module is configured to receive messages carrying message links sent by the message sender;
[0022] The request parsing module is configured to generate a link parsing request for the message link and send the request.
[0023] The message display module is configured to display messages based on message materials downloaded from a message template; the message template is obtained after resolving the link according to the link resolution request.
[0024] Fifthly, in another embodiment of this specification, a message parsing and processing apparatus is provided, comprising: a memory, a processor, and computer-executable instructions stored in the memory and executable on the processor, wherein the computer-executable instructions, when executed by the processor, implement the steps of the message parsing and processing method as described in the first aspect above.
[0025] In a sixth aspect, another embodiment of this specification provides another message parsing and processing apparatus, including: a memory, a processor, and computer-executable instructions stored in the memory and executable on the processor, wherein the computer-executable instructions, when executed by the processor, implement the steps of the message parsing and processing method as described in the second aspect above.
[0026] In a seventh aspect, this specification provides a computer-readable storage medium in another embodiment for storing computer-executable instructions that, when executed by a processor, implement the steps of the message parsing and processing method described in the first aspect above.
[0027] Eighthly, in another embodiment of this specification, a different computer-readable storage medium is provided for storing computer-executable instructions that, when executed by a processor, implement the steps of the message parsing processing method as described in the second aspect above.
[0028] In a ninth aspect, this specification provides a computer program product in another embodiment, the computer program product including a message parsing and processing program, which, when executed by a processor, implements the steps of the computing power allocation processing method as described in the first aspect above.
[0029] In a tenth aspect, this specification provides another computer program product in a further embodiment, the computer program product including a message parsing and processing program, which, when executed by a processor, implements the steps of the computing power allocation processing method as described in the second aspect above.
[0030] The message parsing processing method provided in this embodiment first determines a message template based on the message parameters sent by the message sender, generates a message link corresponding to the message template, and then sends the message link to the message sender. The message sender then sends a message carrying the message link to the user terminal. After the terminal service platform corresponding to the user terminal determines the parsing proxy based on the message link, it obtains the message parsing request carrying the message link sent by the parsing proxy. Finally, it parses the message link to obtain the message template and returns the message template to the parsing proxy. The parsing proxy then returns the message template to the terminal service platform, which sends the message template to the user terminal. The user terminal then displays the message based on the message materials downloaded based on the message template. This solution achieves efficient allocation of parsing workload among different parsing proxies by scheduling parsing proxies through a message parsing platform, thus improving message parsing efficiency. Attached Figure Description
[0031] To more clearly illustrate the technical solutions in one or more embodiments of this specification, the accompanying drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0032] Figure 1 This specification provides a flowchart of a message parsing and processing method according to one embodiment.
[0033] Figure 2 A schematic diagram of a rich media text messaging method provided as an embodiment of this specification;
[0034] Figure 3 This diagram illustrates a message parsing strategy provided in one embodiment of this specification.
[0035] Figure 4 This is a schematic diagram of a strategy acquisition page provided as an embodiment of this specification;
[0036] Figure 5 This specification provides a flowchart of a message parsing processing method applied to a 5G message parsing scenario, as an embodiment of the present specification.
[0037] Figure 6 This is a flowchart illustrating another message parsing and processing method provided in one embodiment of this specification.
[0038] Figure 7 A schematic diagram of a message parsing and processing apparatus provided in one embodiment of this specification;
[0039] Figure 8 A schematic diagram of another message parsing and processing apparatus provided in one embodiment of this specification;
[0040] Figure 9 This specification provides a schematic diagram of the structure of a message parsing and processing device according to one embodiment.
[0041] Figure 10 This is a schematic diagram of another message parsing and processing device provided in one embodiment of this specification. Detailed Implementation
[0042] To enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of this document.
[0043] This specification provides an example of a message parsing and processing method:
[0044] Reference Figure 1 It shows a flowchart of a message parsing and processing method provided in this embodiment, with reference to... Figure 5 The diagram illustrates a message parsing processing method for a 5G message parsing scenario provided in this embodiment.
[0045] Reference Figure 1 The message parsing and processing method provided in this embodiment specifically includes the following steps S102 to S108.
[0046] Step S102: Determine the message template based on the message parameters sent by the message sender, and generate a message link corresponding to the message template.
[0047] In this embodiment, the message can be a 5G message, or it can be a rich media message consisting of text and a URL, for example... Figure 2 The displayed rich media SMS message. The message parameters refer to variables in the message content that are dynamically generated or adjusted according to actual conditions during message transmission. These message parameters can be personalized based on different factors such as the recipient, sending time, and environmental conditions, thereby improving the relevance and effectiveness of the message. The message parameters include dynamic message parameters.
[0048] The message template can be a predefined message format used to quickly create and send standardized information. The message template typically contains a fixed text structure and message parameters. Using message templates improves message creation efficiency, ensures information consistency, and simplifies the construction process of complex messages. The message link can be a short link, such as a short link consisting of a domain name and a short code.
[0049] In the specific execution process, after the message parsing platform receives the message parameters sent by the message sender, it determines the message template corresponding to the message parameters based on the parameter identifier of the message parameters. In an optional implementation provided in this embodiment, the message template is determined based on the message parameters sent by the message sender in the following manner:
[0050] Determine the parameter identifier of the message parameter;
[0051] Select the message template corresponding to the parameter identifier from the template library.
[0052] Specifically, since the message parsing platform also provides the ability to create templates, the message sender can create the required message templates in the message parsing platform and store the created message templates in the template library of the message parsing platform. When the message sender sends a message, it can directly send the message based on the message templates stored in the template library. In the process of determining the message template, the message template corresponding to the parameter identifier can be selected from the template library according to the parameter identifier of the message parameter passed by the message sender.
[0053] After determining the message template based on the message parameters sent by the message sender, a message link corresponding to the message template needs to be generated to enable message transmission. This allows subsequent message transmission in the form of a message link. Specifically, in the process of generating the message link, a message link can be generated based on a pre-configured message parsing strategy. In one optional implementation provided in this embodiment, the message link corresponding to the message template is generated in the following manner:
[0054] Query the message parsing strategy library to find the target message parsing strategy corresponding to the message template;
[0055] The message link is generated based on the domain name configured in the target message parsing strategy.
[0056] Specifically, the message parsing strategy library stores at least one message parsing strategy. Each message parsing strategy is configured with at least one of the following strategy elements: strategy identifier, domain name, terminal manufacturer, and the parsing proxy corresponding to the terminal manufacturer. The message parsing strategy is used to specify the terminal manufacturers that can receive messages sent by the message sender, the parsing proxy corresponding to the terminal manufacturer, and the domain name used. The terminal manufacturer can be a terminal of brand X, such as Xiaomi, Huawei, OPPO, Vivo, etc. The parsing proxy is the provider of the terminal manufacturer's parsing capabilities, and the domain name is used to generate message links.
[0057] Here, since the same terminal manufacturer may connect with multiple DNS resolution agents at the same time, the message resolution platform needs to use message resolution policies to schedule the DNS resolution agents. The message resolution policies specify which DNS resolution agent from the terminal manufacturer should be used to perform message resolution and which agent's domain name should be used to generate the message link.
[0058] The following is combined Figure 3 The message parsing strategies are explained in detail below. Message parsing strategy 1 may include terminal manufacturer 1, its corresponding parsing proxy A, and domain name A; terminal manufacturer 2, its corresponding parsing proxy B, and domain name A. Furthermore, message parsing strategy 2 may include terminal manufacturer 1, its corresponding parsing proxy A, and domain name B; terminal manufacturer 2, its corresponding parsing proxy A, and domain name B; and terminal manufacturer 3, its corresponding parsing proxy C, and domain name B. If message parsing strategy 1 is chosen, it means that the message recipient can be terminal manufacturer 1, and the interaction with terminal manufacturer 1 is implemented through parsing proxy A, using domain name A. Alternatively, the message recipient can be terminal manufacturer 2, and the interaction with terminal manufacturer 2 is implemented through parsing proxy B, also using domain name A.
[0059] Furthermore, during the process of querying message parsing strategies from the message parsing strategy library, the target message parsing strategy can be determined by calculating the recommended value of the message parsing strategy. In other words, since there may be multiple parsing proxies supporting the message parsing capabilities of the same terminal manufacturer, and different message parsing strategies specify different parsing proxies, the parsing strategy is determined, and thus the parsing proxies that parse the message template are determined within the message parsing strategy. In an optional implementation provided in this embodiment, the target message parsing strategy corresponding to the message template is queried from the message parsing strategy library in the following manner:
[0060] Calculate the recommended value of each message parsing strategy in the message parsing strategy library;
[0061] The message parsing strategies are sorted based on the recommended values of the strategies to obtain a message parsing strategy sequence;
[0062] The message parsing strategy that is in a preset position in the message parsing strategy sequence is taken as the target message parsing strategy.
[0063] Specifically, the recommended value of each message parsing strategy in the message parsing strategy library can be calculated. Based on the recommended value, each message parsing strategy can be sorted in a forward order to obtain a message parsing strategy sequence. The message parsing strategy that is first in the message parsing strategy sequence can be taken as the target message parsing strategy.
[0064] Furthermore, in an optional implementation of this embodiment, the recommended value of each message parsing strategy in the message parsing strategy library is calculated in the following manner:
[0065] Calculate the ratio of the current parsing volume of the message parser specified by each message parsing strategy to the total parsing volume;
[0066] The recommended strategy value is determined based on the difference between the preset parsing volume ratio of the message parsing agent and the parsing volume ratio, as well as the number of message parsing agents.
[0067] For example, the recommended strategy value can be calculated using the following formula.
[0068]
[0069] Where n is the number of terminal manufacturers included in the message parsing strategy.
[0070] It should be noted that the message parsing platform in this embodiment provides a message parsing strategy input function. The message parsing strategies in the aforementioned message parsing strategy library can be input by the service personnel of the message parsing platform. In an optional implementation provided in this embodiment, the message parsing strategies in the message parsing strategy library are obtained in the following way:
[0071] Based on the policy entry request sent by the service personnel, a policy collection page is generated and returned to the service personnel;
[0072] Obtain the message parsing policy submitted by the service personnel based on the policy collection page, and add the message parsing policy to the message parsing policy library.
[0073] For example, such as Figure 4 As shown on the policy collection page, service personnel can enter message parsing policies on the policy collection page. The message parsing policy includes a policy identifier, domain name, terminal manufacturer, and the parsing agent corresponding to the terminal manufacturer.
[0074] In addition, by entering and adding the message parsing strategy to the message parsing strategy library, the strategy elements in the message parsing strategy can also be updated. In one optional implementation of this embodiment, the message parsing strategy is updated in the following way: if an update request for the message parsing strategy is detected, the message parsing strategy is updated through the strategy editing module configured in the message parsing platform.
[0075] In practical implementation, to facilitate the management of the message parsing strategy library, it can be divided into strategy element sub-libraries based on the different strategy elements contained in the message parsing strategy, such as terminal manufacturer sub-libraries, resolution agent sub-libraries, domain name libraries, etc. Based on this, the message parsing platform can automatically add strategy elements by monitoring new strategy elements in the strategy element sub-libraries. In one optional implementation provided in this embodiment, the message parsing strategies in the message parsing strategy library are determined in the following way:
[0076] If a new strategy element is detected in any strategy element sub-library, query the other strategy element sub-libraries for related strategy elements that are associated with the new strategy element.
[0077] The message parsing strategy is generated based on the newly added strategy elements and the associated strategy elements.
[0078] For example, if a new terminal manufacturer A is added, it is included in the terminal manufacturer sub-database. When the message parsing platform detects the addition of the terminal manufacturer sub-database, it checks whether the parsing agent sub-database has been added. If not, it searches for the association between the parsing agent sub-database and terminal manufacturer A. If it finds that terminal manufacturer A has an association with parsing agent A and parsing agent B in the parsing agent sub-database, it selects two domains, A and B, that have an association with parsing agent A and parsing agent B, respectively, from the domain sub-database. Based on the domains and the newly added terminal manufacturer A, it automatically generates a message parsing strategy.
[0079] It should be noted that the message templates in the template library in this embodiment can be created in advance. During the creation process of the message template, message materials sent by the message sender are received, and message templates are created based on the message materials. In one optional implementation method provided in this embodiment, message templates are created in the following way:
[0080] Obtain the message material sent by the message sender;
[0081] Add the message material to the initial message template to obtain the message template.
[0082] Optionally, the message materials include at least one of the following: text materials, image materials, audio and video materials, and button materials.
[0083] Furthermore, after adding message materials to the initial message template and obtaining the message template, the target message parsing agent can be determined based on the target message parsing strategy corresponding to the message template queried from the message parsing strategy library. The message template is then sent to the target message parsing agent for review. In one optional implementation of this embodiment, the template review is performed in the following manner:
[0084] The target message parsing strategy corresponding to the message template is determined, and the message template is sent to the message parsing agent specified by the target message parsing strategy; wherein, after receiving the message template, the message parsing agent sends the message template to the terminal service platform for template review;
[0085] The system receives the template review result returned by the terminal service platform, performs a second review on the message template based on the template review result, and returns the second review result to the message sender.
[0086] Specifically, template review can include verifying whether the format of the message template is correct.
[0087] In addition, the target message parsing policy can be sent to the message parsing agent, which will then forward the target message parsing policy to the terminal service platform. This allows the terminal service platform to determine the message parsing agent specified by the target message parsing policy based on the message link.
[0088] Step S104: Send the message link to the message sender.
[0089] After generating the message link corresponding to the message template, the message link can be sent to the message sender. Optionally, the message sender can send the message carrying the message link to the user terminal. The message can be generated based on the message link and message parameters.
[0090] Step S106: Obtain the message parsing request sent by the parsing agent, which carries the message link.
[0091] After the message link is sent to the message sender, the message sender sends a message carrying the message link to the user terminal. Subsequently, in order to display the message correctly, the user terminal needs to parse the message link. During the parsing process, the user terminal sends a message parsing request carrying the message link to the terminal service platform corresponding to the user terminal. The terminal service platform identifies the domain name in the message link, determines the corresponding message parsing policy and the message parsing proxy specified by the policy based on the domain name, and sends a message parsing request to the message parsing proxy. The message parsing proxy then sends the message parsing request to the message parsing platform. Accordingly, the message parsing platform receives the message parsing request carrying the message link sent by the parsing proxy. Optionally, the parsing proxy is determined by the terminal service platform corresponding to the user terminal based on the message link.
[0092] Step S108: Parse the message link to obtain the message template, and return the message template to the parsing agent.
[0093] After obtaining the message parsing request carrying the message link sent by the parsing agent, in this step, the message link is parsed to obtain a message template, and the message template is returned to the parsing agent. Optionally, the parsing agent returns the message template to the terminal service platform, which then sends the message template to the user terminal, and the user terminal displays the message based on the message material downloaded based on the message template.
[0094] In the specific execution process, after the message is displayed on the user terminal, a parsing result response can be returned to the terminal service platform corresponding to the user terminal. The terminal service platform then forwards the parsing result response to the message parsing platform. Accordingly, the message parsing platform receives the parsing result response and updates the recommended value of the target message parsing strategy based on the parsing result response. In an optional implementation provided in this embodiment, the recommended value of the target message parsing strategy is updated in the following manner:
[0095] Receive the parsing result response sent by the terminal service platform corresponding to the user terminal;
[0096] Based on the parsing results, the recommended value of the target message parsing strategy is updated.
[0097] Specifically, the parsing result response can be a successful parsing result for the message link or a failed parsing result for the message link. After receiving the parsing result response sent by the terminal service platform, the successful parsing results are filtered out, and the recommended value of the target message parsing strategy is updated based on the successful parsing results. In addition, the service personnel of the message parsing platform can also adjust the target message parsing strategy based on the updated recommended value.
[0098] The message parsing processing method provided in this embodiment first determines a message template based on the message parameters sent by the message sender, generates a message link corresponding to the message template, and then sends the message link to the message sender. The message sender then sends a message carrying the message link to the user terminal. After the terminal service platform corresponding to the user terminal determines the parsing proxy based on the message link, it obtains the message parsing request carrying the message link sent by the parsing proxy. Finally, it parses the message link to obtain the message template and returns the message template to the parsing proxy. The parsing proxy then returns the message template to the terminal service platform, which sends the message template to the user terminal. The user terminal then displays the message based on the message materials downloaded based on the message template. This solution achieves efficient allocation of parsing workload among different parsing proxies by scheduling parsing proxies through a message parsing platform, thus improving message parsing efficiency.
[0099] The following is in conjunction with the appendix Figure 5 Taking the application of the message parsing processing method provided in this embodiment in a 5G message parsing scenario as an example, the message parsing processing method provided in this embodiment will be further explained. (Refer to...) Figure 5 The message parsing processing method applied to the 5G message parsing scenario specifically includes steps S502 to S518.
[0100] Step S502: Determine the message template based on the message parameters sent by the message sender.
[0101] Step S504: Calculate the recommended value of each message parsing strategy in the message parsing strategy library.
[0102] Step S506: Sort the message parsing strategies based on the recommended strategy values to obtain a message parsing strategy sequence.
[0103] Step S508: The message parsing strategy in the message parsing strategy sequence that is in a preset position is taken as the target message parsing strategy corresponding to the message template.
[0104] Step S510: Generate a message link according to the domain name configured in the target message resolution strategy, and send the message link to the message sender.
[0105] Step S512: Obtain and parse the message parsing request sent by the parsing agent, which carries the message link.
[0106] Step S514: Parse the message link to obtain the message template, and return the message template to the parsing agent.
[0107] Step S516: Receive the parsing result response sent by the terminal service platform corresponding to the user terminal.
[0108] Step S518: Update the recommended value of the target message parsing strategy based on the parsing result response.
[0109] It should be noted that any one or more steps from S502 to S518 can be combined to form a new implementation method according to the needs of implementation and deployment. Furthermore, any one or more technical features in the technical solution composed of steps S502 to S518 can also be combined to form a new implementation method according to the actual deployment needs, or the technical features of one or more optional implementations provided by steps S102 to S108 can be combined to form a new implementation method. These will not be elaborated on here.
[0110] The message parsing processing method provided in this embodiment first determines a message template based on the message parameters sent by the message sender, generates a message link corresponding to the message template, and then sends the message link to the message sender. The message sender then sends a message carrying the message link to the user terminal. After the terminal service platform corresponding to the user terminal determines the parsing proxy based on the message link, it obtains the message parsing request carrying the message link sent by the parsing proxy. Finally, it parses the message link to obtain the message template and returns the message template to the parsing proxy. The parsing proxy then returns the message template to the terminal service platform, which sends the message template to the user terminal. The user terminal then displays the message based on the message materials downloaded based on the message template. This solution achieves efficient allocation of parsing workload among different parsing proxies by scheduling parsing proxies through a message parsing platform, thus improving message parsing efficiency.
[0111] This specification provides an example of a message parsing and processing method:
[0112] Reference Figure 6 The diagram illustrates a different message parsing and processing method provided in this embodiment.
[0113] Reference Figure 6 The message parsing and processing method provided in this embodiment specifically includes the following steps S602 to S606.
[0114] Step S602: Receive a message carrying a message link sent by the message sender.
[0115] In this embodiment, the message can be a 5G message, or it can be a rich media message consisting of text and a URL, for example... Figure 2The displayed rich media SMS message. The message parameters refer to variables in the message content that are dynamically generated or adjusted according to actual conditions during message transmission. These message parameters can be personalized based on different factors such as the recipient, sending time, and environmental conditions, thereby improving the relevance and effectiveness of the message. The message parameters include dynamic message parameters.
[0116] The message template can be a predefined message format used to quickly create and send standardized information. The message template typically contains a fixed text structure and message parameters. Using message templates improves message creation efficiency, ensures information consistency, and simplifies the construction process of complex messages. The message link can be a short link, such as a short link consisting of a domain name and a short code.
[0117] In the specific execution process, after the message parsing platform receives the message parameters sent by the message sender, it determines the message template corresponding to the message parameters based on the parameter identifier of the message parameters. In an optional implementation provided in this embodiment, the message template is determined based on the message parameters sent by the message sender in the following manner:
[0118] Determine the parameter identifier of the message parameter;
[0119] Select the message template corresponding to the parameter identifier from the template library.
[0120] Specifically, since the message parsing platform also provides the ability to create templates, the message sender can create the required message templates in the message parsing platform and store the created message templates in the template library of the message parsing platform. When the message sender sends a message, it can directly send the message based on the message templates stored in the template library. In the process of determining the message template, the message template corresponding to the parameter identifier can be selected from the template library according to the parameter identifier of the message parameter passed by the message sender.
[0121] After determining the message template based on the message parameters sent by the message sender, a message link corresponding to the message template needs to be generated to enable message transmission. This allows subsequent message transmission in the form of a message link. Specifically, in the process of generating the message link, a message link can be generated based on a pre-configured message parsing strategy. In one optional implementation provided in this embodiment, the message link corresponding to the message template is generated in the following manner:
[0122] Query the message parsing strategy library to find the target message parsing strategy corresponding to the message template;
[0123] The message link is generated based on the domain name configured in the target message parsing strategy.
[0124] Specifically, the message parsing strategy library stores at least one message parsing strategy, and the message parsing strategy is configured with at least one of the following strategy elements: strategy identifier, domain name, terminal manufacturer, and the parsing proxy corresponding to the terminal manufacturer; the message parsing strategy is used to specify the terminal manufacturer that can receive messages sent by the message sender, the parsing proxy corresponding to the terminal manufacturer, and the domain name used, wherein the terminal manufacturer can be a terminal of brand x, the parsing proxy is the parsing capability supplier of the terminal manufacturer, and the domain name is used to generate message links.
[0125] Here, since the same terminal manufacturer may connect with multiple DNS resolution agents at the same time, the message resolution platform needs to use message resolution policies to schedule the DNS resolution agents. The message resolution policies specify which DNS resolution agent from the terminal manufacturer should be used to perform message resolution and which agent's domain name should be used to generate the message link.
[0126] The following is combined Figure 3 The message parsing strategies are explained in detail below. Message parsing strategy 1 may include terminal manufacturer 1, its corresponding parsing proxy A, and domain name A; terminal manufacturer 2, its corresponding parsing proxy B, and domain name A. Furthermore, message parsing strategy 2 may include terminal manufacturer 1, its corresponding parsing proxy A, and domain name B; terminal manufacturer 2, its corresponding parsing proxy A, and domain name B; and terminal manufacturer 3, its corresponding parsing proxy C, and domain name B. If message parsing strategy 1 is chosen, it means that the message recipient can be terminal manufacturer 1, and the interaction with terminal manufacturer 1 is implemented through parsing proxy A, using domain name A. Alternatively, the message recipient can be terminal manufacturer 2, and the interaction with terminal manufacturer 2 is implemented through parsing proxy B, also using domain name A.
[0127] Furthermore, during the process of querying message parsing strategies from the message parsing strategy library, the target message parsing strategy can be determined by calculating the recommended value of the message parsing strategy. In other words, since there may be multiple parsing proxies supporting the message parsing capabilities of the same terminal manufacturer, and different message parsing strategies specify different parsing proxies, the parsing strategy is determined, and thus the parsing proxies that parse the message template are determined within the message parsing strategy. In an optional implementation provided in this embodiment, the target message parsing strategy corresponding to the message template is queried from the message parsing strategy library in the following manner:
[0128] Calculate the recommended value of each message parsing strategy in the message parsing strategy library;
[0129] The message parsing strategies are sorted based on the recommended values of the strategies to obtain a message parsing strategy sequence;
[0130] The message parsing strategy that is in a preset position in the message parsing strategy sequence is taken as the target message parsing strategy.
[0131] Specifically, the recommended value of each message parsing strategy in the message parsing strategy library can be calculated. Based on the recommended value, each message parsing strategy can be sorted in a forward order to obtain a message parsing strategy sequence. The message parsing strategy that is first in the message parsing strategy sequence can be taken as the target message parsing strategy.
[0132] Furthermore, in an optional implementation of this embodiment, the recommended value of each message parsing strategy in the message parsing strategy library is calculated in the following manner:
[0133] Calculate the ratio of the current parsing volume of the message parser specified by each message parsing strategy to the total parsing volume;
[0134] The recommended strategy value is determined based on the difference between the preset parsing volume ratio of the message parsing agent and the parsing volume ratio, as well as the number of message parsing agents.
[0135] For example, the recommended strategy value can be calculated using the following formula.
[0136]
[0137] Where n is the number of terminal manufacturers included in the message parsing strategy.
[0138] It should be noted that the message parsing platform in this embodiment provides a message parsing strategy input function. The message parsing strategies in the aforementioned message parsing strategy library can be input by the service personnel of the message parsing platform. In an optional implementation provided in this embodiment, the message parsing strategies in the message parsing strategy library are obtained in the following way:
[0139] Based on the policy entry request sent by the service personnel, a policy collection page is generated and returned to the service personnel;
[0140] Obtain the message parsing policy submitted by the service personnel based on the policy collection page, and add the message parsing policy to the message parsing policy library.
[0141] For example, such as Figure 4 As shown on the policy collection page, service personnel can enter message parsing policies on the policy collection page. The message parsing policy includes a policy identifier, domain name, terminal manufacturer, and the parsing agent corresponding to the terminal manufacturer.
[0142] In addition, by entering and adding the message parsing strategy to the message parsing strategy library, the strategy elements in the message parsing strategy can also be updated. In one optional implementation of this embodiment, the message parsing strategy is updated in the following way: if an update request for the message parsing strategy is detected, the message parsing strategy is updated through the strategy editing module configured in the message parsing platform.
[0143] In practical implementation, to facilitate the management of the message parsing strategy library, it can be divided into strategy element sub-libraries based on the different strategy elements contained in the message parsing strategy, such as terminal manufacturer sub-libraries, resolution agent sub-libraries, domain name libraries, etc. Based on this, the message parsing platform can automatically add strategy elements by monitoring new strategy elements in the strategy element sub-libraries. In one optional implementation provided in this embodiment, the message parsing strategies in the message parsing strategy library are determined in the following way:
[0144] If a new strategy element is detected in any strategy element sub-library, query the other strategy element sub-libraries for related strategy elements that are associated with the new strategy element.
[0145] The message parsing strategy is generated based on the newly added strategy elements and the associated strategy elements.
[0146] For example, if a new terminal manufacturer A is added, it is included in the terminal manufacturer sub-database. When the message parsing platform detects the addition of the terminal manufacturer sub-database, it checks whether the parsing agent sub-database has been added. If not, it searches for the association between the parsing agent sub-database and terminal manufacturer A. If it finds that terminal manufacturer A has an association with parsing agent A and parsing agent B in the parsing agent sub-database, it selects two domains, A and B, that have an association with parsing agent A and parsing agent B, respectively, from the domain sub-database. Based on the domains and the newly added terminal manufacturer A, it automatically generates a message parsing strategy.
[0147] It should be noted that the message templates in the template library in this embodiment can be created in advance. During the creation process of the message template, message materials sent by the message sender are received, and message templates are created based on the message materials. In one optional implementation method provided in this embodiment, message templates are created in the following way:
[0148] Obtain the message material sent by the message sender;
[0149] Add the message material to the initial message template to obtain the message template.
[0150] Optionally, the message materials include at least one of the following: text materials, image materials, audio and video materials, and button materials.
[0151] Furthermore, after adding message materials to the initial message template and obtaining the message template, the target message parsing agent can be determined based on the target message parsing strategy corresponding to the message template queried from the message parsing strategy library. The message template is then sent to the target message parsing agent for review. In one optional implementation of this embodiment, the template review is performed in the following manner:
[0152] The target message parsing strategy corresponding to the message template is determined, and the message template is sent to the message parsing agent specified by the target message parsing strategy; wherein, after receiving the message template, the message parsing agent sends the message template to the terminal service platform for template review;
[0153] The system receives the template review result returned by the terminal service platform, performs a second review on the message template based on the template review result, and returns the second review result to the message sender.
[0154] Specifically, template review can include verifying whether the format of the message template is correct.
[0155] In addition, the target message parsing policy can be sent to the message parsing agent, which will then forward the target message parsing policy to the terminal service platform. This allows the terminal service platform to determine the message parsing agent specified by the target message parsing policy based on the message link.
[0156] After generating the message link corresponding to the message template, the message link can be sent to the message sender, who will then send the message carrying the message link to the user terminal. The message can be generated based on the message link and message parameters.
[0157] Step S604: Generate a link resolution request for the message link and send the request.
[0158] After receiving the message carrying the message link from the message sender, this step generates a link resolution request for the message link and sends the resolution request to the terminal service platform. The terminal service platform determines the domain name based on the message link contained in the link resolution request, queries the corresponding resolution proxy for the domain name, and sends the link resolution request to the resolution proxy. After receiving the link resolution request, the resolution proxy forwards the link resolution request to the message resolution platform, which parses the message link to obtain the message template. The resolution proxy receives the message template sent by the message resolution platform and returns the message template to the terminal service platform, which then sends the message template to the user terminal.
[0159] Step S606: Display the message based on the message material downloaded from the message template.
[0160] After receiving the message template, the system downloads message materials from the terminal service platform based on the message template and displays the message based on the downloaded message materials.
[0161] In the specific execution process, after the message is displayed on the user terminal, a parsing result response can be returned to the terminal service platform corresponding to the user terminal. The terminal service platform then forwards the parsing result response to the message parsing platform. Accordingly, the message parsing platform receives the parsing result response and updates the recommended value of the target message parsing strategy based on the parsing result response. In an optional implementation provided in this embodiment, the recommended value of the target message parsing strategy is updated in the following manner:
[0162] Receive the parsing result response sent by the terminal service platform corresponding to the user terminal;
[0163] Based on the parsing results, the recommended value of the target message parsing strategy is updated.
[0164] Specifically, the parsing result response can indicate successful or failed parsing of the message link. After receiving the parsing result response from the terminal service platform, successful parsing results are selected, and the recommended value of the target message parsing strategy is updated based on these results. Furthermore, the service personnel of the message parsing platform can adjust the target message parsing strategy based on the updated recommended value. Correspondingly, the user terminal sends a parsing result response to the terminal service platform.
[0165] In summary, the message parsing processing method provided in this embodiment first determines a message template based on the message parameters sent by the message sender, generates a message link corresponding to the message template, and then sends the message link to the message sender. The message sender then sends a message carrying the message link to the user terminal. After the terminal service platform corresponding to the user terminal determines the parsing proxy based on the message link, it obtains the message parsing request carrying the message link sent by the parsing proxy. Finally, it parses the message link to obtain the message template and returns the message template to the parsing proxy. The parsing proxy then returns the message template to the terminal service platform, which sends the message template to the user terminal. The user terminal then displays the message based on the message materials downloaded based on the message template. This solution achieves efficient allocation of parsing workload among different parsing proxies by scheduling parsing proxies through a message parsing platform, thus improving message parsing efficiency.
[0166] Figure 7 This is a schematic diagram of a message parsing and processing device provided in an embodiment of the present invention, as shown below. Figure 7 As shown, the device includes:
[0167] The message link generation module 702 is configured to determine a message template based on the message parameters sent by the message sender and generate a message link corresponding to the message template.
[0168] The message link sending module 704 is configured to send the message link to a message sender; the message sender then sends a message carrying the message link to a user terminal.
[0169] The parsing request acquisition module 706 is configured to acquire a message parsing request carrying the message link sent by the parsing proxy; the parsing proxy is determined by the terminal service platform corresponding to the user terminal based on the message link.
[0170] The link parsing module 708 is configured to parse the message link to obtain the message template and return the message template to the parsing agent; wherein, the parsing agent returns the message template to the terminal service platform, the terminal service platform sends the message template to the user terminal, and the user terminal displays the message based on the message material downloaded based on the message template.
[0171] The message parsing processing apparatus provided in this embodiment, during the message parsing process, firstly, runs the message link generation module 702 to determine the message template based on the message parameters sent by the message sender, and generates a message link corresponding to the message template. Secondly, runs the message link sending module 704 to send the message link to the message sender, who then sends the message carrying the message link to the user terminal. After the terminal service platform corresponding to the user terminal determines the parsing proxy based on the message link, it runs the parsing request acquisition module 706 to obtain the message parsing request carrying the message link sent by the parsing proxy. Finally, runs the link parsing module 708 to parse the message link to obtain the message template, and returns the message template to the parsing proxy. The parsing proxy then returns the message template to the terminal service platform, which sends the message template to the user terminal. The user terminal then displays the message based on the message material downloaded based on the message template. This solution achieves efficient allocation of parsing workload among different parsing proxies by scheduling parsing proxies through the message parsing platform, thus improving message parsing efficiency.
[0172] The message parsing and processing apparatus provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.
[0173] Figure 8 This is a schematic diagram of a message parsing and processing device provided in an embodiment of the present invention, as shown below. Figure 8 As shown, the device includes:
[0174] The message receiving module 802 is configured to receive messages carrying message links sent by the message sender;
[0175] The request parsing module 804 is configured to generate a link parsing request for the message link and send the request.
[0176] The message display module 806 is configured to display messages based on message materials downloaded from a message template; the message template is obtained after link parsing based on a link parsing request.
[0177] The message parsing processing apparatus provided in this embodiment first runs a message receiving module 802 to receive a message carrying a message link sent by the message sender. Then, a parsing request sending module 804 generates and sends a link parsing request for the message link. Finally, a message display module 806 displays the message based on message materials downloaded from the message template. This solution uses a message parsing platform to schedule parsing agents and perform message parsing, achieving efficient allocation of parsing workload among different parsing agents and improving message parsing efficiency.
[0178] The message parsing and processing apparatus provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.
[0179] Furthermore, one embodiment of this specification also provides a message parsing and processing device. Figure 9 This is a schematic diagram of the structure of a message parsing and processing device provided in one embodiment of this specification, as shown below. Figure 9 As shown, the device includes a memory 901, a processor 902, a bus 903, and a communication interface 904. The memory 901, processor 902, and communication interface 904 communicate via the bus 903. The communication interface 904 may include input / output interfaces, including but not limited to a keyboard, mouse, monitor, microphone, and loudspeaker.
[0180] Figure 9 In the processor 902, the memory 901 stores computer-executable instructions that can run on the processor 902. When the processor 902 executes the computer-executable instructions, the following process is implemented:
[0181] Determine the message template based on the message parameters sent by the message sender, and generate a message link corresponding to the message template;
[0182] The message link is sent to the message sender; the message sender then sends a message carrying the message link to the user terminal.
[0183] Obtain the message parsing request sent by the parsing agent, which carries the message link; the parsing agent is determined by the terminal service platform corresponding to the user terminal based on the message link;
[0184] The message link is parsed to obtain the message template, and the message template is returned to the parsing agent; wherein, the parsing agent returns the message template to the terminal service platform, the terminal service platform sends the message template to the user terminal, and the user terminal displays the message based on the message material downloaded based on the message template.
[0185] The message parsing and processing device provided in this embodiment, through the cooperation of a memory 901, a processor 902, a bus 903, and a communication interface 904, first determines a message template based on the message parameters sent by the message sender, generates a message link corresponding to the message template, and then sends the message link to the message sender. The message sender then sends a message carrying the message link to the user terminal. After the terminal service platform corresponding to the user terminal determines the parsing agent based on the message link, it obtains the message parsing request carrying the message link sent by the parsing agent. Finally, it parses the message link to obtain the message template and returns the message template to the parsing agent. The parsing agent then returns the message template to the terminal service platform, which sends the message template to the user terminal. The user terminal then displays the message based on the message material downloaded based on the message template. This solution achieves efficient allocation of parsing workload among different parsing agents by scheduling parsing agents through a message parsing platform, thereby improving message parsing efficiency.
[0186] The message parsing and processing device provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.
[0187] Furthermore, one embodiment of this specification also provides a message parsing and processing device. Figure 10 This is a schematic diagram of the structure of a message parsing and processing device provided in one embodiment of this specification, as shown below. Figure 10 As shown, the device includes: a memory 1001, a processor 1002, a bus 1003, and a communication interface 1004. The memory 1001, the processor 1002, and the communication interface 1004 communicate via the bus 1003. The communication interface 1004 may include input / output interfaces, including but not limited to a keyboard, mouse, monitor, microphone, and loudspeaker.
[0188] Figure 10In the memory 1001, computer-executable instructions that can run on the processor 1002 are stored. When the processor 1002 executes the computer-executable instructions, the following process is implemented:
[0189] Receive messages containing a message link sent by the message sender;
[0190] Generate a link resolution request for the message link and send the request;
[0191] The message is displayed based on the message material downloaded from the message template; the message template is obtained after the link is parsed according to the link parsing request.
[0192] The message parsing and processing device provided in this embodiment, through the cooperation of the memory 1001, processor 1002, bus 1003, and communication interface 1004, first receives a message carrying a message link sent by the message sender, then generates a link parsing request for the message link and sends the request, and finally displays the message based on the message material downloaded based on the message template. This solution realizes the scheduling of parsing agents and performs message parsing through the message parsing platform, achieving efficient allocation of parsing volume among different parsing agents and improving message parsing efficiency.
[0193] The message parsing and processing device provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.
[0194] Furthermore, another embodiment of this specification provides a computer-readable storage medium for storing computer-executable instructions that, when executed by a processor, implement the following process:
[0195] Determine the message template based on the message parameters sent by the message sender, and generate a message link corresponding to the message template;
[0196] The message link is sent to the message sender; the message sender then sends a message carrying the message link to the user terminal.
[0197] Obtain the message parsing request sent by the parsing agent, which carries the message link; the parsing agent is determined by the terminal service platform corresponding to the user terminal based on the message link;
[0198] The message link is parsed to obtain the message template, and the message template is returned to the parsing agent; wherein, the parsing agent returns the message template to the terminal service platform, the terminal service platform sends the message template to the user terminal, and the user terminal displays the message based on the message material downloaded based on the message template.
[0199] The computer-readable storage medium provided in this embodiment first determines a message template based on the message parameters sent by the message sender, generates a message link corresponding to the message template, and then sends the message link to the message sender. The message sender then sends a message carrying the message link to the user terminal. After the terminal service platform corresponding to the user terminal determines the parsing proxy based on the message link, it obtains the message parsing request carrying the message link sent by the parsing proxy. Finally, it parses the message link to obtain the message template and returns the message template to the parsing proxy. The parsing proxy then returns the message template to the terminal service platform, which sends the message template to the user terminal. The user terminal then displays the message based on the message material downloaded based on the message template. This solution achieves efficient allocation of parsing workload among different parsing proxies by scheduling parsing proxies through a message parsing platform, thus improving message parsing efficiency.
[0200] The computer-readable storage medium includes read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, etc.
[0201] The computer-readable storage medium provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.
[0202] Furthermore, another embodiment of this specification provides a computer-readable storage medium for storing computer-executable instructions that, when executed by a processor, implement the following process:
[0203] Receive messages containing a message link sent by the message sender;
[0204] Generate a link resolution request for the message link and send the request;
[0205] The message is displayed based on the message material downloaded from the message template; the message template is obtained after the link is parsed according to the link parsing request.
[0206] The computer-readable storage medium provided in this embodiment first receives a message carrying a message link sent by the message sender, then generates a link resolution request for the message link and sends the request, and finally displays the message based on message materials downloaded based on the message template. This solution realizes the scheduling of parsing agents and performs message parsing through a message parsing platform, achieving efficient allocation of parsing workload among different parsing agents and improving message parsing efficiency.
[0207] The computer-readable storage medium includes read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, etc.
[0208] The computer-readable storage medium provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.
[0209] Furthermore, another embodiment of this specification provides a computer program product that, when executed by a processor, implements the following process:
[0210] Determine the message template based on the message parameters sent by the message sender, and generate a message link corresponding to the message template;
[0211] The message link is sent to the message sender; the message sender then sends a message carrying the message link to the user terminal.
[0212] Obtain the message parsing request sent by the parsing agent, which carries the message link; the parsing agent is determined by the terminal service platform corresponding to the user terminal based on the message link;
[0213] The message link is parsed to obtain the message template, and the message template is returned to the parsing agent; wherein, the parsing agent returns the message template to the terminal service platform, the terminal service platform sends the message template to the user terminal, and the user terminal displays the message based on the message material downloaded based on the message template.
[0214] The computer product program provided in this embodiment first determines a message template based on the message parameters sent by the message sender, generates a message link corresponding to the message template, and then sends the message link to the message sender. The message sender then sends a message carrying the message link to the user terminal. After the terminal service platform corresponding to the user terminal determines the parsing proxy based on the message link, it obtains the message parsing request carrying the message link sent by the parsing proxy. Finally, it parses the message link to obtain the message template and returns the message template to the parsing proxy. The parsing proxy then returns the message template to the terminal service platform, which sends the message template to the user terminal. The user terminal then displays the message based on the message material downloaded based on the message template. This solution achieves efficient allocation of parsing workload among different parsing proxies by scheduling parsing proxies through a message parsing platform, thus improving message parsing efficiency.
[0215] The computer program product provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.
[0216] Furthermore, another embodiment of this specification provides a computer program product that, when executed by a processor, implements the following process:
[0217] Receive messages containing a message link sent by the message sender;
[0218] Generate a link resolution request for the message link and send the request;
[0219] The message is displayed based on the message material downloaded from the message template; the message template is obtained after the link is parsed according to the link parsing request.
[0220] The computer product program provided in this embodiment first receives a message carrying a message link sent by the message sender, then generates a link parsing request for the message link and sends the request, and finally displays the message based on the message material downloaded based on the message template. This solution realizes the scheduling of parsing agents and performs message parsing through a message parsing platform, achieving efficient allocation of parsing workload among different parsing agents and improving message parsing efficiency.
[0221] The computer program product provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.
[0222] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0223] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0224] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0225] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0226] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0227] Memory may include non-persistent storage in computer-readable storage media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable storage media.
[0228] Computer-readable storage media include both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer-readable 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable storage media does not include transient media, such as modulated data signals and carrier waves.
[0229] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0230] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0231] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A message parsing and processing method, characterized in that, Applied to a message parsing platform, the method includes: Determine the message template based on the message parameters sent by the message sender, and generate a message link corresponding to the message template; The message link is sent to the message sender; the message sender then sends a message carrying the message link to the user terminal. Obtain a message parsing request sent by a parsing agent, carrying the message link; the parsing agent is determined by the terminal service platform corresponding to the user terminal based on the message link; The message link is parsed to obtain the message template, and the message template is returned to the parsing agent; wherein, the parsing agent returns the message template to the terminal service platform, and the terminal service platform sends the message template to the user terminal, and the user terminal displays the message based on the message material downloaded based on the message template; The generation of the message link corresponding to the message template includes: Calculate the recommended value of each message parsing strategy in the message parsing strategy library; The message parsing strategies are sorted based on the recommended values of the strategies to obtain a message parsing strategy sequence; The message parsing strategy that is in a preset position in the message parsing strategy sequence is taken as the target message parsing strategy. Generate the message link based on the domain name configured according to the target message parsing strategy; The calculation of the recommended value for each message parsing strategy in the message parsing strategy library includes: Calculate the ratio of the current parsing volume of the message parsing agent specified by each message parsing strategy to the total parsing volume; The recommended strategy value is determined based on the difference between the preset parsing volume ratio of the message parsing agent and the parsing volume ratio, as well as the number of message parsing agents.
2. The message parsing and processing method according to claim 1, characterized in that, The message template is created in the following way: Obtain the message material sent by the message sender; wherein the message material includes at least one of the following: text material, image material, audio / video material, and button material; Add the message material to the initial message template to obtain the message template.
3. The message parsing and processing method according to claim 2, characterized in that, After the step of adding the message material to the initial message template to obtain the message template is executed, the method further includes: The target message parsing strategy corresponding to the message template is determined, and the message template is sent to the message parsing agent specified by the target message parsing strategy; wherein, after receiving the message template, the message parsing agent sends the message template to the terminal service platform for template review; The system receives the template review result returned by the terminal service platform, performs a second review on the message template based on the template review result, and returns the second review result to the message sender.
4. The message parsing and processing method according to claim 1, characterized in that, The message parsing strategy library is created in the following manner: Based on the policy entry request sent by the service personnel, a policy collection page is generated and returned to the service personnel; Obtain the message parsing policy submitted by the service personnel based on the policy collection page, and add the message parsing policy to the message parsing policy library.
5. The message parsing and processing method according to claim 4, characterized in that, Also includes: If an update request for the message parsing policy is detected, the message parsing policy is updated through the policy editing module configured in the message parsing platform.
6. The message parsing and processing method according to claim 1, characterized in that, The message parsing strategy library is configured with a strategy element sub-library; Accordingly, the message parsing strategies in the message parsing strategy library are determined in the following manner: If a new strategy element is detected in any strategy element sub-library, query the other strategy element sub-libraries for related strategy elements that are associated with the new strategy element. The message parsing strategy is generated based on the newly added strategy elements and the associated strategy elements.
7. The message parsing and processing method according to claim 1, characterized in that, After the step of parsing the message link to obtain the message template and returning the message template to the parsing agent is executed, the method further includes: Receive the parsing result response sent by the terminal service platform corresponding to the user terminal; Based on the parsing results, the recommended value of the target message parsing strategy corresponding to the message template is updated.
8. The message parsing and processing method according to claim 1, characterized in that, The step of determining the message template based on the message parameters sent by the message sender includes: Determine the parameter identifier of the message parameter; Select the message template corresponding to the parameter identifier from the template library.
9. A message parsing and processing method, characterized in that, Applied to a user terminal, the method includes: Receive a message carrying a message link sent by the message sender, wherein the message link is generated by the message parsing platform; Generate a link resolution request for the message link and send the request; The message is displayed based on message materials downloaded from the message template; the message template is obtained after resolving the link based on the link resolution request. The generation of the message link includes: Calculate the recommended strategy value for each message parsing strategy in the message parsing strategy library; The message parsing strategies are sorted based on the recommended values of the strategies to obtain a message parsing strategy sequence; The message parsing strategy that is in a preset position in the message parsing strategy sequence is taken as the target message parsing strategy. Generate the message link based on the domain name configured according to the target message parsing strategy; The calculation of the recommended value for each message parsing strategy in the message parsing strategy library includes: Calculate the ratio of the current parsing volume of the message parsing agent specified by each message parsing strategy to the total parsing volume; The recommended strategy value is determined based on the difference between the preset parsing volume ratio of the message parsing agent and the parsing volume ratio, as well as the number of message parsing agents.
10. The message parsing and processing method according to claim 9, characterized in that, After the step of displaying messages based on message materials downloaded from message templates is executed, the method further includes: Send a parsing result response to the terminal service platform, wherein the parsing result response includes a parsing success result.
11. A message parsing and processing apparatus, characterized in that, Running on a message parsing platform, the device includes: The message link generation module is configured to determine a message template based on the message parameters sent by the message sender and generate a message link corresponding to the message template. The message link sending module is configured to send the message link to the message sender; the message sender then sends a message carrying the message link to the user terminal. The parsing request acquisition module is configured to acquire a message parsing request sent by a parsing proxy carrying the message link; the parsing proxy is determined by the terminal service platform corresponding to the user terminal based on the message link. The link parsing module is configured to parse the message link to obtain the message template and return the message template to the parsing agent; wherein, the parsing agent returns the message template to the terminal service platform, the terminal service platform sends the message template to the user terminal, and the user terminal displays the message based on the message material downloaded based on the message template; The message link generation module generates a message link corresponding to the message template, including: Calculate the recommended strategy value for each message parsing strategy in the message parsing strategy library; The message parsing strategies are sorted based on the recommended values of the strategies to obtain a message parsing strategy sequence; The message parsing strategy that is in a preset position in the message parsing strategy sequence is taken as the target message parsing strategy. Generate the message link based on the domain name configured according to the target message parsing strategy; The calculation of the recommended value for each message parsing strategy in the message parsing strategy library includes: Calculate the ratio of the current parsing volume of the message parsing agent specified by each message parsing strategy to the total parsing volume; The recommended strategy value is determined based on the difference between the preset parsing volume ratio of the message parsing agent and the parsing volume ratio, as well as the number of message parsing agents.
12. A message parsing and processing apparatus, characterized in that, The device, which operates on a user terminal, includes: The message receiving module is configured to receive messages carrying a message link sent by the message sender, the message link being generated by the message parsing platform; The request parsing module is configured to generate a link parsing request for the message link and send the request. The message display module is configured to display messages based on message materials downloaded from a message template; the message template is obtained after resolving a link based on a link resolution request. The generation of the message link includes: Calculate the recommended value of each message parsing strategy in the message parsing strategy library; The message parsing strategies are sorted based on the recommended values of the strategies to obtain a message parsing strategy sequence; The message parsing strategy that is in a preset position in the message parsing strategy sequence is taken as the target message parsing strategy. Generate the message link based on the domain name configured according to the target message parsing strategy; The calculation of the recommended value for each message parsing strategy in the message parsing strategy library includes: Calculate the ratio of the current parsing volume of the message parsing agent specified by each message parsing strategy to the total parsing volume; The recommended strategy value is determined based on the difference between the preset parsing volume ratio of the message parsing agent and the parsing volume ratio, as well as the number of message parsing agents.
13. A message parsing and processing device, characterized in that, The device includes a memory and a processor, the memory storing computer-executable instructions that, when executed on the processor, enable the implementation of the steps of the method according to any one of claims 1-10.
14. A computer-readable storage medium storing computer-executable instructions, characterized in that, When the computer-executable instructions are executed by a processor, they can implement the steps of the method described in any one of claims 1-10.
15. A computer program product, characterized in that, The computer program product includes a message parsing and processing program, which, when executed by a processor, is capable of implementing the steps of the method as described in any one of claims 1-10.
Citation Information
Patent Citations
Message analysis method and device and message analysis platform
CN117201611A
Method and system for multimedia messaging service
US20070037557A1