Skip to content

Merge fields

Merge fields put data about the respondent, the employee or the case into the texts of an nps.today survey. For example, when you send a survey to hundreds of respondents and know their first names, you can start the email with "Hi John" or "Hi Lisa" by writing Hi {FIRSTNAME}. A merge field is the field name in curly brackets: {FIELDNAME}.

Caution

If you use merge fields in SMS surveys, note that each SMS segment can only contain 160 ASCII characters, or 70 if the text contains Unicode characters. The length of the content generated using a merge field vary with the content you provide for the given field and may result in excessive SMS usage.

How to use example

Example of a survey text with merge fields and the resulting text

Add a merge field to a survey text

Add merge fields to survey texts, such as the email subject or the introductory text. A common one is {FIRSTNAME}, to address respondents by name.

Info

Merge fields require you to have the data available in the specific data field, whether you have trigger-based surveys, or do manual send outs.

Use case

Example of a survey text that merges case data into the text:

Hi {FIRSTNAME},

We hope you received the help you needed from our support regarding:

Case title: {TITLE}

Case ID: {CUSTOM_caseid}

Therefore, we hope you will take 1 minute to give your feedback.

Best regards,

nps.today

Steps

  1. In the left menu, click Campaigns, then click the campaign.
  2. Click Edit Campaign.
  3. Open the list of merge fields: click Merge Fields at the top of the campaign editor, or the { } button in the bottom right corner of the page. The list says "Select option to copy to clipboard".
  4. Use Search to find the field, for example FIRSTNAME.
  5. Click the merge field. A message confirms that it was copied to the clipboard.
  6. Click in the text where the field should go, for example Introductory text under Design main survey or Subject on email under Campaign info, and paste it.
  7. Click Save Campaign.

The merge field list opened from the campaign editor, with the Search field

Verify it worked

  1. Send a test survey to yourself with the data the merge field uses, for example a first name. See Test your survey.
  2. Check that the email, SMS or survey shows your data instead of the merge field. If the data is missing, the merge field is shown as blank.

List of possible fields

We can only fill in merge field data if you provide it to us. So before you fill your campaigns with all sorts of mergefields, please make sure that the integrations you use or the excel files you upload actually contain this data. If there is no data for a merge field, it is left blank, so do not worry if the data should be missing occasionally.

Respondent

Merge field Description
{TITLE}
{FIRSTNAME} Firstname of the respondent
{LASTNAME} Lastname of the respondent
{DEPARTMENT} Work department of respondent
{ADDRESS1} First address line of respondent
{ADDRESS2} Second address line of respondent
{CITY} City of the respondent
{POSTALCODE} Postal or ZIP code of respondent
{COUNTRY} Country of the respondent
{PHONE} Phonenumber of the respondent

Employee

Merge field Description
{EMPLOYEE_TITLE} Title of the responsible employee
{EMPLOYEE_FIRSTNAME} Firstname of the responsible employee
{EMPLOYEE_LASTNAME} Lastname of the responsible employee
{EMPLOYEE_DEPARTMENT} Department of the responsible employee
{EMPLOYEE_DIVISION} Division of the responsible employee
{EMPLOYEE_TEAM} Team of the responsible employee
{EMPLOYEE_PHONE} Phonenumber of the responsible employee
{EMPLOYEE_EMAIL} E-mail of the responsible employee

Company

Merge field Description
{COMPANY_SEGMENT} Segment of the respondents company
{COMPANY_ACCOUNTNO} Account Number of the respondents company
{COMPANY_INDUSTRY} Industry of the respondents company
{COMPANY_EMAIL} E-mail of the respondents company
{COMPANY_PHONE} Phonenumber of the respondents company
{COMPANY_ADDRESS1} First address line of the respondents company
{COMPANY_ADDRESS2} Second address line of the respondents company
{COMPANY_CITY} City of the respondents company
{COMPANY_ZIPCODE} Postal or ZIP code of the respondents company
{COMPANY_COUNTRY} Country of the respondents company

Custom

Custom fields work a bit different. We rely on the common JSON structure to access complex data types. It is accessed almost like in javascript by seperating each nesting key with a . (dot). So the merge field name will become {CUSTOM_name.of.path}

{
    "respondent":{
        "emailAddress":"[email protected]",
        "firstName": "John",
        "lastName": "Doe"
    },
    "custom":{
        "shoeSize": 42,
        "car":{
            "brand":"Tesla",
            "color": "White",
            "model": "S"
        }
    }
}

Given the above payload to add a new respondent to nps.today you can use the custom values in merge fields as follows:

Merge field Description
{CUSTOM_shoeSize} Will return 42
{CUSTOM_car.brand} Will return Tesla
{CUSTOM_car.color} Will return White
{CUSTOM_car.model} Will return S

Advanced Survey Module (ASM)

If you are using our Advanced survey module you will be able to use placeholders/merge fields to add data to NPS notification, feedback App, etc.

In the placeholder texts shown below Question1 refers to the Name og your ASM question.

Merge field Description
{ASM_Question1.title} This will use the title of your ASM question, which refers to the question you ask
{ASM_Question1.value} This will use the value of your ASM question, which refers to the answer of the
{ASM_Question1.displayValue} This will use the displayValue of your ASM question, which also refers to the answer to the question you ask, but in an other format

*You can use both value and displayValue to get the answer to you ASM question, but it is recommended to use displayValue, as it more often gives you the answer in right format

Example from ASM campaign set-up

ASM example