{
  "name": "Optimize classroom schedules and resolve conflicts with GPT-4o and Google Calendar",
  "nodes": [
    {
      "id": "479fd6ff-e579-4b92-bae1-2acba92f5cc7",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        176,
        528
      ]
    },
    {
      "id": "6bb8c3f4-fc66-4cd5-8be2-2bfbf211694c",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        528
      ]
    },
    {
      "id": "8bcc431e-add5-40c4-b812-24dd79389099",
      "name": "Prepare Scheduling Data",
      "type": "n8n-nodes-base.set",
      "position": [
        624,
        528
      ]
    },
    {
      "id": "b008d65a-65a7-4e9a-93e4-ed92d64bb021",
      "name": "OpenAI Model - Resource Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        848,
        640
      ]
    },
    {
      "id": "84a74081-c5d3-4860-a6f8-b9e0a86bf34c",
      "name": "Resource Analysis Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1040,
        624
      ]
    },
    {
      "id": "dbd1e05f-4ba4-421d-bbe9-9bba24c68abc",
      "name": "Resource Analysis Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        848,
        416
      ]
    },
    {
      "id": "bbd6b242-debc-49c4-ade2-db55d0db4d40",
      "name": "OpenAI Model - Operations Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1232,
        608
      ]
    },
    {
      "id": "2dfdb18b-4bfa-4e18-a86b-539c3e6f2d9e",
      "name": "Operations Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1408,
        512
      ]
    },
    {
      "id": "a0445ec3-51b2-46a5-8631-66f847803fcd",
      "name": "Operations Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1248,
        320
      ]
    },
    {
      "id": "17d5f16f-6c16-4305-ae9a-11af379c6150",
      "name": "Route by Severity",
      "type": "n8n-nodes-base.switch",
      "position": [
        3328,
        416
      ]
    },
    {
      "id": "0d827b64-51c9-4d22-98a7-da0b2f8af538",
      "name": "Notify Critical Conflicts",
      "type": "n8n-nodes-base.slack",
      "position": [
        3552,
        320
      ]
    },
    {
      "id": "a452b332-8e6e-4321-9845-6d7306c525a5",
      "name": "Email Scheduling Recommendations",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        3552,
        512
      ]
    },
    {
      "id": "ba3dcaf5-c05b-4ac9-9e0f-92703690a942",
      "name": "Log Results",
      "type": "n8n-nodes-base.code",
      "position": [
        3776,
        416
      ]
    },
    {
      "id": "e13f6c61-8397-4567-bf78-288e11c9f06b",
      "name": "OpenAI Model - Optimization Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1872,
        1024
      ]
    },
    {
      "id": "b2b34539-180f-44d7-89ad-26634d922083",
      "name": "Optimization Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2048,
        1024
      ]
    },
    {
      "id": "dd4b9977-321e-485f-aed2-29fb26996bc3",
      "name": "Schedule Optimization Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1904,
        816
      ]
    },
    {
      "id": "4b9208d9-a86c-4108-8674-4a0b7f435c77",
      "name": "Conflict Score Calculator Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        2192,
        816
      ]
    },
    {
      "id": "b14d5021-4b94-4372-b034-cbeacb5aaf94",
      "name": "Google Calendar Tool",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        2352,
        864
      ]
    },
    {
      "id": "1eedb8fb-0aa6-4e53-8de9-57a8e71d9b11",
      "name": "Calculate Historical Patterns",
      "type": "n8n-nodes-base.code",
      "position": [
        1296,
        944
      ]
    },
    {
      "id": "576818d7-ab5a-43e2-badc-cfc5cad76b9a",
      "name": "Merge Analysis Results",
      "type": "n8n-nodes-base.merge",
      "position": [
        1584,
        688
      ]
    },
    {
      "id": "118e1d3d-0f76-44d1-93ec-141e3b3e1104",
      "name": "Check Auto-Resolution Possible",
      "type": "n8n-nodes-base.if",
      "position": [
        2656,
        592
      ]
    },
    {
      "id": "99b998ed-cb30-4a29-bd7d-51750a9dc0e8",
      "name": "Apply Auto-Resolution",
      "type": "n8n-nodes-base.set",
      "position": [
        2880,
        480
      ]
    },
    {
      "id": "724d21f2-b70e-43b3-ad78-056b56d2ef3a",
      "name": "Generate Conflict Report",
      "type": "n8n-nodes-base.code",
      "position": [
        2880,
        784
      ]
    },
    {
      "id": "50afa3d1-c4c5-43ae-80e6-5c95c6e75c22",
      "name": "Merge Resolution Paths",
      "type": "n8n-nodes-base.merge",
      "position": [
        3104,
        592
      ]
    },
    {
      "id": "df89450b-422f-4982-8f72-e075650f148d",
      "name": "Master Orchestrator Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2112,
        592
      ]
    },
    {
      "id": "70ead711-0b9e-4706-ab2e-af450586a61d",
      "name": "OpenAI Model - Master Orchestrator",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1776,
        864
      ]
    },
    {
      "id": "c33a2b3c-daa8-4c7c-8620-1ce2b9fdfadd",
      "name": "Master Orchestrator Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2512,
        832
      ]
    },
    {
      "id": "ef4414b6-5f60-498e-9a9f-0635311bcb56",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        -112
      ],
      "parameters": {
        "width": 528,
        "height": 224,
        "content": "## Setup Steps\n1. Connect **Schedule Trigger** (set monitoring frequency: daily/weekly)\n2. Configure **Fetch Data** node with competitor website URLs/APIs\n3. Add **OpenAI API keys** to all AI agent no"
      }
    },
    {
      "id": "fbe736db-09d4-4186-b686-5dab29400759",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1552,
        -240
      ],
      "parameters": {
        "width": 544,
        "height": 352,
        "content": "## Prerequisites\nOpenAI API account (GPT-4 recommended), competitor data sources/APIs\n## Use Cases\nSaaS competitor feature tracking, retail pricing intelligence\n## Customization\nModify AI prompts for "
      }
    },
    {
      "id": "019e6fb8-e639-49ed-8632-931e8079b60f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        -176
      ],
      "parameters": {
        "width": 688,
        "height": 288,
        "content": "## How It Works\nThis workflow automates competitive intelligence gathering and market analysis for businesses needing real-time insights on competitors, industry trends, and market positioning. Design"
      }
    },
    {
      "id": "bc78b664-b332-4468-9281-c9e70c88504b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3280,
        176
      ],
      "parameters": {
        "width": 880,
        "height": 1024,
        "content": "## Report Generation & Distribution\n**Why**: Delivers actionable intelligence to decision-makers instantly for rapid strategic pivots"
      }
    },
    {
      "id": "d191664f-a3e2-4a9a-a73b-125e76c065de",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        192
      ],
      "parameters": {
        "width": 592,
        "height": 976,
        "content": "## Multi-Agent AI Analysis\n**Why**: Delivers expert-level analysis across multiple dimensions simultaneously, uncovering hidden patterns humans miss"
      }
    },
    {
      "id": "1cba53ca-d2a1-47f5-9678-47c4b2b399bb",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        192
      ],
      "parameters": {
        "width": 992,
        "height": 976,
        "content": "## Automated Data Collection\n**Why**: Schedule trigger initiates competitor data fetching at defined intervals to ensure continuous market monitoring without manual intervention, capturing time-sensit"
      }
    },
    {
      "id": "44f96ae7-0652-499e-8d31-1132c00084d0",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        192
      ],
      "parameters": {
        "width": 1488,
        "height": 1024,
        "content": "## Intelligent Routing & Validation\n**Why**: Ensures data quality and prioritizes critical insights requiring immediate strategic response"
      }
    }
  ],
  "connections": {
    "Operations Agent": {
      "main": [
        [
          {
            "node": "Route by Severity",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Analysis Results",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Severity": {
      "main": [
        [
          {
            "node": "Notify Critical Conflicts",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Email Scheduling Recommendations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar Tool": {
      "ai_tool": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Apply Auto-Resolution": {
      "main": [
        [
          {
            "node": "Merge Resolution Paths",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Analysis Results": {
      "main": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Resolution Paths": {
      "main": [
        [
          {
            "node": "Route by Severity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Prepare Scheduling Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Scheduling Data": {
      "main": [
        [
          {
            "node": "Resource Analysis Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Calculate Historical Patterns",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Resource Analysis Agent": {
      "main": [
        [
          {
            "node": "Operations Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Analysis Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Conflict Report": {
      "main": [
        [
          {
            "node": "Merge Resolution Paths",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Operations Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Operations Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Master Orchestrator Agent": {
      "main": [
        [
          {
            "node": "Check Auto-Resolution Possible",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Critical Conflicts": {
      "main": [
        [
          {
            "node": "Log Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Optimization Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Schedule Optimization Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Historical Patterns": {
      "main": [
        [
          {
            "node": "Merge Analysis Results",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "OpenAI Model - Resource Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Resource Analysis Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Check Auto-Resolution Possible": {
      "main": [
        [
          {
            "node": "Apply Auto-Resolution",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate Conflict Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Conflict Score Calculator Tool": {
      "ai_tool": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Operations Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Operations Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Resource Analysis Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Resource Analysis Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Email Scheduling Recommendations": {
      "main": [
        [
          {
            "node": "Log Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Optimization Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Master Orchestrator Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Optimization Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Schedule Optimization Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Master Orchestrator": {
      "ai_languageModel": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}