Memory and summarisation
The bot remembers facts about the user and automatically compresses long dialogs. How it works and how one differs from the other.
The bot has two mechanisms for handling long conversation history: memory (explicitly stored facts about the user) and summarisation (automatic compression of a long dialog). They complement each other.
Below is an example of memory being filled in step by step during a dialog with the “Dog agent” bot. After each user message the bot updates memory in the background, and the next reply already takes the new facts into account.
Dog name: Bobby
Meals eaten: —
What was eaten: —
Pee count: —
Anything unusual: —
Dog name: Bobby
Meals eaten: 1
What was eaten: dry food
Pee count: —
Anything unusual: —
Dog name: Bobby
Meals eaten: 1
What was eaten: dry food
Pee count: 2
Anything unusual: —
Dog name: Bobby
Meals eaten: 2
What was eaten: dry food, chicken breast
Pee count: 2
Anything unusual: —
Dog name: Bobby
Meals eaten: 2
What was eaten: dry food, chicken breast
Pee count: 2
Anything unusual: sneezed at lunch (2 times)
Thanks to this memory, in the next conversation the bot already remembers the dog’s name and the details:
Bot memory
The bot remembers important information about each user across sessions:
- Name and preferences.
- History of requests.
- Progress in the work.
Memory is per-user, even if they talk to the same bot.
Memory prompt
You can set a memory prompt — an instruction describing what exactly to remember and in what format.
The bot will remember important information from conversations.
Available only with a Minddy Plus subscriptionHint for the model: what to store in memory and in what format.
Example: the “Dog agent” bot
The bot helps dog owners keep a pet diary.
System prompt:
You are Dog Agent — an assistant that helps dog owners keep a pet diary.
Ask clarifying questions about food, walks, and the dog's well-being.
Memory prompt:
Remember information about the dog in the format:
------
Dog name: <name>
Meals eaten: <number>
What was eaten: <what exactly>
Pee count: <number>
Anything unusual: <what exactly>
The memory prompt defines a structured format — the bot doesn’t remember everything, just specific facts in a clear form. At the next encounter the bot already knows the dog’s name and can ask: “How is Bobby today? Yesterday you said he ate poorly — any better now?”
Remembering “everything else”
If, in addition to the structured data, you also want the bot to remember other details, add to the end of the memory prompt:
Also remember other important information.
How to see what the bot remembered
Write to the bot:
“Show what’s in your memory. Just the memory, nothing else.”
And it’ll output everything it stored about you. Handy to confirm memory is working and storing the right things.
How memory works under the hood
- Storage. Each chat (direct or group) has its own memory field — up to 4,000 characters. Memory is per user, even when they talk to the same bot.
- Updates. After every bot reply, a separate background AI request (gpt-4o-mini) runs that analyses the user’s new messages and updates memory. The update doesn’t block the reply — the user doesn’t wait.
- What the model sees on update — the current memory + all the user’s new messages since the last summarisation. If you set a memory prompt — it’s also passed in and influences what the model decides to remember.
- Insertion into the prompt. Memory is added to the bot’s system prompt in the “CHAT MEMORY” section — the model sees it on every reply and can rely on the stored facts.
- Insertion format:
[your system prompt] + CHAT MEMORY: [memory content].
Requires Minddy Plus.
Automatic dialog summarisation
AI models have a limited context window — they can’t “remember” an infinitely long conversation. When the dialog grows too long, the bot automatically summarises old messages: compresses them into a brief recap preserving key facts and topics. New messages stay in full form.
This happens transparently for the user — they don’t notice that old messages were compressed. The bot keeps replying in the context of the full conversation.
How summarisation works under the hood
- When it triggers — when the dialog has accumulated 50+ messages or ~20,000 tokens (rough estimate by text length). Either condition fires.
- What gets summarised — all messages except the last one: it stays intact so the model can answer it.
- What you get — a structured recap with key facts, current topic and context. Previous recaps aren’t lost: the new one is built from the old one + the new messages (incremental compression).
- Insertion into the prompt — the recap is inserted as the first message in the dialog context, before the rest of the history. The model sees:
[recap of old messages] → [recent messages] → [user's latest message]. - Model — gpt-4o-mini (fast and cheap); the main reply is generated by the main model.
Summarisation works automatically
On all plans, without any setup.
How memory differs from summarisation
| Memory | Summarisation | |
|---|---|---|
| What it stores | Key facts about the user (name, preferences, progress) | A compressed history of the full dialog |
| Where in the prompt | In the system prompt (visible to the model as “knowledge” about the user) | As the first message in the dialog history |
| When it updates | After every bot reply (in the background) | When the dialog becomes too long |
| Control | A memory prompt can be set | Automatic, no setup |
| Plan | Minddy Plus | All plans |