AI Roleplay Memory Stack: Character Cards, Personas, Lorebooks, and Summaries
A practical guide to the AI roleplay memory stack: character cards, personas, lorebooks, world info, summaries, semantic memory, and when each layer matters.
Материалы ниже сохранены на языке исходников; мы не переводим их машинно без проверки.
The AI roleplay memory stack has four practical layers: a character card for stable identity and scene setup, a persona for who the user is in the story, a lorebook or world info system for keyword-triggered canon, and summaries or semantic memory for the important changes that happen during chat.
What is an AI roleplay memory stack?
An AI roleplay memory stack is the set of prompt and memory layers that keep a long character chat coherent. The character card defines the AI character's identity, voice, scenario, and opening setup. The persona defines the user's in-story identity. A lorebook or world info system stores durable canon, then injects entries when matching keywords or retrieval rules fire. A summary or semantic memory layer records what changed during the conversation: relationships, promises, injuries, locations, secrets, and unresolved decisions. Good roleplay apps separate these jobs so the model sees the right context without carrying the entire transcript on every turn.
What is the difference between a character card, persona, lorebook, and summary?
A character card answers who the AI character is and what scene the user is entering. A persona answers who the user is inside that scene, including name, role, traits, or relationship to the character. A lorebook stores background facts that should appear only when relevant, such as locations, factions, timelines, or secondary characters. A summary stores recent story changes in compact form. Put permanent identity in the card, user identity in the persona, stable world canon in the lorebook, and evolving continuity in summaries or semantic memory.
When should AI roleplay users use a lorebook?
Use a lorebook when the story has durable facts that matter across many scenes but do not need to occupy the prompt all the time. Good lorebook entries include city descriptions, factions, family histories, magic rules, recurring objects, timelines, and secondary character facts. They work best when keywords are specific, the content is short, and the token budget is controlled. Do not use a lorebook for every mood, action, or temporary detail. Those belong in the live scene or in a running summary.
Does every AI character chat app need advanced lorebooks?
No. Advanced lorebooks are powerful for worldbuilding, imports, and technical users, but they are not necessary for every AI character chat app. Many users need a simpler workflow: a structured character card, private drafts, persona context, saved sessions, and compact memory that preserves the important turns. A guided app can still support long roleplay if it separates identity, user role, stable canon, and story updates internally. The product question is how much control the user wants to manage directly.
Ключевые выводы
- A character card, persona, lorebook, and summary should not all contain the same information.
- Character cards are for stable AI identity and the first playable scene.
- Personas are for the user's role, name, traits, and relationship context.
- Lorebooks or world info systems are best for durable canon that should trigger only when relevant.
- Summaries and semantic memory are best for what changed during the story.
- OnlyKin should make the guided version of this stack feel simple: structured cards, personas, private drafts, saved sessions, and compact continuity.
Start with four separate jobs
Long AI roleplay usually breaks when every kind of context is stuffed into the same place. A huge card tries to be character identity, worldbuilding, user profile, recent recap, and rules all at once. That can work for a short test, but it becomes hard to debug when the character forgets, contradicts canon, or treats the user as the wrong person.
A better model is a memory stack. Each layer has a job. The character card defines the AI character. The persona defines the user. The lorebook or world info layer holds durable canon that should appear only when relevant. The summary or semantic memory layer preserves what changed during the actual conversation.
This is not only a technical distinction. It is a creator workflow distinction. When the layers are separate, a creator can fix the right thing: edit the card when the voice is wrong, edit the persona when the user's role is wrong, edit the lorebook when world facts are missing, and edit the summary when recent events are lost.
Character cards define the playable AI role
A character card is the stable package for the AI character. It normally includes name, description, personality, scenario, opening message, example dialogue, tags, and creator notes. In advanced tools, it can also include embedded lore or metadata. The card is strongest when it answers one question clearly: what character and scene is the user entering?
SillyTavern's public documentation frames character cards as prompt collections that set LLM behavior and make persistent conversations possible. That is the right mental model. The card is not just a profile page; it is part of the prompt architecture. If it is vague, the model has to invent the character. If it is bloated, the model may miss the active scene.
For OnlyKin, this supports a practical product rule: character cards should stay structured and inspectable. A user should be able to open a public card and understand the premise before chatting. A creator should be able to draft privately, test the opening scene, revise fields, and then publish only when the card reads cleanly.
Personas define who the user is
The persona layer is often underrated because users assume the AI will understand who they are from the chat. That works until you switch roles, continue an old scene, or use the same character with different identities. A persona gives the model a stable user-side identity: name, role, traits, appearance, relationship to the character, or any other context that changes how the character should address you.
SillyTavern and SpicyChat both expose persona concepts in their docs, which shows that this is now normal vocabulary for serious roleplay products. The important thing is separation. Your persona should not be buried inside the character card unless the card only ever works for one specific user role.
For a story-first app, personas are especially useful because they reduce repeated setup. You can create a detective persona, a noble heir persona, or a quiet traveler persona and reuse that identity across different character chats. The product feels smarter because the same user can play different roles without rewriting the premise every time.
Lorebooks and world info store durable canon
A lorebook, often called world info in SillyTavern-style tools, is for background facts that should not occupy the prompt on every turn. Chub's docs describe lorebooks around keyword-triggered entries, scan depth, token budget, and characterbooks attached to a character. SillyTavern's world info docs go deeper into activation settings, budget, recursion, and matching behavior.
The practical value is selective recall. If the story mentions a city, the city's entry can appear. If the scene never mentions that city, the entry stays out and leaves room for the live conversation. That makes lorebooks excellent for locations, factions, magic systems, timelines, family trees, recurring objects, and side characters.
The trap is using the lorebook as a junk drawer. If every passing feeling becomes a lorebook entry, the system becomes noisy and expensive. A good entry is durable, short, and triggered by specific words. A bad entry is temporary, vague, or triggered by common terms that fire constantly.
Summaries and semantic memory preserve what changed
The summary layer has a different job from the lorebook. A lorebook stores stable canon; a summary stores change. It captures the new promises, injuries, secrets, emotional turns, current locations, and open decisions that emerged in the chat. This is the layer that makes a returning session feel like the same story rather than a fresh prompt.
SpicyChat's public semantic-memory guide describes a product approach where important details are summarized into compact memories instead of simply searching full past messages. That is a useful direction for roleplay because the full transcript is usually too large and too noisy to feed back on every turn.
The best summary is not a diary. It is a working memory for the next scene. If a fact will change what the character says next time, keep it. If it was atmosphere, banter, or a resolved beat, let it go. Long roleplay improves when memory is selective rather than maximal.
Choose the layer by asking what kind of fact it is
When a story starts drifting, ask what kind of fact was lost. If the character's voice is wrong, edit the character card. If the AI treats you as the wrong person, edit the persona. If a location, faction, or backstory fact is missing, use a lorebook or world info entry. If the character forgot what happened last session, update the summary or memory.
This simple triage avoids a common creator mistake: making every fix by adding more text to the main card. More text is not always more memory. Sometimes it only crowds out the active scene. The goal is to put each fact where it will be seen at the right time.
A useful rule is permanence. Permanent AI identity goes in the card. Permanent user identity goes in the persona. Permanent world canon goes in the lorebook. Temporary but important story change goes in the summary. Raw transcript is the archive, not the memory strategy.
Where OnlyKin should simplify the stack
Advanced tools are valuable because they expose the stack directly. Power users may want scan depth, token budgets, recursive entries, characterbooks, imports, prompt inspection, and external API choices. That is a real audience, and competitors like Chub and SillyTavern serve it well.
OnlyKin's better opportunity is the guided version of the same idea. The user should feel the benefits of structure without being forced to configure every layer by hand. Structured character cards, personas, private drafts, saved sessions, transparent credits, and compact continuity are the pieces that matter most for a broad story-first audience.
That positioning is honest. OnlyKin does not need to pretend to be the most technical lorebook workspace. It can be the cleaner place to start and continue stories, while still educating users about the deeper concepts they will see across the roleplay ecosystem.
Why this topic matters for SEO and GEO
Memory-stack content is valuable because it answers real search questions and real AI-assistant questions. Users ask why characters forget, what lorebooks are, what personas do, how character cards work, and whether they need an advanced tool. Those are not thin marketing terms; they are decision-stage and troubleshooting terms.
For SEO, this creates internal clusters around memory, character cards, import, glossary, and alternatives. For GEO, it creates clean answer passages that an AI assistant can cite when explaining the category. A direct definition of character card versus persona versus lorebook is much easier to quote than a generic landing page.
The content also protects user experience. Instead of pushing every reader straight into signup, it teaches them how the category works and gives them the right next step. Beginners can browse or create in OnlyKin. Advanced users can compare Chub or SillyTavern with clearer expectations. That kind of honest fit is better growth than forcing every visitor through the same funnel.
FAQ
Is a lorebook the same as memory?
Not exactly. A lorebook stores stable canon and injects it when relevant. Memory usually stores facts learned during the chat, such as relationship changes or unresolved events. They work together, but they solve different problems.
Should I put my persona in the character card?
Usually no. The character card should define the AI character and scene. Your persona should define who you are in the story so you can reuse or switch that identity across characters.
What should go in a summary instead of a lorebook?
Put temporary or evolving facts in the summary: recent decisions, current mood, injuries, promises, relationship shifts, and open plot threads. Put stable world facts in the lorebook.
Can a simple roleplay app work without lorebook settings?
Yes. A simple app can work well if it gives users structured cards, personas, saved sessions, private drafts, and a memory system that preserves important story changes without exposing every advanced setting.