# Create a template

{% embed url="<https://www.loom.com/share/39c3791d4fc34331b2df3425126b8815?sharedAppSource=personal_library>" %}

You can create templates using your predefined variables and detected data thanks to our powerful templating engine.&#x20;

Setting the shortcut will help you to inject the template using the browser extension.

## Configure the template

To find your template efficiently, fill in its name, and possibly a tag in the Settings section. You can also make this template public by making it available in the public library. Be aware that anyone will be able to see its content and import it into their own private library.

![](https://1934119853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MjVEfVZ_YTXFD9VQFpb%2F-MkT6mwdFM6Ai77XJcs7%2F-MkT7MVe6hxjMuyJ29zf%2Fimage.png?alt=media\&token=a1760abd-4748-4c3d-b82f-eae43f99d1c5)

## Using template variables

You can declare variables in your template by using the brackets `{{ my_variable }}`

Once the template variable is created, you will see it in the variables section:

![](https://1934119853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MjVEfVZ_YTXFD9VQFpb%2F-MkT24er6lZny0h68nJV%2F-MkT3YYuBSIMoxObslj0%2Fimage.png?alt=media\&token=f5698806-9427-4ab7-be86-cbff09adc08d)

You can then choose several options:

* fill in a constant, i.e. a static value
* connect it to a predefined variable defined in your space (see the section [create a variable](https://docs.butly.co/master))
* connect it to a data provider variable (for example the email of the recipient)

For more information about how to write a template, please go the [advanced section](https://docs.butly.co/advanced-template-writing).

## Configure the trigger shortcut

If you want to inject this template (in Gmail for example) with the browser extension, you will have to configure the trigger shortcut. To do this, fill in the name of the shortcut in the Settings section:

![](https://1934119853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MjVEfVZ_YTXFD9VQFpb%2F-MkT6VG1DaODDt-gid0k%2F-MkT6gvW8pNHyeYkuKj_%2Fimage.png?alt=media\&token=5e4f9907-7ce1-45ea-a234-9d1344786737)
