People expect an agent to remember them. A customer who ordered last week does not want to repeat their address. A staff member does not want to explain the same rule to the agent every morning. But memory in an agent is a design choice, not a natural gift, and what an agent remembers has consequences for privacy, cost and accuracy. Some things it should hold carefully. Some it should never keep.
Agents do not remember by default
A language model does not remember past conversations on its own. Each time the agent runs, the model sees only what the surrounding software gives it: the instructions, the current task and whatever stored information the system chooses to add. When it seems to remember, that is because someone built a store of past information and a way of feeding the relevant parts back in.
This is good news. It means memory is something you control completely. You decide what gets saved, where, for how long and who can see it.
Four kinds of memory
Working memory
What the agent knows during one task: the customer’s message, the steps it has taken, the results it got back. This disappears when the task ends unless you save it. It is necessary and usually harmless.
Customer or case memory
Facts about a specific customer or case that help next time: delivery address, preferred language, past orders, an open complaint. This is useful and also the most sensitive, because it is personal information.
Business knowledge
Your price list, policies, product details and standard answers. This is not really memory about people at all. It is reference material the agent reads from. It should be kept current and controlled by the business, not learned by the agent from conversations.
Lessons
Notes about what worked or went wrong: “Customers in the north often ask about bus parcel delivery”, “The supplier’s invoices put the total at the top, not the bottom”. These improve the agent over time, but they should be written or approved by a person, not added automatically.
What an agent should remember
- What the customer has told you and expects you to know. Their name, delivery address, preferred language for replies. Repeating these questions is irritating.
- The state of open cases. An order waiting for stock, a complaint being looked into, a document that was missing. Otherwise every message starts from zero.
- Decisions people made. “Manager approved a 5 percent discount for this customer on this order.” The agent should know this so it does not offer it again elsewhere or refuse it wrongly.
- Its own action history. Kept in logs, not in the model, so you can review what it did.
What an agent must forget, or never keep
- Payment details. Card numbers, bank passwords, one-time codes. An agent should never store these, and ideally should never see them. Payments belong in a proper payment system.
- Identity documents beyond what the task needs. If an agent checks that an ID number is present on a form, it does not need to keep a copy of the ID image afterwards.
- Health, family or financial hardship details shared in passing. A customer explaining a late payment by mentioning an illness does not mean that illness should sit in a record forever.
- Anything a customer asks you to delete. There must be a way to remove a person’s stored details completely, and staff must know how.
- Old information that is no longer true. Stale addresses and outdated prices cause real mistakes. Memory needs expiry dates.
Data protection laws, in Sri Lanka and elsewhere, generally expect businesses to keep personal data only as long as it is needed for a clear purpose. An agent’s memory is part of your data, and the same rules apply to it as to a customer file in a cabinet.
Designing memory sensibly
- Write a memory list. For each item the agent may store, note why it is needed, how long it is kept and who can see it.
- Store memory in your systems. Customer details belong in your own database or CRM, where you control them, not scattered in an AI vendor’s account.
- Retrieve only what the task needs. When handling a delivery question, the agent needs the order and address, not the customer’s full history.
- Let people correct it. Staff should be able to see and fix what the agent has stored about a customer.
- Keep lessons under review. Anything that changes how the agent behaves in general should be approved by a person.
The honest limit: more memory does not make an agent smarter. Feeding it large amounts of past conversation often makes it slower, more expensive and more confused, because it has more irrelevant material to wade through. Small, well-chosen memory beats large, unsorted memory.
Before switching on memory for any agent, write the one-page memory list above and show it to whoever handles customer complaints in your business. If they would be uncomfortable explaining any line to a customer, remove that line.