---
schema_version: "1"
id: 51fa0484217e3c1c731b66e3608fbe0f9363ce1d8a5cd753dd1024c9dc382d27
title: Variables
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_parent_variables.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_parent_variables.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 073a922d578bdd2b4fce9ef2f6b2e210ade293d1a94760ca2eab430205e46261
description: With variables, your agent can store and reuse values that help it with reasoning and interactions. Variables work differently in Agentforce Builder and the legacy builder.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Variables

With variables, your agent can store and reuse values that help it with reasoning and interactions. Variables work differently in Agentforce Builder and the legacy builder.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions. <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;release=264.0.0&amp;type=5" title="Learn about agent types and default templates for specific clouds and common use cases.">Required add-on licenses vary by agent type.</a></td></tr></tbody></table>

- **[Variables](https://help.salesforce.com/s/articleView?id=ai.agent_builder_variables.htm&release=264.0.0&type=5)**  
    To improve security and ensure consistent agent behavior, use variables throughout your agent’s reasoning and interactions, such as in filters, instructions, and logical expressions.
- **[Variables in the Legacy Builder](https://help.salesforce.com/s/articleView?id=ai.agent_variables.htm&release=264.0.0&type=5)**  
    To improve security and ensure consistent agent behavior, use variables in filters, instructions, and as input for actions. You can use variables to control how your agent uses subagents and actions and to provide more information about a conversation.