Save to Agent Memory
The Save to Agent Memory node stores data in a memory table that AI agents can access later. This enables persistent data storage across workflow runs.
📺 Video: How to Give Your AI Agents Memory
When to Use
Use Save to Agent Memory when you need to persist data between workflow executions. Common uses include building lead databases, storing enrichment results, or maintaining context for AI agents.
Inputs
Output Variables
Syntax Example
{{ !ref($.steps.saveToAgentMemory1.result.success) }}{{ !ref($.steps.saveToAgentMemory1.result.recordId) }}Example: Build a Lead Database
Example: Build a Lead Database
1. Fetch Search Results - get posts
2. Loop - iterate through posts
3. Person Enrichment - enrich the author
4. Email Enrichment - find their email
5. Save to Agent Memory - store the enriched lead data for future use
Pro tip: Use Agent Memory to save content that the agent can look through later. This may be to identify winning posts, best hooks or themes.
Related articles
Still need help? Ask the team