Skip to main content
Integrate Firecrawl with Microsoft AutoGen to give multi-agent conversations live web search, scrape, and crawl tools.

Setup

Set your keys:

Firecrawl as an AutoGen Tool

This example wraps Firecrawl’s scrape and search as AutoGen function tools, then lets a single AssistantAgent use them to answer a question.
Run it:

Multi-Agent: Researcher + Writer

Hand Firecrawl output from a researcher agent to a writer agent in a round-robin team.

Notes

  • Firecrawl’s Python SDK is synchronous; AutoGen will call your wrappers inside its event loop without issues for small workloads. For heavy concurrent scraping, move calls off the main thread or use batch scrape.
  • Replace OpenAIChatCompletionClient with any AutoGen-supported model client (Azure OpenAI, Anthropic via autogen-ext, Ollama, etc.). Firecrawl is model-agnostic.
  • See the AutoGen docs for agent patterns beyond round-robin (selector, swarm, nested teams).