Templates
Templates are reusable task graphs that you can insert into your workspace. They are a great way to save time when you have a set of steps that you do the same way every time, for example when creating
- Sales funnels
- Onboarding flows
- Manufacturing processes
Creating a template
To create a template, you can either start from scratch, or save a set of tasks you already have. Creating a template from existing tasks can be done by selecting a set of tasks in the same workspace and clicking Save as template in the bulk bar. This will open up a new window to edit your template.
Creating a template from scratch can be done by navigating to the Templates page for a workspace and clicking New template. This will open up a new window to edit your template.


Once you hit New template, you will be guided through the process of creating a template, starting with a name and description:

Editing a template
The Template editing page shows you a graph view of the tasks in your template. You can click and drag from the “ports” to create task dependencies, or list them directly in the “Add step” box.


Variables
Variables help you create content that can be changed when the tasks are added to your workspace.
For example, if we wanted to create a lunch reimbursement that employees could apply to any restaurant, we might create a variable called restaurantName.
When people use this template, they will fill that value in.
Any time you write {{restaurantName}} in a template, it will be replaced when the tasks are added:
| In the template | In the task it creates |
|---|---|
Order lunch from {{restaurantName}} |
Order lunch from Brewer’s Art |
You can also add “Person” variables: for example, if you wanted to create a code review process template, you might create a Person variable called reviewer and another called author. Users of the template will be prompted to set users for those variables and they work just like regular task assignees.

Using templates
In many places in Tapestry, you can add a template to your workspace by clicking the button. This will open a dialog where you can select a template and fill in any variables it has.
