# Campaign templates

> You can create templates from existing campaigns and use them as a starting point for creating new campaigns in any Application. This simplifies the campaign creation process and increases error control by including predefined rules and restricting the values that can be modified.

> For the complete documentation index, see [llms.txt](https://docs.talon.one/llms.txt).

:::note[Campaign templates vs blueprints]
Campaign templates are similar to [blueprints](/docs/product/rules/blueprints.md) but serve different purposes:
- Campaign templates define the overall campaign structure including rules, budgets,
  attributes, and placeholders.
- Blueprints are reusable rules and cart item filters.
  They can be added to a campaign without altering its overall structure.
:::

## Template states

A template can be in one of the following states:

- <StateLabel type="draft" name="Draft" />: The template cannot be used.
  Its rules or values for mandatory attributes are not yet defined.
- <StateLabel type="enabled" name="Enabled" />: The template can be used to create campaigns.
- <StateLabel type="disabled" name="Disabled" />: The template cannot be used.
  Campaigns already created from the template are unaffected.

:::important Limitations
You cannot create a template in the following cases:

- If the campaign has the [referrals](/docs/product/campaigns/referrals/referral-overview)
  or [achievements](/docs/product/achievements/overview) feature enabled.
  See [Manage campaign features](/docs/product/campaigns/settings/manage-campaign-features).
- If the campaign does not have any [rules](/docs/product/rules/overview).
- If the campaign was
  [created from a template](/docs/product/campaigns/create-and-manage-campaigns#create-a-campaign-from-a-template).
- If the campaign contains a [value map](/docs/product/rules/manage-value-map).
- If the campaign uses an [Application cart item filter](/docs/product/applications/manage-application-cart-item-filters).
:::

## List templates

To list the available templates, on the leftmost menu,
click <Templates className="icon"/> **Templates**.

This page displays the available templates. It contains the following information:

| Column       | Description                                                                                                       |
| ------------ | ----------------------------------------------------------------------------------------------------------------- |
| Template     | Name and [state](#template-states) of the template.                                                               |
| ID           | Unique number identifying the template. It can be used for integration purposes.                                  |
| Created      | Date and time when the template was created.                                                                      |
| Created by   | User who created the template.                                                                                    |
| Placeholders | Number of placeholders defined in the template.                                                                   |
| Budgets      | Number of [budget limits](/docs/product/campaigns/settings/manage-campaign-budgets.md) defined in the template. |
| Attributes   | Number of mandatory attributes defined in the template.                                                           |
| Campaigns    | Number of campaigns created from the template.                                                                    |
| Copy         | Create a copy of the template.                                                                                    |

## Template overview

To view the details of a template:

1. On the leftmost menu, click <Templates className="icon"/> **Templates**.
1. Click the name of the template you want to display.

This page contains the following information:

- Name and [state](#template-states) of the template.
- **Basic info**: A description of the template.
- **Features**: The [campaign features](/docs/product/campaigns/settings/manage-campaign-features.md)
  enabled in the template. Each template inherits the features of the campaign from which
  it was created.
- **Created**: Date and time when the template was created.
- **Last updated**: Date and time when the template was last updated.
- **Rules**: A list of [rules](/docs/product/rules/overview.md) defined in the template.

The page also displays a table with the following information for each campaign
[created from the template](/docs/product/campaigns/create-and-manage-campaigns.md#create-a-campaign-from-a-template):

| Column     | Description                                  |
| ---------- | -------------------------------------------- |
| Campaign   | Name of the campaign.                        |
| ID         | A unique identifier of the campaign.         |
| Created    | Date and time when the campaign was created. |
| Created by | User who created the campaign.               |

## Reduce errors using templates

Campaign templates enable you to manage user access and reduce errors when creating campaigns from templates. To achieve this, configure your templates using the following options:

- **Ranges in placeholder values**: When creating placeholders, [define a range of values](/docs/product/campaigns/templates/create-templates.md#create-a-placeholder) for the `Number` and `Percent` placeholder types. This range ensures all campaigns created from the template have predefined limits.

  For example, you can create a placeholder of type `Percent` named `discount_percentage` and enforce a range limitation of 0 to 20 (inclusive). This prevents users from setting the discount value above 20% when creating campaigns.

- **Connect attribute picklist values to placeholder**: [Connect an attribute picklist](/docs/product/campaigns/templates/create-templates.md#create-a-placeholder) to a placeholder of type `List of strings` to enable users to select from predefined values.

## Related pages

- [Create templates](/docs/product/campaigns/templates/create-templates.md)
- [Manage campaign templates](/docs/product/campaigns/templates/manage-templates.md)
- [Blueprints](/docs/product/rules/blueprints.md)
