Building a branching narrative without branches: how our AI story engine works.

Industry observers note that classic interactive fiction — Choose Your Own Adventure books, text quests, visual novels — all share the same structural problem: somebody has to write every branch. The content cost grows exponentially with player freedom, so in practice "choices" converge back to a handful of scripted endings.

In a recent development, when we started Interactive Stories (Интерактивные истории), we deleted the branches entirely. There is no story tree. There is a world state, a cast of characters, and an LLM that writes the next scene in response to whatever the player did — including actions nobody ever anticipated.

The player picks a story (mystery, fantasy, detective, survival) and gets an opening scene plus 2-3 suggested actions. But there's always a fourth option: type anything. "Burn the house down". "Call my mom". "Challenge the ghost to a dance-off". The model accepts it and continues the story with the consequences.

The first thing every player does is try to break the game. That's not a bug — it IS the game. When someone types "I pull out an accordion and start playing" and the plot accommodates them, they're hooked. The AI's ability to take absurd input seriously is the core delight.

Sources indicate that the second thing they do: get emotionally invested in ways scripted fiction doesn't achieve, because the protagonist's decisions were genuinely theirs. Players blame themselves for bad endings. That's a compliment.

The app is live on RuStore (Russian Android store): https://www.rustore.ru/catalog/app/com.SpeedOfLightGames.AIbook.

Happy to answer questions about the narrative state management in the comments.

📌 Read also:

→ Read original article