AutomationFlowsFinance › Automated Invoice Processing

Automated Invoice Processing

Automated Invoice Processing. Uses gmailTrigger, httpRequest, slack, quickbooks. Event-driven trigger; 7 nodes.

Event trigger★★★★☆ complexity7 nodesGmail TriggerHTTP RequestSlackQuickBooksGoogle Drive
Finance Trigger: Event Nodes: 7 Complexity: ★★★★☆ Added:

This workflow follows the Gmail Trigger → Google Drive recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Automated Invoice Processing",
  "nodes": [
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "filters": {
          "labelIds": []
        }
      },
      "id": "5e30749b-4327-4b80-abc1-1fe92295466d",
      "name": "Invoice Email",
      "type": "n8n-nodes-base.gmailTrigger",
      "typeVersion": 1.2,
      "position": [
        260,
        300
      ],
      "notes": "Assign Gmail credentials; filter your Invoices label."
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.ocr.space/parse/image",
        "sendBody": true
      },
      "id": "f611989a-c711-41d6-9700-e11d12c5ce2e",
      "name": "OCR Extract",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        560,
        300
      ],
      "notes": "Header Auth credential for your OCR provider."
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "26e01b4c-07fd-4b49-abbd-acb91f008c93",
              "name": "vendor",
              "value": "={{ $json.vendor }}",
              "type": "string"
            },
            {
              "id": "bf9ddef5-7e67-43a1-9c93-ca1cbc536644",
              "name": "amount",
              "value": "={{ $json.amount }}",
              "type": "number"
            }
          ]
        }
      },
      "id": "58606e24-57e9-4d6d-8383-d383ca88ba7a",
      "name": "Parse Fields",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        860,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "conditions": [
            {
              "id": "b4382d10-a9c8-475f-a96c-dda489c519ab",
              "leftValue": "={{ $json.amount }}",
              "rightValue": 5000,
              "operator": {
                "type": "number",
                "operation": "gt"
              }
            }
          ]
        }
      },
      "id": "8bf607e0-4f74-4e9e-bc2f-a2445f8b4a3e",
      "name": "Over 5000?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1160,
        300
      ]
    },
    {
      "parameters": {
        "select": "channel",
        "text": "=Invoice needs approval: {{ $json.vendor }} - {{ $json.amount }}"
      },
      "id": "0a58c4b8-0543-40e2-b2ba-3a5a05730efa",
      "name": "Request Approval",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        260,
        520
      ]
    },
    {
      "parameters": {
        "resource": "bill",
        "operation": "create"
      },
      "id": "a6d9ee79-ef6c-400e-ab05-68a37a4582da",
      "name": "Post Bill",
      "type": "n8n-nodes-base.quickbooks",
      "typeVersion": 1,
      "position": [
        560,
        520
      ],
      "notes": "Assign QuickBooks Online credentials."
    },
    {
      "parameters": {
        "operation": "upload"
      },
      "id": "a2117585-24d3-45f3-8c5a-bf9bb5436c1a",
      "name": "Archive PDF",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        860,
        520
      ],
      "notes": "Assign Google Drive credentials."
    }
  ],
  "connections": {
    "Invoice Email": {
      "main": [
        [
          {
            "node": "OCR Extract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OCR Extract": {
      "main": [
        [
          {
            "node": "Parse Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Fields": {
      "main": [
        [
          {
            "node": "Over 5000?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Over 5000?": {
      "main": [
        [
          {
            "node": "Request Approval",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Post Bill",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Request Approval": {
      "main": [
        [
          {
            "node": "Post Bill",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Bill": {
      "main": [
        [
          {
            "node": "Archive PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Automated Invoice Processing. Uses gmailTrigger, httpRequest, slack, quickbooks. Event-driven trigger; 7 nodes.

Source: https://github.com/Kr8thor/n8n-templates/blob/main/workflows/automated-invoice-processing.json — original creator credit. Request a take-down →

More Finance workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Finance

How It Works Trigger: Watches for new emails in Gmail with PDF/image attachments. OCR: Sends the attachment to OCR.space API (https://ocr.space/OCRAPI) to extract invoice text. Parsing: Extracts key f

Gmail Trigger, Google Sheets, Slack +3
Finance

Automatically processes vendor invoices received by email, creates QuickBooks bills with full details, and attaches the original PDF. Small/medium businesses using QuickBooks Online Bookkeepers proces

Gmail Trigger, Information Extractor, OpenAI Chat +3
Finance

This is the ultimate sales-to-cash automation. When a deal in Airtable is marked "Approved for Invoicing," this workflow intelligently syncs customer data across QuickBooks and Stripe (creating them i

Airtable Trigger, Stripe, QuickBooks +2
Finance

AP Invoice — 01 Orchestrator. Uses postgres, httpRequest, quickbooks, slack. Webhook trigger; 42 nodes.

Postgres, HTTP Request, QuickBooks +1
Finance

This workflow triggers on successful Stripe payment events, generates and finalizes invoices, then formats and sends invoice details via Gmail, stores invoice PDFs in Google Drive, and notifies an adm

Stripe, Gmail, HTTP Request +3