💬 In plain words: A variable securely stores a specific fact for the rest of an AI conversation. Without variables, you are blindly trusting the AI model to remember things accurately. By using variables, you lock that fact in place so it never drifts, hallucinates, or disappears. Key Points Never rely on an LLM's implicit memory; use explicit state management via variables to store persistent facts across turns. Salesforce Agentforce supports multiple data types, including string , number , boolean , object , date , id , and list . Initialize default variable values at the beginning of the agent session (e.g., inside start_agent ). Use distinct syntax to reference variables in backend logic versus frontend prompt instructions. The Core Concepts Variables allow your agents to manage state reliably. When designing conversational logic in Salesforce Agentforce, understanding how to classify and reference data is crucial. ...
Agentforce