# Message Template

Supported for Weixin 6.5.2 version and above

Based on Weixin notification channels, we provide message template capabilities for developers to reach users efficiently, creating a closed service loop and providing better experiences.

  • Template push location: Service notifications
  • Conditions for sending templates: Triggered after the actual user engages in interaction with the page within the Weixin system. For details, see [Conditions for issuing](#Conditions for issuing)
  • Template jump capability: Clicking "View details" can only jump to the various pages of the account that issues the template

# How to Use

# Step 1: Obtain template IDs

There are 2 methods to obtain the template ID:

  1. Obtain the template ID through the message template management API (for details, see [Message template management](#Message template management))
  2. Obtain the template ID through manual configuration on the Weixin Official Accounts Platform

Log in to https://mp.weixin.qq.com to obtain the template. If there is no suitable template, new templates can be requested to be added, and they will be available after approval. For details, see [About template reviews](#About reviews)

# Step 2: For the page's form component, when the property report-submit is true, it can be declared as required to send the message template. Clicking the button and submitting the form at this time allows the user to obtain formId for sending the message template. Or when the user completes payment, it can get prepay_id for sending the message template.
# Step 3: Call the API to issue the message template (for details, see templateMessage.send)

Effect

# Message Template Management

  1. Obtain the Mini Program template library title list
  2. Obtain the keyword library under a certain template title from the template library
  3. Group the templates and add to personal template library in the account
  4. Retrieve the existing template list under the account
  5. Delete certain template under the account

# Conditions for Issuing

# 1. Payment

When the user completes a payment process in the Mini Program, the developer is allowed to push a limited number of message templates to the user within a 7-day period (3 messages can be sent for each payment; this is calculated independently for multiple payments, and they do not affect one another)

# 2. Submitting forms

If the user has carried out the submission of forms within the Mini Program, and the forms are declared as forms that will send the message template, when the developer needs to provide services for the user, the developer is allowed to send a limited number of template information to the user within a 7-day period (1 form submission allows issuing 1 message; calculations for multiple submissions are made independently, and they do not affect one another)

# Description on Reviews

# 1. Title

  • Titles cannot be the same
  • The meaning of the title cannot be too similar
  • The title must be ended with "alert" or "notification"
  • The title cannot contain special symbols, customized words, or any content that is not common in the industry
  • The title must express the specific service scenario
  • The title must not involve content related to marketing, including but not limited to: Notifications oriented towards marketing, such as discount with spending, kickbacks with purchases, merchandise updates, discount coupons, cash vouchers, red packets, member cards, bonus points, and events.

# 2. Keywords

  • No more than one of the same keyword may exist under the same title
  • Under the same title, a keyword may not bear too much similarity to another
  • The keyword cannot contain special symbols, customized words, or any content that is not common in the industry
  • The keyword content sample must match correspondingly with the keyword
  • Keywords cannot be too general, and they must be specific to some degree. For example: a word like "content" is too general, and it will not be approved

# About Violation of Rules

Other than not violating the rules of operation, the following rules must be adhered to. They include, but are not limited to:

  1. Users shall not be maliciously misled into triggering any operation with the intent of issuing templates to users
  2. No malicious harassment is allowed. It shall not issue templates to users that amounts to harassment
  3. No malicious forms of marketing is allowed. It shall not issue templates with the intention of marketing

# About Penalties

Penalties will be meted out correspondingly according to the severity of violations. The general penalty rules are as follows:

  • For the first violation, the violating template will be deleted and a warning will be issued.
  • For the second violation, the API will be suspended for 7 days.
  • For the third violation, the API will be suspended for 30 days.
  • The fourth violation will result in the API being suspended permanently.

Users will be notified of penalty results and reasons through the site's internal notifications