Agent Memory: How AI Agents Remember Customers and Context
Last updated:
Nobody likes repeating themselves
A customer contacts support for the third time about the same delayed order and has to explain it all again. A returning client asks an assistant about the project from last spring, and it has no idea what they mean. Customers notice this far more than they notice clever phrasing.
So agent memory has become one of the most requested features of 2026. It is also one of the most misunderstood. The model does not learn from conversations. Every time it runs, it starts from nothing, and anything it appears to remember was retrieved by your software and placed in front of it. That is good news, because it means memory is something you design and control.
The four kinds of memory an agent uses
| Type | What it holds | Where it usually lives | How long |
|---|---|---|---|
| Working memory | The current conversation or task | The model's context for this run | Minutes to hours |
| Profile memory | Structured facts: account, plan, preferences, open orders | CRM, database | Life of the relationship |
| Episodic memory | Summaries of past interactions | Database, linked to the customer | Months, with expiry |
| Knowledge memory | Policies, product information, how-to content | Search index or vector store | Until updated |
Most disappointing agent memory projects mix these up. They stuff whole transcripts into a vector database and hope the right fragment comes back. The better approach is to put facts in structured fields, keep short summaries for history, and use semantic search for knowledge rather than for customer records. We cover the mechanics in how AI agents use tools, APIs and memory.
What an agent should remember about a customer
The test we use is simple: would a good account manager write this down, and would the customer be comfortable seeing it?
- Preferred contact method and language
- Open orders, tickets and promised follow-ups
- Stated preferences relevant to service, such as delivery windows or product sizes
- Outcomes of past issues, so the agent knows a refund was already given
- Commitments made by staff or the agent, with dates
Just as important is the list of things it should not keep: sensitive details mentioned in passing, health or financial circumstances beyond what the service needs, guesses about mood or personality, and anything the customer asked to be forgotten.
If you would be embarrassed to read a memory aloud to the customer it describes, the agent should not have stored it.
How memory gets written, and why that step matters most
Retrieval gets the attention, but writing is where memory goes wrong. If an agent saves every inference, errors accumulate. One misunderstanding becomes a permanent fact, and every later conversation repeats it.
- At the end of an interaction, the agent proposes memory updates in a structured format
- Code checks them: allowed fields only, no sensitive categories, no contradictions with system-of-record data
- Facts that belong in the CRM, such as a changed address, go through the normal update route rather than into agent memory
- Summaries are short, dated and linked to the source conversation
- Low-confidence items are dropped or flagged for staff rather than stored
The system of record always wins. If the agent's memory says a customer is on the premium plan and billing says standard, billing is right and the memory is corrected.
Privacy, GDPR and the right to be forgotten
Agent memory is personal data under UK and EU GDPR, with all the usual obligations. That has practical consequences for design.
- Purpose and minimisation. Store only what serves the stated purpose, and say so in your privacy notice.
- Access and correction. Be able to show a customer what the agent holds about them and fix it.
- Erasure. Deleting a customer must remove summaries, embeddings and cached context, not only the CRM record.
- Retention. Episodic memories should expire on a schedule unless there is a reason to keep them.
- Transparency. Where an agent refers to past interactions, customers should understand why it knows.
Erasure is the one teams most often forget, because memory ends up copied into logs, vector indexes and evaluation datasets. Map every place it lands before launch. Our guide to AI security and data privacy covers the wider controls.
Common agent memory mistakes
- Storing full transcripts forever because storage is cheap
- Letting the agent write directly to the CRM without validation
- Retrieving memories by similarity alone, so another customer's similar issue surfaces
- No tenant or customer filter on vector searches, which is a data leak waiting to happen
- Memory nobody can inspect, so wrong beliefs persist for months
The cross-customer leak deserves repeating. Every memory lookup must be filtered by customer identity in code before any similarity search happens.
Where to start
At SpiderHunts, the first version of agent memory we build is usually just profile memory: the agent reads structured customer data from the CRM at the start of each conversation, and writes back a short dated summary at the end. That covers most of the benefit customers actually feel. Episodic search and preference learning come later, once there is evidence they help.
That approach fits into our AI chatbot development and agent work, and it builds on the conversation handling described in conversation memory for AI integrations.
Frequently asked questions
Do AI agents remember past conversations?
What is the best way to store AI agent memory?
Is AI agent memory covered by GDPR?
Can agent memory become inaccurate?
Want an agent that remembers without getting creepy?
Tell us what your customers currently have to repeat every time they get in touch. We will sketch what an agent should remember, where it should live and what it should forget.
Related services
What we build for problems like this one