> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skyfree.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Templates

Create, manage, and use pre-approved WhatsApp message templates for consistent communications.

## Getting Started

WhatsApp templates allow you to:

* Create pre-approved message templates
* Use dynamic variables for personalization
* Maintain brand consistency
* Improve delivery rates
* Track template performance

## Create Template

### Template Structure

A template consists of:

* **Header** (optional): Image, video, or document
* **Body**: Main message text (up to 1024 characters)
* **Footer** (optional): Additional text (up to 60 characters)
* **Buttons** (optional): Quick reply buttons or CTA buttons

### Create New Template

1. Go to **Templates**
2. Click **Create Template**
3. Fill in template details:
   * Name: Unique template identifier
   * Category: Select category (Marketing, OTP, etc.)
   * Header: Optional media
   * Body: Message content with variables
   * Footer: Optional footer text
   * Buttons: Add action buttons
4. Review preview
5. Click **Submit for Approval**

### Template Variables

Use variables for dynamic content:

```
Hi {{name}}, your order {{order_id}} is ready!
```

Variables reference contact custom fields:

* `{{name}}` - Contact name
* `{{email}}` - Contact email
* `{{company}}` - Company name
* Or any custom field

## Template Categories

Choose appropriate category:

* **Marketing**: Promotions and campaigns
* **OTP**: One-time passwords and verification
* **Transactional**: Order confirmations, receipts
* **Notification**: Updates and alerts
* **Account Updates**: Password resets, account changes

## Approval Process

1. Submit template
2. WhatsApp reviews (usually 24 hours)
3. Status changes to:
   * **Approved**: Ready to use
   * **Rejected**: Update and resubmit
   * **Pending**: Under review

## Manage Templates

### View Templates

1. Go to **Templates**
2. See all templates with status
3. Filter by status or category

### Edit Template

1. Find template
2. For **Pending** templates: Can edit and resubmit
3. For **Approved** templates: Create new version
4. For **Rejected** templates: Edit and resubmit

### Delete Template

1. Open template
2. Click **Delete**
3. Confirm action

## Use Templates in Campaigns

1. Create campaign
2. Select **Use Template**
3. Choose approved template
4. Map variables to fields
5. Send

## Template Performance

Monitor template metrics:

1. Go to **Analytics** → **Templates**
2. View:
   * Usage count
   * Delivery rate
   * Read rate
   * Reply rate

## Best Practices

* Keep templates concise
* Test before campaigns
* Categorize appropriately
* Update based on performance
* Respect rate limits
* Include clear call-to-action
* Avoid promotional language in OTP
