CN116112457A - Method, device, computer equipment and storage medium for notifying message - Google Patents

Method, device, computer equipment and storage medium for notifying message Download PDF

Info

Publication number
CN116112457A
CN116112457A CN202310108758.6A CN202310108758A CN116112457A CN 116112457 A CN116112457 A CN 116112457A CN 202310108758 A CN202310108758 A CN 202310108758A CN 116112457 A CN116112457 A CN 116112457A
Authority
CN
China
Prior art keywords
message
component
template component
message template
notification
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.)
Pending
Application number
CN202310108758.6A
Other languages
Chinese (zh)
Inventor
彭邦
刘瑶瑶
孙长青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN202310108758.6A priority Critical patent/CN116112457A/en
Publication of CN116112457A publication Critical patent/CN116112457A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/02User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application belongs to the technical field of computers, and relates to a method, a device, computer equipment and a storage medium for notifying messages, wherein the method comprises the following steps: selecting a corresponding message notification component and a message template component, and extracting a word segment to be filled of the message template component as a variable to be acquired, wherein the message notification component and the message template component are in one-to-many relation; acquiring a variable value corresponding to the variable to be acquired from a database, and filling the variable value into the message template component to acquire a message to be transmitted; and sending the message to be sent to a corresponding receiver according to the message notification component. The method and the device improve the notification efficiency of the computer sending message.

Description

