What are Variables?
Variables in Arahi AI allow you to define and reuse data across your Agents—eliminating the need to repeatedly type the same information. They act as dynamic placeholders that make your workflows more efficient, consistent and flexible. Variables are especially useful for data that changes over time, such as company details, product specs, service guidelines or default API endpoints.
Configure Variables
In the Variables section of your Agent Builder:
-
Name: Create a descriptive name for the variable (e.g.,
company_name,region_code). -
Description: Add context about what the variable represents and how it should be used.
-
Input/Value: Enter the actual value of the variable (e.g., “Innovalabs Technologies”, “EMEA”).
-
Reference Name: Define the name you will use inside prompts/tools (e.g.,
{{company_name}}). -
Data Type: Specify the type of data the variable contains (text, number, boolean, list, etc.). :contentReference[oaicite:2]index=2
Set Values
Once variables are configured, the “Set Values” tab provides a quick interface to update the values without changing other properties.
-
View all your variables in one place. :contentReference[oaicite:3]index=3
-
Modify values quickly—once you update the variable here, all prompts/tools referencing it will automatically reflect the change.
-
Ideal for maintenance: when e.g., your product pricing, region code or service name changes, just update one variable rather than hunting through prompts.
Use Cases & Examples
Consider using variables for:
-
Company name or legal entity (e.g.,
{{company_name}} = “Innovalabs Technologies”) -
Region or market code (e.g.,
{{region_code}} = “APAC”) -
API endpoint or version (e.g.,
{{api_base_url}}) -
Default tone or style for Agents (e.g.,
{{tone}} = “friendly professional”) -
Product or service names that may change (e.g.,
{{product_name}})
Benefits of Using Variables
-
Efficiency: Define key values once and reuse.
-
Consistency: Ensure the same data is used across all prompts, tools and workflows.
-
Flexibility: When something changes (pricing, region, product), you update just the variable—not every prompt/tool.
-
Reduced error-risk: Avoid mismatches across different parts of your Agent logic.
Best Practices
-
Use descriptive variable names that clearly reflect their purpose.
-
Document variables and their intended use (especially team-wide).
-
Avoid over-parameterising: only create variables for values that will genuinely change or be reused.
-
In your prompts/tools, use the
{{variable_name}}syntax consistently. -
Maintain a variables catalogue or table in your docs: name, description, default value, last modified date.
-
For environment-specific values (e.g., sandbox vs production), consider prefixing or separating variables accordingly (e.g.,
{{prod_api_url}},{{dev_api_url}}).
Example Variable in Practice
Variable Name: company_name
Value: “Innovalabs Technologies”
Usage in Prompt:
“You are the Agent for {company_name}. Your task is to…”
If the company rebrands (e.g., changes to “Innovalabs AI”), you simply updatecompany_nameand all Agent prompts update accordingly.
Summary
Variables may seem like a small feature, but they significantly improve how you build and maintain Agents in Arahi AI. By centralising reusable values, you make your Agent logic more resilient to change, easier to manage, and consistent in execution.
Start by defining the few core variables you’ll reuse across your workflow—and expand as your platform scales.