Route ERP tasks across departments with GPT-4, Slack, Gmail and human approval
Ready for 3.0What this workflow does
This AI workflow has 44 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Gmail, Slack, OpenAI Chat Model and HTTP Request.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Orchestrator Agent (AI Agent): runs an AI agent, with model: Orchestrator Model; 2 tools (Orchestrator ERP Tool, Orchestrator Calculator); memory: Orchestrator Memory; output parser: Orchestrator Parser
- Fetch Pending Tasks (Data table): get
- Route by Department (Switch): routes items into 3 branches
- Aggregate: combines items into one
- Engineering Agent (AI Agent): runs an AI agent, with model: Engineering Model; 2 tools (Engineering ERP Tool, Engineering Calculator); memory: Engineering Memory; output parser: Engineering Parser
- Finance Agent (AI Agent): runs an AI agent, with model: Finance Model; 2 tools (Finance ERP Tool, Finance Calculator); memory: Finance Memory; output parser: Finance Parser
- HR Agent (AI Agent): runs an AI agent, with model: HR Model; 1 tool (HR ERP Tool); memory: HR Memory; output parser: HR Parser
- Admin Agent (AI Agent): runs an AI agent, with model: Admin Model; 1 tool (Admin ERP Tool); memory: Admin Memory; output parser: Admin Parser
- Generate Daily Report (AI Agent): runs an AI agent, with model: Reporting Model; 1 tool (Reporting Calculator); memory: Reporting Memory; output parser: Reporting Parser
- Combine Agent Results (Merge): merges the data from its input branches
…plus 5 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 (15)
- Webhook
n8n-nodes-base.webhook - AI Agent
@n8n/n8n-nodes-langchain.agent - Switch
n8n-nodes-base.switch - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Data table
n8n-nodes-base.dataTable - Aggregate
n8n-nodes-base.aggregate - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Http Request Tool
n8n-nodes-base.httpRequestTool - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
How It Works This workflow automates enterprise resource planning (ERP) operations across Engineering, Finance, HR, and Admin departments for operations managers, ERP administrators, and business process owners who need intelligent task routing with human…