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

# Rich Media Templates

> Engage your audience with stunning visual templates containing images, videos, and interactive buttons.

<img className="block rounded-lg shadow-xl" src="https://mintcdn.com/otpedgecom/vbprxiC1v6lBG26K/images/media_templates.jpg?fit=max&auto=format&n=vbprxiC1v6lBG26K&q=85&s=2cce6ba08e1685105dc4019dd2b236e4" alt="Rich Media Templates Dashboard" width="1376" height="768" data-path="images/media_templates.jpg" />

## Overview

Text-only OTPs are great for authentication, but marketing requires engagement. OTP Edge's Template Manager allows you to sync, preview, and organize rich media templates directly from your Meta WhatsApp Business Account.

## Supported Media Types

When creating or syncing templates, OTP Edge fully supports the following header types:

* **Image**: Send promotional banners, product images, or QR codes.
* **Video**: Send short video clips to showcase features or tutorials.
* **Document**: Send PDF invoices, event tickets, or whitepapers.

## Dynamic Variables

Templates often require personalization. OTP Edge supports dynamic variables in the `body` of your message.

For example, a template body might look like:
`Hi {{1}}, your order {{2}} has shipped!`

When dispatching via a Marketing Campaign, you can visually map your audience CSV columns (e.g., `First Name`, `Order ID`) to these variables.

When dispatching programmatically via the `/v1/send-message` API, you provide the variables in the request payload:

```json theme={null}
{
  "to": "+1234567890",
  "template": "shipping_alert",
  "language": "en_US",
  "variables": ["John", "ORD-9921"]
}
```
