A Python-based multi-step AI research agent built with LangChain, LangGraph, Firecrawl, and OpenAI. Performs structured web research with consistent, predictable results.
- Structured Web Research - Searches and analyzes relevant articles
- Tool Extraction - Identifies relevant tools from web content
- Company Analysis - Scrapes official sites for pricing, tech stack, APIs
- Structured Output - Uses Pydantic schemas for consistent results
- Deterministic Workflow - LangGraph state nodes for reliable execution
- Python 3.11+
- LangChain & LangGraph
- Firecrawl
- OpenAI API
- Pydantic
- Clone and install
git clone https://github.com/yourusername/ai-research-agent.git
cd ai-research-agent
pip install -r requirements.txt- Configure environment
# Create .env file
OPENAI_API_KEY=your_openai_key
FIRECRAWL_API_KEY=your_firecrawl_key- Run
python main.pyThe pipeline has three main nodes:
- Extract Tools – Search articles, scrape content, extract tool names
- Research – Visit official sites, scrape data, analyze with schemas
- Analyze – Aggregate data and produce recommendations
$ python main.py
Enter your query: Google Cloud alternatives
# ... processing ...
# Structured output with tool analysis and recommendationsMIT