{
  "name": "Classify Intercom messages & route to ClickUp or Slack with GPT-4o-mini",
  "nodes": [
    {
      "id": "c9ffdea8-c384-4ec1-ba34-f228c1ec6694",
      "name": "📨 Intercom Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1160,
        160
      ]
    },
    {
      "id": "74f38000-b249-404d-b430-7d864652d00f",
      "name": "🧠 Classifier – AI prompt",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -920,
        160
      ]
    },
    {
      "id": "68ee4343-685a-4f13-b0a7-c57c271dafb0",
      "name": "GPT model (gpt-4o-mini)",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -832,
        380
      ]
    },
    {
      "id": "146ebc31-9ffa-4ade-954a-51bd561236ea",
      "name": "🧮 Process Classification",
      "type": "n8n-nodes-base.code",
      "position": [
        -544,
        160
      ]
    },
    {
      "id": "9ef8a0da-aae3-4c64-96cb-24ef077b389f",
      "name": "🛠️ Is Support Request?",
      "type": "n8n-nodes-base.if",
      "position": [
        -324,
        -40
      ]
    },
    {
      "id": "5f505600-5d12-4e51-8799-823951346b3b",
      "name": "📦 Is Product Request?",
      "type": "n8n-nodes-base.if",
      "position": [
        -324,
        160
      ]
    },
    {
      "id": "9565f5e6-d9ba-428d-a737-bce1eb24ebc9",
      "name": "💼 Is Sales Request?",
      "type": "n8n-nodes-base.if",
      "position": [
        -324,
        360
      ]
    },
    {
      "id": "a96be2e2-1e56-4ac6-a7e0-3815748277d0",
      "name": "🧾 Create Support Task",
      "type": "n8n-nodes-base.clickUp",
      "position": [
        -104,
        -40
      ]
    },
    {
      "id": "257d17bf-5f65-43d9-a4c5-09cdf06c4e17",
      "name": "🛍️ Create Product Task",
      "type": "n8n-nodes-base.clickUp",
      "position": [
        -104,
        160
      ]
    },
    {
      "id": "6ba00f81-e6af-45b5-86ba-875fec8e30b1",
      "name": "📣 Slack – Notify Sales team",
      "type": "n8n-nodes-base.slack",
      "position": [
        -104,
        360
      ]
    },
    {
      "id": "96a7c0c2-5b4c-4f13-aa55-d93de00e9401",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1300,
        -180
      ],
      "parameters": {
        "width": 320,
        "height": 720,
        "content": "## 📨 1. Webhook Intake\n\nPurpose:\n\n*Receives incoming conversation data from Intercom via a webhook (triggered on new messages).\n\nInput:\n\nFull conversation JSON\nCustomer name, email, and message conten"
      }
    },
    {
      "id": "4153b386-0f82-4da0-9d76-c52824ced79e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        -240
      ],
      "parameters": {
        "width": 540,
        "height": 780,
        "content": "## 🤖 2. AI Classification Engine\n\nHow it works:\n\n*The conversation is sent to an AI model with a prompt to classify it.\n\nAI responds with a structured JSON containing:\ncategory: Support | Product | Sa"
      }
    },
    {
      "id": "65b8eff5-9782-403a-b01e-8f72f698ad1e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -300
      ],
      "parameters": {
        "width": null,
        "height": 840,
        "content": "## 🔀 3. Conditional Routing\n\nLogic:\n\n*Each path checks the category returned by the AI.\n\nBased on category, it routes the conversation to the appropriate action.*"
      }
    },
    {
      "id": "415d9545-aa7b-405b-9aa4-50a02e938602",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -400
      ],
      "parameters": {
        "width": 260,
        "height": 940,
        "content": "## 📌 4. Action Handling 🧾 \n\n**🧾Support:**\n\nCreates a ClickUp task with title, description, priority, and tags.\n\n**📦 Product:**\nSame as Support – task created in ClickUp with relevant details.\n\n**📣 Sal"
      }
    }
  ],
  "connections": {
    "📨 Intercom Webhook": {
      "main": [
        [
          {
            "node": "🧠 Classifier – AI prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "💼 Is Sales Request?": {
      "main": [
        [
          {
            "node": "📣 Slack – Notify Sales team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT model (gpt-4o-mini)": {
      "ai_languageModel": [
        [
          {
            "node": "🧠 Classifier – AI prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "📦 Is Product Request?": {
      "main": [
        [
          {
            "node": "🛍️ Create Product Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🧾 Create Support Task": {
      "main": [
        []
      ]
    },
    "🛠️ Is Support Request?": {
      "main": [
        [
          {
            "node": "🧾 Create Support Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🧮 Process Classification": {
      "main": [
        [
          {
            "node": "🛠️ Is Support Request?",
            "type": "main",
            "index": 0
          },
          {
            "node": "📦 Is Product Request?",
            "type": "main",
            "index": 0
          },
          {
            "node": "💼 Is Sales Request?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🧠 Classifier – AI prompt": {
      "main": [
        [
          {
            "node": "🧮 Process Classification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}