Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Extract & Classify Invoices & Receipts with Gmail, OpenAI and Google Drive

n8n template #3719
Who is it for? Anyone who wants to automatically aggregate their invoices or receipts. Main beneficiaries: small business owners and freelancers. How it works Creates a folder in Google Drive for uploading invoices and receipts. Responds (Webhook response) with URL to the created folder. Gets all emails with attachments from a Gmail mailbox. (Optional) Filters emails, e.g. exclude emails sent to specific address. Filters only PDF attachments. Classifies all PDF attachment contents with an AI model (is it a receipt or an invoice?). Uploads receipts and invoices to the created Google Drive folder and optionally sends an email with the attachments to, e.g., your accountant. Pre-conditions/Requi

How to set it up

  1. Open template #3719 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
  2. Create 3 credentials under Credentials → Add credential: Google Drive, Gmail, OpenAI. Then open each of those nodes and pick the credential.
  3. Check the model in the OpenAI node. The template may point at a model your account can't use; swap it for one you have access to.
  4. Click Execute workflow and step through each node's output to confirm the data looks right.
  5. Toggle the workflow to Active so its trigger runs on its own.

Hand off to your agent

Prompt

Help me set up the n8n workflow "Extract & Classify Invoices & Receipts with Gmail, OpenAI and Google Drive" (https://n8n.io/workflows/3719). It uses: Google Drive, Gmail, Code, OpenAI. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.

Paste into Claude Code and it will do the rest.

Apps and nodes

Questions

Yes. Tom published it free on n8n.io, and it has 6,645 views. It runs on n8n Cloud or a self-hosted n8n instance.

Google Drive, Gmail, OpenAI. The other 1 node are built into n8n.

Similar workflows

NameViews
  1. ✨🤖Automate Multi-Platform Social Media Content Creation with AI205K
  2. Fully Automated AI Video Generation & Multi-Platform Publishing191K
  3. AI-Powered Short-Form Video Generator with OpenAI, Flux, Kling, and ElevenLabs93K
  4. ✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition55K
  5. AI Email Analyzer: Process PDFs, Images & Save to Google Drive + Telegram21K
  6. AI Timesheet Generator with Gmail, Calendar & GitHub to Google Sheets20K
  7. 🦜✨Use OpenAI to Transcribe Audio + Summarize with AI + Save to Google Drive18K
  8. Send specific PDF attachments from Gmail to Google Drive using OpenAI18K