Guides

Lorebook: 7 simple steps to a world that remembers

Crestfall Studio Team

9 min read

A lorebook lies open on a candlelit desk while a glowing miniature world rises from its pages

What is a lorebook?

A lorebook is the written history of a world that a story can draw on: its places, its people, the events that shaped it and the rules it runs on. In AI story tools, it is how the story learns what is true in your world before it writes the next line.

The word covers two very different things. In most AI story tools a lorebook is a stack of cards: short entries that wait out of sight until a trigger word appears. NovelAI calls its version the Lorebook, SillyTavern calls it World Info, and AI Dungeon calls it Story Cards.

The older meaning is a book: the full history of a world, as long as a novel if the world earns it.

Most guides tell you to write less. Keep entries tiny, cut the detail, save room. That advice is about the tool, and it is honest about the tool. It is not a rule of worldbuilding. A world with thin history tells thin stories.

So this guide does both jobs. It shows how card lorebooks work and how to write for them. Then it shows the other way to build one, where the history stays rich and the story still finds what it needs.

NovelAI's help page for the feature, with a welcome panel that explains entries and activation keys
NovelAI's welcome panel sums up the card method: put the facts about one subject in a text box, then name the words that should bring it back.

How most AI story tools use a lorebook

Most tools hold every entry back and add one to what the AI reads only when the story calls for it. They work this way because the tool rereads your story before every reply, and it can only reread so much. That reading window is called the context. NovelAI's glossary is blunt about what falls outside it: "Everything outside of context effectively never happened, as far as the AI is concerned."

The window is measured in tokens, the word fragments an AI counts in. In AI Dungeon, one token is usually about 4 characters, and the free plan's window is about 4,000 tokens. That is roughly 16,000 characters for everything the AI is sent. Past that, the oldest text is usually cut, which is why the AI seems to forget the innkeeper's name.

Each entry carries trigger words. When one appears in the recent story, the tool slips that entry's text into the context for the next reply. SillyTavern's guide calls this "a dynamic dictionary that only inserts relevant information."

A three-step diagram: a line of story text, a trigger word found in it, and an entry added to what the AI reads
The card method in one picture. No trigger word, no entry.

The three tools use different names for the same parts.

  • Tool and feature
    NovelAI: Lorebook
    What brings an entry in
    Activation keys found in the recent story
    What the AI is shown
    The entry text, never the title
  • Tool and feature
    SillyTavern: World Info
    What brings an entry in
    Keywords in the messages it scans
    What the AI is shown
    The Content field only
  • Tool and feature
    AI Dungeon: Story Cards
    What brings an entry in
    Triggers in your input or the AI's output
    What the AI is shown
    The Entry, never the Name

SillyTavern is a free interface you install yourself and connect to an AI model. Our guide to AI story tools for epic stories compares how all three hold up over a long story.

Two limits follow from this design. Every entry competes with your story for the same window, so long lore crowds out the scene. And fetching an entry does not force the AI to use it. SillyTavern says so plainly: World Info "does not guarantee its appearance in the generated output messages."

One NovelAI user spent 14 hours writing a rich lorebook. Then the story began, and the AI "ignored every single entry." The writing was not the problem. The lorebook was bigger than the window it had to pass through.

Cards or a library: two ways a story can remember

There is a second design. Instead of one window that everything must squeeze through, the world is kept in separate records, and the story looks up what a scene needs.

Crestfall Studio is built this way. Each character, place, outfit and rule is its own record. Lore, the written history of your world, sits beside them in chapters, and the story draws on the passages that fit the scene. What happens while you play is remembered on its own track.

  • What to compare
    Where the world lives
    Card lorebook
    Short entries in one list
    Crestfall Studio
    A record for each character, place and rule, plus Lore in chapters
  • What to compare
    How it reaches the story
    Card lorebook
    A trigger word has to appear
    Crestfall Studio
    The story looks up what the scene needs
  • What to compare
    How much you can write
    Card lorebook
    As little as possible, to save the window
    Crestfall Studio
    As much as the world deserves
  • What to compare
    Who a character is
    Card lorebook
    Re-sent from a card each time it fires
    Crestfall Studio
    Held in the character's own record
  • What to compare
    What happened in play
    Card lorebook
    Often a summary you maintain
    Crestfall Studio
    Remembered separately from the Lore

Neither design is wrong. A card lorebook is simple, portable and works with almost any AI model. But it puts the work on you: pick the trigger words, count the length, trim the detail. A library puts that work on the system, and gives the room back to the writer.

The seven steps below make good lore in either one. Step 6 is where the two part ways.

Seven steps to write a lorebook that works

The example world is Brackwater, a toll town in a salt marsh.

Step 1: Start with the event that changed everything

Begin with one piece of history, the event your world is still living with. Thirty years ago a flood drowned old Brackwater while the tower bell rang nine times. Everything else in the town grows from that night: the stilts, the toll, the woman who collects it.

One strong event gives every later page something to point back to. A list of facts does not.

The rules of your world belong here too. If yours has magic that needs limits and a cost, How to create a magic system: 7 rules and 21 ideas has both.

A domed hall lit by one chandelier, with a carved dais at its center
Practice on this hall. What happened here that people still talk about? Write that first, then describe the room.

Step 2: Give every place, person and rule its own page

One page describes one thing: one town, one person, one event, one rule. A block that covers Brackwater, its keeper and its flood cannot be used in parts. Split it, and each piece can be found when it matters.

Pages can still point at each other. Name the flood inside the keeper's page, and a reader, or a story, can follow the thread.

Step 3: Write it for a stranger

Write every page as if the reader has never heard of your world, because the AI has not. On card tools this is a hard rule: the title stays hidden, so NovelAI's advice is to "always include the entry's title somewhere inside the entry text itself."

Compare two versions of the toll keeper.

  • Notes to yourself: "Runs the toll. Counts twice. Brother died in the flood."
  • Lore: "Odda Venn is the toll keeper of Brackwater, a gray-haired woman who counts every toll twice. She lost her brother on the Night of Nine Bells."

The first is useless to a stranger. Who runs what? The second names its subject and could be dropped into any scene.

One card entry split into three labeled parts: a name the AI never sees, trigger words, and the text the AI reads
On a card tool, the AI is shown only the last of the three parts.

Step 4: Write history, and stop at the present

Record what has already happened. "The flood drowned the old town thirty years ago" is lore. "Odda will betray the traveler at the bridge" is a plan, and a plan written as lore tends to arrive early. One NovelAI user put it this way: "The AI is bad at not blabbing information."

A giant glowing drill hangs beneath a floating city while workers watch from lamplit platforms
Something was built here, or broken. Write what happened, and stop before what happens next.

Crestfall's own official world, which its team calls the canon, stops at the same line.

“The final picture in the lore is a person with a suitcase, facing away from you, arriving at the Crestfall train station. All the lore is history. Going forward, the story is about you.”
Nick, co-founder, Crestfall Studio

Step 5: Go deep where it matters, and leave room on purpose

Depth and gaps are both choices. Write the flood in full: who rang the bell, who was lost, what the town swore afterward. Leave the far side of the marsh blank. A gap you chose is an invitation, and a story will walk into it.

“I left large parts of the world untouched in the canon on purpose, so other creators could bring their own ideas to it.”
Nick, co-founder, Crestfall Studio

Step 6: Fit the lore to your tool

Here the two designs part ways.

On a card tool, cut it to cards. Give each entry two or three trigger words the story will really say. AI Dungeon's guide says it outright: "The safest trigger types are, therefore, proper names." Keep each entry to a few plain sentences, because its cards "are among the first elements to be removed from the context when it is full." Put the key facts first and last. SillyTavern sets a budget for entries, and once it is spent, "no more entries are activated even if the keys are present in the prompt."

In Crestfall Studio, keep the chapter. Write the Night of Nine Bells as a full telling. Put Odda in her own Character record: who she is, how she talks, what she wants. Put Brackwater in its own place record. Nothing has to be trimmed to make room, and there are no trigger words to choose.

AI Dungeon's guidebook page titled All About Story Cards
AI Dungeon's Story Cards "also used to be called 'World Info'," the name SillyTavern still uses.

Step 7: Test it in play, then keep it current

Play one scene that should need your lore. Type "I ask Odda about the bell tower," then read the reply for a detail only your lore holds: her brother, the nine rings of the bell.

If it is missing on a card tool, check three things in order.

  1. The trigger. Did the exact word appear in the recent story?
  2. The name. Is the subject named inside the text, or only in the title?
  3. The room. Long entries crowd each other out. Shorten the entry or raise its priority.

Then keep the lore current. What happens in play is history now. If the bell tower falls in your story, the flood's page should say so.

SillyTavern's documentation page for World Info
SillyTavern's World Info goes by two other names in its own guide: "Lorebooks or Memory Books."

Four entries you can copy

These are card-sized, so they work in any tool. Each names its subject first, runs 40 to 50 words and ends on the fact the story should not lose. In Crestfall Studio, treat each one as the first paragraph of a longer page.

Place. Trigger words: Brackwater, toll town

Brackwater is a toll town built on stilts over a salt marsh. Every traveler on the Marsh Road must cross its one bridge and pay the toll. The air smells of salt and lamp smoke. Old Brackwater lies drowned beneath the new town.

Person. Trigger words: Odda, Odda Venn, toll keeper

Odda Venn is the toll keeper of Brackwater, a gray-haired woman who counts every toll twice. She speaks bluntly and never haggles. She lost her brother on the Night of Nine Bells. Odda wants the drowned bell tower left alone.

History. Trigger words: Nine Bells, bell tower, drowned town

The Night of Nine Bells was the flood that drowned old Brackwater thirty years ago. The tower bell rang nine times as the water rose, then stopped. Sixty people died. The bell tower still stands in the marsh, and people in Brackwater say its bell rings before a death.

Rule. Trigger words: saltlight, salt lamp

Saltlight is the lamp oil of Brackwater, pressed from marsh salt. A saltlight flame burns white. When anyone nearby tells a lie, the flame turns blue for a moment. Saltlight cannot show who lied. Lying under saltlight breaks no law, but everyone sees the flame turn blue.
Four entry cards for one world. A typed line about Odda and the bell tower lights up two of them and leaves two dark
On a card tool, Step 7's test line calls two of the four. The other two wait for their words.

No story to test them in yet? Text adventure games: 11 best to get lost in (2027) has places to start.

Write your world's Lore in Crestfall Studio

Crestfall Studio is built for worlds you build and play, and for writers who do not want to shrink them.

  • Lore as rich as a novel. Lore is the written history of your world, set out in chapters and sections: its eras, its great events, what its people went through. Write all of it.
  • A record for everything else. Characters are the people of your world, each with their own record: who they are, how they talk, what they want. Places, outfits and rules get records of their own.
  • Stories that draw on both. Stories are where you play. As a scene unfolds, the story looks up the Lore and the records it needs.

Tested past 720 messages in our own Frontier runs, with over 91% recall of what happened in chat. Your world and characters live in their own records, so the story can pull any detail about them at any moment.

The Crestfall Studio homepage section titled Places to wake up in, with four place cards: a harbor, a lantern-lit house, a burning gorge and an airship
Four places from Crestfall Studio's homepage. Each one is a record a story can step into.

Crestfall has a canon of its own, with years of written Lore behind it. Your world does not have to match it.

“The canon is the center universe that every other universe branches from. If an idea isn't canon, that doesn't mean it's a bad idea.”
Nick, co-founder, Crestfall Studio

35 free turns a week, forever, plus 75 free Coins when you sign up. You can also play RPGs other creators built.

Lorebook questions, answered

What is a lorebook?

A lorebook is the written history of a world that a story can draw on: places, people, events and rules. In most AI story tools it is a set of short entries, each fetched by a trigger word. In Crestfall Studio it is Lore written in chapters, kept beside a record for each character and place.

How long should a lorebook entry be?

It depends on the tool. On a card tool, a few plain sentences; the Brackwater entries run 40 to 50 words, and long entries crowd out the story. Where lore is looked up instead of squeezed into one window, write as much as the history deserves.

How does an AI use a lorebook?

On most tools it does not read the lorebook from start to finish. Before each reply, the tool scans the recent story for trigger words, then adds the matching entries to the text the AI is given. Other systems keep the world in separate records and look up what the scene needs.

Is a lorebook the same as a story bible?

Close, but not the same. A story bible is a reference for the writer. Television writers use one to keep characters, settings and the timeline consistent. A lorebook is written for the story itself to use, so every page has to make sense to a reader who knows nothing else.

What is the difference between a lorebook and memory?

A lorebook holds what you wrote before play: the world's history. Memory holds what happened during play. Some tools mix the two in one window. AI Dungeon keeps a Plot Essentials box, once called Memory, beside its Story Cards. Crestfall Studio keeps authored Lore and the memory of play as separate things.

Do lorebook entries have to be short?

Only where the tool makes them compete for one small window. That is why card lorebook guides say to trim. It is a limit of the design, not a rule of good worldbuilding. Deep history makes better stories when the story can reach it.

Screenshots show the public help pages of NovelAI, SillyTavern and AI Dungeon, captured 22 Nov 2026. Each name belongs to its owner.

AI Dungeon plan limits checked 22 Nov 2026.

Last updated

Written by

Crestfall Studio Team

For 20 years we’ve built technology and told stories for brands and film. Now we’ve built a studio for yours: a place to create the worlds you’ve always imagined, in stories that remember.

More from Crestfall Studio Team

Keep reading

The story remembers what you did.

Epic adventures that keep every choice you make.

Claim my early access