Method, device, computer equipment and storage medium for notifying message
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for message notification.
Background
The rapid development of artificial intelligence, PRA (robot process automation, robotic Process Automation), has resulted in the main function of RPA being to interact work information with business through robots to perform according to a process designed in advance. Therefore, if the interaction between the working information and the service is excessive, the RPA can efficiently solve the complex processes, and the labor cost is saved. The RPA mainly enables a user to generate an automatic flow by utilizing a drag control and simple operation through various packaged controls, and realizes automatic mouse clicking, keyboard input, excel operation, data processing, timing execution and automatic interface interaction generation of a browser application program on a computer.
However, in the current robot flow automation, a message notification for efficiently transmitting the robot execution result in real time is not configured to the receiver, and an efficient message notification transmission method is needed.
Disclosure of Invention
The embodiment of the application aims to provide a method, a device, computer equipment and a storage medium for message notification, and the efficiency of sending the message notification by a computer is improved.
In order to solve the above technical problems, the embodiments of the present application provide a method for notifying a message, which adopts the following technical schemes:
a method of message notification, comprising the steps of:
selecting a corresponding message notification component and a message template component, and extracting a word segment to be filled of the message template component as a variable to be acquired, wherein the message notification component and the message template component are in one-to-many relation;
acquiring a variable value corresponding to the variable to be acquired from a database, and filling the variable value into the message template component to acquire a message to be transmitted;
and sending the message to be sent to a corresponding receiver according to the message notification component.
Further, the step of sending the message to be sent to the corresponding receiver according to the message notification component includes:
calling a corresponding message sending interface according to the message notification component;
and sending the message to be sent to a corresponding receiver through the message sending interface.
Further, the step of sending the message to be sent to the corresponding receiver according to the message notification component includes:
determining account information of a corresponding receiver according to the receiver ID and the message notification component;
and sending the message to be sent to a corresponding receiver based on the account information.
Further, the step of determining account information of the corresponding receiver according to the receiver ID and the message notification component includes:
based on the receiver ID, determining each piece of alternative account information corresponding to the receiver ID from a database;
identifying the type of the message notification component as a target type;
and taking the alternative account information with the type being the target type as the account information of the receiver.
Further, the step of selecting the corresponding message notification component and message template component includes:
selecting a corresponding message notification component and a message template component according to a pre-configured designated message notification component and a designated message template component; or alternatively, the process may be performed,
and receiving a selection instruction, and determining a corresponding message notification component and a message template component according to the selection instruction.
Further, before the step of selecting the corresponding message notification component and message template component, the method further comprises:
circularly monitoring to-be-handled list data, judging whether the to-be-handled list data is changed, and if the to-be-handled list data is changed, selecting a corresponding message notification component and a message template component; or alternatively
And circularly reading the to-be-handled list data, processing the data in the to-be-handled list data, and selecting a corresponding message notification component and a message template component after the processing operation is completed.
Further, after the step of selecting the corresponding message notification component and message template component, the method further comprises:
selecting a default message template component name or a custom message template component name from the message template components;
when the default message template component name is selected, acquiring a default message template component corresponding to the default message template component name according to a preset path, and taking the default message template component as a target message template component;
when the name of the customized message template component is selected, an HTML template written by a user is received and used as a target message template component;
the step of filling the variable value into the message template component to obtain the message to be sent comprises the following steps:
and filling the variable value into the target message template component to obtain a message to be sent.
In order to solve the above technical problems, the embodiments of the present application further provide a device for notifying a message, which adopts the following technical scheme:
an apparatus of message notification, comprising:
the selection module is used for selecting a corresponding message notification component and a message template component, extracting a word segment to be filled of the message template component as a variable to be acquired, wherein the message notification component and the message template component are in one-to-many relation;
the acquisition module is used for acquiring a variable value corresponding to the variable to be acquired from a database, filling the variable value into the message template component and acquiring a message to be transmitted;
and the sending module is used for sending the message to be sent to the corresponding receiver according to the message notification component.
In order to solve the above technical problems, the embodiments of the present application further provide a computer device, which adopts the following technical schemes:
a computer device comprising a memory having stored therein computer readable instructions and a processor which when executed performs the steps of the method of message notification described above.
In order to solve the above technical problems, embodiments of the present application further provide a computer readable storage medium, which adopts the following technical solutions:
a computer readable storage medium having stored thereon computer readable instructions which when executed by a processor perform the steps of the method of message notification described above.
Compared with the prior art, the embodiment of the application has the following main beneficial effects:
the message notification component and the message template component are used for generating the message to be sent, and the message notification component sends the message to be sent to the receiver in a mode of various message notifications. The message to be sent can be generated in the process of using the message notification group, the receiver of the message is set, and the generated message to be sent is directly sent to the receiver by calling the message sending interface in the operation process of the message notification group, so that the sending efficiency of the message notification is effectively improved, and the efficient and convenient automatic sending of the message notification is realized.
Drawings
For a clearer description of the solution in the present application, a brief description will be given below of the drawings that are needed in the description of the embodiments of the present application, it being obvious that the drawings in the following description are some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a method of message notification according to the present application;
FIG. 3 is a schematic diagram of an embodiment of an apparatus for message notification according to the present application;
FIG. 4 is a schematic structural diagram of one embodiment of a computer device according to the present application.
Reference numerals: 200. a computer device; 201. a memory; 202. a processor; 203. a network interface; 300. means for message notification; 301. a selection module; 302. an acquisition module; 303. and a transmitting module.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the applications herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having" and any variations thereof in the description and claims of the present application and in the description of the figures above are intended to cover non-exclusive inclusions. The terms first, second and the like in the description and in the claims or in the above-described figures, are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order to better understand the technical solutions of the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as a web browser application, a shopping class application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablet computers, electronic book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic video expert compression standard audio plane 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic video expert compression standard audio plane 4) players, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that, the method for notifying the message provided in the embodiments of the present application is generally executed by the server/terminal device, and accordingly, the device for notifying the message is generally disposed in the server/terminal device.
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.
With continued reference to fig. 2, a flow chart of one embodiment of a method of message notification according to the present application is shown. The message notification method comprises the following steps:
s1: selecting a corresponding message notification component and a message template component, and extracting a word segment to be filled of the message template component as a variable to be acquired, wherein the message notification component and the message template component are in one-to-many relation;
s2: acquiring a variable value corresponding to the variable to be acquired from a database, and filling the variable value into the message template component to acquire a message to be transmitted;
s3: and sending the message to be sent to a corresponding receiver according to the message notification component.
In this embodiment, the main function of RPA (robot process automation, robotic Process Automation) is to interact the work information with the service through the robot to execute according to the process designed in advance. Therefore, if the interaction between the working information and the service is excessive, the RPA can efficiently solve the complex processes, and the labor cost is saved. The RPA mainly enables a user to generate an automatic flow by utilizing a drag control and simple operation through various packaged controls, and realizes automatic mouse clicking, keyboard input, excel operation, data processing, timing execution and automatic interface interaction generation of a browser application program on a computer. The present application relates to the manner in which messages are notified in an RPA.
According to the method, based on the pre-built RPA cloud platform, in the process automation application program of the RPA cloud platform, a message notification component is called in a design center of the RPA cloud platform, message notification content and receivers are set through the message notification component, and flexible configuration is carried out according to different service scenes. Specific:
message notification components are used in the process automation design process, such as: and setting the attribute value of the message notification component as a modifiable parameter, wherein the parameter can configure a parameter default value, the attribute value comprises a receiver, a sender, a background diagram, a sender display name and the like of the message, and the corresponding receiver of the message can be set according to different users. In the execution process of the message notification component, the parameters corresponding to the attributes of the message notification component are read first, and then the default values of the parameters are read. When the process automation application program runs, the process automation application program interacts with the page function according to the set message notification component, attribute, parameter and parameter value to run the automation process.
According to the configuration method for the message notification component, in the process of designing the robot automatically in the RPA cloud platform design center flow, a result report of feedback executed by the robot is sent to a user through a message notification. And reading configuration information of the message notification type component in the process of executing the component, and sending a robot execution result report through a corresponding message notification application. Therefore, the functional device for notifying the feedback robot of the execution result report by using the message flexibly according to the actual service environment and service scene of the user is realized.
The present application provides various message notification components for configuring message notifications in an RPA process. The message notification component comprises a home APP message component, a mailbox message component, a WeChat public number message component, a short message component and a QQ message component. Each message notification component corresponds to a message notification mode which comprises five message notification classifications including a home app message notification, a mailbox message notification, a WeChat public number message notification, a short message notification and a QQ message notification.
For automatic sending of a short message notification, the application uses a short message component in the RPA process, wherein the short message component corresponds to a text message component of a short message and a card message component of the short message; and generating a message to be sent through a text message component of the short message or a card message component of the short message.
It should be noted that, in practical application, the message notification manner may be extended according to the needs of the user.
Taking an approval process as an example, the to-be-filled word segments of the message template component comprise an approval total number, an approval success number, an approval failure number, a transmission total number, a transmission success number, a transmission failure number and the like; according to the method and the device, the message to be sent is sent to the corresponding receiver according to the message notification component, so that the execution condition and the execution result of the RPA can be fed back to the user in real time in the automatic execution process. And the execution result supporting the same RPA is fed back to a plurality of users or different users simultaneously.
The message notification component and the message template component are in a one-to-many relationship; that is, one message notification component corresponds to a plurality of message template components, specifically: the message template component comprises a text message template component and a card message template component, namely each message notification component corresponds to the text message component and the card message component respectively, for example, a home APP message component corresponds to the text message component of a home and the card message component of the home; the mailbox message assembly corresponds to a text message assembly of a mailbox and a card message assembly of the mailbox; the micro-letter public number message component corresponds to a text message component of the micro-letter public number and a card message component of the micro-letter public number; the short message component corresponds to a text message component of a short message and a card message component of the short message; the QQ message component corresponds to a text message component of the QQ and a card message component of the QQ. The message template component is a predefined template of message notification and is used for quickly generating a message to be sent.
As an option of the present application, the step of selecting the corresponding message notification component and message template component includes:
and receiving a selection instruction, and determining a corresponding message notification component and a message template component according to the selection instruction, wherein the selection instruction comprises the message notification component selected by a user and the message template component selected by the user.
In this embodiment, the user selects different message notification components and message template components, and the user may drag the different message notification components at the design center. For example, the user drags the home APP message component, and sets information such as ID, PC-side address, interface key, access address, robot identifier, card title, card content, mobile-side address, sender mailbox address, etc. of APP in the home APP message component.
In this embodiment, the electronic device (e.g., the server/terminal device shown in fig. 1) on which the message notification method operates may receive the selection instruction through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection may include, but is not limited to, 3G/4G connections, wiFi connections, bluetooth connections, wiMAX connections, zigbee connections, UWB (ultra wideband) connections, and other now known or later developed wireless connection means.
As an option of the present application, the step of selecting the corresponding message notification component and message template component includes:
and selecting the corresponding message notification component and message template component according to the pre-configured specified message notification component and specified message template component.
In this embodiment, the specified message notification component and the specified message template component may be preconfigured, and when the notification message needs to be sent, the corresponding message notification component and message template component are directly selected according to the preconfiguration. The method is convenient for quick selection of the computer, saves flow time and improves efficiency.
As an optional aspect of the application, the step of sending the message to be sent to the corresponding receiver according to the message notification component includes:
calling a corresponding message sending interface according to the message notification component;
and sending the message to be sent to a corresponding receiver through the message sending interface.
In this embodiment, different message notification components invoke corresponding message sending interfaces; the message sending interface comprises a home app interface, a mailbox interface, a WeChat public number interface, a short message interface and a QQ interface; for example, the short message component sends the message to be sent to the corresponding receiver by calling the short message interface, so as to realize the sending function of the message.
As an optional aspect of the application, the step of sending the message to be sent to the corresponding receiver according to the message notification component includes:
determining account information of a corresponding receiver according to the receiver ID and the message notification component;
and sending the message to be sent to a corresponding receiver according to the account information.
In this embodiment, according to the recipient ID and the message notification component, account information of the recipient is determined, for example, the recipient ID is Zhang Gong, the message notification component is a QQ message component, and the determined account information of the corresponding recipient belongs to a QQ class and is a QQ account of Zhang Gong. The message to be sent is sent to the corresponding recipient (i.e., zhang Gong) according to the QQ account of Zhang Gong. If the message notification component is a home APP message component, determining a home account number of Zhang Gong, and using a message assistant of the home APP to send the message to be sent to the home account number of the sender, so as to send the message to the corresponding receiver. If the message notification component is a WeChat public number message component, the message to be sent is sent to Zhang Gong via the WeChat public number.
In addition, if a mailbox message component is used, a mailbox server may be preset in the mailbox message component: smtp.ygsoft.com, mail account: pengbang@ygsoft.com mailbox password:, whether SSL is enabled: yes, port: 465. mail subject, mail attachment, mail content, addressee, copy person, secret sender, etc., where multiple addressees, copy person, secret sender can pass through; and (5) separating. The present application supports a variety of mailbox servers including a high beam mailbox, 163 mailbox, 126 mailbox, 139 mailbox, QQ mailbox, and the like.
Wherein, the step of determining account information of the corresponding receiver according to the receiver ID and the message notification component includes:
based on the receiver ID, determining each piece of alternative account information corresponding to the receiver ID from a database;
identifying the type of the message notification component as a target type;
and taking the alternative account information with the type being the target type as the account information of the receiver.
In this embodiment, according to the recipient ID, corresponding alternative account information is determined, for example: zhang Gong, zhang Gong, zhang Gong, etc. The type of message notification component is determined, for example, the target type is a mailbox. And further takes the mail address of Zhang Gong with the mail type as account information of the receiver. The corresponding candidate account information is rapidly determined through the ID of the receiver, so that the account information of the receiver with the corresponding type can be accurately determined according to the target type, and the type of the message notification component is ensured to be completely consistent with the type of the account information of the receiver; the condition that the message to be sent is displayed in the front-end page of the receiver in disorder due to inconsistent types is prevented.
Optionally, before the step of selecting the corresponding message notification component and the message template component, the method further includes:
circularly reading to-be-handled list data, and processing the data in the to-be-handled list data;
after the processing operation is completed, the corresponding message notification component and message template component are selected.
In this embodiment, the application circularly reads the to-be-handled list data, processes (e.g., approves) the data in the to-be-handled list data, and selects a corresponding message notification component and a message template component after the processing is completed; specifically, take an automatic flow of the intelligent approval robot as an example: the business scene user of the intelligent approval robot needs to open a browser, input an access address of a financial system in the browser, input a user name, a password, a unit name, click login and enter the financial system on a login page; the intelligent approval robot acquires to-be-approved list data of a current login user through a to-be-approved interface, circularly reads the to-be-approved list data, invokes an auditing rule of a knowledge graph, automatically approves each piece of to-be-approved batch data in the to-be-approved list data, transfers or retreats each piece of to-be-approved batch data in the to-be-approved list data, and records the total number of documents (to-be-approved batch data), the transfer success number (to-be-approved passing), the retreated (to-be-approved failing) and the unprocessed (to-be-approved failing) data in a variable mode. After the approval is completed, the total number of the approved documents, the approval success number, the approval failure number and the reasons of the approval failure are fed back to the user through the message notification component and the message template component of the application, and the user is notified of the approval total number, the approval success number, the approval failure number and the like of the documents.
In addition, before the step of selecting the corresponding message notification component and the message template component, the method further includes:
circularly monitoring to-be-handled list data, and judging whether the to-be-handled list data is changed or not;
and if the to-Do list data is changed, selecting a corresponding message notification component and a message template component.
In this embodiment, the present application circularly monitors to-Do list data, and if some data in the to-Do list data is actively deleted or modified by a user, thereby causing the to-Do list data to be changed, then selects a corresponding message notification component and message template component. Specifically, the specific process of monitoring is: and circularly acquiring to-be-handled list data according to a preset time interval, comparing the currently acquired to-be-handled list data with the to-be-handled list data acquired last time, if the data are completely the same, determining that the to-be-handled list data are unchanged, continuing to monitor, and if the data are different, determining that the to-be-handled list data are changed.
Optionally, after the step of selecting the corresponding message notification component and the message template component, the method further includes:
selecting a default message template component name or a custom message template component name from the message template components;
when the default message template component name is selected, acquiring a default message template component corresponding to the default message template component name according to a preset path, and taking the default message template component as a target message template component;
when the name of the customized message template component is selected, an HTML template written by a user is received and used as a target message template component;
the step of filling the variable value into the message template component to obtain the message to be sent comprises the following steps:
and filling the variable value into the target message template component to obtain a message to be sent.
In this embodiment, the selection of the custom message template component or the default message template component from the message template components may be selected according to a pre-received instruction or selected according to a pre-configuration. The message template component has an HTML template attribute, and the drop-down option is provided in the attribute to select a customized message template component and a default message template component, namely the message template component comprises the customized message template component and the default message template component. And the default message template component can be extended according to user requirements. The default message notification template is saved in the \YG-RPA\studio\MailTemplate path. And calling a default message template component according to the preset path. In the case of selecting the default message template component, the template file of the \YG-RPA\studio\MailTemplate path is automatically read to send the message. In the case of selecting a custom message template component, the HTML template in the calling code component is read in support of using the calling code to send a message notification.
The self-defined message template component is a code component called by a design center, and the self-defined message notification template is defined by using an HTML language, and the self-defined message notification template component is specifically: the user writes the HTML template in the invoked code component, references the variable in the HTML template, and the computer can automatically read the value stored in the variable in the process of sending the message notification, and dynamically sends the message. And storing the written HTML template into a database to serve as a message template component.
The beneficial effects of this application: the message notification component and the message template component are used for generating the message to be sent, and the message notification component sends the message to be sent to the receiver in a mode of various message notifications. The message to be sent can be generated in the process of using the message notification group, the receiver of the message is set, and the generated message to be sent is directly sent to the receiver by calling the message sending interface in the operation process of the message notification group, so that the sending efficiency of the message notification is effectively improved, and the efficient and convenient automatic sending of the message notification is realized.
And the feedback of the message notification result of the automatic flow is displayed in a message notification mode, so that the robot execution result is conveniently fed back to a user in real time in the automatic flow. And various message notification modes are supported, so that efficient and convenient automatic flow configuration is realized.
Those skilled in the art will appreciate that implementing all or part of the processes of the methods of the embodiments described above may be accomplished by way of computer readable instructions, stored on a computer readable storage medium, which when executed may comprise processes of embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (Random Access Memory, RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
With further reference to fig. 3, as an implementation of the method shown in fig. 2, the present application provides an embodiment of an apparatus for message notification, where an embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 3, the apparatus 300 for message notification according to the present embodiment includes: a selection module 301, an acquisition module 302 and a transmission module 303. Wherein: a selecting module 301, configured to select a corresponding message notification component and a message template component, and extract a word segment to be filled of the message template component as a variable to be acquired, where the message notification component and the message template component are in a one-to-many relationship; the obtaining module 302 is configured to obtain a value corresponding to the variable to be obtained from a database, and fill the variable value into the message template component to obtain a message to be sent; and the sending module 303 is configured to send the message to be sent to a corresponding receiver according to the message notification component.
In this embodiment, the message notification component and the message template component are used to generate a message to be sent, and the notification message notification component sends the message to be sent to the receiver in a plurality of message notification manners. The message to be sent can be generated in the process of using the message notification group, the receiver of the message is set, and the generated message to be sent is directly sent to the receiver by calling the message sending interface in the operation process of the message notification group, so that the sending efficiency of the message notification is effectively improved, and the efficient and convenient automatic sending of the message notification is realized.
In some optional implementations of this embodiment, the selecting module 301 is further configured to: and receiving a selection instruction, and determining a corresponding message notification component and a message template component according to the selection instruction, wherein the selection instruction comprises the message notification component selected by a user and the message template component selected by the user.
In some optional implementations of this embodiment, the selecting module 301 is further configured to: and selecting the corresponding message notification component and message template component according to the pre-configured specified message notification component and specified message template component.
The sending module 303 includes a calling sub-module and a first sending sub-module, where the calling sub-module is configured to call a corresponding message sending interface according to the message notification component; the first sending sub-module is used for sending the message to be sent to a corresponding receiver through the message sending interface.
The sending module 303 further includes a determining submodule and a second sending submodule, where the determining submodule is configured to determine account information of a corresponding receiver according to the receiver ID and the message notification component; the second sending sub-module is used for sending the message to be sent to a corresponding receiver according to the account information.
The determination submodule further comprises a first determination unit, an identification unit and a second determination unit, wherein the first determination unit is used for determining each piece of alternative account information corresponding to the receiver ID from a database based on the receiver ID; the identification unit is used for identifying the type of the message notification component as a target type; the second determining unit is used for taking the alternative account information with the type of the target type as the account information of the receiver.
In some optional implementations of this embodiment, the apparatus 300 further includes: the circulation module is used for circularly reading the to-be-handled list data, processing the data in the to-be-handled list data, and selecting a corresponding message notification component and a message template component after the processing operation is completed.
The circulation module is further used for circularly monitoring to-be-handled list data, judging whether the to-be-handled list data are changed, and if the to-be-handled list data are changed, selecting a corresponding message notification component and a message template component.
In some optional implementations of this embodiment, the apparatus 300 further includes: the system comprises a name selection module, a default module and a custom module, wherein the name selection module is used for selecting a default message template component name or a custom message template component name from the message template components; the default module is used for acquiring a default message template component corresponding to the default message template component name according to a preset path when the default message template component name is selected, and taking the default message template component as a target message template component; the custom module is used for receiving an HTML template written by a user as a target message template component when the custom message template component name is selected; the obtaining module 302 is further configured to fill the variable value into the target message template component to obtain a message to be sent.
The message notification component and the message template component are used for generating the message to be sent, and the message notification component sends the message to be sent to the receiver in a mode of various message notifications. The message to be sent can be generated in the process of using the message notification group, the receiver of the message is set, and the generated message to be sent is directly sent to the receiver by calling the message sending interface in the operation process of the message notification group, so that the sending efficiency of the message notification is effectively improved, and the efficient and convenient automatic sending of the message notification is realized.
In order to solve the technical problems, the embodiment of the application also provides computer equipment. Referring specifically to fig. 4, fig. 4 is a basic structural block diagram of a computer device according to the present embodiment.
The computer device 200 includes a memory 201, a processor 202, and a network interface 203 communicatively coupled to each other via a system bus. It should be noted that only computer device 200 having components 201-203 is shown in the figures, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead. It will be appreciated by those skilled in the art that the computer device herein is a device capable of automatically performing numerical calculations and/or information processing in accordance with predetermined or stored instructions, the hardware of which includes, but is not limited to, microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASICs), programmable gate arrays (fields-Programmable Gate Array, FPGAs), digital processors (Digital Signal Processor, DSPs), embedded devices, etc.
The computer equipment can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The computer equipment can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or voice control equipment and the like.
The memory 201 includes at least one type of readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the storage 201 may be an internal storage unit of the computer device 200, such as a hard disk or a memory of the computer device 200. In other embodiments, the memory 201 may also be an external storage device of the computer device 200, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the computer device 200. Of course, the memory 201 may also include both internal storage units of the computer device 200 and external storage devices. In this embodiment, the memory 201 is typically used to store an operating system and various application software installed on the computer device 200, such as computer readable instructions of a method for notifying messages. In addition, the memory 201 may be used to temporarily store various types of data that have been output or are to be output.
The processor 202 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 202 is generally used to control the overall operation of the computer device 200. In this embodiment, the processor 202 is configured to execute computer readable instructions stored in the memory 201 or process data, such as computer readable instructions for executing the method of message notification.
The network interface 203 may comprise a wireless network interface or a wired network interface, which network interface 203 is typically used to establish communication connections between the computer device 200 and other electronic devices.
The present application also provides another embodiment, namely, a computer-readable storage medium storing computer-readable instructions executable by at least one processor to cause the at least one processor to perform the steps of a method of message notification as described above.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
It is apparent that the embodiments described above are only some embodiments of the present application, but not all embodiments, the preferred embodiments of the present application are given in the drawings, but not limiting the patent scope of the present application. This application may be embodied in many different forms, but rather, embodiments are provided in order to provide a more thorough understanding of the present disclosure. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing, or equivalents may be substituted for elements thereof. All equivalent structures made by the specification and the drawings of the application are directly or indirectly applied to other related technical fields, and are also within the protection scope of the application.

