{
  "name": "Transform support emails into FAQs with GPT-4o, Gmail, Notion, and Slack",
  "nodes": [
    {
      "id": "bc069f30-5bcf-4e2c-a657-492eacdae39a",
      "name": "Configure GPT-4o Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        -144,
        208
      ]
    },
    {
      "id": "2c8072df-420c-441c-8beb-137df1737650",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        416
      ],
      "parameters": {
        "width": 304,
        "height": 464,
        "content": "## Error Handling & Logging\nRecords any parsing or API errors into a Google Sheet for debugging.  \nEnsures every failed event is logged and traceable.\n"
      }
    },
    {
      "id": "337ea8c7-d28c-43a4-a288-d7c48ea8788b",
      "name": "Gmail Polling Trigger – Developer Support Inbox",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -912,
        -16
      ]
    },
    {
      "id": "04a188b4-507a-4eb7-8466-5b7703316a61",
      "name": "Validate Email Payload",
      "type": "n8n-nodes-base.if",
      "position": [
        -624,
        -16
      ]
    },
    {
      "id": "1a39d3cf-2b08-4f3d-b9c2-8da386f42283",
      "name": "Analyze & Classify Developer Email (AI)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -208,
        -32
      ]
    },
    {
      "id": "f3a597c5-7f03-437e-b6b9-c9b9d79cff2d",
      "name": "Parse & Clean AI JSON Output",
      "type": "n8n-nodes-base.code",
      "position": [
        208,
        -32
      ]
    },
    {
      "id": "a10bfd08-a073-4160-ae69-ebe3ae93c6e2",
      "name": "Save FAQ Entry to Notion Database",
      "type": "n8n-nodes-base.notion",
      "position": [
        1312,
        48
      ]
    },
    {
      "id": "06741c0d-d998-41e9-9453-eed31e77a189",
      "name": "Announce New FAQ in Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        1568,
        48
      ]
    },
    {
      "id": "1201a420-9656-47b1-9ef6-65fa62d8e245",
      "name": "Log Workflow Errors to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -464,
        672
      ]
    },
    {
      "id": "625832c2-b6f8-4f12-b246-eb9d8be74531",
      "name": "Configure GPT-4o Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        512,
        -304
      ]
    },
    {
      "id": "a8b1fec3-a3a5-4da6-82cb-85297ef8a092",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        -816
      ],
      "parameters": {
        "width": null,
        "height": 496,
        "content": "## Acknowledgment & Feedback Loop\nAutomatically replies to the sender with a polite acknowledgment and  \nAI-generated answer, confirming that their issue was added to the FAQ base.\n"
      }
    },
    {
      "id": "65fa6207-1bd4-414b-ab20-46517842d2f4",
      "name": "Analyze Email Sentiment & Urgency (AI)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        528,
        -512
      ]
    },
    {
      "id": "17018fa2-153a-4ca8-8e3b-fc04195a26ce",
      "name": "Parse AI JSON Output – Sentiment Analysis",
      "type": "n8n-nodes-base.code",
      "position": [
        880,
        -512
      ]
    },
    {
      "id": "5d7e3019-0c17-4840-9302-f6c4bbe47432",
      "name": "Filter Critical or High-Urgency Emails",
      "type": "n8n-nodes-base.if",
      "position": [
        1120,
        -512
      ]
    },
    {
      "id": "7a0f4533-2afc-42f2-926a-298aa2183d3f",
      "name": "Alert Team in Slack – Critical Issue",
      "type": "n8n-nodes-base.slack",
      "position": [
        1424,
        -528
      ]
    },
    {
      "id": "0edeebbe-2001-4a84-823a-e712757190b8",
      "name": " Send Acknowledgment Email to Sender",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1696,
        -528
      ]
    },
    {
      "id": "aab47485-abe6-4f47-9b71-8a75939ace39",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1552,
        -960
      ],
      "parameters": {
        "width": 512,
        "height": 624,
        "content": "## How it works\nThis automation streamlines developer support management by turning incoming Gmail emails into structured FAQ entries.  \nIt continuously monitors your support inbox, validates each mes"
      }
    },
    {
      "id": "b360458f-2d91-4c7c-bcb4-d7a80b5f7ca6",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -976,
        -208
      ],
      "parameters": {
        "width": 512,
        "height": 384,
        "content": "## Email Intake & Validation\nPolls the Gmail inbox for new support messages.  \nEnsures valid payload (ID, subject, body) before AI processing.  \nInvalid or empty messages are routed to the Google Shee"
      }
    },
    {
      "id": "cc440d05-5ed8-4819-b6a6-f06fc6b55c4d",
      "name": "Sticky Note16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -208
      ],
      "parameters": {
        "width": 704,
        "height": 576,
        "content": "## AI Analysis & FAQ Generation\nUses GPT-4o to read each email and generate structured FAQ data —  \nincluding summary, category, short solution, and recurrence flag.  \nThe output is cleaned and conver"
      }
    },
    {
      "id": "b738631b-0ab0-4c57-80b4-2d011b01a5ce",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1200,
        -96
      ],
      "parameters": {
        "width": 640,
        "height": 432,
        "content": "## Knowledge Storage & Team Notification\nSaves the AI-generated FAQ entry to Notion and notifies your team on Slack.  \nEach new FAQ includes title, category, and answer snippet with a Notion link.  \nH"
      }
    },
    {
      "id": "d95516c3-0ce4-4515-91f0-7ca19ecc3957",
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        -768
      ],
      "parameters": {
        "width": 1104,
        "height": 608,
        "content": "## Urgency & Sentiment Detection\nAnalyzes the emotional tone and urgency of incoming emails.  \nFlags critical or frustrated messages for instant Slack escalation.  \nEnsures urgent support requests are"
      }
    }
  ],
  "connections": {
    "Configure GPT-4o Model": {
      "ai_languageModel": [
        [
          {
            "node": "Analyze & Classify Developer Email (AI)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Validate Email Payload": {
      "main": [
        [
          {
            "node": "Analyze & Classify Developer Email (AI)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Workflow Errors to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configure GPT-4o Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Analyze Email Sentiment & Urgency (AI)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Parse & Clean AI JSON Output": {
      "main": [
        [
          {
            "node": "Save FAQ Entry to Notion Database",
            "type": "main",
            "index": 0
          },
          {
            "node": "Analyze Email Sentiment & Urgency (AI)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save FAQ Entry to Notion Database": {
      "main": [
        [
          {
            "node": "Announce New FAQ in Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alert Team in Slack – Critical Issue": {
      "main": [
        [
          {
            "node": " Send Acknowledgment Email to Sender",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Email Sentiment & Urgency (AI)": {
      "main": [
        [
          {
            "node": "Parse AI JSON Output – Sentiment Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Critical or High-Urgency Emails": {
      "main": [
        [
          {
            "node": "Alert Team in Slack – Critical Issue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze & Classify Developer Email (AI)": {
      "main": [
        [
          {
            "node": "Parse & Clean AI JSON Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI JSON Output – Sentiment Analysis": {
      "main": [
        [
          {
            "node": "Filter Critical or High-Urgency Emails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Polling Trigger – Developer Support Inbox": {
      "main": [
        [
          {
            "node": "Validate Email Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}