Skip to main content

Slack workflow router: AI-powered workflow selection

Workflow preview

Workflow preview
100%
Slack workflow router: AI-powered workflow selection preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Slack Workflow Router: AI Powered Workflow Selection Problem Statement Slack only allows one webhook per Slack app, and n8n generates a unique webhook for each workflow. This limitation means you t...

Best for

  • Engineering automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.slacktrigger, n8n-nodes-base.datatabletool, n8n-nodes-base.set, n8n-nodes-base.slack, n8n-nodes-base.if, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ertay Kaya.

Original n8n.io source

1.1 Workflow description

Title
Slack workflow router: AI-powered workflow selection
Workflow name
Slack workflow router: AI-powered workflow selection

Slack Workflow Router: AI-Powered Workflow Selection

Problem Statement

Slack only allows one webhook per Slack app, and n8n generates a unique webhook for each workflow. This limitation means you typically need to create multiple Slack apps to trigger multiple n8n workflows from Slack. This workflow solves that problem by acting as a gateway for a single Slack app, enabling it to trigger multiple n8n workflows.

How It Works

When a message is received from Slack, an AI agent analyzes the message and selects the most suitable workflow to execute. The available workflows are stored in a data table, including their ID, name, and description, which the agent uses to make its decision. This approach allows you to manage and trigger multiple workflows from a single Slack app, making your Slack-to-n8n integration much more scalable and maintainable.

Key Features
  • Trigger multiple n8n workflows from a single Slack app mention.
  • AI-powered workflow selection based on user message and workflow descriptions.
  • Centralized management of available workflows via a data table.
  • Scalable and easy to maintain—no need to create multiple Slack apps.
Setup Instructions
  • Create a data table in your n8n project with these columns: workflow_id, workflow_name, and workflow_description.
  • Add your workflows to the table.
  • Connect your Slack and OpenAI accounts.
  • Deploy the workflow and mention your Slack app to trigger automations.

This template is ideal for teams who want to centralize and scale their Slack automation without creating multiple Slack apps.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 2 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 3 - Slack Trigger

Type / Role
n8n-nodes-base.slackTrigger - slackTrigger
Config choices
Version 1

Block 4 - Get the list of workflows

Type / Role
n8n-nodes-base.dataTableTool - dataTableTool
Config choices
Version 1

Block 5 - Parse JSON output

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Send "executing workflow" message

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 7 - Is there a matching workflow?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 8 - Send message: no workflow found

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 9 - Send message: success

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 10 - Send message: error occurred

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Execute Workflow

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1.3

Block 16 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Slack workflow router: AI-powered workflow selection
Complexity advanced
Nodes 16
Categories Engineering, AI Chatbot
Author Ertay Kaya
Published 15 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11838/11838.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Slack workflow router: AI-powered workflow selection do?

Slack Workflow Router: AI Powered Workflow Selection Problem Statement Slack only allows one webhook per Slack app, and n8n generates a unique webhook for each workflow. This limitation means you t...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Chatbot use case.