What are variables?

Variables are dynamic elements in a conversation flow that gives you the option to personalize your messages and make them more engaging.

Currently the following variables can be added to Recart conversation flows:

  • first name

  • last name

  • page name

  • site domain

These variables will be substituted with a user specific value if the recipient has a Messenger subscriber ID (known as PSID). If the recipient does not have a PSID, the value will be substituted with a fallback value that you can set from your conversation flow editor.

How to add variables to your conversation flows?

There are two options how you can add personalized content to your messages:

  • Add variables with one click

  1. Open a conversation flow editor and click inside the item where you want to add the variable. ( Variables only work within Text, Card or Gallery items.)

  2. Click on the variables icon that appears under the text box.

  3. A new window will open where you need to add the type of the variable and the fallback value. When it is done click on Insert Variable.

  4. Do not forget to Save your changes and activate the message.

  • Copy and paste or type variables manually

  1. Open a conversation flow editor and paste or type the variable in the message where you would like to add it. Keep the following format: {first_name}, {last_name}, {page_name}, {site_domain}.

  2. The conversation flow editor will recognize the variable and it will be highlighted with orange.

  3. Click on the highlighted variable and set the type and the fallback value, then click on Save variable.

  4. Do not forget to Save your changes and activate the message.

Important notes:

  • When you have the variable added, in the editor you will see it highlighted with blue, in the sent messages it will appear as a regular text tough.

  • The fallback value character limit can not be exceeded.

  • You can remove the variable by hitting backspace at the end of the whole value.

Where can you use variables?

Variables can be added to text type elements which are either Text, Card or Gallery.

Please note there is no option to add variables to One-off Flows and Click-to-Messenger Ads conversation flows. In addition, you can not add variables to buttons or quick replies in general due to character limits.

Feel free to let us know if you have any comments or questions, our support team is happy to help you. 😊

Did this answer your question?