How do I add variables to Message Templates?


When submitting a message template, keep in mind that you need to contain the full body of the message. There are options to add unique parameters or variables, represented as placeholders, to personalize messages to your customers.

Message templates use numbered placeholders '{{x}}' for each variable in the message. Each variable can be replaced with text that contains letters, digits, special characters and/or spaces. Each message template needs to contain at least one parameter. Here is an example of the full body of a message:

{{BOX}} Hi Joey! Thanks for starting your personal training plan. We’ll send you a weekly update with your new schedule. You can log in online using your training ID 123456. Stay fit!

This message needs to be submitted with variables to personalize it for each of your customers: {{BOX}} Hi {{1}}! Thanks for starting your personal training plan. We’ll send you a *{{2}}* *update* with your new schedule. You can log in online using your training ID {{3}}. Stay fit!

Note that there is also a bold element in the text which you can easily add to your message template. Here is an example of an order confirmation:

{{BOX}} Hi Judy! Thanks for placing an order at FabShoes. Your order 786564, for a total of EUR 45.00, is confirmed. The expected delivery date is May 26th.

Here is how you would submit this message:

{{BOX}} Hi {{1}}! Thanks for placing an order at FabShoes. Your order {{2}}, for a total of EUR {{3}}, is confirmed. The expected delivery is {{4}}.

Please note: the actual content of a variable can’t contain the following:

  • New lines
  • Tabulators
  • More than four consecutive spaces