Message sending method and device, equipment, storage medium and program product

By determining the target message template based on business scenario and device mechanism, the method addresses slow message sending rates by directly identifying the appropriate template, thus improving efficiency.

CN119089884APending Publication Date: 2024-12-06CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411150515.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing message sending technologies face slow message sending rates due to the time-consuming process of finding the appropriate message template among a large number of templates.

Method used

The method determines the target message template by associating it with the business scenario, message type, and the message sending device's mechanism, reducing the need to search through all templates, thereby shortening message generation time.

Benefits of technology

This approach improves message sending efficiency by directly identifying the target message template, reducing search time and enhancing the message generation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089884A_ABST
    Figure CN119089884A_ABST
Patent Text Reader

Abstract

The invention discloses a message sending method and device, equipment, a storage medium and a program product, which are applied to the field of big data processing, and the method comprises the following steps: in response to prompt information to be sent by the message sending device, determining a service scene for generating the prompt information, and determining each first message template associated with the service scene; determining a message type to which the prompt message belongs, and determining each first message template matched with the message type in each first message template as a second message template; determining a first mechanism associated with the message sending device, and determining a second message template matched with the first mechanism according to each second message template as a target message template; and generating a target message according to the prompt information and the target message template, and sending the target message to a terminal device specified by the prompt information. According to the invention, the message sending efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of big data processing technology, and in particular, relates to a message sending method, device, equipment, storage medium and program product. Background Art

[0002] The sending of messages is involved in the operation of the device. When a message needs to be sent, a message in a specific format is generated through a message template, and then the message in the specific format is sent.

[0003] In the exemplary technology, a message has a message template, and the device needs to send a large number of messages, and there will be a large number of message templates. When a message needs to be sent, it is necessary to find the template corresponding to the message in the large number of message templates. The time to find the message template is too long, resulting in a slow message sending rate. Summary of the invention

[0004] Embodiments of the present application provide a message sending method, apparatus, device, storage medium, and program product for solving the problem of slow message sending rate.

[0005] In a first aspect, an embodiment of the present application provides a message sending method, including:

[0006] In response to the prompt information to be sent by the message sending device, determining the business scenario that generates the prompt information, and determining each first message template associated with the business scenario;

[0007] Determine the message type to which the prompt information belongs, and determine, among the first message templates, each first message template matching the message type as a second message template;

[0008] Determine a first mechanism associated with the message sending device, and determine a second message template matching the first mechanism according to each of the second message templates as a target message template;

[0009] A target message is generated according to the prompt information and the target message template, and the target message is sent to a terminal device specified by the prompt information.

[0010] In some possible implementations, the step of determining, according to each of the second message templates, a second message template matching the first mechanism as a target message template includes:

[0011] Determining whether each of the second message templates contains a second message template unique to the first institution;

[0012] In response to each of the second message templates containing a second message template unique to the first organization, the second message template unique to the first organization is determined as the target message template.

[0013] In some possible implementations, after the step of determining whether each of the second message templates contains a second message template unique to the first organization, the step further includes:

[0014] In response to the second message templates not containing the second message template unique to the first organization, determining a second organization corresponding to the first organization, where the second organization is used to indicate a superior organization of the first organization;

[0015] A third message template unique to the second organization is determined as the target message template, and the type of the third message template matches the message type.

[0016] In some possible implementations, after the step of determining whether each of the second message templates contains a second message template unique to the first organization, the step further includes:

[0017] In response to the fact that none of the second message templates contains a second message template unique to the first organization, determining a third organization associated with each of the second message templates;

[0018] In each of the third institutions, a third institution matched by the first institution is determined, and the matched third institution is used to indicate a superior institution of the first institution;

[0019] The second message template corresponding to the matched third mechanism is determined as the target message template.

[0020] In some possible implementations, the step of determining each first message template associated with the business scenario includes:

[0021] Obtaining a message identifier associated with the business scenario;

[0022] The message templates associated with the message identifier are determined as the first message templates associated with the business scenario.

[0023] In some possible implementations, the step of generating a target message according to the prompt information and the target message template includes:

[0024] Obtaining message modification parameters in the target message template;

[0025] The prompt information is processed according to the message modification parameters to generate a target message.

[0026] In a second aspect, an embodiment of the present application provides a message sending device, including:

[0027] A first determination template is used to determine, in response to the prompt information to be sent by the message sending device, a business scenario that generates the prompt information, and determine each first message template associated with the business scenario;

[0028] A second determination template is used to determine the message type to which the prompt information belongs, and determine, among the first message templates, each first message template matching the message type as a second message template;

[0029] A third determination template is used to determine the first mechanism associated with the message sending device, and determine a second message template matching the first mechanism according to each of the second message templates as a target message template;

[0030] A template is generated, which is used to generate a target message according to the prompt information and the target message template, and send the target message to a terminal device specified by the prompt information.

[0031] In a third aspect, an embodiment of the present application provides a message sending device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the message sending method as described above is implemented.

[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are executed by a processor, the message sending method as described above is implemented.

[0033] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the message sending method as described above.

[0034] The message sending method, device, equipment, storage medium and program product of the embodiments of the present application, when the message sending device needs to send a prompt message, determines the business scenario that generates the prompt message, determines the business type to which the prompt message belongs, and determines the first message template that matches the message type in each first message template associated with the business scenario as the second message template, determines the first mechanism associated with the message sending device in each message template, and uses the matched second message template as the target message template, and then generates the target message through the prompt message and the target message template, and finally sends the target message to the terminal device specified by the prompt message. In the present application, the target message template used to generate the message is determined from the message template associated with the business scenario to which the prompt message belongs, and there is no need to find the target message template in all the message templates, which reduces the search time of the message template and shortens the message generation time, thereby improving the message sending efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0036] Figure 1 It is a schematic diagram of the scenario involved in the message sending method of this application;

[0037] Figure 2 This is a flow chart of the first embodiment of the message sending method of the present application;

[0038] Figure 3 This is a flow chart of the second embodiment of the message sending method of the present application;

[0039] Figure 4 This is a flow chart of the third embodiment of the message sending method of the present application;

[0040] Figure 5 This is a flowchart of the fourth embodiment of the message sending method of the present application;

[0041] Figure 6 It is a functional template schematic diagram of the message sending device of this application;

[0042] Figure 7 It is a structural diagram of the message sending device of this application. DETAILED DESCRIPTION

[0043] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0044] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0045] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.

[0046] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0047] The sending of messages is involved in the operation of the device. When a message needs to be sent, a message in a specific format is generated through a message template, and then the message in the specific format is sent.

[0048] The inventor of the present application found that a message has a message template, and the device needs to send a large number of messages, and there will be a large number of message templates. When a message needs to be sent, it is necessary to find the template corresponding to the message in the large number of message templates. The time to find the message template is too long, resulting in a slow message sending rate.

[0049] The inventor of the present application therefore conceived that the target message template used to generate the message is determined from the message template associated with the business scenario to which the prompt message belongs. There is no need to search for the target message template among all the message templates, thereby reducing the time for searching the message template and shortening the message generation time, thereby improving the efficiency of message sending.

[0050] Reference Figure 1 , Figure 1 This is a schematic diagram of the scenario of the message sending method of this application. Figure 1 When the message sending device 100 needs to send a prompt message, it determines the business scenario that generates the prompt message, and determines each first message template associated with the business scenario. The message sending device 100 determines the message type to which the prompt message belongs, and determines the first message template that matches the message type in each first message template as the second message template. The message sending device 100 then determines the second message template matched by the first mechanism associated with the message sending device in each second message template as the target message template, thereby generating a target message through the prompt message and the target message template. The message sending device 100 then sends the target message to the terminal device 200 specified by the prompt message.

[0051] The following combination Figure 1 , the message sending method of this application is described in detail.

[0052] Reference Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a message sending method of the present application. The message sending method includes:

[0053] Step S201, in response to prompt information to be sent by a message sending device, determining a business scenario for generating the prompt information, and determining each first message template associated with the business scenario.

[0054] In this embodiment, the execution subject is a message sending device. For the sake of convenience, the message sending device is referred to as a device below. The device can be any terminal device capable of sending messages, such as a server, mobile phone, computer or back-end device of a business platform.

[0055] When the device needs to send a prompt message, it needs to convert the prompt message into a message in a specific format before sending it. The prompt message may be, for example, a successful repayment or a failed repayment. The prompt message may also be a response message fed back by the device when executing a request from an external device. The specific format may be determined by a message template, so the device needs to generate a message based on the message template and the prompt message for sending.

[0056] When the device detects the prompt information to be sent, it determines the business scenario that generates the prompt information. For example, if the prompt information is a successful repayment, the business scenario is a repayment scenario; if the prompt information is a successful instruction execution, the business scenario is a control scenario. Each business scenario is associated with multiple message templates, and the device determines the message template associated with the message scenario, and each message template is defined as a first message template.

