# Templates

## What are templates?

**Templates** are ready-made bot scenarios that serve as a starting point. A template contains a set of nodes, blocks, and logic tailored to a specific bot type—such as an online store, appointment booking, FAQ bot, quiz, etc.

Once you apply a template, you get a fully functional scenario that you can publish immediately or customize to suit your needs.

## How to apply a template

1. In the builder, click the **"Templates"** button in the header.
2. Browse the catalog—templates are organized by category.
3. Click on a template to view its preview.
4. Click **"Apply"**—the entire scenario will load into your bot, replacing the current draft.

> Applying a template replaces the current **draft** but does not affect the already published scenario. Publish the new version when you are ready.

## Free and paid templates

- **Free** — available immediately, without restrictions.
- **Paid** — purchased using your account balance. Once purchased, the template remains available for all your bots indefinitely.

If you have a paid subscription plan, you can create public paid templates and earn money from them.

## Creating your own template

If you want to save your scenario as a template (for reuse or to publish in the catalog):

1. Open the finished scenario in the builder.
2. Click **"Add template"** in the templates window.
3. Enter a name, description, and category.
4. Select visibility: **private** (for your use only) or **public** (visible to everyone in the catalog).

### Template limitations

Templates do not store attached media files as `file_id`s; instead, they save the file URLs. This is necessary because the `file_id` is tied to a specific bot and cannot be transferred between bots. All files must be uploaded.

## Tips

- Preview the template before applying it; this allows you to understand the scenario's structure and determine if it suits your needs.
- Private templates are useful as backups for successful scenarios or as starting points for new bots within the same niche.
- After applying a template, go through all the nodes and replace the placeholder text with your bot's actual content.
- When saving a public template, ensure that you do not include private keys in any API requests.