Learning Center

AI agents and memory

AI agents are only as good as what they know. These explainers cover agent memory and context, how they differ, and why real-time context is what lets a customer-facing agent act on what someone is doing right now.

The real engine · no card · no sales call

In this topic

What is agent memory?

Agent memory is the information an AI agent stores and reads back so it does not start from nothing on each turn. It covers the task in progress, held in the context window, and what should last across sessions, held in a store the agent writes to and recalls from.

Short-term vs long-term agent memory

Short-term memory in an AI agent is the state of the current conversation or task, held in the context window and scoped to one thread. Long-term memory is what the agent keeps in a separate store and reads back in later sessions, usually split into episodic, semantic and procedural memory. Most useful agents need both, and customer-facing agents also need a third input neither covers, the user's live behavior.

What is agentic context?

Agentic context is the structured picture of the current situation that an AI agent reads before it acts. It is how the agent knows what is going on beyond the words of the prompt.

Context engineering vs prompt engineering

Prompt engineering is writing the instruction a model follows, its wording, examples and output format, fixed before the agent runs. Context engineering is choosing what the model reads on each call, assembled at run time from documents, tool results, memory and the user's current state.

Why AI agents need real-time context

Real-time context for AI agents is the current state of what a user is doing, such as the pages they viewed, the forms they sent and the steps that failed, computed from events and readable while the user is still there. Without it, an agent answers from the conversation and from records loaded earlier, so it asks for details the user just gave or recommends what they just turned down.

What is a customer-facing AI agent?

A customer-facing AI agent is an AI agent that talks to or acts for a company's customers, in support, shopping, onboarding or account management. Internal copilots answer to employees, while a customer-facing agent works in front of the customer, so what it knows about that person decides whether it helps.

How agents act on live customer behavior

AI agents act on live customer behavior in one of two ways. They pull the customer's current state when the customer talks to them, or a behavior crosses a threshold you set and pushes the agent to act before the customer asks. Both run the same loop: an event updates a computed value, the agent reads it and decides, and what it did is recorded as a new event.

What is context engineering?

Context engineering is the work of deciding what information an AI agent has in its context window at each step, and getting it there in a shape the model can use. It covers instructions, tools, retrieved documents, memory, conversation history and live state about the user. For agents, it decides more of the answer than the wording of the prompt.

What is LLM memory?

LLM memory is any way an application gives a language model information beyond the prompt in front of it, because the model itself keeps nothing between calls. It covers the context window, saved conversation history, stored memories, retrieval and fine-tuning. Each is filled from what someone said or wrote, so none of them changes when the user does something in your product. Memory of what they are doing right now is behavioral memory.

Start with the free tier

Read the ideas, then put them to work: add the SDK, define one attribute, and see an attribute updating against your own traffic in the first session. The free tier runs on the real engine: no card, no sales call.