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

⚡ 157 views · ⚒️ Engineering

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

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

Prerequisites

Use Cases

Customization

Benefits

🔗 Nodes Used

Slack, Webhook, Gmail, Schedule Trigger, AI Agent, OpenAI Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup