Ask your own question.

Someone from our team or the Crisp community will answer publicly.

We will ask your email to let you know when an answer is published.

Thanks! We will let you know when an answer is published.

Tell us why you are not satisfied.

Tell us how we can improve, and what is missing.

We will answer if we need more details, and improve this help section.

Thanks! We will get back to you if we need more information.

How to format campaign messages?

Campaign messages can include user-based context variables. You may use variables to quote the targeted user full name, their country, or even their company (if it's known).

How to use variables?

Variables are added to your messages using the following format: {{ variable_name }}. A recognized variable block will be expanded into the corresponding variable value (ie. {{ name.first }} can become John, or be empty if user name is unknown).

When you enter a variable in the campaign Markdown editor, you can check it is recognized by Crisp by toggling to message Preview. A valid (recognized) variable will appear green, while an invalid (non-recognized) variable will appear red.

Which variables are available?

You can use the following user variables in your messages:

  • Full name: {{ name.full }}
  • First name: {{ name.first }}
  • Last name: {{ name.last }}
  • Email: {{ email }}
  • Country: {{ country }}
  • City: {{ city }}
  • Website: {{ website }}
  • Company name: {{ company.name }}

Notice: if a value is unknown for a given user, the variable will be replaced with empty text.

Usage example

You can find below a sample message using variables:

Hello {{ name.first }}, how are you doing?

Wow, you are living in {{ city }}, {{ country }}! :)

Cheers.
Valerian Saliou
Was this article helpful?YesNo
Thanks! 👍
Don’t find what you are looking for?

Ask your own question.

Ask Now