Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

Do AI Agents Have Memory Between Tasks? What Really Happens Behind the Scenes

The short version: No, most AI agents do not remember anything between tasks unless someone has deliberately built a memory system into them. The model itself starts fresh every single time it runs, and anything that looks like “remembering” is a database, a spreadsheet, or a summary being fed back into the prompt.

What people mean when they ask this

When a business owner asks me this, they usually mean one of two things: “if my agent talks to the same customer twice, will it recognise them?” or “if my agent does task one today and task two next week, will it know what happened last time?” The answer to both is the same and it’s not the answer most vendors want to give you: on its own, no.

Large language models like GPT-4o or Claude are stateless. Every time you call one, it sees only what’s in that specific request: the system prompt, the instructions, and whatever context you’ve pasted in. Close the window, start a new task, and the model has zero idero what happened before. It’s not being coy or forgetful in a human sense. There’s simply nothing stored anywhere unless you built the storage yourself.

The three kinds of memory an agent can have

This is where it gets useful, because “memory” isn’t one thing. There are three layers, and knowing the difference stops you buying a tool that promises the wrong one.

  • Session memory – the agent remembers what happened earlier in the same conversation, because that transcript is still sitting in the context window. Close the chat and it’s gone.
  • Long-term memory – a separate database (often a vector store like Pinecone or a simple Airtable base) holds facts about a person or a project. Before the agent runs, a script queries that store and stuffs the relevant bits back into the prompt. This is what ChatGPT’s “memory” feature and most enterprise agent platforms are doing.
  • Structured memory – the boring but often most reliable option. A CRM field, a ticket status, an order number. No AI involved in the remembering at all, just plain old database rows that the agent reads and writes.

Almost every commercial agent tool markets version two as if it’s the model itself getting smarter about you over time. It isn’t. It’s retrieval, not cognition. That distinction matters because retrieval can go wrong in ways a human memory doesn’t: it can pull the wrong record, miss the update from three days ago, or confidently mix up two customers with similar names. I’ve seen it happen.

A real example from a client project

Last year I set up a lead-triage agent for a five-person marketing agency in Manchester. The brief was simple: a form comes in, the agent reads it, scores the lead, and sends a personalised follow-up. Around 35 to 40 leads a week went through it.

Two weeks in, the agency owner flagged something odd. A prospect had filled in the form, got a follow-up, replied with a question, and then filled in a second, related form a few days later for a different service. The agent treated her as a total stranger the second time. Wrong tone, repeated questions she’d already answered, no reference to the earlier conversation at all. From her side it looked like nobody was paying attention.

The fix wasn’t complicated but it also wasn’t free: we added a lookup step at the start of every run that checked her email address against a Google Sheet log of everyone the agent had ever spoken to, pulled a two-line summary of the last interaction, and fed that into the prompt before it did anything else. That’s it. That’s what “the agent remembers her” meant in practice: one lookup, one summary, one extra API call. It added maybe 400 milliseconds and a fraction of a cent per run, and it fixed the whole problem.

That project is a decent example of the gap between what agent vendors imply and what you need to build yourself, which I’ve written about in more detail in AI agents vs agentic AI if you want the fuller picture of what these tools do and don’t do on their own.

Step by step: how to give an agent memory

If you’re building this yourself, or briefing someone who is, here’s the sequence that works:

  • 1. Pick a unique identifier. Email address, phone number, or customer ID. This is the key everything else hangs off.
  • 2. Choose your storage. For under 500 contacts, a Google Sheet or Airtable base is fine. Past a few thousand, or if you need semantic search across long documents, move to a vector database.
  • 3. Write a lookup step before the agent does anything else. Query the store using the identifier, pull back the last interaction summary, not the full transcript.
  • 4. Summarise, don’t store raw. Feeding an agent a 3,000-word transcript from six weeks ago every single time is slow and expensive. A two or three sentence summary does the job and keeps token costs down.
  • 5. Write back after the task. Update the store with what just happened before the agent finishes running, or the next task starts blind again.
  • 6. Set an expiry rule. Decide how old is too old. A memory from eighteen months ago about a customer’s preferences might be actively wrong now.
  • 7. Test the edge case on purpose. Run the same contact through twice, a week apart, and check the second run reflects the first. Most failures show up right here.

