Articles on: Optimized.App

How to Use Variables in Communication?

Learn how to personalize SMS and voice messages using variables populated from your contact data.


Variables allow you to personalize communication by dynamically inserting contact-specific information into your SMS and TTS (Text-to-Speech) content.
Instead of creating separate messages for each recipient, you can use variables that are automatically replaced with the correct values when the communication is sent.


For example:

Hello {{first_name}},

Your outstanding balance is {{amount}} EUR.

When sent, the recipient might receive:

Hello John,

Your outstanding balance is 125 EUR.


How Variables Work

To use a variable, place its name inside double curly braces:

{{variable_name}}

The system will automatically populate the value from the corresponding contact attribute, provided that:

  • The attribute exists on the contact profile
  • The variable name exactly matches the attribute name

For example:

Contact Attribute

Variable

first_name

{{first_name}}

reference_number

{{reference_number}}

amount

{{amount}}

amount2

{{amount_second}}


Why Use Variables?

While only a Phone Number and one Primary Field are required to create contacts, importing additional attributes allows you to build more relevant and personalized communication.
Common use cases include:

  • Greeting recipients by name
  • Including reference numbers
  • Providing payment information
  • Displaying account-specific details
  • Maintaining profile-specific status information
  • Improving engagement and conversion rates through personalization


Managing Contact Attributes

Variables are based on contact attributes.
To learn how to create and manage contact attributes, see:
➡️ How to Add a Contact Attribute


Importing Data for Variables

Before variables can be used, the corresponding data must be imported into your contact profiles.
To learn how to import contact data, see:
➡️ How to Import a List Using CSV or XLSX File


Best Practices

  • Use clear and consistent attribute names
  • Verify that imported data contains values for the variables you use
  • Test your communication before scheduling it
  • Only use variables that exist in your contact data


Summary

Variables make it easy to personalize SMS and voice communications without creating separate messages for each recipient.
Simply include the attribute name in double curly braces, and the platform will automatically populate the correct value for each contact.

Updated on: 18/06/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!