CN108989189A - A kind of information push method based on wechat enterprise - Google Patents

A kind of information push method based on wechat enterprise Download PDF

Info

Publication number
CN108989189A
CN108989189A CN201810886043.2A CN201810886043A CN108989189A CN 108989189 A CN108989189 A CN 108989189A CN 201810886043 A CN201810886043 A CN 201810886043A CN 108989189 A CN108989189 A CN 108989189A
Authority
CN
China
Prior art keywords
message
wechat enterprise
information
method based
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810886043.2A
Other languages
Chinese (zh)
Other versions
CN108989189B (en
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201810886043.2A priority Critical patent/CN108989189B/en
Publication of CN108989189A publication Critical patent/CN108989189A/en
Application granted granted Critical
Publication of CN108989189B publication Critical patent/CN108989189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • 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/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • 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
    • 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/063Content adaptation, e.g. replacement of unsuitable content

Abstract

The invention discloses a kind of information push methods based on wechat enterprise, comprising the following steps: creating message template, the trigger condition for setting message, meeting trigger condition, corresponding message is then sent a message into client automatically, wechat enterprise calling interface sends message, client receives message, and returns to reception state feedback information.Information push method based on wechat enterprise of the invention may be implemented the push of automatic trigger message, and can send different message contents to different human hairs.

Description

A kind of information push method based on wechat enterprise
Technical field
The present invention relates to message push technology field, in particular to a kind of information push method based on wechat enterprise.
Background technique
With popularizing for wechat public platform, wechat enterprise number is also had been to be concerned by more and more people.And Tencent is micro- Further upgrading has been carried out again on the basis of letter enterprise number, has provided the wechat enterprise of similar wechat function, wechat enterprise mentions It has supplied API, the administrators such as address list synchronization, application management, message push that these API can be used, has accessed more for enterprise The office application of property.
However, the message push function that wechat enterprise provides, can only manually send message, and can only also mass-send in identical The message of appearance, this, which sends message, becomes a thing spent human and material resources.How automatic push message to be realized, and how Different message is pushed as our problems to be solved to different people.
Summary of the invention
It is insufficient in above-mentioned background technique the purpose of the present invention is overcoming, a kind of message push side based on wechat enterprise is provided Method may be implemented the push of automatic trigger message, and can send different message contents to different human hairs.
In order to reach above-mentioned technical effect, the present invention takes following technical scheme:
A kind of information push method based on wechat enterprise, comprising the following steps:
A. message template is created;
B. the trigger condition of message is set;
C. meet trigger condition, then corresponding message is sent a message into client automatically;
D. wechat enterprise calling interface sends message;
E. client receives message, and returns to reception state feedback information.
Information push method based on wechat enterprise of the invention is mainly by sending platform interface to wechat enterprise message Secondary encapsulation is carried out, provides unified interface, while setting subscriber management function and message transmission management function in management backstage, The template or self-defined message transmission content for selecting the personnel for needing to send and selection message to send by manager, and by Platform calls transmission of the interface of encapsulation to being customized of message, to realize the push of automatic trigger message, and can Different message contents is sent to different human hairs.
Further, when creating message template in the step A, the type of message of the message, the message should also be selected Type includes at least event trigger type and timing push-type.
Further, it if selected type of message is event trigger type in the step A, sets and disappears in step B A behavior is specifically first set when the trigger condition of breath as triggering behavior, and trigger condition is touched when the triggering behavior does not occur Photos and sending messages are sent;If setting message in step B if selected type of message is timing push-type in the step A It is specifically the setting triggered time when trigger condition and concurrently sets information reception staff.
Further, the step D comprising the following steps:
D1. the application that a transmission message is created in wechat enterprise management backstage, will obtain the application after creating successfully Two parameter AgentId parameters and secret parameter;
D2. it according to fixation ID, that is, CorpID of the secret parameter and the wechat enterprise number, sends to obtain to server The request of access_token, and receive the access_token of server return;
D3. wechat enterprise message transmission interface is requested, access_token is taken in request path and sends it simultaneously His satellite information.
Further, also need to set this in the step D1 while creation sends the application of message using visible right As.
Further, satellite information described in the step D3 includes type of message, the AgentId of application, reception message User ID and/or send message content.
Further, the reception state feedback information in the step E includes that message sends the anti-of success or failure Feedforward information, and also include the user for receiving information failure when reception state feedback information is the feedback information of message transmission failure ID。
Compared with prior art, the present invention have it is below the utility model has the advantages that
Information push method based on wechat enterprise of the invention is mainly by sending platform interface to wechat enterprise message Secondary encapsulation is carried out, provides unified interface, while setting subscriber management function and message transmission management function in management backstage, The template or self-defined message transmission content for selecting the personnel for needing to send and selection message to send by manager, and by Platform calls transmission of the interface of encapsulation to being customized of message, to realize the push of automatic trigger message, and can Different message contents is sent to different human hairs, finally realizes the function that the message of the automation based on wechat enterprise is sent, And have the function of that self-timing pushes corresponding message to user.
Detailed description of the invention
Fig. 1 is the flow diagram of the information push method based on wechat enterprise of one embodiment of the present of invention.
Fig. 2 is when specifically sending message in the information push method based on wechat enterprise of one embodiment of the present of invention Flow diagram.
Specific embodiment
Below with reference to the embodiment of the present invention, the invention will be further elaborated.
Embodiment:
Embodiment one:
As shown in Figure 1, a kind of information push method based on wechat enterprise, comprising the following steps:
Step S1: message template is created in system management platform;
Step S2: the condition for selecting the message template to be triggered during drawing template establishment, one kind are time trigger, i.e., When reaching some time point just automatic trigger;Second is event triggering, i.e., will send out to client after some behavior execution Send message.
Step S3: after the transmission condition of the message meets, message transmission interface will be called, sends message.
Step S4: wechat enterprise provides the corresponding interface to call and send a message to wechat enterprise client.
Step S5: message reaches wechat enterprise client, and returns and send as a result, the letter comprising sending success or failure Breath, sends the id of the user of failure.
As shown in Fig. 2, specifically including following sub-step in step S4.
Step 101, the application that a transmission message is created in wechat enterprise management backstage, will obtain this and answer after creating successfully Two parameters AgentId and secret can choose this using visible object during creation, if in exploitation rank Section is generally visible to developer.It can modify later to the configuration, allow and more receive message.
Step 102, request obtains access_token, sends request and needs two parameters of band, one is the wechat enterprise Number fixed CorpID, the other is the secret that previous step is applied.So the access_token of each application It is not identical, it should be noted that be saved respectively.
Step 103, wechat enterprise message transmission interface is requested, access_token is taken in request path and sends phase Information, such as type of message are closed, the AgentId of application receives the id of the user of message, sends content of message etc..
Specifically, in a step 101, it is necessary first to log in customized the answering that business administration backstage creates a message transmission With creating the personnel that can choose visible personnel during the application, and only selected just it can be seen that the application And receive the message of application transmission.
Specifically in a step 102, server return can be obtained after the application in step 101 creates successfully Two parameters of AgentId and Secret, need request access_token parameter, and in request access_ at this time When token parameter need two parameters, one be the application Secret, one is the unique CorpID of the wechat enterprise.
When needing to send message to user, then a post request need to be only sent, specifically joins access_token Number is placed in url request path, and the list of type of message, enterprise's application ID, message content, member's id information is packaged into Json is sent.The interface of transmission corresponding encapsulation has been subjected to successfully in this way.
Specifically, having in message transmission system used in the information push method of the invention based on wechat enterprise Body includes two modules of line module and message template module, and message is specifically divided into two types, the first is event touching Type is sent out, second is to regularly send type.
The main application scenarios of the first event trigger type are as being when setting distributes some task to related personnel Trigger event can send mission bit stream to related personnel automatically then after task is allocated successfully;
It regularly sends type then second and can be used for timing and send red-letter day blessing message to the staff, such as set a certain section Time of Day is the triggered time, and the personnel that message is received when the trigger event are the staff, then when reaching the time in red-letter day Blessing message can periodically be pushed to the staff.
Specifically in operation, it is necessary first to input message content and be specifically chosen type of message, if regularly sending type Selection sending time and reception staff's information are then also needed, it can timing pushed information after determining.If type of message is event triggering Type then selects trigger event in process, then after the event executes or occurs, that is, calls message transmission interface, automatic to corresponding Personnel send this information.
From the foregoing, it will be observed that the information push method based on wechat enterprise through the invention is mainly by wechat enterprise message It sends platform interface and carries out secondary encapsulation, provide unified interface, while setting subscriber management function and message in management backstage Management function is sent, the template or self-defined message for selecting the personnel for needing to send and selection message to send by manager Content is sent, and transmission of the interface of encapsulation to being customized of message is called by platform, to realize automatic trigger message Push, and different message contents can be sent to different human hairs, finally realize disappearing for the automation based on wechat enterprise The function of sending is ceased, and has the function of that self-timing pushes corresponding message to user.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.

Claims (7)

1. a kind of information push method based on wechat enterprise, which is characterized in that comprising the following steps:
A. message template is created;
B. the trigger condition of message is set;
C. meet trigger condition, then corresponding message is sent a message into client automatically;
D. wechat enterprise calling interface sends message;
E. client receives message, and returns to reception state feedback information.
2. a kind of information push method based on wechat enterprise according to claim 1, which is characterized in that the step A When middle creation message template, should also select the type of message of the message, the type of message include at least event trigger type and Timing push-type.
3. a kind of information push method based on wechat enterprise according to claim 2, which is characterized in that the step A If selected type of message is event trigger type in, is specifically first set when setting the trigger condition of message in step B One behavior is triggering behavior, and trigger condition is that triggering information is sent when the triggering behavior occurs;If if in the step A Selected type of message is timing push-type, then when being specifically setting triggering when setting the trigger condition of message in step B Between and concurrently set information reception staff.
4. a kind of information push method based on wechat enterprise according to claim 3, which is characterized in that the step D Comprising the following steps:
D1. the application that a transmission message is created in wechat enterprise management backstage, will obtain two of the application after creating successfully Parameter AgentId parameter and secret parameter;
D2. it according to fixation ID, that is, CorpID of the secret parameter and the wechat enterprise number, sends to obtain to server The request of access_token parameter, and receive the access_token parameter of server return;
D3. wechat enterprise message transmission interface is requested, access_token parameter is taken in request path and sends it simultaneously His satellite information.
5. a kind of information push method based on wechat enterprise according to claim 4, which is characterized in that the step D1 In also need to set this while creation sends the application of message using visible object.
6. a kind of information push method based on wechat enterprise according to claim 4, which is characterized in that the step D3 Described in satellite information include type of message, application AgentId, receive message user ID and/or send message it is interior Hold.
7. according to claim 1 to any a kind of information push method based on wechat enterprise in 6, which is characterized in that The reception state feedback information in the step E includes the feedback information that message sends success or failure, and is receiving shape It also includes the User ID for receiving information failure that state feedback information, which is when message sends the feedback information to fail,.
CN201810886043.2A 2018-08-06 2018-08-06 Message pushing method based on enterprise WeChat Active CN108989189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810886043.2A CN108989189B (en) 2018-08-06 2018-08-06 Message pushing method based on enterprise WeChat

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810886043.2A CN108989189B (en) 2018-08-06 2018-08-06 Message pushing method based on enterprise WeChat

Publications (2)

Publication Number Publication Date
CN108989189A true CN108989189A (en) 2018-12-11
CN108989189B CN108989189B (en) 2021-09-28

Family

ID=64554893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810886043.2A Active CN108989189B (en) 2018-08-06 2018-08-06 Message pushing method based on enterprise WeChat

Country Status (1)

Country Link
CN (1) CN108989189B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112653745A (en) * 2020-12-16 2021-04-13 中国建设银行股份有限公司 Configurable message pushing method and device
CN113098758A (en) * 2021-03-29 2021-07-09 河北白沙烟草有限责任公司 Enterprise message pushing security gateway system based on enterprise WeChat
CN113242359A (en) * 2021-04-30 2021-08-10 西安热工研究院有限公司 Method for automatically sending alarm message of power plant based on enterprise WeChat
CN113760147A (en) * 2021-09-08 2021-12-07 深圳腾银信息咨询有限责任公司 Method for sending interactive message
CN114301859A (en) * 2022-01-17 2022-04-08 杭萧钢构股份有限公司 Notification message sending method and device, electronic equipment and medium
CN114338790A (en) * 2021-12-27 2022-04-12 杭州圆规网络科技有限公司 Automatic pushing scheme based on hospital scientific research topic
CN114697283A (en) * 2022-03-08 2022-07-01 深圳腾银信息咨询有限责任公司 Message pushing method and device based on enterprise WeChat community and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150156150A1 (en) * 2013-12-04 2015-06-04 Lett.rs LLC Time Based Personal Communication
CN104954235A (en) * 2015-05-28 2015-09-30 国家电网公司 WeChat platform based interactive intelligent monitoring method for transmission line passage ways
CN104980896A (en) * 2014-04-01 2015-10-14 腾讯科技(深圳)有限公司 Information sending method and device
CN105490839A (en) * 2015-11-25 2016-04-13 山东中创软件商用中间件股份有限公司 Website data security alarming method and device
CN105515941A (en) * 2015-11-25 2016-04-20 郑州威尔克科技股份有限公司 Message and event replying method and system in wechat development mode
CN105959325A (en) * 2016-07-14 2016-09-21 精硕世纪科技(北京)有限公司 Method and system for automatically pushing questionnaire
CN107908680A (en) * 2017-10-26 2018-04-13 平安科技(深圳)有限公司 Management method, electronic device and the computer-readable recording medium of wechat public platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150156150A1 (en) * 2013-12-04 2015-06-04 Lett.rs LLC Time Based Personal Communication
CN104980896A (en) * 2014-04-01 2015-10-14 腾讯科技(深圳)有限公司 Information sending method and device
CN104954235A (en) * 2015-05-28 2015-09-30 国家电网公司 WeChat platform based interactive intelligent monitoring method for transmission line passage ways
CN105490839A (en) * 2015-11-25 2016-04-13 山东中创软件商用中间件股份有限公司 Website data security alarming method and device
CN105515941A (en) * 2015-11-25 2016-04-20 郑州威尔克科技股份有限公司 Message and event replying method and system in wechat development mode
CN105959325A (en) * 2016-07-14 2016-09-21 精硕世纪科技(北京)有限公司 Method and system for automatically pushing questionnaire
CN107908680A (en) * 2017-10-26 2018-04-13 平安科技(深圳)有限公司 Management method, electronic device and the computer-readable recording medium of wechat public platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韦筱泉 等: "一种后台程序向企业微信主动发送消息的方法", 《视听》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112653745A (en) * 2020-12-16 2021-04-13 中国建设银行股份有限公司 Configurable message pushing method and device
CN112653745B (en) * 2020-12-16 2022-08-09 中国建设银行股份有限公司 Configurable message pushing method and device
CN113098758A (en) * 2021-03-29 2021-07-09 河北白沙烟草有限责任公司 Enterprise message pushing security gateway system based on enterprise WeChat
CN113242359A (en) * 2021-04-30 2021-08-10 西安热工研究院有限公司 Method for automatically sending alarm message of power plant based on enterprise WeChat
CN113760147A (en) * 2021-09-08 2021-12-07 深圳腾银信息咨询有限责任公司 Method for sending interactive message
CN114338790A (en) * 2021-12-27 2022-04-12 杭州圆规网络科技有限公司 Automatic pushing scheme based on hospital scientific research topic
CN114301859A (en) * 2022-01-17 2022-04-08 杭萧钢构股份有限公司 Notification message sending method and device, electronic equipment and medium
CN114697283A (en) * 2022-03-08 2022-07-01 深圳腾银信息咨询有限责任公司 Message pushing method and device based on enterprise WeChat community and electronic equipment

Also Published As

Publication number Publication date
CN108989189B (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN108989189A (en) A kind of information push method based on wechat enterprise
CN107431630B (en) Highly scalable, fault-tolerant remote access architecture and method of interfacing therewith
US7702669B2 (en) Synchronization in unified messaging systems
EP2888868B1 (en) Calling an unready terminal
CN109729005B (en) Message processing method and device, computer equipment and storage medium
US9442925B2 (en) Regulated texting solution for mobile devices
CN104410875B (en) Realize the system and method that IPTV boxes end business zero configuration is opened automatically
WO2010027577A1 (en) Content sharing and instant messaging
US11616747B1 (en) Systems and methods for multi-agent messaging
CN106648903A (en) Method and system for calling distributed file system
CN103295069A (en) Public resource appointment-making management system
EP2605460A1 (en) Method, apparatus, and system for transferring file to user of instant message system
US11949669B2 (en) Message authenticated communication sessions
US20210034338A1 (en) Communications Enablement Platform, System, and Method
CN109154968A (en) The system and method for the safety in organizing and efficiently communicated
CN112799970B (en) Test data processing method, device, electronic equipment and medium
US10798047B2 (en) Systems, devices and methods for text message communication
US9729551B1 (en) Virtual mailbox
CN102469042B (en) Chat sessions sends output message and obtains the method and system of output message
CN109669785A (en) Page sharing method, device, server and the storage medium of terminal applies
CN106385516B (en) A kind of method, apparatus and terminal of the transfer of setting business
CN109660379B (en) Network method, system and terminal
CN103379015A (en) Website server and IM client data transmission method, apparatus and system
CN115567596A (en) Cloud service resource deployment method, device, equipment and storage medium
EP3627790B1 (en) Call scenario mode adjustment method, application server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant