Extract and triage PDF documents with Claude, Gmail, Airtable and Slack
Ready for 3.0What this workflow does
This workflow has 20 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, Slack and Airtable. It also calls api.anthropic.com over HTTP.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Get Attachment (Gmail): get
- Extract PDF Text (Form) (Extract from File): extracts data from a file (pdf)
- Extract PDF Text (Email) (Extract from File): extracts data from a file (pdf)
- Normalize Form Input (Edit Fields (Set)): sets 4 fields: source, documentTypeHint, rawText…
- Normalize Email Input (Edit Fields (Set)): sets 4 fields: source, documentTypeHint, rawText…
- Merge: merges the data from its input branches
- AI Extract & Validate (HTTP Request): calls api.anthropic.com (POST)
- Parse AI Response (Code): runs custom JavaScript code
- Needs Review? (If): checks a condition and branches into true / false
- Notify for Review (Slack): uses Slack
…plus 8 more steps. See the full node list below.
Services it uses
HTTP calls to: api.anthropic.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Email Attachment Trigger).
Nodes used (12)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - Edit Fields (Set)
n8n-nodes-base.set - Gmail Trigger
n8n-nodes-base.gmailTrigger - Gmail
n8n-nodes-base.gmail - Merge
n8n-nodes-base.merge - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Airtable
n8n-nodes-base.airtable - Switch
n8n-nodes-base.switch
From the author
Quick overview This workflow ingests PDF documents from an n8n upload form or Gmail attachments, extracts their text, uses Anthropic Claude to detect the document type and extract structured fields, and then stores results in Airtable while sending review and…