All projects · Automation & Data Pipelines
Daily Order Summary to Telegram
Takes a hardcoded array of six orders, splits them by status (completed / pending / cancelled), sums revenue from completed orders only, formats a…
Takes a hardcoded array of six orders, splits them by status (completed / pending / cancelled), sums revenue from completed orders only, formats a human-readable daily summary with a thousands-separated GBP total and a bullet list of completed customers, then sends it as a Telegram message.
- Three-stage Code node pattern labeled FILTER -> CALCULATE -> FORMAT inside one node
- Revenue formatting with a regex thousands-separator (\B(?=(\d{3})+(?!\d)))
- Aggregates completed-order customers into a Markdown-style bullet list for the notification body
- Telegram delivery as the final notification sink
Built with: n8n, Manual Trigger, Set node, Code node (JavaScript), Telegram node (sendMessage)