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

# How pre-built templates work

> How one campaign, trigger or email you build is offered to every business on your platform

Most businesses on your platform want the same handful of things: a welcome
message, a win-back campaign, an appointment reminder. Templates let you build
each one once and offer it to every business, so a business starts from
something that already works for your industry instead of a blank page.

To publish one, see
[Give businesses pre-built campaigns, triggers and emails](https://docs.pocketflows.com/how-to/offer-prebuilt-templates.md).

## Three kinds of template

| Template | What it holds | What a business gets from it |
| - | - | - |
| Campaign template | A whole campaign: its steps and the messages in them. | A campaign it can edit and send. |
| Trigger template | A whole trigger: the event it listens for, its steps and messages. | A draft trigger it can edit and turn on. |
| Project email template | A single designed email. | An email template it can edit and use. |

Campaign and trigger templates are complete automations. A project email
template is one building block, for when you want to offer a design without
deciding how it is used.

## Templates belong to your project

A template belongs to your project, not to any business. Every business in the
project can use it. Test mode and live mode are separate projects, so a template
built in test mode is not available in live mode until it also exists there.

## Using a template makes a copy

When a business uses a template, Pocketflows copies it into that business. The
copy belongs to the business and is independent of the template:

* The business can change its copy freely without affecting the template or any
  other business.
* Changing or deleting the template later does not change the copies that
  businesses have already made.

This means a template is a starting point, not a way to push updates. To change
what a business has already adopted, change that business's own campaign,
trigger or email template.

## Enabled and disabled

Each template is either enabled or disabled. Only enabled templates are offered
to businesses in the embed. A new template starts disabled, so you can finish it
before any business sees it.

## Templates and personalization

Because one template is used by many businesses, its messages should not contain
anything specific to one business. Use variables such as `{{ business.name }}`
and `{{ customer.first_name }}` instead, and each copy fills them in with that
business's and customer's own values. See
[How personalization variables work](https://docs.pocketflows.com/concepts/personalization-variables.md).

## Related

* [Give businesses pre-built campaigns, triggers and emails](https://docs.pocketflows.com/how-to/offer-prebuilt-templates.md)
  for the steps.
* [How events and triggers work](https://docs.pocketflows.com/concepts/events-and-triggers.md) for what a
  trigger template listens for.


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