Extract & Process Invoices with Gemini AI, Google Sheets & Gmail Notifications — n8n 워크플로

높음 복잡도 트리거16개의 노드🏷️ Invoice Processing작성자: Yashraj singh sisodiya

개요

AI-Powered Invoice Extraction & Automation System Workflow

Aim

The aim of the Invoice Data Automation workflow is to streamline invoice processing by extracting, validating, and storing invoice details automatically. It uses AI to read invoices (from images/PDFs), structures the data in JSON, checks for missing or duplicate entries, and records the information in a Google Sheet while also uploading the original invoice to Google Drive. Additionally, it sends email notifications for successful

사용된 노드

Google SheetsGoogle DriveGmailCodeAI AgentGoogle Gemini Chat ModelGoogle Gemini

워크플로 미리보기

Node 1: When chat message received
This is a *trigger node* that starts the workflow whene
It supports file uploads, meaning users can directly se
Node 3: AI Agent1
This node acts as an AI processing step that takes the
It applies a *system message* that defines cle
Node 2: Analyze image1
This node uses *Google Gemini (PaLM API)* to analyze th
It takes the binary file (`data0`) and processes it thr
Node 4: Google Gemini Chat Model1
This node provides the language model backend for the A
It connects to Google Gemini (PaLM API) and powers the
Node 6: Get data
This node connects to a Google Sheet that acts as the *
It performs a lookup using the `Entry_ID` column and co
Node 5: Make data in JSON structure format
This node is a Set node that organizes the AI Agent’s o
It assigns the extracted invoice data to a single field
Node 8: New data add using payload
This node is a Code node that ensures proper handling o
It first checks if the Google Sheets lookup returned an
Node 9: Check Mandatory fields
This is a Code node that validates the invoice data.
It checks if all *mandatory fields* (`invoice_id`, `sho
Node 10: If – check missing field
This is an If node that decides the workflow path based
It checks the `status` field returned by the *Check Man
Node 11: no missing field – new data add usin
This is a Code node that passes forward only the valid
It retrieves the structured payload
Node 12: Append data to sheet
This node writes the validated invoice data into the Go
It uses the *append* operation to add a new row with ma
Node 13: Send successful email
This node sends a confirmation email via Gmail once a n
The email includes key details like *Invoice ID, Compan
Node 7: check if Data exist or not in table
This is an If node that checks whether the invoice alre
It does this by verifying if the `Get data` node return
Node 8.1: Duplicate entry send mail
This node sends an email notification via Gmail when an
The email is formatted in *HTML* and includes details l
Node 11.1: Send missing field error on mail
This node sends an error notification email via Gmail w
The email subject highlights the error
Node 2.1: Upload invoice to drive
This node uploads the original invoice file to Google D
It takes the uploaded file (`data0`) and saves it
model
W
When chat message received
Analyze image1
AI Agent1
Google Gemini Chat Model1
Get data
M
Make data in json struct…
C
check if Data exist or n…
Upload invoice to drive
no missing field - new d…
I
If - check missing field
Send missing field error…
Duplicate entry send mail
New data add using payload
Append data to sheet
Check Mandatory fields
Send successful email
16 nodes15 edges

작동 원리

  1. 1

    트리거

    워크플로는 트리거 트리거로 시작합니다.

  2. 2

    처리

    데이터가 16개의 노드를 통해 흐릅니다, connecting agent, chattrigger, code.

  3. 3

    출력

    워크플로가 자동화를 완료하고 구성된 대상에 결과를 전달합니다.

노드 세부 정보 (16)

GO

Google Sheets

googleSheets

#1
GO

Google Drive

googleDrive

#2
GM

Gmail

gmail

#3
CO

Code

code

#4
AI

AI Agent

n8n-nodes-langchain.agent

#5
GO

Google Gemini Chat Model

n8n-nodes-langchain.lmChatGoogleGemini

#6
GO

Google Gemini

n8n-nodes-langchain.googleGemini

#7

이 워크플로 가져오는 방법

  1. 1오른쪽의 JSON 다운로드 버튼을 클릭하여 워크플로 파일을 저장합니다.
  2. 2n8n 인스턴스를 열고 워크플로 → 새로 만들기 → 파일에서 가져오기로 이동합니다.
  3. 3다운로드된 extract-process-invoices-with-gemini-ai-google-sheets-gmail-notifications 파일을 선택하고 가져오기를 클릭합니다.
  4. 4각 서비스 노드에 대한 자격 증명(API 키, OAuth 등)을 설정합니다.
  5. 5워크플로 테스트를 클릭하여 모든 것이 작동하는지 확인한 후 활성화합니다.

또는 n8n → JSON에서 가져오기에 직접 붙여넣기:

{ "name": "Extract & Process Invoices with Gemini AI, Google Sheets & Gmail Notifications", "nodes": [...], ...}

통합

agentchattriggercodegmailgoogledrivegooglegeminigooglesheetsiflmchatgooglegeminiset

이 워크플로 가져오기

한 번의 클릭으로 다운로드 및 가져오기

JSON 다운로드n8n.io에서 보기
노드16
복잡도high
트리거trigger
카테고리Invoice Processing

제작자

Yashraj singh sisodiya

Yashraj singh sisodiya

@theyashsisodiya

태그

agentchattriggercodegmailgoogledrivegooglegeminigooglesheetsiflmchatgooglegeminiset

n8n을 처음 사용하시나요?

n8n은 무료 오픈소스 워크플로 자동화 도구입니다. 자체 호스팅하거나 클라우드 버전을 사용하세요.

n8n 무료로 시작하기 →

Related Invoice Processing Workflows

COCOEMEX+5
medium

Automate Custom QuickBooks Invoice PDFs & Email with n8n

Standard accounting templates often fail to reflect a premium brand identity. This sophisticated n8n workflow bridges the gap between financial record-keeping and professional client presentation. By moving beyond the native limitations of QuickBooks Online, this automation enables businesses to generate high-end, multi-page PDF invoices that align perfectly with their corporate styling. The process begins the moment a new invoice is generated in QuickBooks, triggering a webhook that captures real-time billing data. The workflow then utilizes advanced HTML-to-File conversion and custom Code nodes to structure data into a polished, branded layout. It handles complex logic such as line-item merging and multi-page formatting automatically. Once the document is rendered, the system bypasses generic 'no-reply' senders by routing the finalized PDF through your preferred email provider. This ensures a seamless, white-labeled experience for your clients while eliminating the manual overhead of exporting, styling, and attaching files. Ideal for agencies and service providers, this flow guarantees that your most frequent touchpoint—the bill—is as professional as your work. **Common Use Cases:** - High-end creative agencies requiring bespoke, white-labeled billing documents for premium clients. - Automated recurring subscription billing where custom tax disclosures or localized branding are required. - Service-based businesses needing to attach dynamic project reports or terms of service directly to QuickBooks invoices.

🔗 Webhook·12 nodes