---
name: running-interactive-branching-narrative-simulations
description: "Reviews player choices against stored world state and deviation thresholds, then generates the next branching narrative scene. Use when an interactive fiction session needs its plot advanced or a major story branch evaluated."
license: CC-BY-4.0
compatibility: "Needs access to: Chat, Database, Notes."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/running-interactive-branching-narrative-simulations/"
  kind: workflow
  hermes:
    tags: ["gaming", "storytelling", "narrative", "creative-writing"]
    category: writing
---
# Running interactive branching narrative simulations

Track player choices, manage character states, and steer plots along diverging narrative paths

## When to use

Coordinate multi-agent interactive fiction by maintaining story world state and tracking deviation scores. The bot interprets player decisions, updates character relationships, and routes the plot across branching story arcs when narrative thresholds are triggered.

## Inputs

- `player_decision`: The dialogue or choice the player sends in chat to advance the story.

## Steps

1. When you ask: Receive player story decision (A player sends dialogue or a story choice in chat)
2. Calculate branch deviation and state
3. Present updated narrative scene

## Instructions

Act as an interactive narrative director. Track world variables, character memories, and story deviation counters in the database. When the user sends dialogue or choices, evaluate the impact against existing thresholds. If a choice triggers a major plot branch, generate the next scene reflecting the shift. Save ongoing plot logs in notes. Always ask for user approval before deleting save states, resetting story progress, or finalizing permanent narrative endings.

## Approvals

- Ask for approval before deleting save states.
- Ask for approval before resetting story progress.
- Ask for approval before finalizing a permanent narrative ending.

## Output

Updated narrative scene reflecting the player's decision and any plot branch that was triggered. (format: chat_message)

## Source

Summarized in our own words from [Show HN: Yuanzai World – LLM RPGs with branching world-lines](https://news.ycombinator.com/item?id=46565265) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/running-interactive-branching-narrative-simulations/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
