Kaffeeundcode
n8n Flow-Bibliothek
n8n Workflow 01.06.2026

Flow Arbeitsbereich

PDF Invoice Parser

Flow prüfen, Nodes verstehen, JSON importieren und Credentials sauber anpassen.

Workflow Diagramm

auto-generiert
graph LR
    N0(["⚡ Webhook (Upload)"])
    N1["🔧 AWS Textract / OCR"]
    N2["🔧 Save to Sheets"]
    N0 --> N1
    N1 --> N2

    classDef trigger fill:#f59e0b,stroke:#b45309,color:#000
    classDef action fill:#292524,stroke:#44403c,color:#e7e5e4
    classDef logic fill:#1e1b4b,stroke:#4338ca,color:#c7d2fe
    class N0 trigger
    class N1 action
    class N2 action

40_PDF_Invoice_Parser.json

{
    "name": "40_PDF_Invoice_Parser",
    "nodes": [
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "invoice-upload",
                "options": {}
            },
            "name": "Webhook (Upload)",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                250,
                300
            ]
        },
        {
            "parameters": {
                "mode": "json",
                "json": "={{ $json.body.data }}",
                "options": {}
            },
            "name": "AWS Textract / OCR",
            "type": "n8n-nodes-base.awsTextract",
            "typeVersion": 1,
            "position": [
                450,
                300
            ],
            "notes": "Requires AWS Credentials. Simulating simple text extraction for now."
        },
        {
            "parameters": {
                "operation": "append",
                "documentId": "YOUR_SHEET_ID",
                "sheetName": "Invoices",
                "columns": {
                    "Date": "={{ $json.date }}",
                    "Amount": "={{ $json.amount }}",
                    "Vendor": "={{ $json.vendor }}"
                }
            },
            "name": "Save to Sheets",
            "type": "n8n-nodes-base.googleSheets",
            "typeVersion": 1,
            "position": [
                650,
                300
            ],
            "credentials": {
                "googleSheetsOAuth2Api": {
                    "id": "YOUR_GOOGLE_CREDENTIAL_ID",
                    "name": "Google Sheets"
                }
            }
        }
    ],
    "connections": {
        "Webhook (Upload)": {
            "main": [
                [
                    {
                        "node": "AWS Textract / OCR",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "AWS Textract / OCR": {
            "main": [
                [
                    {
                        "node": "Save to Sheets",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}