> ## 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.

# Create Template using AI

> Learn how to use our AI assistant to create customized templates for you

<img src="https://mintcdn.com/siren/7IpRt_YcaXDKVAtZ/docs/Images/Templates/TemplateEditPage.PNG?fit=max&auto=format&n=7IpRt_YcaXDKVAtZ&q=85&s=b785898de20b5968548959ff992d71e5" alt="Template edit page" width="1920" height="875" data-path="docs/Images/Templates/TemplateEditPage.PNG" />

To get started with creating a template, follow these steps:

1. In the left navigation panel, click on **Templates**.
2. Click **+ Add Template**.
3. **Name Your Template**: In the pop-up, provide a name and select or create a tag for ease in template filtering.
4. Click **Save**.
5. Choose the channels for which you want to create templates :

<CardGroup cols={3}>
  <Card title="SMS" icon="message-sms" href="/docs/Templates/Template%20Configurations/SMS-Template" />

  <Card title="Email" icon="envelope" href="/docs/Templates/Template%20Configurations/Email-Template" />

  <Card title="Push Notification" icon="message" href="/docs/Templates/Template%20Configurations/Push-Template" />

  <Card title="Whatsapp" icon="whatsapp" href="/docs/Templates/Template%20Configurations/Whatsapp-Template" />

  <Card title="Slack" icon="slack" href="/docs/Templates/Template%20Configurations/Slack-Template" />

  <Card title="Microsoft Teams" icon="Microsoft" href="/docs/Templates/Template%20Configurations/Teams-Template" />

  <Card title="Discord" icon="discord" href="/docs/Templates/Template%20Configurations/Discord-Template" />

  <Card title="In-App Messages" icon="Siren" href="/docs/Templates/Template%20Configurations/InApp-Template" />

  <Card title="LINE" icon="Line" href="/docs/Templates/Template%20Configurations/LINE-Template" />
</CardGroup>

## Template editor

In the template editor, you can create template either by utilising the provided fields and configurations or by utilising the AI assistant.

### Using AI Assistant

<Note>
  Available for all channels except WhatsApp and LINE
</Note>

* Access the AI assistant from the right side of the editor UI
* Generate template content using natural language prompts
* Get suggestions for improvements and optimizations
* The AI can help with:
  * Writing engaging message content
  * Suggesting effective variable usage
  * Optimizing message length and format for each channel

### Template Preview

* A real-time preview of your template appears on the left side of the editor
* See exactly how your message will look before sending
* Toggle between different device views (where applicable) to ensure cross-platform compatibility

### Test Data

Test data allows you to preview how your template will look with sample variable values. To set up test data:

<Steps>
  <Step>
    Click the **Test Data** button on top right.
  </Step>

  <Step>
    In the JSON code editor that appears, you can define test values for your variables using these parameters:

    * **name**: The name of the variable
    * **placeholder**: A descriptive name shown in the editor
    * **defaultValue**: The test value to use for preview

    Example:

    ```json theme={null}
    {
      "name": "user_name",
      "placeholder": "User's full name",
      "defaultValue": "John Doe"
    }
    ```
  </Step>

  <Step>
    Click **Save** to apply the test data
  </Step>

  <Step>
    The template preview will update automatically with your test values
  </Step>
</Steps>

### Publishing Your Template

Once you've created and tested your template:

* Click the **Publish to Live** button in the top right corner.
* You can see the template in the templates list.
