{
  "name": "Automate API FAQ quality testing with GPT-4o-mini, Google Sheets & Slack alerts",
  "nodes": [
    {
      "id": "35aa638c-cbaa-4125-877d-68560d49de34",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -944,
        3312
      ]
    },
    {
      "id": "86fc4b54-b1b5-4de7-b98d-22abd8f4ba25",
      "name": "Section: Data Input",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -848,
        3088
      ],
      "parameters": {
        "width": 580,
        "height": null,
        "content": "## 📥 Data Input\n\nFetches FAQ data from Google Sheets and validates it before processing."
      }
    },
    {
      "id": "dc53c187-0fc4-45e0-a415-13acc67a41f4",
      "name": "Section: AI Evaluation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        3088
      ],
      "parameters": {
        "width": 400,
        "height": 144,
        "content": "## 🤖 AI Evaluation\n\nScores each FAQ using GPT-4o-mini based on completeness, clarity, technical accuracy, and actionability."
      }
    },
    {
      "id": "861caa0a-4607-4a31-9682-a193652fb9b1",
      "name": "Section: Storage",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        3088
      ],
      "parameters": {
        "width": 480,
        "height": null,
        "content": "## 💾 Results Storage\n\nSaves detailed scores to Results sheet and aggregated metrics to History sheet for trend tracking."
      }
    },
    {
      "id": "6e69317c-4cdb-4871-b2e4-0f7dc8022fe5",
      "name": "Section: Alerts",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        3040
      ],
      "parameters": {
        "width": 540,
        "height": null,
        "content": "## 📢 Notifications\n\nSends Slack alerts when critical or warning-level issues are detected, then emails a completion summary."
      }
    },
    {
      "id": "073ad6bd-87e2-409d-ab43-2546907c1aef",
      "name": "📋 Workflow Overview1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1536,
        3056
      ],
      "parameters": {
        "width": 420,
        "height": 552,
        "content": "## How it works\n\nThis workflow automatically evaluates FAQ quality using AI (GPT-4o-mini), scores each entry (0-10), and tracks improvements over time. It reads FAQs from Google Sheets, gets AI feedba"
      }
    },
    {
      "id": "aa25afd0-e903-4352-a809-a995941dbee0",
      "name": "⚙️ Configuration1",
      "type": "n8n-nodes-base.set",
      "position": [
        -736,
        3312
      ]
    },
    {
      "id": "653f3c13-0665-48ad-93a3-ed24e860518f",
      "name": "📖 Fetch FAQs1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -512,
        3312
      ]
    },
    {
      "id": "e27c8068-5afc-4cd7-8204-6ba2a43e5b48",
      "name": "🔍 Validate & Clean Data1",
      "type": "n8n-nodes-base.code",
      "position": [
        -288,
        3312
      ]
    },
    {
      "id": "5db219e2-af99-4386-b3f9-c53a79cc9cf6",
      "name": "🤖 AI Evaluator1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -64,
        3312
      ]
    },
    {
      "id": "9bc66b99-cb86-4c3e-abc4-fa6fa8685e29",
      "name": "Azure OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        16,
        3536
      ]
    },
    {
      "id": "e2a58c64-1552-43ae-a7df-2bf665ea52a1",
      "name": "📊 Parse & Enrich Results1",
      "type": "n8n-nodes-base.code",
      "position": [
        304,
        3312
      ]
    },
    {
      "id": "ad83a4b8-4cdc-40a3-b5de-49fb85ac205c",
      "name": "💾 Save Detailed Results1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        528,
        3312
      ]
    },
    {
      "id": "853e8bba-0d8e-413a-b6fb-959e8ea1896c",
      "name": "📈 Generate Summary Report1",
      "type": "n8n-nodes-base.code",
      "position": [
        752,
        3312
      ]
    },
    {
      "id": "0cf75d4f-f2e1-47ca-91f1-4ddffd9ff987",
      "name": "📊 Save to History1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        976,
        3312
      ]
    },
    {
      "id": "5390e894-108c-462c-8b4e-85fa481a631c",
      "name": "⚠️ Check if Alerts Needed1",
      "type": "n8n-nodes-base.if",
      "position": [
        1200,
        3312
      ]
    },
    {
      "id": "24cdee69-2017-47ba-961f-198a6bea352f",
      "name": "💬 Send Slack Alert1",
      "type": "n8n-nodes-base.slack",
      "position": [
        1424,
        3232
      ]
    },
    {
      "id": "4e661beb-0009-4de3-8388-fb7221b9afad",
      "name": "✅ Completion Summary1",
      "type": "n8n-nodes-base.set",
      "position": [
        1632,
        3408
      ]
    },
    {
      "id": "e93ce33f-4bbe-476b-82f3-e122987bae3a",
      "name": "Send a message1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1872,
        3312
      ]
    }
  ],
  "connections": {
    "Azure OpenAI1": {
      "ai_languageModel": [
        [
          {
            "node": "🤖 AI Evaluator1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "📖 Fetch FAQs1": {
      "main": [
        [
          {
            "node": "🔍 Validate & Clean Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 AI Evaluator1": {
      "main": [
        [
          {
            "node": "📊 Parse & Enrich Results1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⚙️ Configuration1": {
      "main": [
        [
          {
            "node": "📖 Fetch FAQs1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📊 Save to History1": {
      "main": [
        [
          {
            "node": "⚠️ Check if Alerts Needed1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "💬 Send Slack Alert1": {
      "main": [
        [
          {
            "node": "✅ Completion Summary1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "✅ Completion Summary1": {
      "main": [
        [
          {
            "node": "Send a message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "💾 Save Detailed Results1": {
      "main": [
        [
          {
            "node": "📈 Generate Summary Report1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔍 Validate & Clean Data1": {
      "main": [
        [
          {
            "node": "🤖 AI Evaluator1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📊 Parse & Enrich Results1": {
      "main": [
        [
          {
            "node": "💾 Save Detailed Results1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📈 Generate Summary Report1": {
      "main": [
        [
          {
            "node": "📊 Save to History1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⚠️ Check if Alerts Needed1": {
      "main": [
        [
          {
            "node": "💬 Send Slack Alert1",
            "type": "main",
            "index": 0
          },
          {
            "node": "✅ Completion Summary1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "✅ Completion Summary1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "⚙️ Configuration1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}