# Creating Templates

How to create and edit message templates in Qwetty

import Shot from "../../../../components/shot.astro";

Create reusable message templates for quick, consistent communication.

<Shot name="template-create" alt="Creating a template with a live preview" />

## Creating a template

1. Go to **Messaging → Message Templates** from the main navigation
2. Choose the **Shared** or **Personal** tab, then click **Add Template**
3. Fill in the template details:
   - **Template Name** — A descriptive name for the template. Meta templates may only use lowercase letters, numbers, and underscores
   - **Description** — Optional notes about the template
   - **Template Source** — **Local Template** (stored in Qwetty only) or **Meta Template** (submitted for WhatsApp approval)
   - **Type** — Text, Image, Video, or Document. For media types you upload the file, and the message body becomes an optional **Caption**
   - **Content** — The message body
   - **Enabled** — Toggle whether the template is available for use
4. For **Local** templates, you'll also set:
   - **Who it's for** — **Shared** (everyone in the organization can use it) or **Personal** (only you, in your own chat composer)
   - **Shortcut** — Optional. Type `/` and the shortcut in the chat composer to insert the template
5. For **Meta** templates, you'll also set:
   - **Channel** — The WhatsApp API channel the template belongs to; it can only be sent through that channel
   - **Language** — Template language
   - **Category** — Utility, Marketing, or Authentication
   - **Header Text** and **Footer Text** — Optional structural elements
   - **Buttons** — URL, phone number, or quick reply buttons
   - **Body examples** — Sample values for each variable, required by Meta for review
6. Click **Create Template**

A preview of the message is shown beside the form as you type.

## Variable placeholders

Variables personalize a template, and the format depends on the source.

**Meta templates** use **numbered** variables:

```
Hello {{1}}, your order #{{2}} has been shipped!
```

When using the template in the inbox, you'll be prompted to fill in the value for each numbered variable.

**Local templates** use named variables that Qwetty fills in automatically when you insert the template into a chat: `{{contact.name}}`, `{{agent.name}}`, and `{{org.name}}`. You can still edit the text before sending.

## Editing templates

1. Go to **Message Templates**
2. Open the row's action menu and choose **Edit Template**
3. Update the content and click **Save Template**

For Meta templates, the current approval status is shown while editing, and saving changes re-submits the template to Meta.

## Deleting templates

From the Message Templates list, open the row's action menu and choose **Delete Template**. Deleting a Meta template also deletes it from your WhatsApp Business account.

## Next steps

- [WhatsApp Template Sync](/en/templates/whatsapp-sync) — Sync templates with Meta for WhatsApp approval
- [Sending Messages](/en/inbox/sending-messages) — Use templates in conversations
