# How do I use worldbooks (Pro)?

> Cube Agent 2.4.1 Release (Build 2004105) User Guide.
> Category: Models & AI. Content baseline: 2026-12-05.
> Web page: https://cubeagent.app/en/docs/worldbook/

## Importing and mounting

1. Open **Settings → Assistant capabilities → World Books**, tap the plus button **Add World Book**, and choose **Select JSON file** (SillyTavern or RikkaHub exports), **Design one with AI**, or import from **Sample world books**. Worldbooks and knowledge bases have separate management entries and lists; importing requires an active Pro entitlement.
2. In the import preview, review usable entries, entries needing attention, and entries disabled in the source file, and expand compatibility details. Unrecognized files will not create any data.
3. Once imported, you can search and edit entries in the detail view, or export as SillyTavern World Info JSON.
4. Tap **Start playing** on the details page to create or reuse a "<Book Title> · Narrator" assistant, mount this worldbook, enable story choices, and enter a new chat following the book's opening settings. When Opening is set to Off, it only pre-fills the user input draft without sending automatically.
5. You can also open **Assistants → Edit assistant → KB → World Books** to mount a worldbook to an existing assistant. Knowledge bases and worldbooks are shown in separate groups; each group's **Manage** opens its own list, and batch mounting by tag affects only that group. Tap **View entries** to inspect details, then return to keep editing the assistant.

## Editing a worldbook with AI inside chat

1. Open a normal conversation with an assistant that has a worldbook enabled, using a model that supports tool calling.
2. Clearly state the change you want saved to the worldbook—for example, "Change Old Pier to Tidal Pier in the worldbook" or "Only adjust the trigger keywords on the Lighthouse entry." When multiple worldbooks are enabled, specify the book name in your message or choose one when the assistant asks.
3. Open the edit preview in the reply, verify the book title and before/after content, then tap **Apply to this book**. Assistants already mounted with that book will use the updated entries.

If the preview warns that the original book has already been updated, ask the AI to re-read the entries and generate a fresh preview. To draft a brand-new book, use **World Books → Add World Book → Design one with AI**.

## Importing a worldbook with the same name

When a duplicate-name warning appears in the preview, tap the handling option and choose **Save as new** or **Overwrite original**. Overwriting updates the original book's entries and opening settings, and assistants already mounted with it will continue using the updated content. To keep both versions, choose **Save as new** and enter a new name.

## Character card openings and settings

When importing a SillyTavern V2/V3 character card JSON with an embedded worldbook, Cube Agent reads both the primary greeting and alternate greetings. You can pick and edit them during import preview, or adjust them later in **World Book Details → Opening**. The primary greeting defaults to a fixed opening; if there is no primary greeting, the first non-empty alternate greeting is used.

- **Fixed**: New chats immediately display an assistant message without calling the model.
- **Generated**: Provide opening instructions using the assistant's AI-generated opening feature; choose automatic start, or enter the chat and tap **Let the assistant start** manually. Automatic start defaults to off when importing from a file—enable it manually if needed.
- **Off**: You send the first message.

When a regular worldbook has no character card greeting but contains a keyword-triggered opening entry (whose title or keywords reference an opening or starting the game), the import preview switches to **Generated** by default and uses that entry's content as the opening instructions. Because keyword-triggered entries normally will not match before any message exists, passing the entry as opening instructions lets the Narrator open according to its lore. You can modify or disable this in the preview; for already-imported worldbooks, tap **Generate opening from entry** under **Opening**.

Opening settings apply to assistants mounted with that worldbook: when an assistant's own opening is **Off**, manually starting a new chat uses the worldbook's opening (including tapping "New Chat" from the assistant list); editing the worldbook's opening takes effect on the next new chat. The Narrator assistant always follows the book; if you explicitly set or modify an opening on an assistant, the assistant's own setting takes precedence. Existing chats are unaffected. If multiple worldbooks with openings are mounted, the first one in the mounted list is used. Under **Edit assistant → Prompt → Opening**, you can check which worldbook's opening is active, copy it in to customize, or select alternate greetings from a character card directly in Fixed mode.

Original alternate greetings are preserved, and your selected and edited opening is saved, backed up, and exported with the worldbook. Opening settings are stored in World Info JSON via a Cube extension; whether other apps adopt them depends on their support. Entry text is stored verbatim—SillyTavern macros in character cards are not executed automatically and can be replaced with plain text during preview.

## Designing a worldbook with AI

Under **World Books → Add World Book → Design one with AI**, describe your idea (a genre, tone, or single scene is enough) or share a story or setting document. The AI first uses a question card to confirm a few key questions, then displays the full worldbook as an in-chat card. Tap **Preview & import** to enter the import preview—nothing is created until you confirm. You can keep suggesting revisions: the AI submits only the modified entries while the card renders the merged full book, avoiding full rewrites each turn. Design conversations stay on your device so you can return to them anytime from this entry.

## Story choices

When an assistant has the **Ask User** (`ask_user`) tool enabled and a worldbook mounted, the AI displays a question card with action choices whenever the plot reaches a branch—you can tap an option or type your own, while ordinary narration will not interrupt every turn. To turn off choice prompts, disable **Ask User** in the assistant's tool settings. The Narrator assistant created by **Start playing** has it enabled by default. Question cards in these conversations display the title **Your move**.

## Try a starter example

The fastest way is to open **World Books → Add World Book → Sample world books**, choose **Foglight Harbor** or **The Lost Mine**, import it, and tap **Start playing**.

The JSON below is a minimal importable example containing two entries: "Story Background" and "Lighthouse." Save the code as a UTF-8 file named `worldbook-starter-example.json`, go to **Settings → Assistant capabilities → World Books → Add World Book → Select JSON file**, choose that file, review the preview, and confirm import (it will not mount to any assistant automatically).

1. Mount the example to an assistant and start a new conversation.
2. Send "Tell me about this small town": the always-on background entry joins the request.
3. Next, send "Take me to see the lighthouse": once the keyword appears in recent messages, the lighthouse entry also matches.
4. Open the chat's Context Budget panel to inspect which worldbook entries matched and were included; whether the reply repeats the lore word for word is up to the model.

The example uses SillyTavern JSON format. `entries` stores the entries, `comment` is the entry name, `key` holds primary keywords, `content` is the text injected into context, `constant: true` keeps an entry always enabled, and `disable: true` disables it.

```json
{
  "name": "World Book Starter Example",
  "entries": {
    "0": {
      "uid": 0,
      "comment": "Story background (always enabled)",
      "key": [],
      "content": "The story takes place in Silverport, a seaside town whose people live on sailing and ship repair.",
      "constant": true,
      "disable": false
    },
    "1": {
      "uid": 1,
      "comment": "Lighthouse (keyword triggered)",
      "key": ["lighthouse", "keeper"],
      "content": "Silverport's lighthouse is tended by Lin Zhou. Whenever thick fog rolls in, he rings the bronze bell to guide ships home.",
      "constant": false,
      "disable": false
    }
  }
}
```

The Cube App Guide can read `help.md` via the "App Help" skill, which is generated live from the Help Center. If an older session read outdated help content, ask it to read the guide again.

## When entries take effect

Supports primary keywords, regular expressions, and always-on entries; scans the last two messages by default. Matching does not mean every entry is included: entries are also constrained by enabled switches, compatibility status, and context budget limits. Open the chat's Context Budget panel to inspect the **Worldbook** matched count, included count, and actual injected entries.

Worldbooks inject lore conditionally and do not use ordinary document vector search. Currently unsupported trigger conditions—such as secondary keywords, probability, and delay—are grouped under **Needs attention** and disabled; they can only be enabled after you explicitly handle them on the entry edit page. Some settings such as groups preserve only raw metadata, and actual behavior may differ from the original app.

## File and entitlement limits

Imported files can be up to 8 MiB with up to 5,000 entries; each request includes up to 64 entries and 24,000 characters. After Pro expires, your data and mounts remain intact—you can view, export, delete, or unmount them—while importing, editing, toggling, and triggering pause. If your entitlement cannot be verified, check Membership status or retry.
