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