All 5 VID publish workflows now alert on Telegram — success and failure, never silent again
Previously n8n scheduled posts (IG Reel, IG Image, LinkedIn, YouTube, Facebook) executed with zero feedback — you only knew something failed if you manually checked n8n Executions. This session wired a Telegram ✅ node at the end of every publish path, plus pointed each workflow's error handler at the existing BEUP Alert bot. Posts now confirm delivery in real time.
6-layer thinking chainChuỗi tư duy 6 tầng
"vậy set thêm noti là success hay fail cho việc đăng chứ ko silent trên n8n về alert cho tôi qua tele là đc"
How the notification layer fits into each VID workflow
Each VID workflow follows the same spine: Webhook receives a schedule request → Parse validates inputs → Wait Until Due holds the execution in the database → publish API call(s) → Telegram ✅ confirms. For VID-09 (Facebook), the publish step branches into 5 paths (video/photo/text × has-link or not), but all 5 paths converge on the same single Telegram node. The error path is separate: any node failure triggers the BEUP Error Notifier workflow directly via n8n's error workflow mechanism.
| Technical termThuật ngữ kỹ thuật | Plain nameTên dễ hiểu | RoleVai trò |
|---|---|---|
settings.errorWorkflow | Error destination | n8n field that tells the engine which workflow to call when any node in this workflow throws an unhandled exception |
continueOnFail: true | Non-blocking notification | If the Telegram API call fails, n8n marks that node as 'soft failed' and continues — the post already succeeded, the alert is best-effort |
fan-in pattern | Many branches, one notification | VID-09 has 5 terminal nodes (video/photo/text × link/no-link). All 5 wire to the same Telegram node — one alert per execution regardless of which path fired |
n8n_update_partial_workflow | Surgical patch | Atomic diff-based update: addNode + addConnection + updateSettings in one call. Either all succeed or nothing changes — safer than replacing the entire workflow JSON |
Read the diagram top-to-bottom: every VID workflow ends at Telegram ✅ on success (green). The dashed red line from Telegram ✅ down to Error Notifier shows the error path — triggered only if something upstream fails. The yellow dashed box marks VID-09's branching area; all its exits still funnel into the same Telegram node.
Steps this session
Layered decision cardsCác quyết định theo tầng
Artifact mapBản đồ tệp tạo ra
| PathĐường dẫn | WhatLà gì | Who reads itAi dùng |
|---|---|---|
n8n: VID-05 OQy1tmH23TGAuXmo | IG Reel publisher — added Telegram ✅ node at [480,0] + errorWorkflow setting | Fires on IG Reel publish success |
n8n: VID-06 byVvsXUsEA8uKpCg | IG Image publisher — added Telegram ✅ node at [480,0] + errorWorkflow setting | Fires on IG Image publish success |
n8n: VID-07 gBOKtHaF031gYdEh | LinkedIn publisher — added Telegram ✅ node at [0,0] + errorWorkflow setting | Fires on LinkedIn post success |
n8n: VID-08 NSekfWisoq2FkDM9 | YouTube publisher — added Telegram ✅ node at [240,0] + errorWorkflow setting | Fires on YT Short upload success |
n8n: VID-09 cUxRU6AhqjhaYUoT | FB publisher — added Telegram ✅ node at [780,0], wired from all 5 terminal branches + errorWorkflow setting | Fires on FB video/photo/text publish success (any path) |
n8n: BEUP Error Alert tYNYFP4JYKvCWcYt | Error notifier — confirmed structure OK, left active: false (works without activation) | Fires when any VID workflow throws an unhandled error |
- Test: trigger a VID-05 webhook with a past dueAt to force immediate execution — verify Telegram BEUP group receives '✅ [VID-05] IG Reel published' message
- Test error path: temporarily break a webhook URL in a VID workflow, trigger it, verify '🚨 n8n Workflow Failed' arrives in BEUP Telegram group, then restore
- Optional: activate the BEUP Error Notifier via n8n UI (Settings → active toggle) — the UI bypasses the API restriction and may allow activation for extra safety