By default an agent remembers only the current conversation. Tensic can also give an agent memory across conversations: a running summary of everything that happened (Memory Bank), and a searchable index of past conversations (Memory Search). Use them for internal assistants where everyone using the agent may see the same information. Do not use them where users must not see each other's data.
How agent memory works: sessions, and why LLMs are stateless
An LLM is stateless. It receives a request, returns a response, and keeps nothing. Any "memory" an assistant appears to have is data that the platform stores and sends back to the model with each request. Tensic does this for you.
- Session memory (always on). Within one conversation (session) the agent remembers what was said. The session history is stored by Tensic and sent to the model on each turn.
- No sharing between sessions by default. A new session starts without knowledge of earlier ones. Ask "do you know anything about our previous conversations?" and the agent says no. This is deliberate: if your application serves many customers through one agent, shared memory would let one customer's information appear in another customer's conversation.
- Cross-session memory (optional). Turn on Memory Bank and/or Memory Search when all users of the agent may share information, for example a team's internal assistant.
Memory is not learning. The model itself does not change or improve from your conversations. The agent gets better answers because Tensic retrieves the right stored information at the right time. Describe this to users as memory, not as the AI "learning".
Enable Memory Bank on an agent
Memory Bank aggregates summaries of every conversation in the project into a shared memory that is injected into every chat's system prompt. It gives the agent general knowledge of what happened before, such as names, preferences and earlier requests, without being told again.
- Make sure the agent has an embedding model: Configuration > Embeddings. If the list is empty, the team's models have been restricted; see Build an agent project.
- Open the Memory tab.
- Under Features, turn on Memory Bank.
- Read the warning that appears: both memory features share conversation content across all users of the project ("every member's summaries and history become visible to the agent"). Do not enable them for projects with confidential per-user data.
- Click Save.
Memory Bank does not update in real time. A background job ("daydreaming") reads the project's conversations and summarises each one once it has been idle for 10 minutes; summarising uses the instance's system LLM, which a platform admin configures in Settings. Each run summarises up to five conversations and leaves the rest for the next run. Until a system LLM is configured, the Memory Bank section shows No summaries yet. New memories therefore appear some minutes after a conversation ends, not during it. Platform admins can watch the jobs under Observability > Cron Logs: memory_bank (summaries) and memory_index (the Memory Search index) each run about every five minutes and report their status and a message such as "Indexed 9 turn(s) across 1 project(s)." or "Summarized 3 conversation(s)". In the project's Logs, indexing appears as a (memory index) line and each lookup as a (memory search) line.
Enable Memory Search and the search_memories tool
Memory Bank gives a general picture but not every detail. Memory Search indexes every conversation turn so the agent can look up specific past questions and answers by meaning, date or term. It works like RAG, but over the agent's own conversation history instead of documents.
- Open the Memory tab and turn on Memory Search. It requires an embedding model on the project. Turns are indexed by the background job about every five minutes, so a new conversation becomes searchable a few minutes later.
- Click Save.
- Open Tools & MCP > Behaviour > Built-in tools and add the
search_memoriestool. - Click Save.
- Test in Playground by asking about something from an earlier conversation ("What did we discuss about the invoice?"). The agent calls
search_memorieson its own and answers from what it finds; the Tool trace in Logs shows the call, and each lookup is also logged as a(memory search)line for the embedding model.
Use both features together when details matter over time. Memory Bank keeps the overall picture small; Memory Search recovers specifics that were compressed out of the summary.
Users rarely ask for these features by name. Requests such as "it should remember what we talked about" point to Memory Bank; "it should be able to look up what happened on a given day" points to Memory Search.
Set the memory token budget and understand compression
Everything sent to the model uses its context window, which is limited. Larger contexts are also slower and more expensive. The memory bank therefore has a token budget: the maximum number of tokens of memory added to each prompt. The default is 2,000 tokens; the allowed range is 200 to 10,000.
The Memory Bank section of the Memory tab shows:
- The compression ladder: how many memory shards exist at each level: Conversation, Day, Week and Month.
- Token budget: current use against the cap, for example
558 / 2,000 (28%).
When the budget fills up, Tensic compresses: older conversation summaries roll up into day summaries, days into weeks, weeks into months, and the older entries are deleted to stay within the cap. Compression keeps the memory usable over months, but detail is lost as summaries roll up. If the agent needs exact facts from long ago, enable Memory Search as well.
To change the budget, edit Memory bank token budget under Features on the Memory tab and click Save. Raise it only if the model's context window and your cost targets allow it. Be careful when lowering it: when the memory is over budget, entries are rolled up and then the oldest are deleted permanently, so a lower budget can destroy memories.
Inspect, export and purge an agent's memories
You can see exactly what the agent remembers.
- Open the agent's Memory tab and scroll to Memory Bank.
- Browse the shards. Each entry is labelled with its level (for example Conversation) and a one-line summary, with its size in tokens and age; click it to see the full bullet points, date and number of sources. Summaries are short, for example "Calculated 17 × 23 using the calculator tool; result is 391."
- Use the search field ("Search N shards…") to find memories about a topic.
- Open What the model sees this week to see the memory text currently injected into prompts.
- Under Memory Search at the bottom of the tab, type a query, press Enter and pick a Top-K of 3, 5, 10 or 20. The Tool output shows the exact result the agent would get when it calls
search_memories: each match with its date, conversation and similarity score. This is useful to check what context the model will receive for a given prompt. Memory Search returns conversations from all users with access to the project. - Under Safe purge, click Export JSON to download a copy, and Purge all to wipe the memory bank. Purge removes every level at once; export first if you might need the data.
Memory and routines
Routines are scheduled, unattended agent runs. Their conversations go into memory like any other conversation. On an agent with Memory Bank on, frequent routine runs fill the memory with routine output, push out summaries of human conversations and trigger compression sooner.
- Keep memory for agents that talk to people.
- Run routines on a separate agent without memory, or keep memory off on agents that mainly run routines.
- If you must combine them, enable Memory Search so specific details stay retrievable after compression.
Common questions
Why doesn't my agent remember yesterday's conversation?
Memory is per session by default. Turn on Memory Bank (and optionally Memory Search) on the Memory tab.
I enabled Memory Bank but nothing shows up.
Check that an embedding model is selected on Configuration. Conversations are summarised in the background once they have been idle for 10 minutes, and only when a platform admin has configured a system LLM, so allow some minutes. Memory Search needs a few minutes to index new turns.
Is it safe to enable memory for a customer-facing chatbot?
Only if all users may see each other's information. Memory is shared across every user of the project, so the agent could reveal one user's details to another.
What's the difference between Memory Bank and Memory Search?
Memory Bank injects a compact summary of past conversations into every prompt. Memory Search lets the agent look up specific past turns with the search_memories tool when it needs them.
Why did the agent forget a detail from months ago?
Older memories are compressed into day, week and month summaries to stay within the token budget, and detail is lost. Enable Memory Search to keep specifics retrievable.
Does the AI learn from our conversations?
No. The model is stateless and does not change. Tensic stores memories and sends the relevant ones to the model with each request.
Can I delete what the agent remembers?
Yes. On the Memory tab, use Export JSON to keep a copy and Purge all to wipe the memory bank.