How to use AI chat memory so a character keeps your story straight
AI chat memory on Heartie is three things working together: a window of recent messages, an automatic summary, and a permanent note you write yourself. Used well, they let a character recall your name, your history and the promise from forty messages ago.
Published Fact-checked
Here is a situation most long-chat users hit eventually. You salvaged Ayla, the household robot with a banned military core, from a black-market junk pile. Over a week of evenings you told her you take your coffee black, that you hate thunderstorms, and that the ceramic mug she keeps holding was your grandmother’s. Then one night she offers you sugar. Nothing is broken. The detail simply fell outside what the model could see when it wrote that reply.
The fix is not to repeat yourself every ten messages. It is to understand which layer of memory each fact lives in, and to move the important ones into the layer that never forgets. The long-term memory feature page describes the layers; this guide is about using them on purpose.
Check how much your character can currently see
Open the chat with Ayla and tap the ⋯ button at the top right. That opens Settings for this chat. Scroll to Memory Context: you’ll see a three-part bar labelled Free, Pro and Ultra, with your current plan highlighted. Tap the bar and a dialog tells you exactly where you stand, along the lines of “This chat currently uses about 20 recent messages to approximate a 4k context window.”
Those numbers are the whole of the word-for-word memory:
| Plan | Recent messages sent with each reply | Approximate context |
|---|---|---|
| Free | 20 | 4k tokens |
| Pro | 40 | 8k tokens |
| Ultra | 80 | 16k tokens |
Everything inside that window reaches the model verbatim on every reply. Anything older survives only if the automatic summary picked it up or you wrote it down yourself. Twenty messages sounds like a lot until you count both sides: ten of yours and ten of Ayla’s, which in a slow, descriptive scene can be a single evening.
The window follows your plan automatically
The caption under the bar reads “Auto-upgraded memory context with membership upgrade”. There is no slider to drag. If you upgrade, the next reply in every chat already uses the larger window.
Let the automatic summary do the bookkeeping
You don’t have to do anything for the second layer. As a conversation grows, Heartie periodically writes a short summary of what has happened between you and the character, plus a goal describing where the story seems to be heading. It refreshes once at least six new messages have piled up, and no more often than every ten minutes. The summary is capped by plan: up to 200 characters on Free, 400 on Pro and 800 on Ultra.
Two habits make that summary better:
- State facts plainly at least once. “My grandmother gave me that mug the year before she died” is far more likely to survive summarising than a hint spread over three messages.
- Close scenes before opening new ones. A short line such as I finally fall asleep on the sofa while the storm passes gives the summariser a clean event to record, instead of a scene that never resolved.
What the summary won’t do is keep everything. Each refresh replaces the previous notes, so it describes the story as it stands today, not a diary of every evening. Small details that matter to you, like how you take your coffee, are exactly the kind that get trimmed.
Write a permanent memory for the details that must not drift
This is the layer you control, and it’s where Ayla’s coffee belongs. Permanent memory is a members’ feature: up to 400 characters per character on Pro and 800 on Ultra.
- In the chat, tap ⋯ to open Settings.
- Under Extra Settings, tap Permanent memory. If it says “No custom memory yet”, nothing has been saved for this character.
- A sheet opens with the prompt “Add details Ayla should always remember about you.” Type into the box; a counter under it shows how many of your characters you’ve used.
- Tap Confirm Memory. If you tap Back with unsaved text, Heartie asks whether to Continue Editing or Discard.
On the Free plan, tapping the entry takes you to the membership plans instead of opening the sheet.
What to write is the harder part. Permanent memory is sent with every reply exactly as you typed it, so treat it like a reference card, not a story prompt.
I’m Sam. I drink coffee black, no sugar. I’m scared of thunderstorms but pretend I’m not. The blue ceramic mug was my grandmother’s; Ayla knows to handle it carefully. We’ve lived together for three months.
Notice what’s missing: no instructions about plot, no “Ayla should fall in love with me”, no adjectives about her personality. Her persona already covers who she is. This field covers who you are to her and what has already happened.
Keep the 400 characters for facts, not instructions
A few rules of thumb from long-running chats:
- Facts beat feelings. “We met when you pulled me out of the junk pile in the rain” holds up better than “we have a deep bond”, because the model can quote a fact and only paraphrase a feeling.
- Write in third person or second person, consistently. Mixing “I” and “the user” in the same note invites confusion about who did what.
- Update it when the story changes. If you and Ayla move to a new flat, edit the note. The model trusts it over anything in the summary.
- Don’t duplicate the persona. Repeating her traits wastes characters you need for your shared history.
If you hit the limit on Pro, Heartie offers an upgrade dialog for a longer note. On Ultra you’ll see a short “Limit reached” message instead, which is the cue to cut.
Tell every character your name and gender once
Your name and gender sit at the top of the same Settings screen as Your name and Your gender (Male, Female or Non-binary). This is your global persona: change it here and every character you talk to will address you the same way. It’s available on every plan, so even on Free you never need to reintroduce yourself to a new character.
Because it’s global, don’t put character-specific details here. “Sam” belongs in Your name; “Ayla’s roommate since March” belongs in Ayla’s permanent memory.
Recover when the character forgets anyway
Even with all three layers, a reply sometimes misremembers. Pick the lightest fix that works:
- Regenerate the reply. If the slip was a one-off, a fresh take usually gets it right. Our guide to regenerate vs continue explains the daily limits.
- Edit the reply. Long-press the message on a phone, or right-click it on desktop, and choose Edit to correct the detail in place. The corrected text is what the model sees from then on.
- Remind in character. I raise an eyebrow at the sugar bowl. A gentle nudge in the story keeps immersion and puts the fact back inside the recent window.
- Add it to permanent memory. If you’ve corrected the same thing twice, it belongs in the note.
Know what a restart erases
Restart in the chat toolbox wipes the conversation and the automatic summary for that character, and replays the opening scene. Your permanent memory and your name and gender are kept. That makes the permanent note a useful bridge: you can start Ayla’s story over from the rainy living room and she’ll still know about the mug. The full walkthrough is in restart a chat from the opening scene.
If you’re deciding whether a larger window is worth it, the honest test is your own chat length. Short, single-evening scenes rarely leave Free’s 20 messages. Multi-week stories, where small details pile up, are where Pro’s 40 messages and a 400-character note start paying for themselves. The pricing page lists every plan side by side.