Cookies

With your permission, we use Google Analytics cookies to measure visits and improve the site. Necessary cookies are always on. You can change your choice or withdraw consent anytime in the footer, under Cookie settings. Cookie Policy

Skip to content

Advanced Agents ·Intermediate

Deep Research Agent with OpenAI Agents SDK and Firecrawl

About this app

A powerful research assistant that leverages OpenAI's Agents SDK and Firecrawl's deep research capabilities to perform comprehensive web research on any topic and any question.

  • Complete open-source code
  • Step-by-step tutorial

Technical sheet

Category
Advanced Agents
Difficulty
Intermediate
Models
OpenAI
Frameworks
OpenAI Agents SDK
Runs locally?
Needs cloud APIs
Required keys
None

License Apache-2.0 · content curated and maintained by Doutor AI.

Full tutorial

🎓 FREE Step-by-Step Tutorial

👉 Click here to follow our complete step-by-step tutorial and learn how to build this from scratch with detailed code walkthroughs, explanations, and best practices.

A powerful research assistant that leverages OpenAI's Agents SDK and Firecrawl's deep research capabilities to perform comprehensive web research on any topic and any question.

Features

  • Deep Web Research: Automatically searches the web, extracts content, and synthesizes findings
  • Enhanced Analysis: Uses OpenAI's Agents SDK to elaborate on research findings with additional context and insights
  • Interactive UI: Clean Streamlit interface for easy interaction
  • Downloadable Reports: Export research findings as markdown files

How It Works

  1. Input Phase: User provides a research topic and API credentials
  2. Research Phase: The tool uses Firecrawl to search the web and extract relevant information
  3. Analysis Phase: An initial research report is generated based on the findings
  4. Enhancement Phase: A second agent elaborates on the initial report, adding depth and context
  5. Output Phase: The enhanced report is presented to the user and available for download

Requirements

  • Python 3.8+
  • OpenAI API key
  • Firecrawl API key
  • Required Python packages (see requirements.txt)

Installation

  1. Clone this repository:
git clone  https://github.com/Shubhamsaboo/awesome-llm-apps.git
cd advanced_ai_agents/single_agent_apps/ai_deep_research_agent
  1. Install the required packages:
pip install -r requirements.txt

Usage

  1. Run the Streamlit app:
streamlit run deep_research_openai.py
  1. Enter your API keys in the sidebar:
  • OpenAI API key
  • Firecrawl API key
  1. Enter your research topic in the main input field
  1. Click "Start Research" and wait for the process to complete
  1. View and download your enhanced research report

Example Research Topics

  • "Latest developments in quantum computing"
  • "Impact of climate change on marine ecosystems"
  • "Advancements in renewable energy storage"
  • "Ethical considerations in artificial intelligence"
  • "Emerging trends in remote work technologies"

Technical Details

The application uses two specialized agents:

  1. Research Agent: Utilizes Firecrawl's deep research endpoint to gather comprehensive information from multiple web sources.
  1. Elaboration Agent: Enhances the initial research by adding detailed explanations, examples, case studies, and practical implications.

The Firecrawl deep research tool performs multiple iterations of web searches, content extraction, and analysis to provide thorough coverage of the topic.

From the same category

Advanced AgentsIntermediate

AI Agent Governance - Policy-Based Sandboxing

Policy-Based Sandboxing: Define what your AI agent can and cannot do using declarative policies - Action Interception: Catch and validate agent action…

  • OpenAI
Advanced AgentsIntermediate

AI Consultant Agent with Google ADK

A powerful business consultant powered by Google's Agent Development Kit that provides comprehensive market analysis, strategic planning, and actionab…

  • Gemini
Advanced AgentsIntermediate

AI Customer Support Agent

This Streamlit app implements an AI-powered customer support agent for synthetic data generated using GPT-4o. The agent uses OpenAI's GPT-4o model and…

  • OpenAI

Need a tailor-made solution?

Not sure where to start with AI in your business? Get a free assessment and a tailored plan - no commitment.

Save hours every week with AI, no hassle

Doutor AI gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further.

See plans