AgentDoc is an autonomous document intelligence platform that transforms natural-language prompts into publication-grade business reports, strategic plans, and technical architectures. Designed for consultants, analysts, and recruiters, it bridges the gap between raw LLM completions and executive-ready deliverables (PDF/DOCX/Markdown) through a multi-stage reasoning pipeline, real-time interactive plan editing, and a premium "vellum-and-ink" Notion-inspired workspace.
- Frontend UI (Vercel): https://agentdoc-ai-document-workspace.vercel.app
- Backend API (Render): https://agentdoc-autonomous-ai-document-workspace.onrender.com
- Swagger API Docs: https://agentdoc-autonomous-ai-document-workspace.onrender.com/docs
These sample prompts are designed to showcase the platform's capabilities during live demonstrations. Copy and paste them into the workspace to see AgentDoc in action.
Standard Mode (Fast & Direct)
Use this mode for straightforward documents that don't require complex multi-step reasoning. It generates the document in a single pass.
Create a professional business proposal for implementing an AI-powered customer support chatbot for a mid-sized e-commerce company with approximately 200 employees. Include an executive summary, current challenges, proposed solution, implementation roadmap, estimated budget, expected business benefits, risks, KPIs, project timeline, and final recommendations. Present the document in a consultant-style format with headings, tables, and bullet points.
Adaptive Mode (Context-Aware)
Use this mode when you want the system to automatically determine the necessary depth of analysis and whether to use a multi-step plan based on the prompt's complexity.
Create a strategic business expansion plan for a rapidly growing fintech startup planning to enter three new international markets. Include market analysis, expansion strategy, operational roadmap, regulatory considerations, hiring plan, estimated budget, risks, financial projections, success metrics, and executive recommendations. Adjust the depth of analysis based on the complexity of the problem.
Advanced Mode (Deep Reasoning Pipeline)
Use this mode for comprehensive, highly structured reports. It engages the full multi-agent pipeline (Planner β Executor β Synthesizer β Reflector) for maximum quality and depth.
Create a comprehensive AI adoption strategy for a mid-sized retail company with 500 employees planning to integrate AI across customer support, inventory forecasting, marketing, sales, HR, and internal operations over the next 12 months. Include an executive summary, current-state assessment, stakeholder analysis, AI use cases, technology stack recommendations, implementation roadmap, cost-benefit analysis, ROI projections, governance framework, cybersecurity considerations, staffing plan, KPIs, budget breakdown, risk assessment with mitigation strategies, change management plan, and final executive recommendations. Present the report in a professional consultant-style format with numbered headings, tables, bullet points, and executive-ready language.
- Autonomous Planning & Reasonings: Decomposes complex user requests into structured, multi-phase execution tasks using an LLM-powered planner agent.
- Human-in-the-Loop Review Mode: Pauses the generation pipeline, allowing users to inline edit, reorder, delete, or append tasks before the agent execution begins.
- Streaming Multi-Stage Execution: Renders execution logs, generated tokens, and completed document sections in real time using Server-Sent Events (SSE).
- Glanceable Workspace Insights: A responsive dashboard containing total document counts, average generation times, preferred generation modes, and monthly report usage tracking.
- Notion-Style History System: Stored entirely client-side using IndexedDB with support for document favoriting, title renames, slide-out details preview drawers, and layout duplication.
- Fuzzy Command Palette (
Cmd+K): Keyboard-first routing engine allowing fast navigation, document clearing, and template triggers. - Consulting-Grade Document Exports:
- PDF: Features custom typography (Inter), headers, margins, colored callouts, zebra-striped tables, page-break safeguards, and dynamic footer page numbering.
- DOCX (Word): Visually matches the PDF styling with corporate-style cover pages, accent divider bars, custom table cells, and styled callout boxes.
- Markdown: Standard export of the raw, semantic source text.
Enter natural language prompts, select standard or advanced modes, and toggle plan review safeguards.
Audit, edit, reorder, delete, or add tasks before the agent executes the generation stream.
Watch the synthesizer draft and format section contents phase by phase with live terminal logs.
Inspect the completed consulting draft side-by-side with execution steps and metrics.
Manage previous document drafts, favorite items, and review monthly quota metrics.
[ Client UI React Workspace ]
β
ββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββ
βΌ (Search / Star Favorites) βΌ (Execute Commands) βΌ (PDF / DOCX Downloads)
[ Client IndexedDB ] [ Commands Context Registry ] [ FastAPI Static Server ]
β
βΌ (Trigger Generation API POST)
[ FastAPI Request Router ]
β
ββββββββββββββββββββββββ΄βββββββββββββββββββββββ
βΌ (Caches matching requests) βΌ (Bypasses / Cache Misses)
[ SQLite Cache Store ] [ Multi-Agent Pipeline ]
β
ββββββββββββββββ¬βββββββββββββββ¬βββββββββββββββ¬ββββββ΄βββββββββ¬βββββββββββββββ
βΌ βΌ βΌ βΌ βΌ βΌ
[ Classifier ] [ Planner ] [ Plan Review ] [ Executor ] [ Synthesizer ] [ Reflector ]
(Resolves mode)(Drafts outline)(Pause / Edit)(Runs tasks) (Markdown build)(Score checks)
- Classifier: Scans the input prompt to classify the document type (e.g. Project Plan, SOP, Proposal) and determines the appropriate execution path.
- Planner: Outlines the logical structure and tasks required to generate the requested document.
- Plan Review: Pauses the system if "Require Review" is toggled, exposing the plan nodes to the client UI for editing.
- Executor: Runs individual tasks sequentially, compiling contextual information.
- Synthesizer: Merges the gathered intelligence into a cohesive, beautifully formatted Markdown file.
- Reflector: Conducts a self-check evaluation and triggers exactly one revision pass if quality benchmarks are not met.
- Document Exports: Renders the final output dynamically into PDF, DOCX, and raw Markdown formats.
| Layer | Technologies |
|---|---|
| Frontend | React 19, TypeScript, Vite, React Router v7, Tailwind CSS, Base UI, Lucide Icons, react-markdown |
| Backend | Python 3.13, FastAPI, Uvicorn, Pydantic, SQLite (Request Cache) |
| Document Export | fpdf2 (PDF Generation), python-docx (DOCX Templating), markdown |
| AI Models | OpenAI GPT-4o, Tencent OpenCode Zen (hy3-free) |
| Development | Playwright (E2E testing), Oxlint (Linting), Pytest |
Create a .env file in the project root containing:
# -----------------------------------------------------------------------------
# AgentDoc Environment Variables Template
# -----------------------------------------------------------------------------
# Backend Application Configuration
PORT=8000
DEBUG=false
ENABLE_CACHE=true
# CORS Allow List (Comma-separated list of allowed origins)
ALLOWED_ORIGINS=https://agentdoc-ai-document-workspace.vercel.app,http://localhost:5173
# LLM Provider Configuration (openai, gemini, anthropic, zen)
LLM_PROVIDER=openai
LLM_API_KEY=your_api_key_here
LLM_MODEL=gpt-4o
LLM_BASE_URL=https://api.openai.com/v1
# Optional: Run in local offline Demo mode without hitting active LLM API limits
USE_DEMO_MODE=false
# Budget & Timeout Controls (Default: 180.0)
# BUDGET_MAX_STAGE_LATENCY=180.0- Node.js 20+
- Python 3.11+
- NPM
# Clone the repository
git clone https://github.com/ishanbhattacharjee12/AgentDoc.git
cd AgentDoc
# Create a virtual environment and install dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt# From the project root (venv active)
python -m uvicorn app.main:app --reload --port 8000# Open a new terminal tab/window
cd frontend-react
npm install
npm run devOpen http://localhost:5173 in your browser to run the application.
.
βββ ARCHITECTURE.md # Detailed engineering & design specifications
βββ DEPLOYMENT.md # Production deployment guidelines
βββ INSTALLATION.md # Developer environment setup
βββ CHANGELOG.md # Changelog and version release notes
βββ app
β βββ agent # Multi-agent pipelines (Planner, Synthesizer, Reflector)
β βββ llm # LLM Client wrappers, rate-limiting, and budget guards
β βββ main.py # FastAPI server router & endpoints
β βββ static # Static bundle fallback files
β βββ tools # PDF & DOCX rendering tools
βββ docs
β βββ DEMO.md # 2-minute, 5-minute, and 10-minute audit scripts
β βββ examples # Consulting document exports (PDF / DOCX examples)
βββ frontend-react
β βββ src # React views, hooks, components, and layout shells
β βββ package.json # React client dependencies
βββ tests # Backend unit test suites
Licensed under the MIT License.
Developed by Ishan Bhattacharjee (ishanbhattacharjee12).




