This workflow follows the Agent → Slack recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "generalist_agent",
"nodes": [
{
"id": "Slack Trigger",
"name": "Slack Trigger",
"type": "n8n-nodes-base.slackTrigger",
"typeVersion": 1,
"position": [
-560,
140
],
"parameters": {
"event": "message.channels"
},
"credentials": {
"slackApi": {
"name": "<your credential>"
}
}
},
{
"id": "Generalist Agent",
"name": "Generalist Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1,
"position": [
-280,
140
],
"parameters": {
"promptType": "define",
"text": "={{ $json.event.text }}",
"options": {
"systemMessage": "Handle general tasks. Delegate product-heavy questions to product_specialist."
}
}
},
{
"id": "Tool - product_specialist",
"name": "Tool - product_specialist",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"typeVersion": 1,
"position": [
-280,
-20
],
"parameters": {
"name": "product_specialist",
"description": "Delegate to specialist for product catalog questions.",
"workflowId": "product_specialist_agent"
}
},
{
"id": "Reply",
"name": "Reply",
"type": "n8n-nodes-base.slack",
"typeVersion": 2,
"position": [
0,
140
],
"parameters": {
"resource": "message",
"operation": "post",
"channel": "={{ $('Slack Trigger').item.json.event.channel }}",
"text": "={{ $json.output || $json.text }}"
},
"credentials": {
"slackApi": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Slack Trigger": {
"main": [
[
{
"node": "Generalist Agent",
"type": "main",
"index": 0
}
]
]
},
"Generalist Agent": {
"main": [
[
{
"node": "Reply",
"type": "main",
"index": 0
}
]
]
},
"Tool - product_specialist": {
"ai_tool": [
[
{
"node": "Generalist Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"active": false
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
slackApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
generalist_agent. Uses slackTrigger, agent, toolWorkflow, slack. Event-driven trigger; 4 nodes.
Source: https://github.com/ogu83/n8n-ai-agent-lab/blob/main/ep4-production/workflows/generalist_agent.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Slack-Ai-Assistant. Uses agent, lmChatOpenAi, memoryBufferWindow, slackTrigger. Event-driven trigger; 13 nodes.
main_agent. Uses slackTrigger, agent, memoryRedisChat, slack. Event-driven trigger; 7 nodes.
agent_with_rag. Uses slackTrigger, agent, toolWorkflow, slack. Event-driven trigger; 4 nodes.
Chat with a multi-agent system to write a blog. The orchestrator advances through research, headlines, hooks, outline, intro, draft, and final polish–one phase per reply—outputting options and asking
Jarvisbiz. Uses slackTrigger, lmChatOpenAi, memoryBufferWindow, slack. Event-driven trigger; 10 nodes.