# Merge Tags

{% hint style="info" %}
Only users with role **Admin** can edit Merge Tags
{% endhint %}

Many ESPs have support for merge tags or personalization variables, for example to write out a customers first name in the email.

The Alpaco Platform supports a Merge Tag feature, where you can add Merge Tags in Alpaco and define the matching merge tag code in the ESP/Integration.

### Creating and using a Merge Tag <a href="#creating-and-using-a-merge-tag" id="creating-and-using-a-merge-tag"></a>

In the below example, we have added a Merge Tag with the name `First Name`. Alpaco automatically creates a tag that you can use within your templates to reference this merge tag, in this case it's `[first_name]`.

![](/files/fc0GtUa18sWWMcnUHGG8)

For this newly created Merge Tag, I have to specify the corresponding tag in your Email Service Provider(ESP). In this example we'll use Mailchimp:

Now I can go ahead and use the tag `[first_name]` anywhere in my Template code:

`<h1>Hello [first_name]!</h1>`

When the **Email** is exported to Mailchimp, Alpaco will replace the `[first_name]` tag with the correct Mailchimp tag, `*|FNAME|*`:

`<h1>Hello *|FNAME|*!</h1>`


---

# 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://documentation.alpaco.email/account-settings/merge-tags.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.
