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
- Add the “Save Variable” Node 
 Drag this node into your automation wherever you want to define or update a variable.
- Enter the Variable Name 
 This is the name of the parameter you want to create or overwrite.
 Example:- subscription_type,- user_country,- chat_score
- 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:
- A user selects a service category 
- You use a condition to check their choice 
- In one path, use Save Variable: - Variable Name: - user_segment
- Variable Value: - High Priority
 
- 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.
