---
updatedAt: 2026-11-10T14:08:59.000Z
agentTools:
  projectIndex: https://docs.followupboss.com/llms.txt
---

# Merge Fields

# Overview

Email Templates need a way to incorporate contact information into the final email that is to be sent. The way we do it is by unique identifiable text within an email template.

For example if your email template looked like: `Hello %contact_name%`. And your contact's name was William Riker, the result of the email template would be `Hello William Riker`.

# User Merge Field Mappings

The following merge fields can be obtained with a call to `/v1/users/:id`.

| Merge field          | JSON field  |
| :------------------- | :---------- |
| `%agent_name%`       | `name`      |
| `%agent_first_name%` | `firstName` |
| `%agent_last_name%`  | `lastName`  |
| `%agent_email%`      | `email`     |
| `%agent_phone%`      | `phone`     |

# Person Merge Field Mappings

The following merge fields can be obtained with a call to `/v1/people/:id`.

[block:parameters]
{
  "data": {
    "h-0": "Merge field",
    "h-1": "JSON field",
    "0-0": "`%contact_name%`",
    "0-1": "`name`",
    "1-0": "`%contact_first_name%`",
    "1-1": "`firstName`",
    "2-0": "`%contact_last_name%`",
    "2-1": "`lastName`",
    "3-0": "`%contact_email%`",
    "3-1": "`emails[0].value`",
    "4-0": "`%contact_phone%`",
    "4-1": "`phones[0].value`",
    "5-0": "`%contact_address%`",
    "5-1": "Combination of Fields:  \n  \n`addresses[0].street\naddresses[0].city, addresses[0].code`",
    "6-0": "`%contact_street%`",
    "6-1": "`addresses[0].street`",
    "7-0": "`%contact_city%`",
    "7-1": "`addresses[0].city`",
    "8-0": "`%contact_state%`",
    "8-1": "`addresses[0].state`",
    "9-0": "`%contact_zipcode%`",
    "9-1": "`addresses[0].code`",
    "10-0": "`%contact_country%`",
    "10-1": "`addresses[0].country`",
    "11-0": "`%source_name%`",
    "11-1": "`source`"
  },
  "cols": 2,
  "rows": 12,
  "align": [
    "left",
    "left"
  ]
}
[/block]

# Inquiry Merge Field Mappings

The following merge fields can be obtained with a call to `/v1/events/:personId`

| Merge field         | JSON field        |
| :------------------ | :---------------- |
| `%inquiry_address%` | `property.street` |

The inquiry address merge field is intended to be used as the subject of an email without any surrounding text, it should perform some basic substitutions in case there is no inquiry event for the person:

* If `property.street` is empty and `%source_name%` is not empty, then: `%inquiry_address%` is "Your property inquiry from `%source_name%`".
* If both `property.street` is empty and `%source_name%` are empty, then: `%inquiry_address%` is "Your property inquiry".