How to use variables in Canned Replies

Variables allow you to pull information about your customers into messages. When you send a Canned Reply that contains a variable, Inbox will automatically replace the variable with the corresponding values from the contact's details.

There are two types of variables that you can use in Inbox:

  • Default

  • Custom

Default variables

Default variables are Inbox's standard contact fields, such as first name, last name, and email.

Contact field

Syntax

Display Name

{{contact.displayName}}

First Name

{{contact.firstName}}

Last Name

{{contact.lastName}}

Email

{{contact.email}}

Phone Number

{{contact.phone}}

Country

{{contact.country}}

Syntax

Follow this syntax when using default variables in Canned Replies: {{contact.FIELD}}.

Example:

Hi {{contact.firstName}},

Welcome to our store. One of our team members will get back to you soon.

Cheers

Custom variables

Custom variables refer to any additional fields in the contact object, such as attributes.

Syntax

To use variables in Canned Replies, use the following syntax: {{contact.attributes.FIELD}}

If the attribute field has a letter space in it, replace the space with an underscore ‘_’. So ‘order number’ should be written as {{contact.attributes.order_number}}.

Example

Hi {{contact.firstName}}

We do deliver to {{contact.attributes.city}}. Please let us know if you have more questions.

Cheers

Example

Hi there,

Your order#{{contact.attributes.order_number}} is with us.

Cheers

Last updated