← 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

Man with beard and round glasses wearing blue beanie outdoors with red autumn foliage in background.

Steve Androulakis

Sr. Staff Solutions Architect

Woman with long dark hair smiling at camera against dark background with blurred lights

Garima Gupta

Senior Solutions Architect

Man with short brown hair wearing black suit jacket and red collared shirt, smiling at camera against white background.

James Watkins

Senior Software Engineer

Person wearing pink bunny ears and purple glasses with black sweater and patterned collar against gray background

Candace van Oostrum

Head of Design

Professional headshot of an Asian man with black-framed glasses, mohawk hairstyle, wearing a gray suit and striped tie.

Alfred Chan

Staff Product Design, PLG

Man with dark wavy hair and gray streaks wearing a tan jacket over white shirt against a teal blue background

Bilal Karim

Staff Product Designer

Professional headshot of a smiling young man with dark hair and beard wearing a dark striped shirt against a blue-gray background

Shivam Ajmera

Software Engineer 2

A nerd with glasses and blue hair smiling and holding a rainbow umbrella

Angie Byron

Senior Manager, Developer Advocacy & Community