Save Variable

How to Use the “Save Variable” Function in Botassium Automations

As your automation flow collects data from the user—like inputs, decisions, or external responses—you may want to store values manually for later use. The “Save Variable” function in Botassium lets you do exactly that: define and assign a variable at any point in the automation process.

This guide explains how to use this node to create custom variables and keep your flow organized and reusable.

What is the “Save Variable” Function?

The Save Variable node is a utility function that allows you to manually create or update a variable by assigning it a value. That value can be either:

  • Static (e.g., "Premium", 42, https://example.com)

  • Or dynamic (e.g., @user_input, @Phone Number)

Once saved, the variable becomes available throughout the flow and can be used in:

  • Conditions

  • Messages

  • Webhooks

  • And other nodes..

How to Set It Up

  1. Add the “Save Variable” Node
    Drag this node into your automation wherever you want to define or update a variable.

  2. Enter the Variable Name
    This is the name of the parameter you want to create or overwrite.
    Example: subscription_type, user_country, chat_score

  3. Enter the Variable Value
    You can:

    • Type static text, numbers, or links

    • Insert a dynamic variable using the dropdown (e.g., @user_email, @selected_option)

    • Combine both (e.g., "Promo-" + @coupon_code")

The value will be saved as-is and can be referenced later using {{variable_name}}.

Example Use Case

You want to tag users with a predefined label based on their input:

  1. A user selects a service category

  2. You use a condition to check their choice

  3. In one path, use Save Variable:

    • Variable Name: user_segment

    • Variable Value: High Priority

  4. In another path, save: user_segment = Standard

You can now reference @user_segment in messages, filters, or exports.

The Save Variable function works across all WhatsApp automation flows, and is especially helpful for storing user data, managing state, dynamic replies, conditional logic, and integrating collected info into other platforms or responses.

يتكامل بسلاسة مع أدواتك المفضلة

قم بإنشاء روبوتات محادثة قوية لـ واتساب بنقرات قليلة فقط.

ابدأ الآن

انضم إلى نشرتنا الإخبارية عبر البريد الإلكتروني

يتكامل بسلاسة مع أدواتك المفضلة

قم بإنشاء روبوتات محادثة قوية لـ واتساب بنقرات قليلة فقط.

ابدأ الآن

انضم إلى نشرتنا الإخبارية عبر البريد الإلكتروني

يتكامل بسلاسة مع أدواتك المفضلة

قم بإنشاء روبوتات محادثة قوية لـ واتساب بنقرات قليلة فقط.

ابدأ الآن

انضم إلى نشرتنا الإخبارية عبر البريد الإلكتروني