# Templates

A template is reusable content with variables. Bonga keeps every published version, so a queued or scheduled send never changes because someone edited the template.

## Email templates

The template studio stores subject, HTML and text. Variables use `{{field}}` and are resolved from the contact or from explicit values at send time. A template can be previewed with sample data and test-sent to yourself.

A send can pin:

- the template ID;
- an exact published version.

Pinning a version freezes the content. Editing the template later does not alter a queued message. A campaign preflight records the pin; a mismatch is refused rather than silently rendered from a newer version.

## Message templates

WhatsApp Cloud templates are Meta-approved and have a category, language and variable list. Bonga stores the local reference and reads the provider status before sending. A template that is not approved cannot send.

SMS content is usually inline. A campaign may save a reusable body, but the actual message is frozen into the recipient snapshot at launch.

## Review and safety

- Preview with real sample values.
- Check conditional blocks and missing variables.
- Keep marketing footers and unsubscribe links intact.
- Do not put credentials in template text.
- Publish a new version instead of editing a live one.

## Related

- [Email](/docs/email)
- [WhatsApp Cloud API](/docs/whatsapp-cloud)
- [Campaigns](/docs/campaigns)
