{
  "name": "Analyze workforce data and generate planning reports with GPT-4o",
  "nodes": [
    {
      "id": "be77607f-1a3f-4e61-ad60-0ecd630c61a6",
      "name": "Weekly Workforce Analysis Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        256,
        -160
      ]
    },
    {
      "id": "e70da0db-caae-4097-a2d0-ed718a5728c6",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        480,
        -160
      ]
    },
    {
      "id": "839c9a5b-fa86-4d74-8dea-f88ddd8aa684",
      "name": "Generate Mock Workforce Data",
      "type": "n8n-nodes-base.code",
      "position": [
        704,
        -160
      ]
    },
    {
      "id": "bb3025f7-cd09-4db1-a4cd-c98434543286",
      "name": "OpenAI Model - Intelligence Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        896,
        64
      ]
    },
    {
      "id": "0363238f-5a91-4f2a-8a7a-6029820dea30",
      "name": "OpenAI Model - Planning Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1744,
        64
      ]
    },
    {
      "id": "98029b18-21d8-4e0e-959e-c93d8918d9c4",
      "name": "OpenAI Model - Mobility Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1824,
        272
      ]
    },
    {
      "id": "b64024ce-c04a-4e22-a9c4-e9d8c6b8180b",
      "name": "OpenAI Model - Reporting Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2384,
        256
      ]
    },
    {
      "id": "79bdcc98-8fbe-4580-a531-2918ea9786fc",
      "name": "Intelligence Analysis Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1376,
        64
      ]
    },
    {
      "id": "fff4dee6-6ba9-469c-a49c-22ca1dee1526",
      "name": "Planning Recommendations Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2672,
        48
      ]
    },
    {
      "id": "f38dbbc7-9dd5-40af-93d0-965083668cec",
      "name": "Mobility Workflow Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2000,
        272
      ]
    },
    {
      "id": "e43136cd-68b7-45e1-ae1d-54c0b1b0bae8",
      "name": "Executive Report Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2560,
        256
      ]
    },
    {
      "id": "f4c82879-8c7d-4203-8bad-7391dbf41f52",
      "name": "Mobility Analysis Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1872,
        64
      ]
    },
    {
      "id": "0ec5f789-4be4-4e2c-89ab-c83ec5efcf21",
      "name": "Executive Reporting Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        2384,
        48
      ]
    },
    {
      "id": "566100e1-ea62-48a6-92b2-338c830c094d",
      "name": "Capacity Forecasting Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        1056,
        64
      ]
    },
    {
      "id": "60995b4a-03fb-4c3b-b1d0-a165ada01459",
      "name": "Attrition Risk Calculator Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        1184,
        64
      ]
    },
    {
      "id": "8e1eb713-7f3f-4cbe-9b40-f8ae230fba06",
      "name": "Workforce Intelligence Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1056,
        -160
      ]
    },
    {
      "id": "f5ef2f39-bb31-4ee1-ae9b-b498f63d5702",
      "name": "Planning Orchestration Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1872,
        -160
      ]
    },
    {
      "id": "4fe90b87-b137-4c07-b64b-dcf124f83bd7",
      "name": "Aggregate Intelligence Insights",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1568,
        -160
      ]
    },
    {
      "id": "e9e1eef8-7738-4af6-9346-bddbc0a14eaa",
      "name": "Check Critical Workforce Signals",
      "type": "n8n-nodes-base.if",
      "position": [
        2656,
        -160
      ]
    },
    {
      "id": "d4c8e091-6c36-490a-b3e6-fb82f2e75318",
      "name": "Format Final Workforce Report",
      "type": "n8n-nodes-base.set",
      "position": [
        3344,
        -176
      ]
    },
    {
      "id": "c284dac8-531d-438b-a85e-cd3559500a78",
      "name": "Flag for Human Review",
      "type": "n8n-nodes-base.set",
      "position": [
        2880,
        -80
      ]
    },
    {
      "id": "31c2663d-7d73-4a1d-b600-aefc3b1d1568",
      "name": "Wait for Human Approval",
      "type": "n8n-nodes-base.wait",
      "position": [
        3104,
        -80
      ]
    },
    {
      "id": "3860aced-306c-4e42-8438-62c91c9f8a57",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1648,
        -672
      ],
      "parameters": {
        "width": 496,
        "height": 320,
        "content": "## Prerequisites\nAPI key, HR data access (anonymized employee metrics) \n## Use Cases\nStrategic workforce planning, seasonal staffing optimization\n## Customization\nIntegrate HRIS systems for live data,"
      }
    },
    {
      "id": "944ccb0c-6326-4722-afad-aee1d660f5f7",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1072,
        -592
      ],
      "parameters": {
        "width": 496,
        "height": 240,
        "content": "## Setup Steps\n1. Configure API credentials with Llama-3.1-70B-Instruct model access\n2. Set up weekly schedule trigger for Monday morning analysis runs\n3. Configure human approval node with workforce "
      }
    },
    {
      "id": "03a3a14a-cba5-401a-ab43-d8863e88d7e9",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        -576
      ],
      "parameters": {
        "width": 768,
        "height": 224,
        "content": "## How It Works\nThis workflow automates workforce intelligence analysis and strategic planning for HR directors, workforce planners, and operations managers in enterprises managing distributed teams. "
      }
    },
    {
      "id": "cf5642bf-d48d-423a-a025-a02b6de3afe1",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2256,
        -288
      ],
      "parameters": {
        "width": 1280,
        "height": 768,
        "content": "## Attrition Risk \nTriggers retention interventions before critical talent exits, reducing replacement costs and knowledge loss.\n"
      }
    },
    {
      "id": "843c7bf1-ecc7-4256-8884-8dfe43813faf",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1520,
        -288
      ],
      "parameters": {
        "width": 704,
        "height": 768,
        "content": "## Cognitive Forecasting \nEnables proactive hiring and training strategies to prevent capacity bottlenecks during scaling."
      }
    },
    {
      "id": "40bfda7f-d701-4941-a092-1e6bf2f3e837",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        -288
      ],
      "parameters": {
        "width": 1280,
        "height": 560,
        "content": "## Workforce Intelligence\nIdentifies operational inefficiencies and capability shortfalls to optimize resource allocation decisions."
      }
    }
  ],
  "connections": {
    "Flag for Human Review": {
      "main": [
        [
          {
            "node": "Wait for Human Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Generate Mock Workforce Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Human Approval": {
      "main": [
        [
          {
            "node": "Format Final Workforce Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Capacity Forecasting Tool": {
      "ai_tool": [
        [
          {
            "node": "Workforce Intelligence Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Generate Mock Workforce Data": {
      "main": [
        [
          {
            "node": "Workforce Intelligence Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mobility Analysis Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Planning Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Planning Orchestration Agent": {
      "main": [
        [
          {
            "node": "Check Critical Workforce Signals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workforce Intelligence Agent": {
      "main": [
        [
          {
            "node": "Aggregate Intelligence Insights",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Mobility Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Mobility Analysis Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Planning Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Planning Orchestration Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Attrition Risk Calculator Tool": {
      "ai_tool": [
        [
          {
            "node": "Workforce Intelligence Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Executive Report Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Executive Reporting Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Executive Reporting Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Planning Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Reporting Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Executive Reporting Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Intelligence Insights": {
      "main": [
        [
          {
            "node": "Planning Orchestration Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mobility Workflow Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Mobility Analysis Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Check Critical Workforce Signals": {
      "main": [
        [
          {
            "node": "Format Final Workforce Report",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Flag for Human Review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Intelligence Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Workforce Intelligence Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Weekly Workforce Analysis Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Intelligence Analysis Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Workforce Intelligence Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Planning Recommendations Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Planning Orchestration Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}