Skip to content

Walkthrough 5: Rulebooks, Lorebooks & Content Workbench ​

In this walkthrough you will wire your own setting notes, homebrew lore, and user-owned rulebook PDFs into Elthoria through three clean workflows — all driven by natural conversation with your AI GM (plus one simple folder copy for your shared bookshelf):

  • Part A: Keyword-Triggered Lorebooks — concise setting facts that automatically surface whenever specific people, places, or relics come up in play.
  • Part B: Your Player-Safe Bookshelf — adding licensed Markdown or text rulebooks to your shared search folder and querying them with /elthoria-rules.
  • Part C: Guarded PDF Content Workbench (/elthoria-content) — letting your AI GM inspect a private PDF you own, extract a structured Pathfinder 1e encounter table with your approval at every gate, review the draft together, publish a player-safe version, and import it directly into your live table roller.

Part A: Keyword-Triggered Lorebooks ​

Lorebooks keep setting canon crisp without bloating every turn with walls of text.

A.1 Create a campaign Lorebook and add entries ​

Tell your AI GM what lore should trigger automatically during play:

"Create a campaign Lorebook for Lanterns at Greywater called Greywater Reach Lore for local factions, harbor traditions, and lighthouse superstitions. Add a case-insensitive entry triggered by South Beacon, iron lantern, or Harbor Master Pell (sticky for 2 turns): 'The South Beacon burns rendered storm-whale oil; only the Dockmasters' Guild holds the brass keys to its upper shutter.'"

Or in the Elthoria Game UI: Open Studio → Rules (/studio/rules) or Studio → Import/Export (/studio/import-export) to manage setting entries visually.

A.2 Check which entries trigger before narrating ​

Before describing a key discovery, ask your AI GM to check what lore applies:

"Check which Lorebook entries activate if Rowan inspects the brass padlock on the South Beacon shutter."

Your AI GM pulls the exact South Beacon entry so you never contradict established setting details.


Part B: Your Player-Safe Bookshelf (/elthoria-rules) ​

For full-text search and knowledge-graph lookup over your own player-safe rulebooks, house rules, and campaign guides, drop files into Elthoria's single shared bookshelf folder and index them once.

B.1 Find your shared bookshelf folder ​

Run in your terminal (or just ask your AI GM "Where is my Elthoria bookshelf folder?"):

bash
~/.elthoria/bin/elthoria knowledge paths

This prints your managed player-safe folder: ~/.elthoria/kompile-harness/data/input_documents/elthoria/.

CAUTION

Player-safe documents only in data/input_documents/elthoria/. Everything in this folder is searchable during play. Never drop GM-only adventure secrets or unreviewed raw PDFs here — use Part C (/elthoria-content) below so original PDFs and GM spoilers stay private.

B.2 Copy your player-safe guide and index it ​

bash
cp ~/my-licensed-docs/greywater-players-guide.md \
   ~/.elthoria/kompile-harness/data/input_documents/elthoria/

~/.elthoria/bin/elthoria crawl --pipeline-id standard-text

B.3 Search your bookshelf anytime in play ​

In elthoria web or elthoria chat, use /elthoria-rules or ask naturally:

"/elthoria-rules — What does our Greywater Player's Guide say about Dockmasters' Guild harbor dues and storm-lantern signals?"

Your AI GM searches both your indexed bookshelf and its knowledge graph and answers with grounded citations.


Part C: Guarded PDF Content Workbench (/elthoria-content) ​

When you want to pull encounter tables, monsters, spells, portraits, or reference maps out of a PDF you own — while keeping the original PDF bytes and GM-only pages completely private from player search — launch the built-in /elthoria-content guided workflow in chat.

Your AI GM manages every revision check, schema check, and approval gate for you, pausing to show you previews before anything is extracted, published, or imported into live play.

C.1 Register your private PDF and inspect pages ​

Start the guided workflow in chat:

"/elthoria-content — Register ~/my-pdfs/coastal-encounters.pdf privately (do not add it to player search), and inspect physical pages 1 to 4 so I can see what's on each page."

Your AI GM registers the file outside your player bookshelf and summarizes the pages without running any paid extraction yet.

C.2 Plan the extraction before spending tokens ​

Tell your AI GM which page and content type you want extracted and which model profile to use:

"Set up a Pathfinder 1e roll-table extraction plan for page 2 of that PDF using our structured extraction profile, and show me the exact plan before running it."

Your AI GM displays the exact page range, extraction profile, and plan summary and waits for your go-ahead.

C.3 Approve the extraction and review the draft ​

Once the plan looks right, approve it in chat:

"Looks good — run that extraction plan, validate the extracted table, and show me every row so I can check it against page 2."

Your AI GM runs the extraction, checks the dice bounds and weights, and displays the unverified draft table right in chat.

C.4 Fix any OCR typos and accept the draft ​

Spot a typo or misread dice range? Just tell your AI GM to fix it before accepting:

"Row 4 should be 11–14 instead of 11–13 — patch that, revalidate, and accept the draft now that I've verified it against page 2."

C.5 Publish the player-safe derivative (optional) ​

Accepting a draft keeps it private in your workbench. If you want players or /elthoria-rules to be able to search the cleaned, spoiler-free version:

"Preview publishing this accepted table to my player-safe library."

After your AI GM shows the exact preview summary:

"Approved — apply that publish."

(GM-only adventure pages can stay unpublished in your private workbench forever.)

C.6 Import into your live table roller ​

Publishing to your library never alters live gameplay tables on its own. To make a verified Pathfinder 1e roll table immediately rollable in chat and in My Tables (/mytables):

"Preview importing this verified coastal encounter table into my live table roller."

Review the preview your AI GM shows you, then confirm:

"Approved — apply the import and give me one test roll!"

Now your newly imported encounter table works directly in AI GM chat and in My Tables alongside your homebrew tables.

TIP

Pulling portraits or reference maps from a PDF? Just ask inside /elthoria-content: "Extract the lighthouse illustration from page 3 as a cropped image" or "Prepare the harbor map on page 4 as a calibrated reference map." Elthoria preserves original artwork faithfully and never guesses hidden walls or auto-links images without your approval.


Where to go next ​

  • Want the deeper GM design guides behind how combat, NPCs, and living worlds work? Explore the GM Guide.
  • Building integrations or looking for exact MCP tool names and schemas? Browse the 300+ Roleplay MCP Tools Reference.

Built on the upstream Kompile harness. Released under the MIT License.