TLDR: HAMLET is a multi-agent AI framework designed for creating and performing interactive drama. It addresses limitations of existing LLM-based methods by enabling autonomous AI actors, physical environment interaction, and a comprehensive evaluation system. The framework uses an offline planning stage to generate a narrative blueprint and an online performance stage where AI actors, guided by a ‘Perceive and Decide’ (PAD) module, make human-like decisions and interact dynamically. A specialized AI critic, HAMLETJudge, evaluates performances across character, narrative, and interaction dimensions, demonstrating HAMLET’s ability to produce expressive and coherent theatrical experiences.
The world of interactive storytelling is constantly evolving, and a new framework called HAMLET is pushing the boundaries of what’s possible with artificial intelligence in live theatrical performances. Developed by a team of researchers including Sizhou Chen, Shufan Jiang, Chi Zhang, Xiao-Lei Zhang, and Xuelong Li, HAMLET aims to create truly immersive and interactive drama experiences, addressing key limitations of previous AI-driven methods.
Traditional approaches to AI-based drama often struggle with agents that lack initiative or the ability to interact with their physical environment. Furthermore, they typically demand extensive user input to guide the narrative, which can reduce the spontaneity and immersion of real-time performances. HAMLET tackles these challenges head-on by introducing a multi-agent framework designed for both drama creation and live online performance.
How HAMLET Works: A Two-Stage Process
The HAMLET framework operates in two main stages: offline planning and online performance.
During the **offline planning** stage, the system takes a simple topic as input and generates a detailed narrative blueprint. This stage involves a collaborative workflow of several specialized AI agents:
- The **Actor Designer** creates in-depth profiles for core characters, including their backgrounds, personalities, goals, and relationships.
- The **Plot Designer** crafts a preliminary narrative draft, which is then structured into a hierarchical plot profile. This includes defining acts, scenes, interactive props with their locations, and key narrative points with clear completion flags.
- A **Reviewer** agent ensures the rationality and coherence of both character settings and plot developments.
- Finally, the **Director** integrates all these elements into the comprehensive narrative blueprint, which serves as the guide for the live performance.
The **online performance** stage transforms this static blueprint into a dynamic, interactive environment where both autonomous AI actors and human players can participate. Each act is composed of scenes (the physical environment with interactive props) and points (plot goals or milestones).
A crucial innovation in this stage is the concept of “beats” – effective interaction steps that dynamically form the narrative path between points. Actors’ decisions are driven by a dual-goal system, balancing public plot flags with personal private goals. To manage the complexities of live interaction, HAMLET employs several control agents:
- The **Narrator** agent adjudicates all interactions between actors and the environment, ensuring physical actions are logical and updating the scene’s state accordingly.
- The **Planner** pre-designs and reviews multiple possible narrative trajectories, ensuring coherent progression.
- The **Transfer** agent monitors the performance to detect when a plot point’s flag has been met, facilitating smooth transitions to the next stage.
- If the plot stalls, the **Advancer** intervenes, providing direct instructions to actors to keep the story moving forward.
At the heart of each AI actor is the **Perceive and Decide (PAD) module**. Inspired by human cognition’s dual-process theory (fast, intuitive reactions vs. slow, deliberate analysis), PAD enables AI actors to make more human-like decisions. It processes both the actor’s internal state (persona, memory, goals) and external stimuli (environment, dialogue history, interactable objects) to determine the most appropriate response strategy: a fast reaction, a slow, considered deliberation, or even strategic silence. This module also allows for tool calls to simulate potential actions, making the AI actors’ behaviors more natural and expressive.
Also Read:
- Automating Challenging Traffic Scenarios with LLM Agents
- Synthetic Emotions: How AI is Creating Diverse Text for Emotion Recognition
Evaluating Theatrical Quality
To objectively assess the quality of the generated drama, HAMLET introduces a comprehensive evaluation method and a leaderboard. The evaluation focuses on three core dimensions:
- **Character Performance:** Measures the believability, consistency, and agency of AI actors, including their emotional expression and ability to advance the narrative.
- **Narrative Quality:** Examines the story’s coherence, plot advancement, creativity, and overall integrity.
- **Interaction Experience:** Assesses the responsiveness, immersion, and fluency of the AI actors’ engagement with the system and other participants.
The researchers developed HAMLETJudge, a specialized critic model fine-tuned on human-annotated pairwise comparisons, to automate the evaluation process. Experiments have shown that HAMLET can create expressive and coherent theatrical experiences, with the PAD module significantly enhancing the naturalness and human-like quality of AI actor interactions. The framework’s code, dataset, and models are publicly available for further research and development.
This innovative approach paves a new path toward autonomous and immersive interactive drama, promising a future where AI can truly take center stage in live theatrical performances. For more details, you can refer to the full research paper here.


