> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gameball.co/llms.txt
> Use this file to discover all available pages before exploring further.

# What Are Dynamic Variables in Communication Campaigns?

> Learn how to effectively use the dynamic variable for relevant communication after a completed transactional action from your customers.

Through Gameball, you can always create any sort of communication campaign such as emails, Web messages, Mobile Push, or SMS. In these messages' content, you can always use variables to personalize the message and make it more relevant.

For example, you can use info such as customer name, tier, referral line, etc. These communication campaigns could be triggered by actions a customer does.

Now, with every transactional-related action a customer takes, you can use a new set of dynamic action-related variables in your message based on the type of event that took place. For example, if a customer just completed an order, a triggered message could be sent that includes details of the order like the price and order id.

***

## What to Use the Dynamic Variables For

By allowing event-triggered messages to dynamically incorporate event properties into their content. Whether you're sending an email, web message, push notification, or SMS, you can now use event-specific data as variables within the message body.

This update is particularly useful for **transactional messages**, ensuring that every communication is relevant, personalized, and **context-aware**.

***

## Use Cases

<AccordionGroup>
  <Accordion title="Subscription Renewal Completion with Personalized Details" icon="rotate">
    Send an **automated renewal thank you message** via email, push, or SMS, including **customer-specific details** like the **subscription plan name, ID, and the amount charged**.

    Example: *"Hey \[Customer Name], your \[Gold Membership] subscription was renewed successfully for \[Amount] and your payment ID is \[Payment ID]. Enjoy our uninterrupted benefits!"*
  </Accordion>

  <Accordion title="Shipment & Delivery Updates with Live Tracking Links" icon="truck">
    For e-commerce stores, dynamically **insert tracking numbers, estimated delivery dates, and tracking links** in emails and SMS.

    Example: *"Your order \[#Order ID] has been shipped! Track your package here: \[Tracking Link]. Expected delivery: \[Delivery Date]."*
  </Accordion>
</AccordionGroup>

***

## How to Set Up and Trigger Transactional Communication Campaigns Using Dynamic Variables

<Steps>
  <Step title="Navigate to Communication Campaigns">
    From the left bar, go to **Campaigns** then **Communication**, then click **Create Communication Campaign**.

    <Frame>
      <img src="https://mintcdn.com/gameball/Y-kvbRwRwxU28-hg/images/product-docs/communication-campaigns/dynamic-vars-create-campaign.png?fit=max&auto=format&n=Y-kvbRwRwxU28-hg&q=85&s=1347356532cbb2c0bbf819d09987df28" alt="Create communication campaign" width="1600" height="789" data-path="images/product-docs/communication-campaigns/dynamic-vars-create-campaign.png" />
    </Frame>
  </Step>

  <Step title="Choose the Campaign Type">
    Choose the type of campaign.

    <Frame>
      <img src="https://mintcdn.com/gameball/Y-kvbRwRwxU28-hg/images/product-docs/communication-campaigns/dynamic-vars-choose-type.png?fit=max&auto=format&n=Y-kvbRwRwxU28-hg&q=85&s=1dbbe8f34b4acd215102bedec0a91db2" alt="Choose campaign type" width="1600" height="788" data-path="images/product-docs/communication-campaigns/dynamic-vars-choose-type.png" />
    </Frame>
  </Step>

  <Step title="Follow the Configuration Steps">
    Follow the normal configuration steps for creating a communication campaign.
  </Step>

  <Step title="Select Action-Based Trigger">
    Under **Triggers**, you must choose **Action based**.

    <Frame>
      <img src="https://mintcdn.com/gameball/Y-kvbRwRwxU28-hg/images/product-docs/communication-campaigns/dynamic-vars-action-based.png?fit=max&auto=format&n=Y-kvbRwRwxU28-hg&q=85&s=4c72e885f304c34fda5905af085b6908" alt="Select action-based trigger" width="1600" height="785" data-path="images/product-docs/communication-campaigns/dynamic-vars-action-based.png" />
    </Frame>
  </Step>

  <Step title="Choose the Transactional Action">
    Choose the type of transactional action you want to set as a trigger for the message. You can choose actions.
  </Step>

  <Step title="Proceed to Scheduling">
    Proceed with the scheduling step. Afterwards, you will move to the **Composing** part.
  </Step>

  <Step title="Use Dynamic Variables in the Message">
    In the **Composing** part, while composing the **Head** and **Body** of your message, you can integrate some variables into the message.

    To use the event-related **Dynamic Variables**, scroll down the list to find them under **Event Variables**.

    <Frame>
      <img src="https://mintcdn.com/gameball/Y-kvbRwRwxU28-hg/images/product-docs/communication-campaigns/dynamic-vars-event-variables.png?fit=max&auto=format&n=Y-kvbRwRwxU28-hg&q=85&s=478251783f9b8c68b354a589c4ddbe88" alt="Event variables in message composer" width="1600" height="787" data-path="images/product-docs/communication-campaigns/dynamic-vars-event-variables.png" />
    </Frame>
  </Step>
</Steps>

***

## How to Set Up and Trigger Transactional Email Campaigns Using Dynamic Variables

Emails usually have a slightly different configuration process. To create an email using dynamic variables, follow the first steps of creating an **action-based communication campaign**, then when you reach the step for writing the content or body of the email, click **Merge Tags** to use the event-related variables.

<Frame>
  <img src="https://mintcdn.com/gameball/Y-kvbRwRwxU28-hg/images/product-docs/communication-campaigns/dynamic-vars-email-merge-tags.png?fit=max&auto=format&n=Y-kvbRwRwxU28-hg&q=85&s=2a47c6b53f624fc33b3f7da736c3c803" alt="Merge tags in email composer" width="2482" height="1278" data-path="images/product-docs/communication-campaigns/dynamic-vars-email-merge-tags.png" />
</Frame>

***

<CardGroup cols={2}>
  <Card title="Create & Configure Email Campaigns" icon="envelope" href="/product-documentation/communication-campaigns/create-and-configure-email-campaigns">
    Learn how to build and configure email communication campaigns step by step.
  </Card>

  <Card title="Create & Configure Web Message Campaigns" icon="browser" href="/product-documentation/communication-campaigns/create-and-configure-web-message-campaigns">
    Learn how to build and configure web message campaigns for real-time customer engagement.
  </Card>
</CardGroup>
