Skip to content

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.

SettingWhat it does
Provider and ModelOpenAI (GPT-4o Mini, GPT-4o) or Anthropic (Claude Haiku, Sonnet, Opus). On the Free plan, agents run on OpenAI.
System promptWho the agent is and how it behaves: its role, tone, rules and what it must never do
User messageWhat the agent receives each run, usually the incoming message, for example the WhatsApp text from the trigger
Use long-term memoryOn by default. The agent saves useful facts and recalls them later.
Memory scopeWho 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.

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.

With memory on, the agent stores facts from conversations (“Wanjiru prefers deliveries after 5pm”) and brings the relevant ones back in later conversations.

ScopeWho shares the memory
WorkflowOnly this workflow
UserYou, across all your workflows (the default)
OrganizationEveryone in this workflow’s organization
NoneNothing 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.

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.

SettingWhat it does
GoalWhat 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 runA hard cap on tool calls (1-30, default 12). The run also stops on a repeated call or a detected loop.
ToolsEverything 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.

  • 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.

A lead agent can hand tasks to up to 5 specialist agents, such as a billing expert or a Swahili writer. See agent teams.

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.

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.