Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Wiring n8n into Slack: @mention the bot to run an automation workflow

说明与用途

在 Slack 中,@提及触发 n8n 工作流并将结果返回到频道,消除了手动步骤。

问题

Automating release notices in Slack required manual steps: leaving the channel, opening n8n, executing a workflow, and pasting the result back.

结果

A single @mention in Slack now triggers an n8n workflow and returns the output in the channel, eliminating manual steps.

工作流

  • Create a Slack bot with Bot Token and scopes chat:write, app_mentions:read
  • Install the N8nAgent plugin (v0.2.0) from the marketplace
  • Create a processor with method Agent and Runner n8n
  • Set the Webhook URL on the AI capability tab to http://n8n:5678/webhook/langbot-slack
  • Build an n8n workflow with a Webhook node (POST, path langbot-slack) and a Respond to Webhook node returning JSON
  • Bind an event route in the bot detail page: event pattern message.received, target the processor, filter message_element_types contains At
  • Confirm the trigger condition @ is enabled in the processor’s trigger conditions tab
  • Verify by POSTing a test message to the webhook URL from another container

证据

Sending a release notice means someone leaving the channel, opening n8n, clicking Execute and pasting the result back.

来源

4.11 makes "who runs it" a plugin: a processor picks a plugin-provided executor under Runner, and n8n is one.

来源

Set Webhook URL on the AI capability tab to an address the runtime container can reach: http://n8n:5678/webhook/langbot-slack

来源

  • 记录日期: 2026-10-19T03:41:27.684Z