Loading
Prepare for Email to Become the Default Login ExperienceRead More
Agentforce and Einstein Generative AI
Enable Agent Memory

Enable Agent Memory

Enable Agent Memory at the agent level so the agent can recall relevant details from your users' conversations and personalize future responses. Enabling memory applies to all of your agent's users, and for Agentforce Employee agents in Lightning Experience, each user then individually chooses whether to opt in.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Performance, Unlimited, and Developer Editions. Required add-on licenses vary by agent type.
User Permissions Needed
To enable Agent Memory: Manage AI Agents AND the required permissions for your agent type
  1. From the App Launcher, enter Agent, select Agentforce Studio, and click Agents.
  2. Open the agent that you want to enable memory for, or create a new agent.
  3. In Agentforce Builder, toggle to Script view.
  4. In the Agent Script, add memory: enabled: True in the context block.
    Agent Script autocompletes the property as you type. Values are case-sensitive. Use True or False.
    Agent Script showing the memory property set to enabled True in the context block.
  5. Save your changes.
  6. Start a preview conversation to validate that memory is retained across interactions.
  7. Commit and activate your agent.
    Committed versions can't be edited. To make changes, create a new version. See Versioning and Editing Agents.

To disable Agent Memory, set memory: enabled: False in the same context block, save, and commit a new version. When Agent Memory is disabled, the agent stops creating and using memories, and existing memories are preserved.

For Agentforce Employee agents in Lightning Experience, users must also opt in before the agent begins creating memories for them. See Manage Agent Access to Your Memories.

 
Loading
Salesforce Help | Article