# Creating a Subscription Template

1. Open the **Subscription Templates** module in the **Alerts** section.
2. Click **Create Subscription Template**<img src="https://content.gitbook.com/content/3UIWnAZbr912u8oC0K5A/blobs/WTGUOcjhE7KgpwCdGHkB/create-24px.svg" alt="" data-size="line">in the top right corner.
3. Fill in the required fields (marked with \*) for each step in the dialogue.
4. Click **Create**.

## Create Subscription Template

Below is an example of a Subscription Template with an Expression requiring a change of the field bankName and the swift address to equal a number for a notification to be sent. The expression builder allows building complex conditions to limit the amount of notifications to be informative and wanted. \
\
Its also possible to create a Subscription Template with an Alert Script as the trigger.

{% hint style="info" %}
In Expression Builder, the `Field` can be selected with the Customize Columns modal, like in lists. Conditions can be customized in detail using grouping `Add Group` , to allow multiple combinations of `AND` /`OR` conditions. A simplified preview of the conditions are displayed at the bottom of the modal.
{% endhint %}

{% hint style="info" %}
**Fields** limit what fields should be returned in the notification and can look like this {"fieldName1":"\*","fieldName2":"\*"}. Read more about how to specify **Fields** [here](https://api.dataloy.com/dataloy-rest-api/adjust-number-of-fields-to-be-returned-from-a-request).
{% endhint %}

{% hint style="info" %}
Checking `Ignore Subscriber Changes` on a template means Webhook Subscriptions created from this will not alert the user that created the subscription of changes they themselves perform.
{% endhint %}

{% tabs %}
{% tab title="Expression" %}

<figure><img src="https://291983996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3UIWnAZbr912u8oC0K5A%2Fuploads%2FucRzUrGHOyD5UUO1FYiI%2Fimage.png?alt=media&#x26;token=9f7e053c-5b0f-46e0-b784-435e5735646e" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Alert Script" %}

<figure><img src="https://content.gitbook.com/content/3UIWnAZbr912u8oC0K5A/blobs/4rA8pXmvEcZYr9aybXbU/image.png" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}
