CN112182400A - Message processing method, message processing device, electronic device and storage medium - Google Patents
Message processing method, message processing device, electronic device and storage medium Download PDFInfo
- Publication number
- CN112182400A CN112182400A CN202011114638.XA CN202011114638A CN112182400A CN 112182400 A CN112182400 A CN 112182400A CN 202011114638 A CN202011114638 A CN 202011114638A CN 112182400 A CN112182400 A CN 112182400A
- Authority
- CN
- China
- Prior art keywords
- message
- template
- messenger
- information
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012545 processing Methods 0.000 title claims abstract description 24
- 238000003672 processing method Methods 0.000 title abstract description 21
- 238000000034 method Methods 0.000 claims abstract description 36
- 230000005540 biological transmission Effects 0.000 claims abstract description 32
- 230000004048 modification Effects 0.000 claims description 22
- 238000012986 modification Methods 0.000 claims description 22
- 230000015654 memory Effects 0.000 claims description 12
- 238000011161 development Methods 0.000 description 20
- 238000010586 diagram Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 11
- 238000007726 management method Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 238000012550 audit Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 238000010276 construction Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000004806 packaging method and process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 239000000758 substrate Substances 0.000 description 2
- 238000012384 transportation and delivery Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0251—Targeted advertisements
- G06Q30/0269—Targeted advertisements based on user profile or attribute
- G06Q30/0271—Personalized advertisement
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0277—Online advertisement
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Economics (AREA)
- Game Theory and Decision Science (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the disclosure provides a message processing method, a message processing device, electronic equipment and a storage medium, which can be applied to the financial field or other fields. The method comprises the following steps: acquiring original message content, wherein the original message content comprises service type information; determining a target message messenger matching the service type information from a plurality of message messengers, wherein each message messenger includes information related to message transmission; determining a message template according to a target message messenger; and generating the target message content according to the message template and the original message content.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a message processing method, a message processing apparatus, an electronic device, and a storage medium.
Background
With the development of internet technology, messaging channels and service types of message sending systems are increasing, so that service logics of services related to messages become increasingly complex, such as services of message management and message sending.
In implementing the disclosed concept, the inventors found that there are at least the following problems in the related art: adopting the related art easily leads to repeated development and code redundancy.
Disclosure of Invention
In view of this, the disclosed embodiments provide a message processing method, a message processing apparatus, an electronic device, and a storage medium.
One aspect of the embodiments of the present disclosure provides a message processing method, including: acquiring original message content, wherein the original message content comprises service type information; determining a target message messenger matching the service type information from a plurality of message messengers, wherein each message messenger includes information related to message transmission; determining a message template according to a target message messenger; and generating the target message content according to the message template and the original message content.
According to an embodiment of the present disclosure, before determining a target message messenger matching service type information from a plurality of message messengers, further comprising: acquiring a plurality of service promotion requests, wherein each service promotion request comprises service demand information; determining message configuration information according to service demand information in the service promotion request aiming at each service promotion request in a plurality of service promotion requests, wherein the message configuration information comprises service type information and a message template; and generating a message messenger corresponding to the service promotion request according to the message configuration information.
According to an embodiment of the present disclosure, determining a target message messenger matching service type information from a plurality of message messengers includes: auditing the plurality of message messengers based on the auditing policy; and determining a target message messenger matched with the service type information from the plurality of message messengers under the condition that the plurality of message messengers are determined to meet the auditing condition.
According to the embodiment of the present disclosure, after generating the message messenger corresponding to the service promotion request according to the message configuration information, the method further includes: acquiring a message template modification request, wherein the message template modification request comprises template modification information; modifying the message template in the message messenger according to the template modification information to obtain a new message template; and obtaining new message configuration information according to the new message template so as to generate a new message messenger corresponding to the service promotion request according to the new message configuration information.
According to an embodiment of the present disclosure, further comprising: determining a message transmission mode according to a target message messenger; and transmitting the target message content according to the message transmission mode.
According to an embodiment of the present disclosure, the message transmission mode includes at least one of a message transmission channel, a message transmission manner, and a message transmission format.
According to an embodiment of the present disclosure, a message template includes a template variable and a template constant; generating target message content according to the message template and the original message content, comprising: obtaining a variable value corresponding to the template variable from the original message content; filling the variable value into the template variable to obtain variable information; and generating the target message content according to the variable information and the template constant.
Another aspect of the disclosed embodiments provides a message processing apparatus, including: a first obtaining module, configured to obtain an original message content, where the original message content includes service type information; a first determining module for determining a target message messenger matched with the service type information from a plurality of message messengers, wherein each message messenger includes information related to message transmission; a second determining module, for determining a message template according to the target message messenger; and the first generation module is used for generating target message content according to the message template and the original message content.
Another aspect of an embodiment of the present disclosure provides an electronic device including: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described above.
Another aspect of embodiments of the present disclosure provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement a method as described above.
Another aspect of an embodiment of the present disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
According to an embodiment of the present disclosure, by obtaining an original message content, wherein the original message content includes service type information, a target message messenger matching the service type information is determined from a plurality of message messengers, each message messenger including information related to message transmission, a message template is determined from the target message messenger, and the target message content is generated from the message template and the original message content. The target message messenger matched with the service type information is determined from the plurality of message messengers according to the service type information, the corresponding message template is called based on the target message messenger, and the target message content for sending is generated according to the message template and the original message content, wherein the target message messenger can be flexibly set according to the service type information without customized development, and repeated development and code redundancy caused by different information such as the message content, a message receiving and sending channel and the like are reduced, so the technical problems of repeated development and code redundancy easily caused by adopting a related technology are at least partially overcome, and flexible configuration and management of the message are further realized.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically shows an exemplary system architecture to which a message processing method may be applied, according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a message processing method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of another message processing method according to an embodiment of the present disclosure;
FIG. 4 illustrates a schematic diagram of a message processing method according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a display diagram of targeted message content according to an embodiment of the present disclosure;
FIG. 6 schematically shows a block diagram of a message processing apparatus according to an embodiment of the present disclosure; and
fig. 7 schematically shows a block diagram of an electronic device adapted to implement a message processing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In order to flexibly send the message to the user, a customized development mode can be adopted, namely, a corresponding message generation mode is customized and developed according to each service requirement information.
In implementing the disclosed concept, the inventors discovered that employing correlation techniques is relatively easy to lead to duplicative development and code redundancy. The inventors have found that the reason for the above-described problems in the related art is to customize the way in which messages are generated.
In order to solve the above problems in the related art, the embodiments of the present disclosure provide a message processing method, a message processing apparatus, and an electronic device capable of applying the method. The method comprises the steps of obtaining original message content, wherein the original message content comprises service type information, determining a target message messenger matched with the service type information from a plurality of message messengers according to the service type information, calling a corresponding message template based on the target message messenger, and generating target message content for sending according to the message template and the original message content.
According to the embodiment of the disclosure, since the target message messenger can be flexibly set according to the service type information without customized development, repeated development and code redundancy caused by different information such as message content and messaging channel are reduced.
Fig. 1 schematically illustrates an exemplary system architecture 100 to which a message processing method may be applied, according to an embodiment of the disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired and/or wireless communication links, and so forth.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various messaging client applications installed thereon, such as a banking application, a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, and/or social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server that provides various services, such as a background management server (for example only) that may be used to generate targeted message content providing support. The background management server can analyze and process the original message content and feed back the target message content to the terminal equipment.
It should be noted that the message processing method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the message processing apparatus provided by the embodiment of the present disclosure may be generally disposed in the server 105. The message processing method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Correspondingly, the message processing apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
Alternatively, the message processing method provided by the embodiment of the present disclosure may also be executed by any one or more of the terminal devices 101, 102, and 103. Accordingly, the message processing apparatus provided by the embodiments of the present disclosure may be generally disposed in any one or more of the terminal devices 101, 102, and 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically shows a flow chart of a message processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S210 to S240.
In operation S210, original message content is acquired, wherein the original message content includes service type information.
In the embodiment of the present disclosure, the original message information may be information carried in a message generation request sent by a service system, that is, an acquisition message generation request, where the message generation request may include original message content. The original message content may include service type information, which may include transaction channel information, transaction product information, and transaction service information. For banking, the transaction channel information may include at least one of an online banking transaction, a mobile banking transaction, an automated banking transaction, and a third party application transaction. The transaction product information may include debit and credit cards. The transaction service information may be used to characterize service information provided by the transaction product, such as a consumption reminder notification for a credit card.
A target message messenger matching the service type information is determined from a plurality of message messengers, each of which includes information related to message transmission, in operation S220.
In the embodiment of the present disclosure, the message messenger may be understood as an object in a programming language, and the message messenger sets information related to message transmission, which may be used as a basis for implementing rapid message expansion. The information related to message transmission may include service type information and a message template, that is, the message information may include the service type information and the message template.
According to the embodiment of the present disclosure, a plurality of message messengers may be generated in advance for determining a target message messenger matching service type information, each message messenger being for one kind of service requirement information, i.e., each kind of service requirement information having a corresponding message messenger. After the service type information included in the original message content is obtained, a target message messenger matched with the service type information may be determined from among a plurality of message messengers according to the service type information, so that a message template for generating the target message content may be determined according to the target message information.
In operation S230, a message template is determined according to the target message messenger.
In operation S240, target message content is generated according to the message template and the original message content.
In the embodiment of the disclosure, since each message messenger may include the service type information and the message template, after the target message messenger is determined according to the service type information, the message template may be determined according to the target message information, and the message template may include a template variable and a template constant. The template variables are used to characterize fields that can be modified based on the message content, and the template constants are used to characterize fields that cannot be modified.
According to the embodiment of the disclosure, after the message template and the original message content are obtained, the variable value corresponding to the template variable can be obtained from the original message content, the variable value is filled into the template variable to obtain the variable information, and the target message content is generated according to the variable information and the template constant.
According to the technical scheme of the embodiment of the disclosure, by acquiring original message content, wherein the original message content comprises service type information, a target message messenger matched with the service type information is determined from a plurality of message messengers, each message messenger comprises information related to message sending, a message template is determined according to the target message messenger, and the target message content is generated according to the message template and the original message content. The target message messenger matched with the service type information is determined from the plurality of message messengers according to the service type information, the corresponding message template is called based on the target message messenger, and the target message content for sending is generated according to the message template and the original message content, wherein the target message messenger can be flexibly set according to the service type information without customized development, and repeated development and code redundancy caused by different information such as the message content, a message receiving and sending channel and the like are reduced, so the technical problems of repeated development and code redundancy easily caused by adopting a related technology are at least partially overcome, and flexible configuration and management of the message are further realized.
According to the embodiment of the present disclosure, optionally, on the basis of the above technical solution, before determining the target message messenger matching the service type information from the plurality of message messengers, the following operation may be further included.
The method comprises the steps of obtaining a plurality of service promotion requests, wherein each service promotion request comprises service demand information. And determining message configuration information according to the service demand information in the service promotion request aiming at each service promotion request in the plurality of service promotion requests, wherein the message configuration information comprises service type information and a message template. And generating a message messenger corresponding to the service promotion request according to the message configuration information.
In the embodiment of the present disclosure, in order to implement flexible configuration and management of messages, a message messenger corresponding to a service promotion request may be set for each service promotion request. The service requirement information may include service type information. For each service promotion request, the message configuration information corresponding to the service promotion request can be determined according to the service type information in the service promotion request.
According to an embodiment of the present disclosure, the message configuration information may include information related to the service promotion request, the message configuration information may include service type information and a message template, and the message configuration information may further include at least one of a message trigger condition, a message transmission reason, a preset message transmission amount, and a message transmission mode. The message transmission mode may include at least one of a message transmission channel, a message transmission manner, and a message transmission format. Message trigger conditions may be used to characterize the conditions that trigger the sending of the targeted message content. The message transmission channel may include at least one of a short message channel, a wechat channel, a mail channel, and a telephone channel. The message sending mode may include a batch mode or an online mode. The messaging format may include a fixed-length format or a variable-length format.
According to the embodiment of the disclosure, through the establishment of the message messenger, the flexible configuration and management of the message are realized, and a foundation is provided for the rapid expansion of the message.
According to the embodiment of the present disclosure, optionally, on the basis of the above technical solution, determining a target message messenger matching the service type information from a plurality of message messengers may include the following operations.
And auditing the plurality of message messengers based on the auditing strategy. And in the case that the plurality of message messengers are determined to meet the auditing condition, determining a target message messenger matched with the service type information from the plurality of message messengers.
In an embodiment of the present disclosure, to improve the correctness of the message couriers, the generated plurality of message couriers may be audited based on an audit policy to determine whether each message courier satisfies an audit condition. The auditing policy may be a policy generated based on the service type information. The audit condition may be understood as a condition that the message messenger matches the service type information.
According to an embodiment of the present disclosure, if a message messenger satisfies an audit condition, i.e., the message messenger matches service type information, the message messenger may be determined as a message messenger that may participate in determining a target message messenger. If the message information does not satisfy the audit condition, i.e., the message messenger does not match the service type information, it may be determined that the message messenger does not participate in determining the target message messenger.
According to the embodiment of the disclosure, after the message messenger corresponding to the service promotion request is generated according to the message configuration information, the message messenger is checked based on the checking policy, and the message messenger is determined as the message messenger which can participate in determining the target message messenger under the condition that the message messenger is determined to meet the checking condition. By adopting the method, the plurality of message messengers for participating in generating the target message messenger are obtained, and correspondingly, the plurality of message messengers in the target message messenger which is determined to be matched with the service type information from the plurality of message messengers are all message messengers meeting the auditing condition.
According to the embodiment of the present disclosure, optionally, on the basis of the above technical solution, after generating the message messenger corresponding to the service promotion request according to the message configuration information, the following operation may be further included.
And acquiring a message template modification request, wherein the message template modification request comprises template modification information. And modifying the message template in the message messenger according to the template modification information to obtain a new message template. And obtaining new message configuration information according to the new message template so as to generate a new message messenger corresponding to the service promotion request according to the new message configuration information.
In an embodiment of the present disclosure, a message template modification function is provided, i.e., the message messenger supports modification of the message template. The message template in the message messenger can be modified according to the template modification information to obtain a new message template and further obtain new message configuration information, then the new message messenger is generated according to the new message configuration information, and the new message messenger can be determined as the message messenger which can participate in determining the target message messenger, so that if the new initial message content is obtained subsequently, the new target message messenger can be determined according to the new message messenger, then the new message template is determined based on the new target message messenger, and the new target message content is determined according to the new initial message content and the new message template.
According to the embodiment of the disclosure, since the message template in the message messenger can be flexibly changed without customized development, repeated development and code redundancy caused by different information such as message content and messaging channel are reduced.
According to an embodiment of the present disclosure, optionally, on the basis of the above technical solution, the method may further include the following operations.
The message transmission mode is determined according to the target message messenger. And transmitting the target message content according to the message transmission mode.
In embodiments of the present disclosure, the message messenger may include a messaging mode. After determining the target message messenger, a message delivery mode may be determined based on the target message messenger and the target message content may be delivered in the message delivery mode. The message sending mode may include at least one of a message sending channel, a message sending method, and a message sending format. The message transmission channel may include at least one of a short message channel, a wechat channel, a mail channel, and a telephone channel.
Illustratively, targeted message messengers are used to manage credit card consumption reminders. And determining a message sending mode according to the target message messenger, namely simultaneously sending the target message content of the consumption reminding aiming at the credit card through a short message channel and a WeChat channel.
According to the embodiment of the present disclosure, optionally, on the basis of the above technical solution, the message template includes a template variable and a template constant.
Generating the target message content from the message template and the original message content may include the following operations.
Variable values corresponding to the template variables are obtained from the original message content. And filling the variable values into the template variables to obtain variable information. And generating the target message content according to the variable information and the template constant.
In an embodiment of the present disclosure, the template variable is used to characterize a field that can be modified according to the message content, and the template constant is used to characterize a field that cannot be modified. Illustratively, as with a consumption message reminder for a credit card, the template variables may include date, time, card number, amount, and the like.
According to the embodiment of the disclosure, the variable value corresponding to the field represented by the template variable can be extracted from the original message content, the extracted variable value is filled into the corresponding field represented by the template variable to obtain the variable information, and the variable information and the template constant are integrated to obtain the target message content.
According to the embodiment of the present disclosure, optionally, on the basis of the above technical solution, the message sending mode includes at least one of a message sending channel, a message sending method, and a message sending format.
In embodiments of the present disclosure, the targeted message messenger may implement support for sending targeted message content in a set messaging mode.
Fig. 3 schematically shows a flow chart of another message processing method according to an embodiment of the present disclosure.
As shown in fig. 3, the method includes operations S301 to S312.
In operation S301, a plurality of service promotion requests are obtained, where each service promotion request includes service requirement information.
In operation S302, for each service promotion request of a plurality of service promotion requests, message configuration information is determined according to service requirement information in the service promotion request, where the message configuration information includes service type information and a message template.
In operation S303, a message messenger corresponding to the service promotion request is generated according to the message configuration information.
In operation S304, original message content is acquired, wherein the original message content includes service type information.
In operation S305, a plurality of message couriers are audited based on an audit policy.
In operation S306, in case that it is determined that the plurality of message couriers satisfy the audit condition, a target message courier matching the service type information is determined from the plurality of message couriers.
In operation S307, a message template is determined according to the target message messenger.
In operation S308, a variable value corresponding to the template variable is acquired from the original message content.
In operation S309, the variable values are populated to the template variables, resulting in variable information.
In operation S310, target message content is generated according to the variable information and the template constant.
In operation S311, a message transmission mode is determined according to the target message messenger.
In operation S312, the target message content is transmitted in the message transmission mode.
In the embodiments of the present disclosure, specific examples are explained below in conjunction with fig. 4 and 5 in order to better understand the embodiments of the present disclosure.
Fig. 4 illustrates a schematic diagram of a message processing method according to an embodiment of the present disclosure. As shown in fig. 4, n message messengers are included, message messenger 1, message messenger 2, … …, message messenger n-1, and message messenger n, respectively. The service type information included in the initial message information content is consumption reminding of a credit card generated by the third-party application service. Message messenger 2 is determined to be a target message messenger from among the n message messengers based on the service type information. And determining a message template according to the target message messenger, generating the target message content shown in fig. 5 by combining the initial message content, and determining that the message transmission mode is the transmission through a short message channel according to the target message messenger. Fig. 5 schematically illustrates a display diagram of a target message content according to an embodiment of the present disclosure. As shown in fig. 5, the content of the target message obtained through the short message channel is displayed.
According to the technical scheme of the embodiment of the disclosure, by acquiring original message content, wherein the original message content comprises service type information, a target message messenger matched with the service type information is determined from a plurality of message messengers, each message messenger comprises information related to message sending, a message template is determined according to the target message messenger, and the target message content is generated according to the message template and the original message content. The target message messenger matched with the service type information is determined from the plurality of message messengers according to the service type information, the corresponding message template is called based on the target message messenger, and the target message content for sending is generated according to the message template and the original message content, wherein the target message messenger can be flexibly set according to the service type information without customized development, and repeated development and code redundancy caused by different information such as the message content, a message receiving and sending channel and the like are reduced, so the technical problems of repeated development and code redundancy easily caused by adopting a related technology are at least partially overcome, and flexible configuration and management of the message are further realized.
Fig. 6 schematically shows a block diagram of a message processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the message processing apparatus 600 may include a first obtaining module 610, a first determining module 620, a second determining module 630, and a first generating module 640.
The first obtaining module 610, the first determining module 620, the second determining module 630, and the first generating module 640 are communicatively coupled.
A first obtaining module 610, configured to obtain original message content, where the original message content includes service type information.
A first determining module 620 for determining a target message messenger matching the service type information from a plurality of message messengers, wherein each message messenger includes information related to message transmission.
A second determining module 630, configured to determine a message template according to the target message messenger.
A first generating module 640, configured to generate the target message content according to the message template and the original message content.
According to the technical scheme of the embodiment of the disclosure, by acquiring original message content, wherein the original message content comprises service type information, a target message messenger matched with the service type information is determined from a plurality of message messengers, each message messenger comprises information related to message sending, a message template is determined according to the target message messenger, and the target message content is generated according to the message template and the original message content. The target message messenger matched with the service type information is determined from the plurality of message messengers according to the service type information, the corresponding message template is called based on the target message messenger, and the target message content for sending is generated according to the message template and the original message content, wherein the target message messenger can be flexibly set according to the service type information without customized development, and repeated development and code redundancy caused by different information such as the message content, a message receiving and sending channel and the like are reduced, so the technical problems of repeated development and code redundancy easily caused by adopting a related technology are at least partially overcome, and flexible configuration and management of the message are further realized.
According to an embodiment of the present disclosure, optionally, on the basis of the above technical solution, the message processing apparatus 600 may further include a second obtaining module, a third determining module, and a second generating module.
And the second acquisition module is used for acquiring a plurality of service promotion requests, wherein each service promotion request comprises service requirement information.
And the third determining module is used for determining message configuration information according to the service demand information in the service promotion request aiming at each service promotion request in the plurality of service promotion requests, wherein the message configuration information comprises service type information and a message template. And
and the second generation module is used for generating a message messenger corresponding to the service promotion request according to the message configuration information.
According to an embodiment of the present disclosure, optionally, on the basis of the above technical solution, the first determining module 620 may include an auditing unit and a determining unit.
And the auditing unit is used for auditing the message messengers based on the auditing strategy.
And the determining unit is used for determining a target message messenger matched with the service type information from the plurality of message messengers under the condition that the plurality of message messengers are determined to meet the auditing condition.
According to the embodiment of the present disclosure, optionally, on the basis of the above technical solution, the message processing apparatus 600 may further include a third obtaining module, a modifying module, and a third generating module.
And the third acquisition module is used for acquiring the message template modification request, wherein the message template modification request comprises template modification information.
And the modification module is used for modifying the message template in the message messenger according to the template modification information to obtain a new message template.
And the third generation module is used for obtaining new message configuration information according to the new message template so as to generate a new message messenger corresponding to the service promotion request according to the new message configuration information.
According to the embodiment of the present disclosure, optionally, on the basis of the above technical solution, the message processing apparatus 600 may further include a fourth determining module and a sending module.
And the fourth determining module is used for determining the message sending mode according to the target message messenger.
And the sending module is used for sending the target message content according to the message sending mode.
According to the embodiment of the present disclosure, optionally, on the basis of the above technical solution, the message sending mode includes at least one of a message sending channel, a message sending method, and a message sending format.
According to the embodiment of the present disclosure, optionally, on the basis of the above technical solution, the message template includes a template variable and a template constant.
The first generation module may include an acquisition unit, a padding unit, and a generation unit.
And the acquisition unit is used for acquiring the variable value corresponding to the template variable from the original message content.
And the filling unit is used for filling the variable values into the template variables to obtain variable information.
And the generating unit is used for generating the target message content according to the variable information and the template constant.
Any of the modules, units, or at least part of the functionality of any of them according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules and units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, units according to the embodiments of the present disclosure may be implemented at least partially as a hardware Circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a Circuit, or implemented by any one of three implementations of software, hardware, and firmware, or any suitable combination of any of them. Alternatively, one or more of the modules, units according to embodiments of the present disclosure may be implemented at least partly as computer program modules, which, when executed, may perform the respective functions.
For example, any plurality of the first obtaining module 610, the first determining module 620, the second determining module 630 and the first generating module 640 may be combined and implemented in one module/unit, or any one of the modules/units may be split into a plurality of modules/units. Alternatively, at least part of the functionality of one or more of these modules/units may be combined with at least part of the functionality of other modules/units and implemented in one module/unit. According to an embodiment of the disclosure, at least one of the first obtaining module 610, the first determining module 620, the second determining module 630, and the first generating module 640 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or any suitable combination of any of them. Alternatively, at least one of the first obtaining module 610, the first determining module 620, the second determining module 630 and the first generating module 640 may be at least partially implemented as a computer program module, which when executed may perform a corresponding function.
It should be noted that, the message processing apparatus in the embodiment of the present disclosure corresponds to the message processing method portion in the embodiment of the present disclosure, and the description of the message processing apparatus portion specifically refers to the message processing method portion, which is not described herein again.
Fig. 7 schematically shows a block diagram of an electronic device adapted to implement the above described method according to an embodiment of the present disclosure. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. The processor 701 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. It is noted that the programs may also be stored in one or more memories other than the ROM 702 and RAM 703. The processor 701 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by the processor 701, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable Computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an erasable Programmable Read-Only Memory (EPROM) (erasable Programmable Read-Only Memory) or flash Memory), a portable compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the preceding. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 702 and/or the RAM 703 and/or one or more memories other than the ROM 702 and the RAM 703 described above.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.
Claims (10)
1. A method of message processing, comprising:
acquiring original message content, wherein the original message content comprises service type information;
determining a target message messenger matching the service type information from a plurality of message messengers, wherein each of the message messengers includes information related to message transmission;
determining a message template according to the target message messenger; and
and generating target message content according to the message template and the original message content.
2. The method of claim 1, wherein prior to said determining a target message messenger from a plurality of message messengers that matches said traffic type information, further comprising:
acquiring a plurality of service promotion requests, wherein each service promotion request comprises service demand information;
determining message configuration information according to service demand information in the service promotion request aiming at each service promotion request in the plurality of service promotion requests, wherein the message configuration information comprises service type information and a message template; and
and generating a message messenger corresponding to the service promotion request according to the message configuration information.
3. The method of claim 2, wherein the determining a target message messenger matching the service type information from a plurality of message messengers comprises:
auditing a plurality of the message messengers based on an auditing policy; and
and under the condition that the plurality of message messengers are determined to meet the auditing condition, determining a target message messenger matched with the service type information from the plurality of message messengers.
4. The method of claim 2, wherein after the generating a message messenger corresponding to the service promotion request according to the message configuration information, further comprising:
acquiring a message template modification request, wherein the message template modification request comprises template modification information;
modifying the message template in the message messenger according to the template modification information to obtain a new message template; and
and obtaining new message configuration information according to the new message template so as to generate a new message messenger corresponding to the service promotion request according to the new message configuration information.
5. The method of claim 1, further comprising:
determining a message sending mode according to the target message messenger; and
and transmitting the target message content according to the message transmission mode.
6. The method of claim 5, wherein the messaging mode comprises at least one of a messaging channel, a messaging style, and a messaging format.
7. The method of claim 1, wherein the message template comprises a template variable and a template constant;
generating target message content according to the message template and the original message content comprises:
obtaining a variable value corresponding to the template variable from the original message content;
filling the variable value into the template variable to obtain variable information; and
and generating the target message content according to the variable information and the template constant.
8. A message processing apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a first processing module, wherein the first acquisition module is used for acquiring original message content, and the original message content comprises service type information;
a first determining module for determining a target message messenger matched with the service type information from a plurality of message messengers, wherein each message messenger includes information related to message transmission;
the second determining module is used for determining a message template according to the target message messenger; and
and the first generation module is used for generating target message content according to the message template and the original message content.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011114638.XA CN112182400B (en) | 2020-10-16 | 2020-10-16 | Message processing method, message processing device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011114638.XA CN112182400B (en) | 2020-10-16 | 2020-10-16 | Message processing method, message processing device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112182400A true CN112182400A (en) | 2021-01-05 |
CN112182400B CN112182400B (en) | 2024-03-29 |
Family
ID=73950818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011114638.XA Active CN112182400B (en) | 2020-10-16 | 2020-10-16 | Message processing method, message processing device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112182400B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113132926A (en) * | 2021-04-16 | 2021-07-16 | 中国工商银行股份有限公司 | Message distribution method, system, equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562552A (en) * | 2017-09-06 | 2018-01-09 | 深圳市中润四方信息技术有限公司 | A kind of service message generation method and system |
US20190012300A1 (en) * | 2015-12-24 | 2019-01-10 | Beijing Gridsum Technology Co., Ltd. | Rule matching method and device |
CN109450772A (en) * | 2018-09-26 | 2019-03-08 | 中国平安人寿保险股份有限公司 | A kind of message method, server and computer readable storage medium |
CN110601952A (en) * | 2018-06-12 | 2019-12-20 | 北京京东尚科信息技术有限公司 | Multi-channel message notification sending method and device |
CN111614718A (en) * | 2020-04-10 | 2020-09-01 | 广州市玄武无线科技股份有限公司 | Enterprise communication channel fusion method, device, equipment and readable storage medium |
-
2020
- 2020-10-16 CN CN202011114638.XA patent/CN112182400B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190012300A1 (en) * | 2015-12-24 | 2019-01-10 | Beijing Gridsum Technology Co., Ltd. | Rule matching method and device |
CN107562552A (en) * | 2017-09-06 | 2018-01-09 | 深圳市中润四方信息技术有限公司 | A kind of service message generation method and system |
CN110601952A (en) * | 2018-06-12 | 2019-12-20 | 北京京东尚科信息技术有限公司 | Multi-channel message notification sending method and device |
CN109450772A (en) * | 2018-09-26 | 2019-03-08 | 中国平安人寿保险股份有限公司 | A kind of message method, server and computer readable storage medium |
CN111614718A (en) * | 2020-04-10 | 2020-09-01 | 广州市玄武无线科技股份有限公司 | Enterprise communication channel fusion method, device, equipment and readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113132926A (en) * | 2021-04-16 | 2021-07-16 | 中国工商银行股份有限公司 | Message distribution method, system, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN112182400B (en) | 2024-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112308552B (en) | Method and device for ordering medical insurance medicine | |
CN108881393B (en) | Data issuing method, device, computer and storage medium | |
CN113507419B (en) | Training method of traffic distribution model, traffic distribution method and device | |
CN112437000A (en) | Message queue pushing method and device, computer equipment and storage medium | |
CN115660589A (en) | Business auditing method, device, equipment, computer readable medium and program product | |
CN111950249A (en) | Message generation method and device, electronic equipment and storage medium | |
CN110223179B (en) | Data processing method, device, system and medium for fund | |
CN114022031A (en) | Data processing method, data processing apparatus, electronic device, medium, and computer program product | |
CN112329049A (en) | Business data management method, device, electronic equipment and medium | |
CN112367241A (en) | Message generation and message transmission method, device, equipment and computer readable medium | |
CN115170321A (en) | Method and device for processing batch transaction data | |
CN113132400B (en) | Business processing method, device, computer system and storage medium | |
CN112182400B (en) | Message processing method, message processing device, electronic equipment and storage medium | |
CN112732547B (en) | Service testing method and device, storage medium and electronic equipment | |
CN115408297A (en) | Test method, device, equipment and medium | |
CN114238585A (en) | Query method and device based on 5G message, computer equipment and storage medium | |
CN114386951A (en) | Process approval method and device, electronic equipment and storage medium | |
CN113989046A (en) | Transaction processing method, apparatus, electronic device, storage medium, and program product | |
CN113436000A (en) | Remittance processing method, remittance processing apparatus, electronic device, and readable storage medium | |
CN109840073B (en) | Method and device for realizing business process | |
CN113592646A (en) | Intelligent contract execution method, device and system | |
CN111131355B (en) | Method and apparatus for processing information | |
CN110430256B (en) | Method, device and computer system for pushing transaction message | |
CN114285743B (en) | Method, device, electronic equipment and storage medium for updating configuration information | |
US20240152504A1 (en) | Data interaction method, apparatus, and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |