Skip to content

About

Production-grade Multi-Agent AI Research Platform built with FastAPI, OpenRouter, and modular AI agents.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

28 Commits

Folders and files

Repository files navigation

๐Ÿง  AutoResearchAI

Production-Grade Multi-Agent AI Research Platform

Build intelligent research workflows using multiple AI agents, FastAPI, and OpenRouter.

Python FastAPI OpenRouter REST API Status License


๐Ÿ“– Overview

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.


โœจ Features

  • ๐Ÿค– 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)

๐Ÿ— Architecture

                    User
                      โ”‚
                      โ–ผ
              FastAPI REST API
                      โ”‚
                      โ–ผ
          Workflow Orchestrator
                      โ”‚
      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
      โ–ผ               โ–ผ               โ–ผ
 Planner Agent   Research Agent   Session Manager
                      โ”‚
                      โ–ผ
              Verification Agent
                      โ”‚
                      โ–ผ
                Writer Agent
                      โ”‚
                      โ–ผ
              Professional Report

โš™ Current Workflow

User Query
      โ”‚
      โ–ผ
Planner Agent (Hidden)
      โ”‚
      โ–ผ
Research Agent
      โ”‚
      โ–ผ
Research Results
      โ”‚
      โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ AI Fact Check
      โ”‚                    โ”‚
      โ”‚                    โ–ผ
      โ”‚             Verifier Agent
      โ”‚                    โ”‚
      โ”‚                    โ–ผ
      โ”‚             Verified Report
      โ”‚
      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ Generate Report
                           โ”‚
                           โ–ผ
                      Writer Agent
                           โ”‚
                           โ–ผ
                  Professional Report

๐Ÿ›  Tech Stack

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

๐Ÿ“‚ Project Structure

AutoResearchAI/

backend/
โ”‚
โ”œโ”€โ”€ agents/
โ”œโ”€โ”€ api/
โ”œโ”€โ”€ core/
โ”œโ”€โ”€ prompts/
โ”œโ”€โ”€ schemas/
โ”œโ”€โ”€ utils/
โ”‚
โ”œโ”€โ”€ main.py
โ”‚
tests/
โ”‚
requirements.txt
README.md

๐Ÿš€ API Endpoints

Method Endpoint Description
GET / Health Check
POST /research Generate Research
POST /verify/{session_id} AI Fact Check
POST /report/{session_id} Generate Professional Report

๐Ÿš€ Getting Started

Clone Repository

git clone https://github.com/hiteshnathbuva/AutoResearchAI.git

cd AutoResearchAI

Create Virtual Environment

python -m venv .venv

Activate environment

Windows

.venv\Scripts\activate

Linux / macOS

source .venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Configure Environment

Create a .env file in the project root.

OPENROUTER_API_KEY=your_api_key_here

Optional: Real Web Research (Phase 2)

Web 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=8000

Security 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.


Run Backend

python -m uvicorn backend.main:app --reload

Open

http://127.0.0.1:8000/docs

๐Ÿ—บ Roadmap

โœ… Completed

  • Multi-Agent Architecture
  • Workflow Engine
  • Planner Agent
  • Research Agent
  • Verifier Agent
  • Writer Agent
  • FastAPI Backend
  • REST API
  • Session Management
  • Swagger Documentation

๐Ÿšง In Progress

  • Repository Improvements
  • React Frontend
  • Professional Dashboard

๐Ÿ”ฎ Planned

  • PDF Export
  • DOCX Export
  • Follow-up Research
  • Visual Reports
  • Internet Search Integration
  • RAG Knowledge Base
  • Authentication
  • Conversation History
  • Docker Deployment

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome.

Feel free to fork the project and submit pull requests.


๐Ÿ“„ License

This project is licensed under the MIT License.


๐Ÿ‘จโ€๐Ÿ’ป Author

Hitesh Nathbuva

GitHub

https://github.com/hiteshnathbuva


โญ If you found this project useful, consider giving it a star.

About

Production-grade Multi-Agent AI Research Platform built with FastAPI, OpenRouter, and modular AI agents.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages