Build intelligent research workflows using multiple AI agents, FastAPI, and OpenRouter.
AutoResearchAI is a production-style Multi-Agent AI Research Platform designed to automate the complete research workflow.
Instead of relying on a single AI response, the system divides research into specialized AI agents that collaborate to produce higher-quality, structured, and verifiable results.
The project follows modern AI engineering practices including modular architecture, workflow orchestration, session management, REST APIs, and scalable backend design.
- ๐ค Multi-Agent AI Architecture
- ๐ง Planner Agent
- ๐ Research Agent
- โ Verifier Agent
- ๐ Writer Agent
- ๐ Real Web Research (search + safe fetching + source tracking)
- ๐ก๏ธ SSRF-protected web fetching
- ๐ Source tracking & citations
- โก FastAPI Backend
- ๐ REST API
- ๐ Session-Based Workflow
- ๐ Professional Report Generation
- ๐ AI Fact Check
- ๐ Markdown Report
- ๐ PDF/DOCX Export (Coming Soon)
- ๐ฌ Follow-up Research (Planned)
User
โ
โผ
FastAPI REST API
โ
โผ
Workflow Orchestrator
โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโ
โผ โผ โผ
Planner Agent Research Agent Session Manager
โ
โผ
Verification Agent
โ
โผ
Writer Agent
โ
โผ
Professional Report
User Query
โ
โผ
Planner Agent (Hidden)
โ
โผ
Research Agent
โ
โผ
Research Results
โ
โโโโโโโโโโโโโโโโบ AI Fact Check
โ โ
โ โผ
โ Verifier Agent
โ โ
โ โผ
โ Verified Report
โ
โโโโโโโโโโโโโโโโบ Generate Report
โ
โผ
Writer Agent
โ
โผ
Professional Report
| Category | Technologies |
|---|---|
| Language | Python |
| Backend | FastAPI |
| AI Provider | OpenRouter |
| AI Model | OpenRouter Auto |
| API Style | REST API |
| Configuration | Pydantic Settings |
| Validation | Pydantic |
| Server | Uvicorn |
| Version Control | Git + GitHub |
AutoResearchAI/
backend/
โ
โโโ agents/
โโโ api/
โโโ core/
โโโ prompts/
โโโ schemas/
โโโ utils/
โ
โโโ main.py
โ
tests/
โ
requirements.txt
README.md
| Method | Endpoint | Description |
|---|---|---|
| GET | / | Health Check |
| POST | /research | Generate Research |
| POST | /verify/{session_id} | AI Fact Check |
| POST | /report/{session_id} | Generate Professional Report |
git clone https://github.com/hiteshnathbuva/AutoResearchAI.git
cd AutoResearchAIpython -m venv .venvActivate environment
Windows
.venv\Scripts\activateLinux / macOS
source .venv/bin/activatepip install -r requirements.txtCreate a .env file in the project root.
OPENROUTER_API_KEY=your_api_key_hereWeb research is off by default. To enable it, set the following (all optional โ the app boots fine without them, and gracefully falls back to LLM-only research if web tools are disabled or fail):
# Enable real web research (default: false)
WEB_RESEARCH_ENABLED=true
# Search provider: auto | tavily | none (default: auto)
SEARCH_PROVIDER=auto
# Optional Tavily API key. Never commit a real key. When absent and search is
# enabled, the system degrades gracefully to LLM-only research.
TAVILY_API_KEY=your_tavily_key_here
# Bounded resource limits (safe defaults shown)
SEARCH_MAX_RESULTS=5
SEARCH_TIMEOUT_SECONDS=10
SEARCH_MAX_RETRIES=2
MAX_FETCHED_SOURCES=5
FETCH_TIMEOUT_SECONDS=10
FETCH_MAX_REDIRECTS=3
FETCH_MAX_BYTES=2000000
EXTRACT_MAX_CHARS=8000Security restrictions: fetched URLs and every redirect are validated against an SSRF blocklist before any connection. Only HTTP/HTTPS is allowed; localhost, loopback, private/link-local/reserved networks, CGNAT, cloud-metadata addresses, and common encoded-IP bypasses are rejected. Response size, redirect count, and extracted text are all bounded, and fetched page content is treated as untrusted data (never as instructions) in every prompt.
python -m uvicorn backend.main:app --reloadOpen
http://127.0.0.1:8000/docs
- Multi-Agent Architecture
- Workflow Engine
- Planner Agent
- Research Agent
- Verifier Agent
- Writer Agent
- FastAPI Backend
- REST API
- Session Management
- Swagger Documentation
- Repository Improvements
- React Frontend
- Professional Dashboard
- PDF Export
- DOCX Export
- Follow-up Research
- Visual Reports
- Internet Search Integration
- RAG Knowledge Base
- Authentication
- Conversation History
- Docker Deployment
Contributions, issues, and feature requests are welcome.
Feel free to fork the project and submit pull requests.
This project is licensed under the MIT License.
Hitesh Nathbuva
GitHub
https://github.com/hiteshnathbuva
โญ If you found this project useful, consider giving it a star.