AutomationFlowsSlack & Telegram › Automated Invoice Management with Nextcloud, Email and Telegram Notifications

Automated Invoice Management with Nextcloud, Email and Telegram Notifications

ByJoachim Hummel @jhummel on n8n.io

This workflow automatically fetches PDF invoices from a Nextcloud folder (), sends them via email to a fixed recipient (), sends a Telegram notification, and archives the file to .

Cron / scheduled trigger★★★★☆ complexity9 nodesNext CloudEmail SendTelegram
Slack & Telegram Trigger: Cron / scheduled Nodes: 9 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #4655 — we link there as the canonical source.

This workflow follows the Emailsend → Telegram recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "t8b7acKjOCI1wHEx",
  "meta": {
    "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": "List Incoming Invoices",
      "type": "n8n-nodes-base.nextCloud",
      "position": [
        380,
        0
      ],
      "parameters": {
        "path": "={{ $json.nextcloud_income }}",
        "resource": "folder",
        "operation": "list"
      },
      "credentials": {
        "nextCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "963e8709-6e1b-4a58-8e75-0d0756b518e3",
      "name": "File Exists?",
      "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": "Download Invoice",
      "type": "n8n-nodes-base.nextCloud",
      "position": [
        780,
        0
      ],
      "parameters": {
        "path": "={{ $json.path }}",
        "operation": "download"
      },
      "credentials": {
        "nextCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "66f9d9a1-dc60-44d8-9480-3fce345cc59b",
      "name": "Send Email",
      "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": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "fc3e3c16-5a24-4ef9-be37-a78ccb037cce",
      "name": "Archive File",
      "type": "n8n-nodes-base.nextCloud",
      "position": [
        1140,
        0
      ],
      "parameters": {
        "path": "={{ $('Download Invoice').item.json.path }}",
        "toPath": "=/N8N/2025/Archive",
        "operation": "move"
      },
      "credentials": {
        "nextCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "f05b60ed-c575-42e9-bd24-8b9a8cc5a261",
      "name": "Notify Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1320,
        0
      ],
      "parameters": {
        "text": "=Invoice sent: {{ $('List Incoming Invoices').item.json.path }}",
        "chatId": "123456789",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "719f7ed4-7632-4b75-b87b-300eb53e027c",
      "name": "Sticky Note",
      "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": "Set Parameters",
      "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": "user@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,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "f3dce8b9-ba3f-472b-9f79-e19ba69f95b2",
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Set Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email": {
      "main": [
        [
          {
            "node": "Archive File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Archive File": {
      "main": [
        [
          {
            "node": "Notify Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "File Exists?": {
      "main": [
        [
          {
            "node": "Download Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Parameters": {
      "main": [
        [
          {
            "node": "List Incoming Invoices",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Invoice": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List Incoming Invoices": {
      "main": [
        [
          {
            "node": "File Exists?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow automatically fetches PDF invoices from a Nextcloud folder (), sends them via email to a fixed recipient (), sends a Telegram notification, and archives the file to .

Source: https://n8n.io/workflows/4655/ — original creator credit. Request a take-down →

More Slack & Telegram workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Slack & Telegram

Get ==Instant== Alerts When Your Website Goes Down — Using ==n8n== as ==Website Downtime Checker Robot==

HTTP Request, Telegram, Email Send
Slack & Telegram

This workflow is ideal for marketers, product managers, competitive intelligence teams, and anyone who needs to track changes on web pages — whether it's competitor pricing, job postings, policy updat

HTTP Request, Google Sheets, Telegram +1
Slack & Telegram

This automated n8n workflow monitors real-time cryptocurrency prices using CoinGecko API and sends smart alerts when price conditions are met. It supports multi-coin tracking, dynamic conditions, and

Google Sheets, HTTP Request, Email Send +2
Slack & Telegram

Monitor Indian (NSE/BSE) and US stock markets with intelligent price alerts, cooldown periods, and multi-channel notifications (Email + Telegram). Automatically tracks price movements and sends alerts

Google Sheets, HTTP Request, Email Send +1
Slack & Telegram

⚠️ Heads up: this is satire. The "Hell Yeah!" workflow is a parody of "automate your whole life with AI agents" grindset content. The API endpoints are fictional and the function nodes are illustrativ

HTTP Request, Salesforce, Telegram +4