I recently built an n8n workflow that automates something every small clinic deals with: incoming documents by email (referrals, consent forms, insurance paperwork) that someone has to manually read, classify, file, and log.
The flow: Gmail Trigger → extract PDF text → AI Agent (structured output) classifies the document type and pulls admin metadata only (no clinical data) → routes to the right Google Drive folder → logs it in Sheets → flags anything uncertain for manual review by email.
A few things I learned building it that might help others working on similar triage/classification flows:
- Skip the raw n8n.io template marketplace for anything niche, it’s flooded with free generic templates, hard to stand out.
- Keeping the AI step to metadata only (not full content) sidesteps a lot of data-sensitivity headaches when the documents involve personal data.
- Always wire a fallback branch on your Switch node undetected/low-confidence items should never silently disappear.
I packaged it as a ready-to-import kit with a setup guide if anyone wants the finished version instead of building from scratch: LINK. Happy to answer questions about the setup either way.