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

# WhatsApp Template

The WhatsApp template editor in Siren allows you to create and manage message templates that comply with WhatsApp's Business API guidelines. You can customize message content with variables for personalized communication.

<img src="https://mintcdn.com/siren/7IpRt_YcaXDKVAtZ/docs/Images/Templates/TemplateEdit/whatsappTemplate.png?fit=max&auto=format&n=7IpRt_YcaXDKVAtZ&q=85&s=78396f0b16c355a9f7886f52b172c17f" alt="WhatsApp Template" width="1707" height="731" data-path="docs/Images/Templates/TemplateEdit/whatsappTemplate.png" />

## Template Selection

<Steps>
  <Step title="Select Provider">
    Choose your WhatsApp Business Solution Provider from the dropdown menu. This determines which templates are available for use.
  </Step>

  <Step title="Select Template">
    Choose from pre-approved templates that comply with WhatsApp's DLT (Distributed Ledger Technology) guidelines. These templates ensure compliance with WhatsApp's messaging policies.
  </Step>
</Steps>

## Template Configuration

Once a template is selected, you can configure the following sections:

<Steps>
  <Step title="Header">
    Add an image variable for the header.
  </Step>

  <Step title="Body">
    Add body variables as needed for the message content.
  </Step>

  <Step title="Buttons">
    Add button variables for interactive elements.
  </Step>
</Steps>

## Variable Management

Add dynamic content to your template:

1. **Header Variables**:
   * Image URLs for dynamic header images
   * Text variables for short header text

2. **Body Variables**:
   * Text variables for personalized content
   * Format: `${workflow.input.data.variable_name}`
   * Example: `Hello ${workflow.input.data.customer_name}, your order ${workflow.input.data.order_id} is ready!`

3. **Button Variables**:
   * Dynamic text in buttons
   * URL parameters for dynamic links

## Best Practices

* Keep messages concise and clear
* Test templates with different variable lengths
* Ensure all required variables are included
* Follow WhatsApp's template approval guidelines
* Preview your template before saving
* Consider timezone differences for time-sensitive messages
