Document Processing Agent

Portfolio lab — FastAPI + Claude tool-use for PDF/CSV/Excel/image workflows.

Checking service health…
📄

Drop PDF, image, CSV, or Excel files here — or click to browse

Extract & validate invoices Split PDF pages Summarize all documents Export as JSON Read scanned images

Processing your documents…

Result

Sample flow (always available)

  1. Open GET /health — confirms process is up and whether ANTHROPIC_API_KEY is set.
  2. Upload PDF/CSV/Excel/image(s) and describe a task (extract invoice fields, split PDF, summarize, export JSON).
  3. POST /process runs the Claude tool-use loop in agent.py (local tools: read, split, validate, export, mock email).
  4. Without a valid Railway env key, the UI stays live as a status/demo page and /process returns 503 with setup instructions — it will not fake AI answers.

Source: github.com/Harshanandhan/document-agent