Zum Inhalt
Kaffeeundcode
n8n Flow-Bibliothek
n8n Workflow 13.10.2026

Flow Arbeitsbereich

Invoice Generator

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

Workflow Diagramm

auto-generiert
graph LR
    N0(["⚡ Webhook"])
    N1["🔧 HTML to PDF"]
    N2[["📤 Send Email"]]
    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

52_Invoice_Generator.json

{
    "name": "52_Invoice_Generator",
    "nodes": [
        {
            "parameters": {
                "path": "new-order",
                "options": {}
            },
            "name": "Webhook",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                250,
                300
            ]
        },
        {
            "parameters": {
                "html": "<html><body><h1>Invoice for {{$json[\"body\"][\"customer\"]}}</h1><p>Amount: {{$json[\"body\"][\"amount\"]}}</p></body></html>",
                "format": "pdf"
            },
            "name": "HTML to PDF",
            "type": "n8n-nodes-base.htmlToPdf",
            "typeVersion": 1,
            "position": [
                450,
                300
            ]
        },
        {
            "parameters": {
                "toEmail": "{{$json[\"body\"][\"email\"]}}",
                "subject": "Your Invoice",
                "text": "Attached."
            },
            "name": "Send Email",
            "type": "n8n-nodes-base.emailSend",
            "typeVersion": 1,
            "position": [
                650,
                300
            ]
        }
    ],
    "connections": {
        "Webhook": {
            "main": [
                [
                    {
                        "node": "HTML to PDF",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "HTML to PDF": {
            "main": [
                [
                    {
                        "node": "Send Email",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}