Claims (10)

1. A method of message notification, comprising the steps of:
selecting a corresponding message notification component and a message template component, and extracting a word segment to be filled of the message template component as a variable to be acquired, wherein the message notification component and the message template component are in one-to-many relation;
acquiring a variable value corresponding to the variable to be acquired from a database, and filling the variable value into the message template component to acquire a message to be transmitted;
and sending the message to be sent to a corresponding receiver according to the message notification component.
2. The method of messaging according to claim 1, wherein the step of sending the message to be sent to the corresponding recipient according to the messaging component comprises:
calling a corresponding message sending interface according to the message notification component;
and sending the message to be sent to a corresponding receiver through the message sending interface.
3. The method of messaging according to claim 1, wherein the step of sending the message to be sent to the corresponding recipient according to the messaging component comprises:
determining account information of a corresponding receiver according to the receiver ID and the message notification component;
and sending the message to be sent to a corresponding receiver based on the account information.
4. A method of messaging according to claim 3 wherein the step of determining account information of the corresponding recipient based on the recipient ID and the messaging component comprises:
based on the receiver ID, determining each piece of alternative account information corresponding to the receiver ID from a database;
identifying the type of the message notification component as a target type;
and taking the alternative account information with the type being the target type as the account information of the receiver.
5. The method of messaging according to claim 1, wherein the step of selecting the corresponding messaging component and messaging template component comprises:
selecting a corresponding message notification component and a message template component according to a pre-configured designated message notification component and a designated message template component; or alternatively, the process may be performed,
and receiving a selection instruction, and determining a corresponding message notification component and a message template component according to the selection instruction.
6. The method of messaging according to claim 1, further comprising, prior to the step of selecting the corresponding messaging component and message template component:
circularly monitoring to-be-handled list data, judging whether the to-be-handled list data is changed, and if the to-be-handled list data is changed, selecting a corresponding message notification component and a message template component; or alternatively
And circularly reading the to-be-handled list data, processing the data in the to-be-handled list data, and selecting a corresponding message notification component and a message template component after the processing operation is completed.
7. The method of messaging according to claim 1, further comprising, after the step of selecting the corresponding messaging component and message template component:
selecting a default message template component name or a custom message template component name from the message template components;
when the default message template component name is selected, acquiring a default message template component corresponding to the default message template component name according to a preset path, and taking the default message template component as a target message template component;
when the name of the customized message template component is selected, an HTML template written by a user is received and used as a target message template component;
the step of filling the variable value into the message template component to obtain the message to be sent comprises the following steps:
and filling the variable value into the target message template component to obtain a message to be sent.
8. An apparatus for message notification, comprising:
the selection module is used for selecting a corresponding message notification component and a message template component, extracting a word segment to be filled of the message template component as a variable to be acquired, wherein the message notification component and the message template component are in one-to-many relation;
the acquisition module is used for acquiring a variable value corresponding to the variable to be acquired from a database, filling the variable value into the message template component and acquiring a message to be transmitted;
and the sending module is used for sending the message to be sent to the corresponding receiver according to the message notification component.
9. A computer device comprising a memory having stored therein computer readable instructions which when executed implement the steps of the method of message notification of any of claims 1 to 7.
10. A computer readable storage medium having stored thereon computer readable instructions which when executed by a processor implement the steps of the method of message notification according to any of claims 1 to 7.
CN202310108758.6A 2023-02-10 2023-02-10 Method, device, computer equipment and storage medium for notifying message Pending CN116112457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310108758.6A CN116112457A (en) 2023-02-10 2023-02-10 Method, device, computer equipment and storage medium for notifying message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310108758.6A CN116112457A (en) 2023-02-10 2023-02-10 Method, device, computer equipment and storage medium for notifying message

