{"product_id":"extract-pdf-data-with-claude-gmail-airtable-n8n-workflow","title":"Extract PDF Data with Claude, Gmail \u0026 Airtable (n8n Workflow)","description":"\u003ch3\u003eExtract PDF data with Claude, Gmail \u0026amp; Airtable—automatically route what you need for review\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow pulls PDF documents from an upload form or Gmail attachments, extracts the text, uses \u003cstrong\u003eAnthropic Claude\u003c\/strong\u003e to detect the document type and extract structured fields, then saves the results in \u003cstrong\u003eAirtable\u003c\/strong\u003e—with \u003cstrong\u003eSlack\u003c\/strong\u003e notifications for success or missing\/low-confidence fields.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers\u003c\/strong\u003e when a PDF is uploaded via an n8n form or when a new \u003cstrong\u003eGmail\u003c\/strong\u003e message arrives containing a PDF attachment.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts and normalizes inputs\u003c\/strong\u003e, including source, submitter, an optional document type hint, and the raw extracted text.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalls Anthropic Messages API (Claude)\u003c\/strong\u003e with the extracted text to:\n    \u003cul\u003e\n      \u003cli\u003eauto-detect the document type when needed,\u003c\/li\u003e\n      \u003cli\u003eextract type-specific structured fields,\u003c\/li\u003e\n      \u003cli\u003eidentify missing required fields and return a \u003cem\u003econfidence score\u003c\/em\u003e.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates the Claude JSON response\u003c\/strong\u003e and builds a structured output containing detected type, extracted fields, validation notes, and confidence.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRoutes results\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003eIf required fields are missing, confidence is \u003cstrong\u003ebelow 0.6\u003c\/strong\u003e, or type is \u003cstrong\u003eunknown\u003c\/strong\u003e, it posts a \u003cstrong\u003eSlack\u003c\/strong\u003e alert and logs the item to an Airtable “\u003cstrong\u003eNeeds Review\u003c\/strong\u003e” table.\u003c\/li\u003e\n      \u003cli\u003eOtherwise, it routes by type (Invoice\/Resume\/Contract\/Application) and creates a record in the corresponding \u003cstrong\u003eAirtable\u003c\/strong\u003e table.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNotifies success\u003c\/strong\u003e in Slack after the document is processed and stored.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eTurn inbound invoices, contracts, applications, or resumes into structured Airtable records without manual copying.\u003c\/li\u003e\n  \u003cli\u003eReview low-confidence extractions via Slack using a dedicated Airtable “Needs Review” queue.\u003c\/li\u003e\n  \u003cli\u003eSpeed up SaaS back-office workflows by automatically processing PDF submissions from forms or Gmail.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnthropic (Claude)\u003c\/strong\u003e: HTTP request using Anthropic API key credentials for text-to-structured extraction.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail\u003c\/strong\u003e: OAuth2 integration to detect and fetch PDF attachments from new messages.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAirtable\u003c\/strong\u003e: Creates records in type-specific tables; writes failures to “Needs Review”.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack\u003c\/strong\u003e: Posts alerts for missing fields\/low confidence and confirmation on success.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes used\u003c\/strong\u003e: if, set, code, gmail, merge, slack.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup:\u003c\/strong\u003e Add your \u003cstrong\u003eAnthropic API key\u003c\/strong\u003e to the n8n credential referenced by the HTTP request (or update the request headers accordingly), then configure Airtable tables and Slack alerts.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45938181374131,"sku":"N8N-19042","price":50.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/zJaRu9xthQ2bW5j-SO97j_svbpSNVh.png?v=1788339992","url":"https:\/\/buyflowscripts.com\/products\/extract-pdf-data-with-claude-gmail-airtable-n8n-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}