🧾 Automated PDF invoice processing & approval flow using OpenAI and Google Sheets

⚑ 13,175 views · 🧾 Invoice Processing

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Who is this for?

This workflow is ideal for:

What problem is this workflow solving?

Manually processing invoices is time-consuming, error-prone, and often lacks structure. This workflow solves those challenges by:

What this workflow does

This end-to-end invoice processing workflow includes:

  1. Three invoice input methods: Google Drive folder monitor, Gmail attachments, and web form uploads
  2. PDF to text extraction for each input method using native PDF parsing
  3. AI-powered invoice analysis with GPT-4 to extract structured fields such as vendor, total, and due date
  4. Dynamic categorization of invoice type (e.g., Travel, Software, Utilities) via AI
  5. Email-based approval workflow with embedded forms to collect decisions and notes
  6. Automated Google Sheets logging of all invoice data, approval status, and reviewer feedback
  7. Rejection notifications sent automatically to your finance team for transparency and follow-up

Setup

  1. Copy the Google Sheet template here:
    πŸ‘‰ PDF Invoice Parser with Approval Workflow – Google Sheet Template
  2. Connect your Google Drive account and specify the invoice folder ID
  3. Set up Gmail to monitor incoming invoices with PDF attachments
  4. Enable your form trigger to accept direct uploads from your internal or external users
  5. Enter your OpenAI API key in the AI processing node for data extraction
  6. Configure Google Sheets with a target spreadsheet to store invoice data
  7. Set recipient email addresses for invoice approvals and rejection notifications
  8. Test with a sample invoice to ensure end-to-end flow is working

How to customize this workflow to your needs

Contact me for consulting and support:
πŸ“§ billychartanto@gmail.com

πŸ”— Nodes Used

Google Sheets, Google Drive, Gmail, Google Drive Trigger, Gmail Trigger, AI Agent

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup