Building a Lorebook
A character's prompt is sent on every turn, so it has to stay short. A lorebook holds everything else: places, people, history, rules of magic. Each fact is an entry, and an entry comes into the story only when what it describes comes up.
This guide builds a small lorebook in the Forge and links it to a character.
1. Create the lorebook
- In the Forge, open Workbench.
- Under Make something, press New lorebook.
- Type a Name and a Description. Readers see the description; the AI doesn't.
- Press Create lorebook.

2. Write your first entry
- Under Entries, press New entry.
- Name it: a short name to find it by in the list.
- Write the Content: the lore the story pulls in when this entry fires.
- Under Triggers, add Keywords. Any one of them in the conversation fires the entry.
- Press Create entry.

Writing content the AI can use
- Say it as fact, in the present tense: "The Ninth Archive is sealed at dusk."
- Put the most important sentence first.
- Leave out what the character's prompt already says.
- Name related things with the fact this entry needs about them ("sworn enemy of the Tidekeepers"). Don't point to another entry ("See 'X'") or to "this lorebook".
Write each entry to stand alone
The AI never sees your whole lorebook. Each turn, only the few entries whose keywords or meaning match the conversation reach it. So write every entry as if it were the only one the story gets: it should carry enough for the scene to play out on its own.
That's why a pointer doesn't work. "See 'X'" only helps when X is picked in the same turn, and usually it isn't, since X has its own keywords. The AI reads a reference to something it can't see and fills the gap by inventing. "This lorebook" has the same problem.
Every entry carries:
- What the thing is, in the first sentence.
- The rules or facts that govern it, specific enough to decide what happens.
- How it shows in a scene: what people see, hear, feel or do.
- Truth and belief, when they differ. If most people in your world don't know how something really works, say both inside the entry. The story follows the truth; the characters act on what they believe.
Repeating a fact in two entries is fine: a repeated sentence costs fewer tokens than a scene the AI has to invent.
Before:
Name: How Magic Works
Magic draws on the caster's own body heat.
See 'Magic Perception' for how characters experience it.
The mechanics in this lorebook always govern outcomes, but most people in the world do NOT know them.
After:
Name: How Magic Works
Keywords: magic, spell, spells, casting, mage, mages
Content:
Every spell draws on the caster's own body heat. A small working
leaves the hands numb; a large one can stop the heart. This rule
decides every outcome, whatever anyone in the story believes.
In a scene: a caster's breath fogs and their fingers whiten while
they work; afterwards they shiver, reach for fire and eat like a
laborer. People nearby feel the air go cold.
What people believe: most don't know the rule. Villagers say mages
sell their warmth to spirits; the academies teach that magic is a
gift of the stars. Characters act on what they believe; the outcome
follows the rule.
"Magic Perception" can stay its own entry with more detail. This entry now carries what any magic scene needs.
Choosing keywords
- Use the words a reader would actually type: the name, a nickname, the obvious noun ("the archive", "Ninth Archive", "archivist").
- Include keywords narrow an entry: all of them must come up too.
- Exclude keywords stop it, even when a keyword matched.
- Whole words only keeps "art" from firing on "heart".
Keywords aren't the only way in. A story can also find entries by meaning; see step 5.
3. Tune when an entry fires
The ⚙ Entry settings button holds the fine controls.
| Setting | What it does |
|---|---|
| Priority | Higher goes into the story first. |
| Trigger chance | How often it fires when it matches. Lower adds variety. |
| Always include | In every reply, whatever the keywords. Use it sparingly. |
| Enabled | A disabled entry is skipped entirely. |
| Category | Groups related entries. Reading Mode turns categories into chapters. |
4. Keep secrets
Some facts are for the story, not for the reader: who the killer is, what's behind the door.
- Open the entry's ⚙ Entry settings and find Readers.
- Turn on Hide in Reading Mode.
A hidden entry still works in stories. It carries a "Hidden from readers" mark in your list.
5. Know the other ways an entry is found
Keywords work the moment you save. A story can also find an entry by meaning, even when no keyword was typed. Whether a story uses keyword search, meaning search or both, and how many entries come in each turn, is set per story: on the chat site, in the story's Context settings.
How the four ways of matching work together: Lorebooks.
6. Link it to a character
- Open your character in the Workbench.
- Under Lorebooks, press Link a lorebook.
- Pick the lorebook from the list.
- Press Save.
Every story with that character now searches this lorebook. A reader can also add a lorebook to one of their own stories on the chat site, under Story → Settings → Lorebooks this story searches.

7. Read it like a book
With Allow Reading Mode on (⚙ Lorebook settings → Search), readers can browse the entries like a book, grouped by category. Entries you hid stay hidden.
Check your work
- The list's Show filter has Enabled, Disabled and Places; Search entries finds one by name.
- The Checks tool in the right rail counts things worth fixing.
- Start a private story with the linked character and mention a keyword. When an entry with a picture is the reply's top match, its picture shows under the reply.
What to read next
- Creating a Mode
- Lorebooks: how matching works, in detail.
- Picture Entries
- Lorebook Reading Mode