{
  "name": "Automated customer support with GPT-4o-mini AI triage for Google Forms & Gmail",
  "nodes": [
    {
      "id": "00ee0984-b75a-4eda-939d-db882cee466d",
      "name": "Google Form Responses Trigger",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -576,
        352
      ]
    },
    {
      "id": "1ef2d3c8-4431-4c88-9f15-09be5d27c6f0",
      "name": "Map Form Column Names",
      "type": "n8n-nodes-base.set",
      "position": [
        -240,
        352
      ]
    },
    {
      "id": "dd8030ab-2052-4789-bb69-95d577d65eba",
      "name": "Analyze with AI Triage",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -16,
        352
      ]
    },
    {
      "id": "7022d016-142f-40f0-ae43-876b609f7897",
      "name": "Parse AI Analysis Results",
      "type": "n8n-nodes-base.code",
      "position": [
        336,
        352
      ]
    },
    {
      "id": "bf80a552-17a8-445d-bdb7-288ad0d8bb25",
      "name": "Route by Priority Level",
      "type": "n8n-nodes-base.switch",
      "position": [
        560,
        336
      ]
    },
    {
      "id": "7ca42752-5260-4ddc-abd3-a2e52ba53162",
      "name": "Generate Urgent Response",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        768,
        240
      ]
    },
    {
      "id": "8715f230-d87d-4ef9-808f-96d5679be8a3",
      "name": "Generate Standard Response",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        768,
        352
      ]
    },
    {
      "id": "24788dbe-f143-499b-b54e-ab2f8b081e5b",
      "name": "Generate Friendly Response",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        768,
        464
      ]
    },
    {
      "id": "40134468-499c-4c55-bce1-62a991d82ee4",
      "name": "Extract Email Subject and Body",
      "type": "n8n-nodes-base.code",
      "position": [
        1136,
        352
      ]
    },
    {
      "id": "112807ff-a82c-4f08-bcd6-8f80b00c9e7f",
      "name": "Send Auto-Reply via Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1360,
        352
      ]
    },
    {
      "id": "90ac9a6c-8644-4369-8dc0-7ad6e48db909",
      "name": "Prepare Data for Tracking",
      "type": "n8n-nodes-base.set",
      "position": [
        1584,
        352
      ]
    },
    {
      "id": "bd3aa2c7-e7f0-42e5-843b-9ecba1746432",
      "name": "Is High Priority?",
      "type": "n8n-nodes-base.if",
      "position": [
        1792,
        352
      ]
    },
    {
      "id": "426bf20f-ab48-453b-945c-a70a65818526",
      "name": "Alert Team on Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        2032,
        272
      ]
    },
    {
      "id": "8435195b-82c2-4085-afbe-b1e6bd40830a",
      "name": "Log to Tracking Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2208,
        368
      ]
    },
    {
      "id": "1ad7a7ae-1f80-4081-a481-74cfd89bdaa7",
      "name": "Sticky Note - Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1408,
        -272
      ],
      "parameters": {
        "width": 680,
        "height": 1596,
        "content": "## 📋 AI-Powered Customer Support Automation\n\n**Automatically triage and respond to Google Form submissions with intelligent priority routing**\n\n### 🎯 What This Workflow Does\n\nThis workflow transforms "
      }
    },
    {
      "id": "d1a6e001-f164-4985-9cc9-c22493349127",
      "name": "Sticky Note - Step 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        -16
      ],
      "parameters": {
        "width": 360,
        "height": 352,
        "content": "### 📥 Step 1: Form Response Trigger\n\nMonitors your Google Sheet for new form submissions.\n\n**Setup:**\n1. Select your Google Form's response sheet\n2. Sheet automatically updates when forms are submitte"
      }
    },
    {
      "id": "4122d26f-5ccf-4ad3-b130-99bbe84a020f",
      "name": "Sticky Note - Step 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        528
      ],
      "parameters": {
        "width": 340,
        "height": 236,
        "content": "### 🔧 Step 2: Map Column Names\n\nMaps your form fields to workflow variables.\n\n**Customize:**\n- Update column names if your form uses different field names\n- Default: \"Name\", \"Email Address\", \"Inquiry\""
      }
    },
    {
      "id": "0ee1a9d8-3e37-412e-9a63-db17b354e52e",
      "name": "Sticky Note - Step 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -32
      ],
      "parameters": {
        "width": 360,
        "height": 364,
        "content": "### 🧠 Step 3: AI Triage Analysis\n\nOpenAI analyzes inquiry to determine:\n- **Urgency**: low/medium/high\n- **Category**: technical/sales/support/billing/general\n- **Sentiment**: positive/neutral/negativ"
      }
    },
    {
      "id": "bd556784-eb77-4347-8821-b0c301fca7b4",
      "name": "Sticky Note - Step 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        528
      ],
      "parameters": {
        "width": 360,
        "height": 344,
        "content": "### 🔀 Step 4: Priority Routing\n\nRoutes inquiries to appropriate response template:\n\n**High Priority →** Urgent, empathetic response\n- Broken products, complaints, angry customers\n- Immediate needs, re"
      }
    },
    {
      "id": "d47878da-4235-44b9-bc04-85fa618298e4",
      "name": "Sticky Note - Step 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        -128
      ],
      "parameters": {
        "width": 360,
        "height": 340,
        "content": "### ✉️ Step 5: Generate AI Response\n\nThree separate AI nodes create priority-specific responses.\n\n**Each template considers:**\n- Customer name for personalization\n- Inquiry category and sentiment\n- Ur"
      }
    },
    {
      "id": "49768cd0-7811-43e7-b90e-ec0e0cc599a5",
      "name": "Sticky Note - Step 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1232,
        64
      ],
      "parameters": {
        "width": 340,
        "height": 268,
        "content": "### 📤 Step 6: Send Auto-Reply\n\nSends personalized email via Gmail.\n\n**Features:**\n- Uses Gmail OAuth for secure sending\n- Includes customer name in email\n- Professional formatting\n- No n8n attribution"
      }
    },
    {
      "id": "0de2f195-b296-43b2-99b5-38c41de47dba",
      "name": "Sticky Note - Step 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1872,
        528
      ],
      "parameters": {
        "width": 380,
        "height": 380,
        "content": "### 🚨 Step 7: Team Alerts & Tracking\n\n**High Priority Cases:**\n- Instant Slack notification to team\n- Includes customer details and inquiry\n- Prompts manual follow-up within 1-2 hours\n\n**All Cases:**\n"
      }
    }
  ],
  "connections": {
    "Is High Priority?": {
      "main": [
        [
          {
            "node": "Alert Team on Slack",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log to Tracking Sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log to Tracking Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Map Form Column Names": {
      "main": [
        [
          {
            "node": "Analyze with AI Triage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze with AI Triage": {
      "main": [
        [
          {
            "node": "Parse AI Analysis Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Priority Level": {
      "main": [
        [
          {
            "node": "Generate Urgent Response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate Standard Response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate Friendly Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Urgent Response": {
      "main": [
        [
          {
            "node": "Extract Email Subject and Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Analysis Results": {
      "main": [
        [
          {
            "node": "Route by Priority Level",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Data for Tracking": {
      "main": [
        [
          {
            "node": "Is High Priority?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Auto-Reply via Gmail": {
      "main": [
        [
          {
            "node": "Prepare Data for Tracking",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Friendly Response": {
      "main": [
        [
          {
            "node": "Extract Email Subject and Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Standard Response": {
      "main": [
        [
          {
            "node": "Extract Email Subject and Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Form Responses Trigger": {
      "main": [
        [
          {
            "node": "Map Form Column Names",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Email Subject and Body": {
      "main": [
        [
          {
            "node": "Send Auto-Reply via Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}