Extract PDF data from emails into a CRM and draft replies
An n8n workflow triages incoming emails with PDFs, extracts structured data into a Google Sheets CRM, and drafts a ready-to-send reply. ·
Done withn8n
- What they did
- The poster built an n8n workflow for inbound emails with PDF attachments: a Gmail trigger starts it, an Extract-from-File node pulls the PDF content, Claude Haiku first classifies the email, and quote emails go to Claude Sonnet to extract fields from the PDF. The output is parsed to JSON, appended to a Google Sheets CRM, and used to draft a reply, with a person reviewing the draft in Gmail before sending; there is also an error-alert branch.
- How it went
- It removed the manual open-read-retype-reply loop for quote emails and the author shared a cleaned template based on a production workflow. In the shared version, auditability is still weak because the only trace is n8n execution history unless extra columns are added to the sheet.
- Worth knowing
- Two practical catches from the post: keep Extract-from-File immediately after the trigger so the PDF binary survives, and use Haiku for triage plus Sonnet for extraction to lower API cost.
Try it yourself with n8n
Build a workflow that triggers on new emails in [Gmail/Outlook account] that have PDF attachments. Extract [fields, e.g. sender, invoice number, amount, due date] from each PDF into a row in my Google Sheet [sheet name], then draft a reply saved as a draft that acknowledges receipt and mentions the key details. It's done when a test email produces a new row and a draft; never send automatically.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: Reddit · Jul 1, 2025
Related use cases
Add todo items to Todoist from Telegram
A Telegram bot with an LLM and an orchestration platform (n8n or windmill) adds todos to the author's Todoist account from natural language messages.
Review GitHub pull requests automatically
An n8n AI agent triggers on each new PR, fetches diffs, calls an LLM for a review, and posts comments and labels back on the PR.
Automate bookkeeping workflows and supplier-delay emails
Commenters used n8n to automate bookkeeping firm workflows, saving about 600 hours a year, and to email customers automatically when supplier lead times changed.
Run a solo company with eight agent departments
A founder set up CEO, CFO, COO, lawyer, accountant, marketing, CTO, and improver agents that share memory and consult each other.
Build presentations and spreadsheets from web research
A user had Agent Mode build a presentation, draft an eBook and turn web research into spreadsheets; the author said the design was not award-winning but saved hours.
Hand off small business admin tasks to AI with approval
A business owner uses AI for small admin tasks, approving anything involving money personally.
Custom agent
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.