{
  "name": "AI-powered customer feedback collection with GPT-4o, Google Sheets & Slack alerts",
  "nodes": [
    {
      "id": "3e6598ca-2275-44aa-9615-49eb2e2a0a61",
      "name": "Fetch Support Tickets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -352,
        1616
      ]
    },
    {
      "id": "0703b3e9-c517-4684-acc6-436332a653c2",
      "name": "Filter Closed Tickets",
      "type": "n8n-nodes-base.if",
      "position": [
        -128,
        1616
      ]
    },
    {
      "id": "d8e362ce-ebec-46b9-92ec-a5209a9c42be",
      "name": "Calculate Ticket Metrics",
      "type": "n8n-nodes-base.code",
      "position": [
        96,
        1616
      ]
    },
    {
      "id": "4a63c13d-777f-4f0b-8cb0-2cc0e9d53b73",
      "name": "AI Ticket Analysis",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        320,
        1616
      ]
    },
    {
      "id": "53c2ee78-a622-467f-bf8d-e3c1af6f2a0f",
      "name": "Azure OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        392,
        1840
      ]
    },
    {
      "id": "2f662712-4b54-4bae-93da-fd93034fc306",
      "name": "Parse AI Insights",
      "type": "n8n-nodes-base.code",
      "position": [
        672,
        1616
      ]
    },
    {
      "id": "ad84c4c4-b4b9-4a93-b452-9c2880805d18",
      "name": "Route by Customer Tier",
      "type": "n8n-nodes-base.switch",
      "position": [
        896,
        1616
      ]
    },
    {
      "id": "1d682089-e1f2-448c-9600-7e1c80fbceb9",
      "name": "Send VIP Email (Gold/Silver)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1120,
        1616
      ]
    },
    {
      "id": "f7edd99f-e567-4b6e-a71e-8e460b124a73",
      "name": "Send Standard Email (Bronze)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1120,
        1808
      ]
    },
    {
      "id": "c2594027-0047-4464-8b2c-eeb5b84e3ffc",
      "name": "Log to Feedback Tracker",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1344,
        1712
      ]
    },
    {
      "id": "73b7b8ed-5f5f-4aec-a261-dfa19bd12412",
      "name": "Check Alert Conditions",
      "type": "n8n-nodes-base.if",
      "position": [
        1568,
        1712
      ]
    },
    {
      "id": "d2ae3cec-ca1b-491f-a7fe-5f28a8e9ceba",
      "name": "Send Slack Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        1792,
        1712
      ]
    },
    {
      "id": "85e4cb40-d4b8-4a9f-8922-35d2fa45ddc3",
      "name": "Overview Sticky",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        1488
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "caf29a96-b07e-4388-81dd-da34fdfebc53",
      "name": "Data Collection",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -336,
        1456
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "8eb8c243-0679-4772-b03c-e8ac7446973d",
      "name": "AI Analysis",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        1456
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b04a0163-0dda-48db-aeb1-6ab4aa108948",
      "name": "Email Delivery",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        1440
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "6d629cb8-bec2-4773-a09a-99c1a79c6b45",
      "name": "Tracking & Alerts",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        1504
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "75eb2281-de65-43f3-bb44-ed23af196088",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -560,
        1616
      ]
    }
  ],
  "connections": {
    "Azure OpenAI": {
      "ai_languageModel": [
        [
          {
            "node": "AI Ticket Analysis",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Insights": {
      "main": [
        [
          {
            "node": "Route by Customer Tier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Ticket Analysis": {
      "main": [
        [
          {
            "node": "Parse AI Insights",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Support Tickets": {
      "main": [
        [
          {
            "node": "Filter Closed Tickets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Closed Tickets": {
      "main": [
        [
          {
            "node": "Calculate Ticket Metrics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Alert Conditions": {
      "main": [
        [
          {
            "node": "Send Slack Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Customer Tier": {
      "main": [
        [
          {
            "node": "Send VIP Email (Gold/Silver)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Feedback Tracker": {
      "main": [
        [
          {
            "node": "Check Alert Conditions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Ticket Metrics": {
      "main": [
        [
          {
            "node": "AI Ticket Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Standard Email (Bronze)": {
      "main": [
        [
          {
            "node": "Log to Feedback Tracker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send VIP Email (Gold/Silver)": {
      "main": [
        [
          {
            "node": "Log to Feedback Tracker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Fetch Support Tickets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}