[0057] In one example, for messages generated by the same business scenario, only one ID is published, which is the message identifier of the business scenario, and the message identifier is associated with the business scenario and stored. When the device needs to determine each first message template associated with the business scenario, it first obtains the message identifier associated with the business scenario. There are multiple message templates associated with the message identifier, and the device determines each message template associated with the message identifier as each first message template associated with the business scenario.

[0058] In another example, the business scenario is associated with a scenario identifier, the scenario identifier is associated with multiple message templates, and the device determines each message template associated with the scenario identifier as each first message template associated with the business scenario.

[0059] Through message identification and scene identification, the template call frequency can be reduced and the reusability of the template can be improved. The number of templates is reduced, the cost of template management and maintenance is reduced, and low coupling between templates and high cohesion within the template can be achieved.

[0060] Step S202, determining the message type to which the prompt information belongs, and determining, among the first message templates, each first message template that matches the message type as a second message template.

[0061] After determining the business scenario, the device needs to determine the message type to which the prompt message belongs. For example, if the business scenario is a repayment scenario, the prompt information is divided into two types of messages: successful repayment and failed repayment. The business scenario is associated with multiple first message templates of message types, and the device determines the first message template that matches the message type in each first message template as the second message template. Exemplary. Each first message template has a type number. If the type number of the first message template is the same as the type number of the message type, the first message template is the first message template that matches the message type.

[0062] Step S203, determining the first organization associated with the message sending device, and determining a second message template matching the first organization according to each second message template as a target message template.

[0063] In this embodiment, the organization associated with the device is defined as a first organization, and the first organization has a characteristic message template. In this regard, the device determines a second message template that matches the first organization according to each second message template as a target message template.

[0064] Step S204: Generate a target message according to the prompt information and the target message template, and send the target message to the terminal device specified by the prompt information.

[0065] After determining the target message template, the device generates a target message based on the prompt information and the target message template, and then sends the target message to the terminal device specified by the prompt information.

[0066] In one example, the prompt information is added to the target message template, and the target message can be generated based on the prompt information and the parameters in the target message template.

[0067] In another example, the device obtains message modification parameters in the target message template, and processes the prompt information based on the message modification parameters to generate the target message. Exemplarily, the message modification parameters are typesetting parameters such as font color, font size, font spacing, etc., and the target message can be obtained by adjusting the parameters of the prompt information to the typesetting parameters.

[0068] In this embodiment, when the message sending device needs to send a prompt message, it determines the business scenario that generates the prompt message, determines the business type to which the prompt message belongs, and determines the first message template that matches the message type in each first message template associated with the business scenario as the second message template, determines the first mechanism associated with the message sending device in each message template, and uses the matched second message template as the target message template, and then generates the target message through the prompt message and the target message template, and finally sends the target message to the terminal device specified by the prompt message. In this embodiment, the target message template used to generate the message is determined from the message template associated with the business scenario to which the prompt message belongs, and there is no need to find the target message template in all the message templates, which reduces the search time of the message template and shortens the message generation time, thereby improving the message sending efficiency.

[0069] Reference Figure 3 , Figure 3 This is a flow chart of the second embodiment of the message sending method of the present application. Based on the first embodiment, step S203 includes:

[0070] Step S301, determining whether each second message template contains a second message template unique to the first organization.

[0071] Step S302: In response to each second message template containing a second message template unique to the first organization, determining the second message template unique to the first organization as a target message template.

[0072] In this embodiment, the first organization may be provided with a characteristic template for sending messages, and the characteristic template is a message template unique to the first organization.

[0073] In this regard, the device determines whether each second message template contains a second message template unique to the first organization.

[0074] When each second message template contains a second message template unique to the first organization, the second message template unique to the first organization is determined as the target message template.

[0075] Exemplarily, when the first organization is provided with a characteristic template, the characteristic template will be numbered, that is, the characteristic template has a characteristic template identifier. The device finds the target template identifier corresponding to the characteristic template identifier in the template identifiers of each second message template, and the second message template corresponding to the target template identifier is the second message template unique to the first organization.

[0076] In this embodiment, the device uses the characteristic template of the first organization as the target message template, so that the target message has the characteristics of the first organization, thereby improving the user experience.

[0077] Reference Figure 4 , Figure 4 This is a flow chart of the third embodiment of the message sending method of the present application. Based on the second embodiment, after step S301, it also includes:

[0078] Step S401, in response to the fact that none of the second message templates contains a second message template unique to the first organization, determining a second organization corresponding to the first organization, where the second organization is used to indicate a superior organization of the first organization.

[0079] Step S402: determine the third message template unique to the second organization as the target message template, and the type of the third message template matches the message type.

[0080] In this embodiment, when the second message templates do not contain the second message template unique to the first organization, the device performs vertical matching, that is, determines whether the superior organization of the first organization has a unique message template.

