Building Real-Time Interactive Narratives with OpenAI Agents SDK and DeepSeek R1
Create an immersive, interactive agent system designed to generate dynamic microdramas. Using the OpenAI Agents SDK, you will develop a multi-turn conversation orchestrator that manages character persona state and narrative flow. This challenge leverages the DeepSeek R1 reasoning model to ensure that plot development remains coherent and follows complex character arcs defined by the user. Integration with Sarvam AI enables voice-native interaction, while Browserbase provides the infrastructure for agents to perform live-web actions, such as fetching real-time context to enrich the story. All traffic and model routing is managed through Vercel AI Gateway, providing enterprise-grade analytics on token usage and model performance. Google Jules serves as the core development assistant for debugging the logic flows within your agentic stack.
What you are building
The core problem, expected build, and operating context for this challenge.
Utilize OpenAI Agents SDK and DeepSeek R1 to power an interactive narrative engine with voice and browser capabilities.
How work is evaluated
Assessment of narrative consistency and latency in conversational flow.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
latency_check
Ensure response time is under 2s
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
coherence_score
Semantic continuity of the dialogue • target: 8 • range: 0-10
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Master the OpenAI Agents SDK for stateful, multi-turn dialogue management in narrative contexts
Deploy DeepSeek R1 via API for high-reasoning narrative construction
Build browser-based agents using Browserbase to pull real-world headlines for story enrichment
Configure Vercel AI Gateway to monitor agentic token consumption and implement fallback routing
Integrate Sarvam AI for real-time voice synthesis and speech-to-intent mapping
Use Google Jules to assist in diagnosing and refining agent-call sequences during complex story branches
Reference links and supporting material
Sample data for 1 tasks
Challenge setup
Assessment of narrative consistency and latency in conversational flow.
Challenge input
Initial narrative prompt
OpenAI
OpenAI AI model provider
Browserbase
Headless browser for AI agents
DeepSeek R1
Policy Serving in the agent workflow.
Evaluated output
Character dialogue chain
- Ensure response time is under 2s
- Semantic continuity of the dialogue • target: 8 • range: 0-10
- Coherence Score target: 8
- 1 public reference case
- JavaScript execution harness
Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.
View technical recipe
Configured tools
- OpenAI · Required
- Browserbase · Optional
- DeepSeek R1 · Optional
Evaluation contract
- latency_check · Weight 1
- coherence_score · Weight 1
Metrics
- coherence_score · Target 8
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: Initial narrative prompt
Output: Character dialogue chain
Execution harness: JavaScript
Recipe freeze marker
No recipe freeze time is recorded.