Actions16
- ZNS Message Actions
- ZNS Template Actions
- ZNS Info Actions
ZNS Template → Create Template
AI-generatedOverview
This node integrates with the Zalo Notification Service (ZNS) API to manage ZNS templates. Specifically, the 'Create Template' operation allows users to create new message templates for Zalo notifications. This is useful for businesses that want to automate and standardize their communication via Zalo, such as sending OTPs, transaction confirmations, order updates, account updates, or general information messages. For example, a company can create a text or rich template with predefined layout and parameters to send consistent notifications to customers.
Use Case Examples
- Creating an OTP text template with a specific layout and parameters to send verification codes to users.
- Creating a rich template for order updates that includes formatted text and images to enhance customer communication.
Properties
| Name | Meaning |
|---|---|
| Template Name | The name of the template to be created, used for identification. |
| Template Type | The type of the template, either Text Template (1) or Rich Template (2). |
| Tag | The classification label for the template, indicating its purpose such as OTP, Transaction Confirmation, etc. |
| Layout | The JSON structure defining the layout of the template, including header, body, and footer components. |
| Parameters | A JSON list of parameters used in the template, specifying their type, name, and sample value. |
| Note | An optional note for review or approval purposes. |
| Tracking ID | An optional tracking identifier for the template. |
Output
JSON
json- The response from the Zalo ZNS API after creating the template, containing details of the created template or error information.
Dependencies
- Zalo OA API Credential for authentication with the Zalo Notification Service API
Troubleshooting
- Common issues include invalid or missing credentials, resulting in authentication errors.
- Incorrect JSON format in the 'Layout' or 'Parameters' fields can cause API request failures.
- Using unsupported template types or tags may lead to errors from the Zalo API.
Links
- Zalo Notification Service API Documentation - Official documentation for Zalo's Notification Service API, including template management.