Nextcloud-Rechnungs-E-Mail-Versender mit Telegram-Alarmen

Fortgeschritten

Dies ist ein Finance-Bereich Automatisierungsworkflow mit 9 Nodes. Hauptsächlich werden If, Set, Telegram, EmailSend, NextCloud und andere Nodes verwendet. Automatisierte Rechnungsverwaltung auf Basis von Nextcloud mit E-Mail- und Telegram-Benachrichtigungen

Voraussetzungen
  • Telegram Bot Token

Kategorie

Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
  "id": "t8b7acKjOCI1wHEx",
  "meta": {
    "instanceId": "db7ccb31c6f03e45ba1d2dfc480a1a8079f431d409b1b6411e7e2b514bee1293",
    "templateCredsSetupCompleted": true
  },
  "name": "Nextcloud Invoice Mailer with Telegram Alerts",
  "tags": [
    {
      "id": "Bxab3h0EPbu3hEXn",
      "name": "business",
      "createdAt": "2025-06-04T15:47:57.230Z",
      "updatedAt": "2025-06-04T15:47:57.230Z"
    },
    {
      "id": "PyBE47fFqu7FBYpP",
      "name": "nextcloud",
      "createdAt": "2025-05-17T10:18:02.218Z",
      "updatedAt": "2025-05-17T10:18:02.218Z"
    },
    {
      "id": "hNjlN52kOb61UPXK",
      "name": "email",
      "createdAt": "2025-06-04T15:47:43.947Z",
      "updatedAt": "2025-06-04T15:47:43.947Z"
    },
    {
      "id": "tqonsE5K2fl2tOuX",
      "name": "invoices",
      "createdAt": "2025-06-04T15:47:40.018Z",
      "updatedAt": "2025-06-04T15:47:40.018Z"
    }
  ],
  "nodes": [
    {
      "id": "d3b68e4f-d125-4abb-8aaf-70342d9de9d0",
      "name": "Start",
      "type": "n8n-nodes-base.scheduleTrigger",
      "notes": "Run every day at 8 AM",
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "260222ad-1014-4c7d-ab26-7df4a754f556",
      "name": "Eingehende Rechnungen auflisten",
      "type": "n8n-nodes-base.nextCloud",
      "position": [
        380,
        0
      ],
      "parameters": {
        "path": "={{ $json.nextcloud_income }}",
        "resource": "folder",
        "operation": "list"
      },
      "credentials": {
        "nextCloudApi": {
          "id": "0k7kLvfhr3LmjmdI",
          "name": "NextCloud account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "963e8709-6e1b-4a58-8e75-0d0756b518e3",
      "name": "Datei vorhanden?",
      "type": "n8n-nodes-base.if",
      "position": [
        580,
        0
      ],
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{ $json.path }}",
              "operation": "isNotEmpty"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c15f0a7e-a98c-43c9-acb9-935488db39c3",
      "name": "Rechnung herunterladen",
      "type": "n8n-nodes-base.nextCloud",
      "position": [
        780,
        0
      ],
      "parameters": {
        "path": "={{ $json.path }}",
        "operation": "download"
      },
      "credentials": {
        "nextCloudApi": {
          "id": "0k7kLvfhr3LmjmdI",
          "name": "NextCloud account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "66f9d9a1-dc60-44d8-9480-3fce345cc59b",
      "name": "E-Mail senden",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        960,
        0
      ],
      "parameters": {
        "text": "Please find the attached invoice.",
        "options": {},
        "subject": "New Invoice",
        "toEmail": "={{ $('Set Parameters').item.json.to_email }}",
        "fromEmail": "={{ $('Set Parameters').item.json.from_email }}",
        "attachments": "=data"
      },
      "credentials": {
        "smtp": {
          "id": "oh3hcrybiESCpCEo",
          "name": "SMTP account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "fc3e3c16-5a24-4ef9-be37-a78ccb037cce",
      "name": "Datei archivieren",
      "type": "n8n-nodes-base.nextCloud",
      "position": [
        1140,
        0
      ],
      "parameters": {
        "path": "={{ $('Download Invoice').item.json.path }}",
        "toPath": "=/N8N/2025/Archive",
        "operation": "move"
      },
      "credentials": {
        "nextCloudApi": {
          "id": "0k7kLvfhr3LmjmdI",
          "name": "NextCloud account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "f05b60ed-c575-42e9-bd24-8b9a8cc5a261",
      "name": "Telegram benachrichtigen",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1320,
        0
      ],
      "webhookId": "d8cbfea5-791c-4bba-ba75-d3ba1d4ba674",
      "parameters": {
        "text": "=Invoice sent: {{ $('List Incoming Invoices').item.json.path }}",
        "chatId": "617681859",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "pNtrJ6IjT0GD2181",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "719f7ed4-7632-4b75-b87b-300eb53e027c",
      "name": "Haftnotiz",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -160
      ],
      "parameters": {
        "color": 4,
        "width": 1580,
        "height": 420,
        "content": "## This workflow automatically fetches PDF invoices \n**Reading in Nextcloud folder (`/Invoice/2025`), sends them via email to a fixed recipient (`invoice@example.com`), sends a Telegram notification, and archives the file to `/Invoice/Archive/2025`.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "acb6885a-209f-4664-b614-6295278eccbf",
      "name": "Parameter setzen",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "bafb2fe8-97f1-4dd0-8b08-39ed6358f5f3",
              "name": "from_email",
              "type": "string",
              "value": "info@example.com"
            },
            {
              "id": "96224c94-57a6-4b1a-8664-4a35f5d7c9de",
              "name": "to_email",
              "type": "string",
              "value": "invoices@example.com"
            },
            {
              "id": "ee268a74-898d-4a4b-9f24-5edebac34a76",
              "name": "nextcloud_income",
              "type": "string",
              "value": "/Invoices/2025"
            },
            {
              "id": "301764a6-a410-4aa9-b22b-6a77b0c0aa43",
              "name": "nextcloud_archive",
              "type": "string",
              "value": "/Invoices/Archive/2025"
            }
          ]
        }
      },
      "typeVersion": 3.4
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "f3dce8b9-ba3f-472b-9f79-e19ba69f95b2",
  "connections": {
    "d3b68e4f-d125-4abb-8aaf-70342d9de9d0": {
      "main": [
        [
          {
            "node": "acb6885a-209f-4664-b614-6295278eccbf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "66f9d9a1-dc60-44d8-9480-3fce345cc59b": {
      "main": [
        [
          {
            "node": "fc3e3c16-5a24-4ef9-be37-a78ccb037cce",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fc3e3c16-5a24-4ef9-be37-a78ccb037cce": {
      "main": [
        [
          {
            "node": "f05b60ed-c575-42e9-bd24-8b9a8cc5a261",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "963e8709-6e1b-4a58-8e75-0d0756b518e3": {
      "main": [
        [
          {
            "node": "c15f0a7e-a98c-43c9-acb9-935488db39c3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "acb6885a-209f-4664-b614-6295278eccbf": {
      "main": [
        [
          {
            "node": "260222ad-1014-4c7d-ab26-7df4a754f556",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c15f0a7e-a98c-43c9-acb9-935488db39c3": {
      "main": [
        [
          {
            "node": "66f9d9a1-dc60-44d8-9480-3fce345cc59b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "260222ad-1014-4c7d-ab26-7df4a754f556": {
      "main": [
        [
          {
            "node": "963e8709-6e1b-4a58-8e75-0d0756b518e3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Häufig gestellte Fragen

Wie verwende ich diesen Workflow?

Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.

Für welche Szenarien ist dieser Workflow geeignet?

Fortgeschritten - Finanzen

Ist es kostenpflichtig?

Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.

Workflow-Informationen
Schwierigkeitsgrad
Fortgeschritten
Anzahl der Nodes9
Kategorie1
Node-Typen7
Schwierigkeitsbeschreibung

Für erfahrene Benutzer, mittelkomplexe Workflows mit 6-15 Nodes

Autor
Joachim Hummel

Joachim Hummel

@jhummel

Automation consultant with 30+ years of IT experience. Specialized in building efficient workflows with n8n for freelancers and small to medium-sized businesses.

Externe Links
Auf n8n.io ansehen

Diesen Workflow teilen

Kategorien

Kategorien: 34