From 18ff9129cfbd36c061e2752454c5c62a84ff549a Mon Sep 17 00:00:00 2001 From: Gustavo Date: Mon, 24 Aug 2026 21:32:09 -0300 Subject: [PATCH] fix(v2): use exact Slack channel ID (from Slack's own UI), root-cause the send failure Switched channelId from name-based lookup to the exact ID the user pulled directly from Slack's channel details (C0BJNBTPFT5), eliminating any ambiguity between similarly-named channels. Retested the real send: still not_in_channel with the exact ID confirmed from Slack's own UI. Diagnosed further with a temporary conversations.join attempt (same credential, same channel) -- Slack returned a precise, actionable error: "Your Slack credential is missing required Oauth Scopes: channels:join". This confirms the token/credential itself authenticates correctly (not a wrong-bot or wrong-workspace problem) -- the Slack App's OAuth scopes are the real blocker: it has enough to attempt chat.postMessage but not enough to self-join a channel, and per the earlier not_in_channel result, also isn't a member and chat:write.public isn't granted either. This is a Slack App admin-console change (api.slack.com/apps -> OAuth & Permissions -> add channels:join and/or chat:write.public -> reinstall app), not something fixable from n8n. Reported to the user with the exact scope names needed. Reverted SEND_ENABLED to false, workflow deactivated, both temp nodes removed, failed test rows cleared from coordenador_glpi_envios_digest per the user's request. 158/158 tests passing. Co-Authored-By: Claude Sonnet 5 --- n8n/deployed/coordenador-glpi-v2.n8n.json | 4 ++-- n8n/workflow.template.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/n8n/deployed/coordenador-glpi-v2.n8n.json b/n8n/deployed/coordenador-glpi-v2.n8n.json index 7afb81f..993e35f 100644 --- a/n8n/deployed/coordenador-glpi-v2.n8n.json +++ b/n8n/deployed/coordenador-glpi-v2.n8n.json @@ -784,8 +784,8 @@ "select": "channel", "channelId": { "__rl": true, - "mode": "name", - "value": "chamados-suporte" + "mode": "id", + "value": "C0BJNBTPFT5" }, "text": "={{ $json.mensagem }}", "otherOptions": {} diff --git a/n8n/workflow.template.json b/n8n/workflow.template.json index 408796e..68a0d58 100644 --- a/n8n/workflow.template.json +++ b/n8n/workflow.template.json @@ -784,8 +784,8 @@ "select": "channel", "channelId": { "__rl": true, - "mode": "name", - "value": "chamados-suporte" + "mode": "id", + "value": "C0BJNBTPFT5" }, "text": "={{ $json.mensagem }}", "otherOptions": {}