Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Automatic email invoice archiving & data extraction with Gmail, Drive & AI

n8n template #10923
Quick overview Automatically collect invoice PDFs from Gmail, archive them in Google Drive or an optional FTP/SFTP server, extract structured invoice data with AI, and record the results in Google Sheets. How it works Scheduled inbox check — A Schedule Trigger periodically checks Gmail for invoice messages matching the configured sender and attachment filters. Invoice download — Gmail nodes retrieve the matching message and download its PDF attachment. Document archiving — The PDF is uploaded to Google Drive and can optionally be copied to an FTP/SFTP server. Text extraction — n8n extracts text from text-based PDFs for AI processing without requiring OCR. AI extraction — An OpenRouter-backed

How to set it up

  1. Open template #10923 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
  2. Create 5 credentials under Credentials → Add credential: Google Sheets, Google Drive, FTP, Gmail, OpenRouter Chat Model. Then open each of those nodes and pick the credential.
  3. Check the model in the AI Agent 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 "Automatic email invoice archiving & data extraction with Gmail, Drive & AI" (https://n8n.io/workflows/10923). It uses: Google Sheets, HTTP Request, Google Drive, FTP, Gmail, Code, AI Agent, OpenRouter Chat Model. 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. Paolo Ronco published it free on n8n.io as a verified creator, and it has 946 views. It runs on n8n Cloud or a self-hosted n8n instance.

Google Sheets, Google Drive, FTP, Gmail, OpenRouter Chat Model. The other 3 nodes are built into n8n.

Similar workflows

NameViews
  1. Explore n8n Nodes in a Visual Reference Library5,197
  2. Automated Research Report Generation with AI, Wiki, Search & Gmail/Telegram4,632
  3. ✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition55K
  4. Automate sales cold calling pipeline with Apify, gpt-5.6-terra, and WhatsApp34K
  5. Create & Upload AI-Generated ASMR YouTube Shorts with Seedance, Fal AI, and GPT-424K
  6. Lead Workflow: Yelp & Trustpilot Scraping + OpenAI Analysis via BrightData7,460
  7. 3D Product Video Generator from 2D Image for E-Commerce Stores6,543
  8. AI YouTube Analytics Agent: Comment Analyzer & Insights Reporter6,404