Summary
Yes, you can send media files using WATI template messages! WATI supports various media formats, including images (JPEG, PNG), videos (MP4), and documents (PDF). This guide will walk you through the steps to create and send media-based template messages, including how to send dynamic media using variables.
Instructions
Steps to Send Media Files via WATI Template Messages
1. Upload Your Media File
Before adding media to your template, you need to upload it to a reliable hosting service. We recommend using a paid hosting service to avoid issues such as large file sizes, high hosting costs, or unexpected deletions from free hosts.
2. Create a Template Message
Log in to WATI and navigate to Broadcast > Template Messages.
Click the + New Template Message button to create a new template.
In the template creation form:
Set Header to Media Type.
Select the appropriate media type (Image, Video, or Document).
Enter the URL of the file you uploaded in Step 1.
Fill in the remaining template details as required.
3. Submit and Approve Your Template
Click Save as Draft.
Submit the template for approval.
Wait for approval (this typically takes a few minutes but may take up to 24 hours).
Once approved, you can send this template message to customers!
Sending Dynamic Media Files in Template Messages
If you need to send dynamic media files, you can use variables in the template header field.
Example:
Add a placeholder variable (e.g.,
{{pdfLink}}
) in the header field.When sending the message via API, pass the variable in the request body. API Request Example:
{
"parameters": [
{
"name": "name",
"value": "wati"
},
{
"name": "pdfLink",
"value": "www.linktoinvoice.com/123.pdf"
}
]
}
Need More Help?
Watch this step-by-step tutorial for a detailed walkthrough:
Frequently Asked Questions (FAQs)
General Questions
1. Can I send media files using WATI template messages?
→ Yes, WATI supports media files in template messages. You can send images (JPEG, PNG), videos (MP4), and documents (PDF) using WATI template messages.
2. What media formats are supported in WATI template messages?
→ WATI template messages support the following media formats:
Images: JPEG, PNG
Videos: MP4
Documents: PDF
Creating and Submitting Template Messages
3. How do I create a template message with media?
→ To create a media-based template message:
Upload your media file to a reliable hosting service.
Log in to WATI and go to Broadcast > Template Messages.
Click + New Template Message.
Set the Header to Media Type and choose the appropriate media format.
Enter the URL of the hosted file.
Fill in the rest of the template details and submit it for approval.
4. How long does it take for a template message to be approved?
→ Template message approval usually takes only a few minutes but may take up to 24 hours.
Sending Media Files Dynamically
5. Can I send dynamic media files in template messages?
→ Yes, you can use variables in the template header to send dynamic media files.
6. How do I send dynamic media files using the WATI API?
→ To send dynamic media, add a placeholder (e.g., {{pdfLink}}
) in the template header and pass the variable when making an API request. Example request:
{
"parameters": [
{
"name": "name",
"value": "wati"
},
{
"name": "pdfLink",
"value": "www.linktoinvoice.com/123.pdf"
}
]
}