Publications (1)

Publication Number Publication Date
CN116112457A true CN116112457A (en) 2023-05-12

Family

ID=86261335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310108758.6A Pending CN116112457A (en) 2023-02-10 2023-02-10 Method, device, computer equipment and storage medium for notifying message

Country Status (1)

Country Link
CN (1) CN116112457A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116545977A (en) * 2023-06-06 2023-08-04 北京联客触点智能科技有限公司 RPA operation interaction method based on enterprise micro customization

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116545977A (en) * 2023-06-06 2023-08-04 北京联客触点智能科技有限公司 RPA operation interaction method based on enterprise micro customization
CN116545977B (en) * 2023-06-06 2024-03-12 北京联客触点智能科技有限公司 RPA operation interaction method based on enterprise micro customization

Similar Documents

Publication Publication Date Title
EP3552376B1 (en) Card-based information management method and system
CN113382083B (en) Webpage screenshot method and device
CN111782304B (en) Paging loading data logic control method, device, computer equipment and medium
CN112732386A (en) Message processing method, device, terminal and storage medium
US10506392B1 (en) Stream-processing of telecommunication diameter event records
CN116112457A (en) Method, device, computer equipment and storage medium for notifying message
CN116974927A (en) Performance automatic test method, system, computer equipment and storage medium
CN106095886B (en) Data processing method and device
CN116661936A (en) Page data processing method and device, computer equipment and storage medium
EP3713183A1 (en) Network interaction method, electronic device, client, and server
CN112016280B (en) File editing method and device and computer readable medium
CN108011964A (en) Picture upload method, device, electric terminal and readable storage medium storing program for executing
CN110457089B (en) Data acquisition method, data acquisition device, computer readable storage medium and computer equipment
CN107704491B (en) Message processing method and device
CN113779122A (en) Method and apparatus for exporting data
CN112347382A (en) Product page sharing method and device and electronic equipment
CN111880698A (en) Information processing method and device of intelligent terminal, electronic equipment and storage medium
CN113934477A (en) Theme rendering method and device, electronic equipment and computer-readable storage medium
CN116304431A (en) Webpage automation method and device, computer equipment and storage medium
CN116467145A (en) Page performance data acquisition method and device, computer equipment and storage medium
CN117111957A (en) Code generation method, device, computer equipment and storage medium
CN116894736A (en) Mail management method, device, computer equipment and storage medium
CN116303486A (en) Front-end operation interception processing method and device, computer equipment and storage medium
CN116431913A (en) Intelligent recommendation method, device and equipment for vehicle owner service push text and storage medium thereof
WO2024069470A1 (en) Systems and methods for automatic and selective remote mobile device data extraction

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