[0081] In this regard, when each second message template does not contain a second message template unique to the first organization, the device determines the second organization corresponding to the first organization, and the second organization is the superior organization of the first organization. The device determines the third message template unique to the superior organization as the target message template, and the type of the third message template matches the message type, that is, the third message template belongs to the same business scenario as each second message template, and the message type to which the third message template belongs is the message type to which the prompt information belongs.

[0082] It should be noted that if the second organization does not have a special template, the unique message template of the second organization's superior organization will be used as the target message template; if the second organization's superior organization does not have a special template, then the superior purchasing machine will be searched to see if it has a special template, until a special template of a superior organization is found as the target message template.

[0083] In this embodiment, when the characteristic template of the first organization is not included in the second message templates, the characteristic template of the superior organization of the first organization is determined as the target message template, ensuring that the target message has the characteristic style set by the organization, thereby improving the user experience.

[0084] Reference Figure 5 , Figure 5 This is a flow chart of the third embodiment of the message sending method of the present application. Based on the second embodiment, after step S301, it also includes:

[0085] Step S501, in response to the fact that none of the second message templates contains a second message template unique to the first organization, determining a third organization associated with each second message template.

[0086] In this embodiment, each second message template is a message template unique to each organization, that is, the first second message template corresponds to one organization.

[0087] When each second message template does not contain a second message template unique to the first organization, the device needs to find the superior organization of the first organization. To this end, the device determines the third organization associated with each second message template.

[0088] Step S502: Determine, among various third institutions, the third institution that matches the first institution, and the matched third institution is used to indicate the superior institution of the first institution.

[0089] Step S503: determine the second message template corresponding to the matched third organization as the target message template.

[0090] Since the first organization is not provided with a characteristic template, the first organization is not included in each third organization. The device determines the relationship between each third organization and the first organization, and thus determines the superior organization of the first organization in each third organization based on the relationship, and the superior organization is the third organization matched by the first organization. It should be noted that the superior organization can be the direct superior organization of the first organization, or it can be a non-direct superior organization. For example, the direct superior organization of organization a is organization b, and the direct superior organization of organization b is organization c. Organization b is the direct superior organization of organization a, and organization c is the non-direct superior organization of organization a. When each third organization contains the direct superior organization of the first organization, the third organization of the direct superior organization is used as the third organization matched with the first organization; if each third organization contains the non-direct superior organization of the first organization, any non-direct superior organization is used as the third organization matched by the first organization. The device determines the second message template corresponding to the matched third organization as the target message template.

[0091] In this embodiment, when each second message template does not contain a second message template unique to the first organization, the third organization associated with each second message template is determined, and among each third organization, the third organization matched by the first organization is determined, and then the second message template of the matched third organization is determined as the target message template, ensuring that the template message has a distinctive style.

[0092] See also Figure 6 , the message sending device 600 provided in the embodiment of the present application, the message sending device 600 includes:

[0093] The first determination template 610 is used to determine the business scenario for generating the prompt information in response to the prompt information to be sent by the message sending device, and to determine each first message template associated with the business scenario;

[0094] The second determination template 620 is used to determine the message type to which the prompt information belongs, and determine, among the first message templates, each first message template matching the message type as the second message template;

[0095] The third determination template 630 is used to determine the first organization associated with the message sending device, and determine the second message template matching the first organization according to each second message template as the target message template;

[0096] The template generation 640 is used to generate a target message according to the prompt information and the target message template, and send the target message to the terminal device specified by the prompt information.

[0097] In one embodiment, the message sending device 600 is specifically used for:

[0098] Determining whether the second message templates are unique to the first organization;

[0099] In response to each of the second message templates containing a second message template unique to the first organization, the second message template unique to the first organization is determined as a target message template.

[0100] In one embodiment, the message sending device 600 is specifically used for:

[0101] In response to the second message templates not containing the second message template unique to the first organization, determining a second organization corresponding to the first organization, the second organization being used to indicate a superior organization of the first organization;

[0102] A third message template unique to the second organization is determined as a target message template, and the type of the third message template matches the message type.

[0103] In one embodiment, the message sending device 600 is specifically used for:

[0104] In response to the second message templates not containing a second message template unique to the first organization, determining a third organization associated with each second message template;

[0105] Among the third institutions, determining the third institution matched by the first institution, the matched third institution is used to indicate the superior institution of the first institution;

[0106] The second message template corresponding to the matched third organization is determined as the target message template.

[0107] In one embodiment, the message sending device 600 is specifically used for:

