← Code Exchange

OpenAI Agents SDK Deep Research Demo

A deep research agent built with the OpenAI Agents SDK and Temporal's durable execution, featuring a web UI, multi-agent coordination with clarifying questions, and optional PDF report generation.


This demo extends the Deep Research workflow from OpenAI Agents Python SDK Demos by adding a browser-based UI, making it easier to experience the full multi-agent research pipeline in action. It's designed to be run side-by-side with the Temporal UI to show durable execution in real time.

When given a research query, a Triage Agent can route the workflow to a Clarifying Agent for follow-up questions, or if the query is already specific enough, let research continue without them. An Instruction Agent processes the responses, then hands off to a Planner Agent that creates a web search plan. Multiple Search Agents execute queries in parallel, and a Writer Agent compiles the findings into a comprehensive markdown report.

Every agent invocation and tool call is backed by Temporal, meaning the workflow is fault-tolerant, observable, and resumable — even if it takes several minutes to complete. This makes it a practical reference for teams building production-grade research agents with the OpenAI Agents SDK.


Language

Python

Temporal Verified

✅ Reviewed
aiopenaideep research

About the Author

Steve Androulakis photo

Steve Androulakis

Sr. Staff Solutions Architect

Garima Gupta Photo

Garima Gupta

Senior Solutions Architect

James Watkins photo

James Watkins

Senior Software Engineer

candace van oostrum

Candace van Oostrum

Head of Design

Alfred Chan photo

Alfred Chan

Staff Product Design, PLG

Bilal Karim photo

Bilal Karim

Staff Product Designer

Shivam Ajmera photo

Shivam Ajmera

Software Engineer 2

Angie Byron

Angie Byron

Senior Manager, Developer Advocacy & Community