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

# Email templates

> Create your own emails for the Send Email step

# Email templates

The **Send Email** step lists the built-in templates and your own. Click **Create new template** in the step to open the editor, or **Edit** next to one of yours.

## Create a template

1. Enter a **name**, a **subject** and the body.
2. Use the toolbar for formatting. Only safe formatting is kept: text styles, links, lists, tables and images. Scripts, forms and similar content are removed.
3. Insert a **placeholder** from the list, for example `{{lead.name}}` or `{{trigger.body.cart_url}}`. The editor warns about a placeholder it does not recognise. Values are inserted as plain text.
4. Click **Preview** to see the email with sample data. Images must use `https` links.
5. **Save draft** or **Publish**.

## Draft and published

* A **draft** is a work in progress. It cannot be chosen in a step, and a workflow that uses an unpublished template cannot be activated.
* **Published** templates can be chosen. When you edit a published template, the version in use stays the same until you publish again, so a half-finished edit never goes out. The template shows when it has unpublished changes.
* A template used by an active workflow cannot be deleted. The message lists which workflow uses it.

## Who gets the email

The step sends to the lead's email address. It is skipped when the lead has no email or opted out of email.

A dedicated page for managing all templates in one place is planned.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.