[0108] Get the message ID associated with the business scenario;

[0109] Each message template associated with the message identifier is determined as each first message template associated with the business scenario.

[0110] In one embodiment, the message sending device 600 is specifically used for:

[0111] Get the message modification parameters in the target message template;

[0112] The prompt information is processed according to the message modification parameters to generate the target message.

[0113] Each template of the message sending device provided in the embodiment of the present application can realize Figures 2 to 5 Any embodiment provides the functions of each step of the message sending method and can achieve its corresponding technical effects. For the sake of concise description, they will not be repeated here.

[0114] Figure 7 A schematic diagram of the hardware structure of a message sending device provided in an embodiment of the present application is shown.

[0115] The message sending device may include a processor 701 and a memory 702 storing computer program instructions.

[0116] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0117] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory.

[0118] In certain embodiments, the memory 702 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0119] The processor 701 implements any one of the authentication methods in the above embodiments by reading and executing computer program instructions stored in the memory 702 .

[0120] In one example, the message sending device may further include a communication interface 703 and a bus 710. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 710 and communicate with each other.

[0121] The communication interface 703 is mainly used to implement communication between various templates, devices, units and / or equipment in the embodiments of the present application.

[0122] Bus 710 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0123] The data processing method in the above embodiment can be implemented by providing a computer storage medium in the present application embodiment. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the data processing methods in the above embodiment is implemented.

[0124] An embodiment of the present application also provides a computer program product, including a computer program, which implements any one of the data processing methods in the above embodiments when the computer program is processed and executed.

[0125] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0126] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable message sending device to produce a machine so that these instructions executed by the processor of the computer or other programmable message sending device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0127] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, templates and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A message sending method, It is characterized in that Applied to a message sending device, the message sending method comprises: In response to the prompt information to be sent by the message sending device, determining the business scenario that generates the prompt information, and determining each first message template associated with the business scenario; Determine the message type to which the prompt information belongs, and determine, among the first message templates, each first message template matching the message type as a second message template; Determine a first mechanism associated with the message sending device, and determine a second message template matching the first mechanism according to each of the second message templates as a target message template; A target message is generated according to the prompt information and the target message template, and the target message is sent to a terminal device specified by the prompt information.

2. The message sending method according to claim 1, It is characterized in that The step of determining, according to each of the second message templates, a second message template matching the first mechanism as a target message template comprises: Determining whether each of the second message templates contains a second message template unique to the first institution; In response to each of the second message templates containing a second message template unique to the first organization, the second message template unique to the first organization is determined as the target message template.

3. The message sending method according to claim 2, It is characterized in that After the step of determining whether each of the second message templates contains a second message template unique to the first organization, the method further includes: In response to the second message templates not containing the second message template unique to the first organization, determining a second organization corresponding to the first organization, where the second organization is used to indicate a superior organization of the first organization; A third message template unique to the second organization is determined as the target message template, and the type of the third message template matches the message type.

4. The message distribution method according to claim 2, It is characterized in that After the step of determining whether each of the second message templates contains a second message template unique to the first organization, the method further includes: In response to the fact that none of the second message templates contains a second message template unique to the first organization, determining a third organization associated with each of the second message templates; In each of the third institutions, a third institution matched by the first institution is determined, and the matched third institution is used to indicate a superior institution of the first institution; The second message template corresponding to the matched third mechanism is determined as the target message template.

5. The message sending method according to claim 1, It is characterized in that The step of determining each first message template associated with the business scenario includes: Obtain a message identifier associated with the business scenario; The message templates associated with the message identifier are determined as the first message templates associated with the business scenario.

6. The message sending method according to any one of claims 1 to 5, It is characterized in that The step of generating a target message according to the prompt information and the target message template comprises: Obtaining message modification parameters in the target message template; The prompt information is processed according to the message modification parameters to generate a target message.

7. A message sending device, It is characterized in that include: A first determination template is used to determine, in response to the prompt information to be sent by the message sending device, a business scenario that generates the prompt information, and determine each first message template associated with the business scenario; A second determination template is used to determine the message type to which the prompt information belongs, and determine, among the first message templates, each first message template matching the message type as a second message template; A third determination template is used to determine the first mechanism associated with the message sending device, and determine a second message template matching the first mechanism according to each of the second message templates as a target message template; A template is generated, which is used to generate a target message according to the prompt information and the target message template, and send the target message to a terminal device specified by the prompt information.

8. A message sending device, It is characterized in that The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the message sending method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the message sending method according to any one of claims 1 to 6 is implemented.

10. A computer program product, It is characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the message sending method as described in any one of claims 1 to 6.