Microsoft has archived AutoGen and no longer maintains it. For new projects, Microsoft recommends Microsoft Agent Framework, and existing projects can follow the migration guide. The Firecrawl functions below are plain Python, so you can reuse them as tools there.
Setup
Firecrawl as an AutoGen Tool
This example wraps Firecrawl’sscrape and search as AutoGen function tools, then lets a single AssistantAgent use them to answer a question.
Multi-Agent: Researcher + Writer
Hand Firecrawl output from a researcher agent to a writer agent in a round-robin team.Notes
- These examples use the synchronous
Firecrawlclient, which works inside AutoGen’s event loop for small workloads. For heavy concurrent scraping, useAsyncFirecrawlwithasync deftools, or use batch scrape. - Replace
OpenAIChatCompletionClientwith any AutoGen-supported model client (Azure OpenAI, Anthropic viaautogen-ext, Ollama, etc.). Firecrawl is model-agnostic. - See the AutoGen docs for agent patterns beyond round-robin (selector, swarm, nested teams).

