Interactive Storytelling AI

A generative AI agent for a gaming studio that creates dynamic, branching narratives in real-time.

Project Overview

A gaming studio wanted to create a next-generation RPG where player choices would lead to truly unique, unscripted storylines.

The Challenge

Traditional game development relies on manually writing every possible story branch, which is incredibly time-consuming and limits the scope of player freedom.

My Solution

I developed a prototype of a “Director AI” that acts as a real-time Dungeon Master.

State Management: The AI maintains a constant understanding of the game’s state, including player actions, character relationships, and world events.

Dynamic Narrative Generation: Using a constrained LLM, the Director AI generates new dialogue, quests, and world events that are logically consistent with the player’s journey.

Safety and Cohesion: I implemented strict guardrails to ensure the generated narrative adheres to the game’s lore and tone, preventing nonsensical or out-of-character outcomes.

This technology is paving the way for games with near-infinite replayability and a level of player agency that was previously impossible.

© 2025 Suraj Pal Singh. All rights reserved.