Skip to main content

Verify receipts and invoices with OpenAI vision, Slack and Google Sheets

Workflow preview

Workflow preview
100%
Verify receipts and invoices with OpenAI vision, Slack and Google Sheets preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow receives receipt or invoice image URLs via a webhook, uses OpenAI Vision to extract structured totals and currency, validates them against expected booking values, logs...

Best for

  • Invoice Processing automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.slack, n8n-nodes-base.googlesheets, n8n-nodes-base.respondtowebhook, n8n-nodes-base.errortrigger, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Redowan Ahmed Farhan.

Original n8n.io source

1.1 Workflow description

Title
Verify receipts and invoices with OpenAI vision, Slack and Google Sheets
Workflow name
Verify receipts and invoices with OpenAI vision, Slack and Google Sheets

Quick Overview

This workflow receives receipt or invoice image URLs via a webhook, uses OpenAI Vision to extract structured totals and currency, validates them against expected booking values, logs the result to Google Sheets, and posts non-approved cases to Slack for human review.

How it works

  1. Receives a POST webhook request containing a document image URL plus booking details like expected amount and currency.
  2. Normalizes the incoming payload and assigns a document ID for consistent downstream processing.
  3. Sends the image URL to OpenAI (GPT vision) to extract vendor, date, totals, currency, line items, and an extraction confidence score as strict JSON.
  4. Parses the model output and validates total, currency, and confidence against the expected booking values (with a 2% amount tolerance) to produce an APPROVED, REVIEW, REJECTED, or ERROR verdict.
  5. Posts any non-APPROVED verdict to a Slack channel with the extracted values and validation reasons.
  6. Appends the verification result to Google Sheets and returns a JSON response with the documentId, verdict, and reasons to the webhook caller.
  7. Alerts an engineering Slack channel if the workflow fails unexpectedly.

Setup

  1. Add an OpenAI API credential for the OpenAI Chat Model used by the AI extraction step.
  2. Add a Slack OAuth2 credential and set the target channels for review notifications and engineering error alerts.
  3. Add a Google Sheets OAuth2 credential and update the spreadsheet and sheet/tab used to append verification results.
  4. Copy the webhook URL from the webhook trigger and configure your source system to POST image_url (or imageUrl), expected_amount, currency, guest_id, and booking_id, ensuring the image URL is publicly reachable by OpenAI.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Document Upload Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Normalize Input

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Parse Extraction

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Validate Against Booking

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Auto Approve?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - Flag For Review

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 7 - Build Error Verdict

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Record Result

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 9 - Respond

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 10 - Error Trigger

Type / Role
n8n-nodes-base.errorTrigger - errorTrigger
Config choices
Version 1

Block 11 - Alert Engineering

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 12 - Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Section Intake

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Section Vision

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Section Validate

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Section Logging

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 18 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

3. Summary Table

Workflow Verify receipts and invoices with OpenAI vision, Slack and Google Sheets
Complexity advanced
Nodes 18
Categories Invoice Processing, AI Summarization
Author Redowan Ahmed Farhan
Published 15 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16389/16389.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Verify receipts and invoices with OpenAI vision, Slack and Google Sheets do?

Quick Overview This workflow receives receipt or invoice image URLs via a webhook, uses OpenAI Vision to extract structured totals and currency, validates them against expected booking values, logs...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing, AI Summarization use case.