Skip to content

Chat with Your World

MythTapestry includes an optional chatbot that can answer questions about your world using your actual entities, relationships, and content. It never invents information — every answer is grounded in your data.

This feature is off by default and must be enabled in World Settings (enable_chat).

There are two ways to access chat:

Navigate to Chat in the world sidebar to open the full chat interface with:

  • A sidebar listing your chat sessions
  • Markdown rendering in responses
  • Copy button on messages
  • Session history with auto-generated titles

If enabled in World Settings, a floating chat button appears in the bottom-right corner of every page (except the Chat page itself). Click it to open a quick chat overlay without leaving your current page.

The chatbot uses your knowledge graph to answer questions:

  • “Who are the members of the Iron Council?”
  • “What relationships does Aldric have?”
  • “Tell me about the magic system in this world”
  • “What happened at the Battle of Thornfield?”
  • “What locations are in the Northern Wastes?”

Under the hood, the chatbot:

  1. Rewrites your query to resolve pronouns and context from the conversation
  2. Selects tools — queries your Neo4j knowledge graph using specialised templates
  3. Reads results — processes the data returned from your graph
  4. Generates a response — synthesises an answer using only the retrieved data

This loop can repeat up to 5 times if the chatbot needs to gather more information to answer your question fully.

Each chat session maintains context:

  • Recent messages are included in full
  • Older messages are summarised automatically to keep the context window manageable
  • Each session can focus on specific entities, which helps the chatbot give more relevant answers

Chat sessions are saved automatically. You can:

  • Create new sessions for different topics
  • Switch between sessions in the sidebar
  • Delete sessions you no longer need