Route ERP tasks across departments with GPT-4, Slack, Gmail and human approval

Go to Workflow
0 views
Built by Cheng Siong Chin Cheng Siong Chin
Created on June 05, 2026

Description

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 oversight. It solves the problem of siloed departmental workflows by centralising all inbound requests through a single Orchestrator Agent that routes tasks to the correct specialist AI agent. Each department agent, namely: Engineering, Finance, HR, and Admin operates with its own LLM model, memory, ERP tool, calculator, and output parser. The Orchestrator routes by department, agents process and return results, which are then combined and evaluated for human approval. Tasks requiring sign-off trigger an approval email; others post directly to Slack. A separate scheduled pipeline runs daily, fetching pending tasks, aggregating them, generating a Daily Report via a Reporting Agent, and emailing it via Gmail.

Setup Steps
Add OpenAI credentials to all agent model nodes (Orchestrator, Engineering, Finance, HR).
Configure ERP tool credentials for each department's ERP node.
Set Slack credentials and target channel in the Notify Team on Slack node.
Add Gmail credentials to Send Approval Email and Email Daily Report nodes.
Connect memory backends (e.g., Redis or n8n memory) to all agent memory nodes.
Set the Schedule trigger interval for daily operations (e.g., 08:00 daily).
Configure the webhook URL for Webhook – External Systems trigger.

Prerequisites
OpenAI API key (GPT-4 or GPT-4o)
ERP system with API access (per department)
Slack workspace with bot token
Gmail account with OAuth2 credentials
Memory backend (Redis or n8n built-in)
Use Cases
Automated engineering change request routing and approval
Finance budget approval with human sign-off gate
HR onboarding task orchestration across systems
Daily ERP operations summary for management review
Customization
Add more department agents (e.g., Legal, Procurement) by extending the router
Replace Gmail with Outlook or SendGrid for email delivery
Swap Slack for Teams or Discord notifications
Adjust approval conditions to match your governance thresholds
Benefits
Single orchestrator eliminates cross-department routing delays
Human approval gate ensures compliance for sensitive ERP actions
Daily automated reporting reduces manual ops overhead
Modular agent design allows per-department tool customisation

Nodes Used (7)

AI Agent
@n8n/n8n-nodes-langchain.agent
Calculator
@n8n/n8n-nodes-langchain.toolCalculator
Gmail
n8n-nodes-base.gmail
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Slack
n8n-nodes-base.slack
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured