Deep‑Draft — AI Multi‑Agent Research Assistant
Backend EngineerNovember 2025 – May 2026
Deep‑Draft — AI Multi‑Agent Research Assistant:Multi‑agent web app that discovers, analyzes, validates, and compiles academic paper summaries into publication‑quality PDF reports using Google Gemini and the arXiv API. Designed and implemented a sequential multi‑agent pipeline (SearchAgent, SummaryAgent, ValidationAgent, HTMLAgent) to discover and synthesize academic literature. Integrated arXiv API (XML parsing via xml2js) to fetch authoritative paper metadata and abstracts. Used Google Gemini for high‑quality summarization and a separate validation pass to reduce LLM hallucinations and enforce structured JSON outputs. Validated AI outputs against Zod schemas; automated repair/rejection flows for inconsistent responses. Generated pixel‑perfect, server‑rendered PDF reports using headless Puppeteer with @sparticuz/chromium for serverless deployments. Built passwordless OTP authentication (Nodemailer) and secure session handling with HTTP‑only JWT cookies. Front‑end: responsive React + Tailwind UI with Framer Motion animations and a dashboard to view/export conversations and reports. Persisted users, conversations, and generated reports in MongoDB using Mongoose.
Services:
ReactViteTailwind CSSNode.jsExpressMongoDBGoogle Gemini (LLM)PuppeteerZod (schema validation)Postman
Challenges:
Preventing LLM hallucinations and guaranteeing structured, factual outputs — solved by adding a dedicated ValidationAgent that cross‑checks Gemini outputs and enforces strict Zod schemas, plus retry/repair logic; also adapting Puppeteer to run reliably in serverless environments required @sparticuz/chromium.
What I learned:
- Designing and orchestrating agent‑based pipelines for LLM workflows.
- Schema‑first LLM validation patterns (Zod + LLM-assisted repairs) to reduce hallucinations.
- Serverless-friendly PDF generation with headless Chromium and Puppeteer.
- Implementing secure passwordless OTP authentication and cookie‑based sessions.
- Building a performant, polished React + Vite frontend integrated with backend agents.


