Feature
AI Lorebooks and Lore Cards: Keep Your World Straight
What are AI lorebooks and lore cards, and how do they work?
A lorebook is the collection of world facts attached to a character or scenario. It's made of lore cards: each card holds one fact (a place, a rule, a person, a secret) plus the keywords that call it up. When a keyword comes up in the chat, that card goes into the AI's context for the reply. Cards you mark as constant are included every time.
How it works
Write one lore card per fact
Make a lore card for anything that defines your world: a character's true name, a relationship's history, a location's rules, a power system's limits. Give each card the keywords that should bring it up.
Cards come in when they're relevant
Each reply, chatbrat.ai scans the recent chat for your cards' keywords and adds the matching cards, highest priority first, within a set space budget. A card you mark as constant is always included. Nothing to paste into every message.
Attach a lorebook to a character or a scenario
A character's lorebook goes wherever that character goes. A scenario's lorebook applies to every chat in that scenario.
Lorebooks and memory do different jobs
Your lorebook is what you write about the world, up front. Memory is what the character learns about you as you chat. One keeps the setting straight; the other keeps your history.
Why it matters
The biggest frustration in AI roleplay is drift: the character contradicts established facts or invents lore that breaks your story. A lorebook gives the AI your ground truth at the moment it's needed, without stuffing everything into one huge prompt that gets diluted as the chat grows.
chatbrat.ai vs. the alternatives
| chatbrat.ai | Most alternatives |
|---|---|
| ✓ A lorebook of keyword-triggered lore cards, plus constant cards for must-know facts | No lore system: users paste worldbuilding into the prompt by hand |
| ✓ Lorebooks on characters and on scenarios | World facts tied to one prompt, rewritten for each story |
| ✓ Lorebook and long-term memory kept separate and used together | Either memory or a system prompt, not both structured |
| ✓ Free to build and use during the beta | Advanced context features often behind a subscription |
Frequently asked questions
What's the difference between a lorebook and a lore card?
A lore card is one fact plus its trigger keywords. A lorebook is the full set of lore cards attached to a character or scenario.
What's the difference between a lore card and a system prompt?
A system prompt defines the AI's personality and role, and it's always present. A lore card holds one fact about your world and comes in when its keywords come up, unless you mark it constant.
How many lore cards can I create?
There's no cap on lore cards during the beta. Each reply only has room for so much lore, so the matching cards with the highest priority go in first.
Can lore cards contradict each other?
They can if you write conflicting facts. The AI will try to reconcile them but may behave inconsistently, so keep your lorebook internally consistent.
Do lorebooks work with custom characters I create?
Yes. You can add a lorebook to characters you create and to your scenarios. A lorebook inside an imported SillyTavern V2/V3 card is saved with the character, but it isn't turned into lore cards yet, so add the cards you need in the Lorebook tab.
Do other people see my lorebook?
If you publish a character or scenario, its lorebook shapes other people's chats with it, the same way the character's personality does.
Ready to try it?
Start building your world: free