Coordinate robot swarms with OpenAI GPT-5 and real-time Slack alerts
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects OpenAI Chat Model and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).
- Parse Sensor Data (Edit Fields (Set)): sets 9 fields: robotId, robotType, timestamp…
- Parse Command Input (Edit Fields (Set)): sets 6 fields: command, missionId, targetZone…
- Get All Robot States (Data table): get
- Store Robot State (Data table): create or update
- Check Critical Conditions (If): checks a condition and branches into true / false
- Execute Mission Command (Edit Fields (Set)): sets 6 fields: missionId, status, assignedRobots…
- Swarm AI Coordinator (AI Agent): runs an AI agent, with model: OpenAI GPT-; 3 tools (Path Planning Tool, Task Allocation Tool, Formation Control Tool); memory: Swarm Coordination Memory
- Publish to Swarm Channel (Slack): uses Slack
- Prepare AI Context (Edit Fields (Set)): sets 4 fields: alertType, robotId, severity…
- Log Normal Operation (Edit Fields (Set)): sets 3 fields: status, robotId, message
…plus 4 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Edit Fields (Set)
n8n-nodes-base.set - Data table
n8n-nodes-base.dataTable - If
n8n-nodes-base.if - Webhook
n8n-nodes-base.webhook - Schedule Trigger
n8n-nodes-base.scheduleTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Code Tool
@n8n/n8n-nodes-langchain.toolCode - Slack
n8n-nodes-base.slack
From the author
How It Works This workflow automates multi-robot swarm coordination for robotics engineers, autonomous systems researchers, and industrial automation teams managing fleets of robots in real time. It solves the problem of decentralized robot supervision,…