None of this requires a developer full time. Tools like n8n, Make, and Zapier can wire steps two through five together without code, which is the route I’d point most small businesses toward. I’ve mapped out the practical options in where to build your own AI agent without coding.

The uncomfortable bit nobody selling agent software tells you

Here’s the part that gets skipped over in most explainers: giving an agent memory doesn’t just make it smarter, it also makes it more expensive and more prone to a specific kind of failure that plain, memoryless agents don’t have.

Every fact you store and re-inject into the prompt costs tokens, and tokens cost money, on every single run, forever. A memory-enabled agent handling 500 tasks a day, each pulling back even a modest 300 tokens of stored context, adds up to real spend over a month, on top of whatever the base task already costs. That’s before you factor in the storage and lookup infrastructure itself. I go through the actual numbers, not vendor estimates, in how much AI agents really cost to build or run, and memory is consistently one of the line items people forget to budget for.

The failure mode is worse, in my opinion, than plain forgetfulness. A stateless agent that doesn’t remember you is annoying but predictable; it treats everyone the same, every time. A memory-enabled agent that gets its retrieval slightly wrong is unpredictable in a way customers notice immediately and trust you less for. It’ll confidently reference a conversation that happened with someone else, or bring up an old complaint you resolved months ago as if it’s still live. Most write-ups on agent memory treat “give it memory” as an unambiguous upgrade. It isn’t. It’s a trade: you’re swapping a known, boring limitation for a smaller but sharper risk, and you need someone testing for that risk on purpose, not assuming a feature ticked on a settings page has handled it for you.

Where this is heading

The direction of travel is toward agents holding more persistent state by default, and some platforms already do this reasonably well for narrow use cases: a customer support tool that remembers a ticket history, a scheduling assistant that remembers your usual meeting length. That’s a different thing to a general-purpose agent “remembering you” the way a colleague would. I covered a few of the newer memory-adjacent releases in AI news this week for small business, 9 August 2026 and the pattern holds: vendors describe it as memory, the mechanism underneath is still retrieval plus a database.

If you’re weighing up whether to build this in-house or get help, this is exactly the kind of setup where a short session with someone who’s built the wiring before saves you weeks of trial and error, and I’ve laid out what that typically costs and what it should cover on my AI implementation coach page.

For a lower-stakes example of the same principle at work, an online booking app saving a solo operator time is doing a version of this: it “remembers” your preferred slot because it stored the data last time, not because the software got to know you.

Frequently asked questions

Do AI agents remember conversations after you close the app?

No, not unless the platform has explicitly built a memory feature that saves a summary or transcript to a database and reloads it the next time you open a conversation with the same identifier. Without that, each new session starts with nothing.

Does ChatGPT’s memory feature mean the model learns about me?

Not in the sense of the model itself changing. ChatGPT’s memory saves specific facts to a personal store and reinjects relevant ones into your prompts before it responds, which is retrieval, not the underlying model learning. Turn memory off and the facts stop appearing, but the base model hasn’t changed at all.

How much does it cost to add memory to an AI agent?

For a simple setup using a spreadsheet or Airtable as the memory store, expect a few hours of setup work and a marginal increase in per-run token cost, often less than a cent per task. Vector database setups for larger volumes or long documents cost more in both build time and ongoing hosting, typically tens to a few hundred pounds a month depending on volume.

Is it worth giving my small business agent memory, or should I keep it simple?

If the same customer or contact interacts with your agent more than once, yes, some memory pays for itself quickly in reduced friction and fewer repeated questions. If every task is one-off, a stateless agent is cheaper, simpler, and has fewer things that can go wrong.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.