---
updatedAt: 2026-07-03T10:43:07.000Z
agentTools:
  projectIndex: https://developers.kaleyra.io/llms.txt
---

# Set a Default Variable

You can set default values for the variables in your SMS Campaigns. The default values will be used in the message when the contact does not have a value for the variable defined in its record.

You will see an option to **{\*} Set Default Value** in the text editor ONLY when the message body includes at least one dynamic variable. Variables identified using the @ or {} symbol will be eligible to set default values.

To set default values, perform the following steps:

1. Follow step 1 to step 8 of [Launch an SMS Campaign](https://developers.kaleyra.io/docs/launch-an-sms-campaign).<br />The **New SMS Campaign** page appears.

   <Image src="https://files.readme.io/f2d9b24f2ee13a586c8dbdd9a7ce25022f54a599ece12cb9272f31784fdd462f-sms-campaign-new_28.png" border={true} />

2. On the **Body** field, click the **+&#x20;**&#x69;con.<br />The **Variable \`**{1}**\`** field appears.

<Image src="https://files.readme.io/9a6fa4b9ee5cad1879cb055f2e8736416f3a436cc3fcfeaf09c983b3fd27d9ea-sms-campaign-new_33.png" align="center" border={true} />

The **Set Default Value** page appears listing all the dynamic variables (parameters) used in the message body.

<Image src="https://files.readme.io/8141a353d89f6c5442ad0089469c22a7734a5449d486ec331ea67d70398aaa75-sms-campaign-new_34.png" align="center" border={true} />

2. In the **Default Value** field, enter the required default values to the listed parameters. The default value will be picked up in case, for a given recipient, no value to substitute the dynamic variable is found in the uploaded campaign file; this will avoid sending SMS with actual text displaying dynamic variable instead of a proper value.

<br />