Analyze workforce data and generate planning reports with GPT-4o
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 22 nodes and runs on a schedule (every week at 09:00). Along the way it connects OpenAI Chat Model.
How it runs
Trigger: On a schedule (every week at 09:00).
- Workflow Configuration (Edit Fields (Set)): sets 4 fields: organizationName, criticalAttritionThreshold, capacityGapThreshold…
- Generate Mock Workforce Data (Code): runs custom JavaScript code
- Workforce Intelligence Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Intelligence Agent; 2 tools (Capacity Forecasting Tool, Attrition Risk Calculator Tool); output parser: Intelligence Analysis Output Parser
- Aggregate: combines items into one
- Planning Orchestration Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Planning Agent; 2 tools (Mobility Analysis Agent Tool, Executive Reporting Agent Tool); output parser: Planning Recommendations Output Parser
- Check Critical Workforce Signals (If): checks a condition and branches into true / false
- Format Final Workforce Report (Edit Fields (Set)): sets 7 fields: reportTitle, reportDate, organization…
- Flag for Human Review (Edit Fields (Set)): sets 4 fields: reviewRequired, reviewReason, reviewInstructions…
- Wait: pauses until webhook
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 (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Code Tool
@n8n/n8n-nodes-langchain.toolCode - AI Agent
@n8n/n8n-nodes-langchain.agent - Aggregate
n8n-nodes-base.aggregate - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait
From the author
How It Works This workflow automates workforce intelligence analysis and strategic planning for HR directors, workforce planners, and operations managers in enterprises managing distributed teams. It solves the challenge of transforming raw workforce data…