All projects · Automation & Data Pipelines
Multi-Branch Order Routing to Telegram
Classifies a hardcoded list of six completed orders into value buckets (Low < £250, Medium £250–£999, High > £999), routes each bucket down its…
Classifies a hardcoded list of six completed orders into value buckets (Low < £250, Medium £250–£999, High > £999), routes each bucket down its own branch via a Switch node, formats a per-bucket section in three identical Code nodes, merges the sections back together into a single 'Order Value Report', and delivers it to Telegram.
- Bucketing + Switch node for true multi-branch routing (Low / Medium / High), then 3-input Merge fan-in
- Parallel branches each run the same formatting Code, demonstrating a map-reduce style split/format/recombine
- Currency formatting with regex thousands separators per line item
- Final Code node concatenates the three merged sections into one report before the Telegram send
Built with: n8n, Manual Trigger, Code node (JavaScript), Switch node, Merge node (3 inputs), Telegram node (sendMessage)