How do I build an AI agent that remembers?
The AI Agent is an AI step that can hold a conversation, remember what it learns across conversations, and, in autonomous mode, plan its own steps and use your other apps as tools. It’s the brain behind the WhatsApp and Telegram assistant templates.
Set it up
Section titled “Set it up”| Setting | What it does |
|---|---|
| Provider and Model | OpenAI (GPT-4o Mini, GPT-4o) or Anthropic (Claude Haiku, Sonnet, Opus). On the Free plan, agents run on OpenAI. |
| System prompt | Who the agent is and how it behaves: its role, tone, rules and what it must never do |
| User message | What the agent receives each run, usually the incoming message, for example the WhatsApp text from the trigger |
| Use long-term memory | On by default. The agent saves useful facts and recalls them later. |
| Memory scope | Who shares the memory (see below) |
Connected upstream sources in the panel lists the steps whose data the agent can see, and warns if two give the same variable name.
A good system prompt
Section titled “A good system prompt”You are Amani, the assistant for Mama Mboga Fresh, a grocery delivery business in Nairobi.- Answer in the customer's language (English or Swahili).- Prices and delivery areas are in the price list below. Never invent a price.- If a customer wants a refund, say a person will call them and stop.- Keep replies under 60 words.Memory
Section titled “Memory”With memory on, the agent stores facts from conversations (“Wanjiru prefers deliveries after 5pm”) and brings the relevant ones back in later conversations.
| Scope | Who shares the memory |
|---|---|
| Workflow | Only this workflow |
| User | You, across all your workflows (the default) |
| Organization | Everyone in this workflow’s organization |
| None | Nothing is remembered |
Advanced settings:
- Memories per turn: how many memories are recalled each time.
- Max context tokens: how much conversation history the agent sees.
You can see, search and delete what agents remember on the Agent memory page. See agent chat and memory.
Autonomous mode
Section titled “Autonomous mode”Switch on Autonomous mode and the agent stops being a reply machine. It plans its own steps and calls other steps as tools: it can read your calendar, search your inbox, look up an order, draft and send a message.
| Setting | What it does |
|---|---|
| Goal | What the agent should accomplish, for example “Find candidates who applied more than 3 days ago with no reply, and follow up with each one.” |
| Max steps per run | A hard cap on tool calls (1-30, default 12). The run also stops on a repeated call or a detected loop. |
| Tools | Everything available, or Only what I pick. The list shows each tool and whether its app is connected. |
The tool list here seeds the agent the first time it runs. After that, Agents → Agent settings is the place to change it, and edits there win.
Safety rules that always apply
Section titled “Safety rules that always apply”- Irreversible actions always wait for your approval: sending email or messages, spending money, deleting. No setting can switch this off.
- Every agent has an autonomy level (Manual, Assisted or Full), limits on actions per hour and day and tokens per day, and a stop switch. See approvals and autonomy.
- Every decision is recorded in the Audit log.
Teams of agents
Section titled “Teams of agents”A lead agent can hand tasks to up to 5 specialist agents, such as a billing expert or a Swahili writer. See agent teams.
Testing an agent
Section titled “Testing an agent”Hover over the agent and click Test this agent, or chat with it on the Agent chat page. Watch Agent tasks to see each step it planned and took.
Templates with agents
Section titled “Templates with agents”- AI Assistant on WhatsApp for Your Business
- AI Chief of Staff on Telegram with Voice and Approvals
- AI Social Media Manager with Your Approval
- AI Job Search Assistant with a Daily Shortlist
- Slack Weekly Summary by an AI Agent
Questions
What is an AI agent?
An AI agent is an AI step that can hold a conversation, remember what it learns, and in autonomous mode plan its own steps and use your other steps as tools.
Can an AI agent remember my customers?
Yes. With memory on, it saves useful facts from conversations and recalls the relevant ones later. Choose who shares the memory with the memory scope.
Is it safe to let an agent use my email or M-Pesa?
Irreversible actions, such as sending, paying or deleting, always wait for your approval, and every agent has limits and a stop switch.