# How To Add Dynamic Variables Into An Email

Digably • Jul 22, 2023 9 steps • 1 minute read

{% embed url="<https://youtu.be/IOCZ3Zg8nGs>" %}

This guide will show you how to add dynamic variables into an email in Digably.

***

#### 1. Click "Insert Merge Field"

From inside the email editor, click the "Insert Merge Field" button at the top of your screen. This will open a list of all the merge field options that you can use in your email.

<figure><img src="https://static.guidde.com/v0/qg%2FHQszwR5Ai0R6XKJ41Ncm36QSzt22%2F4XKYuHoLC1o4P6HcxBTrpB%2Fn4Y2MUaQJh3KUayZRivwAT_doc.png?alt=media&#x26;token=43f96067-d455-45c7-bdf9-55c73a6f85ad" alt=""><figcaption></figcaption></figure>

#### 2. Expand the dropdown lists to locate the merge field you wish to insert.

Use the dropdown arrows to expand the list of options according to their category. In this example, we'll be adding the customers first name into the email. So we will expand the "Contact" list.

<figure><img src="https://static.guidde.com/v0/qg%2FHQszwR5Ai0R6XKJ41Ncm36QSzt22%2F4XKYuHoLC1o4P6HcxBTrpB%2FfnrPWdSPv9tcn6gvN2xRbr_doc.png?alt=media&#x26;token=bed1a0f7-5c32-452a-810f-9fd847cee917" alt=""><figcaption></figcaption></figure>

#### 3. Click the merge field you wish to insert into your email

Then, select the merge field you wish to add. Remember, we are using the "First Name" dynamic variable in this example, but you can choose to insert any of the available merge fields when writing your email. Clicking the chosen merge field here will automatically copy it to your clipboard.

<figure><img src="https://static.guidde.com/v0/qg%2FHQszwR5Ai0R6XKJ41Ncm36QSzt22%2F4XKYuHoLC1o4P6HcxBTrpB%2FfCvudkf7rZWhKiurFHXpcY_doc.png?alt=media&#x26;token=a948561c-f551-416d-859f-bcd54a42cd66" alt=""><figcaption></figcaption></figure>

#### 4. Place your cursor in the desired location and paste

Now that you've chosen the merge field you wish to insert into your email, simply place your cursor where you wish to insert the merge field, and paste.

<figure><img src="https://static.guidde.com/v0/qg%2FHQszwR5Ai0R6XKJ41Ncm36QSzt22%2F4XKYuHoLC1o4P6HcxBTrpB%2FqDt9DEzAMhPsSTpyCphQ2f_doc.png?alt=media&#x26;token=ba54956b-123d-4927-b395-9bad8638e9ac" alt=""><figcaption></figcaption></figure>

#### 5. Confirm that your merge field has been inserted

Notice, this will add the merge field into your email. Don't worry that it looks strange with braces and dollar signs. This is just the code Digably uses to pull each individual contacts information into the email that sends to that particular contact. The email that sends in this example will simply read "Hey," followed by the first name of the contact (Such as "Hey John", or "Hey Marry").

<figure><img src="https://static.guidde.com/v0/qg%2FHQszwR5Ai0R6XKJ41Ncm36QSzt22%2F4XKYuHoLC1o4P6HcxBTrpB%2FcFY8FwGhnqG4n96pLsNGZL_doc.png?alt=media&#x26;token=dc17bca0-886c-4799-a68a-2e3e923ed42f" alt=""><figcaption></figcaption></figure>

#### 6. Click "SAVE"

After you have finished writing your email, click the "SAVE" button in the top right to save your work.

<figure><img src="https://static.guidde.com/v0/qg%2FHQszwR5Ai0R6XKJ41Ncm36QSzt22%2F4XKYuHoLC1o4P6HcxBTrpB%2F99wCBY9RXj6EyKZU7MvCnz_doc.png?alt=media&#x26;token=025b19c5-f09d-4dd4-9cc9-8189b51dc238" alt=""><figcaption></figcaption></figure>

#### 7. Click "Save" to save your email settings.

Finally, click "Save" to save your email settings.

<figure><img src="https://static.guidde.com/v0/qg%2FHQszwR5Ai0R6XKJ41Ncm36QSzt22%2F4XKYuHoLC1o4P6HcxBTrpB%2FnNw3ukUWwb9ZrVDce5sSyM_doc.png?alt=media&#x26;token=19ecb3b3-472e-4305-9c23-819ec67bc61b" alt=""><figcaption></figcaption></figure>

This guide covered the steps to add dynamic variables (also known as merge fields) into an email using Digably.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digably.io/automations/how-to-add-dynamic-variables-into-an-email.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
