{
  "name": "Route Discord support messages into ClickUp tasks with OpenAI GPT-4.1-mini",
  "nodes": [
    {
      "id": "e709b90b-ffaa-4b3d-b0b5-971e35e7c7fc",
      "name": "Format Task",
      "type": "n8n-nodes-base.set",
      "position": [
        18800,
        4736
      ]
    },
    {
      "id": "5dbaabe0-5b2e-48eb-99d3-5a105c43b7a5",
      "name": "Create ClickUp Task",
      "type": "n8n-nodes-base.clickUp",
      "position": [
        19008,
        4736
      ]
    },
    {
      "id": "b87bc567-2fed-4f1c-b918-b5484ff39f90",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        16880,
        4848
      ]
    },
    {
      "id": "37163e49-dfd2-42ba-9a80-f0e127074a7a",
      "name": "Get many messages",
      "type": "n8n-nodes-base.discord",
      "position": [
        17088,
        4848
      ]
    },
    {
      "id": "9f1b2eda-1376-49a1-89e2-5e8883e3ce57",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        18368,
        4736
      ]
    },
    {
      "id": "cd09b3a3-7a7b-43ea-855c-5aa0d79e9b03",
      "name": "Insert row",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        18080,
        4800
      ]
    },
    {
      "id": "933e921a-09fa-4270-96f5-e6263f0c2d8b",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        17312,
        4752
      ]
    },
    {
      "id": "a7247e6b-0a05-40d1-9f1b-7388382e5828",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        17792,
        4816
      ]
    },
    {
      "id": "8a217583-9043-43e1-bc9f-2491d9f6026d",
      "name": "Get row(s)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        17600,
        4816
      ]
    },
    {
      "id": "f75fb739-f312-4b06-862c-9876fb5cf415",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16256,
        4480
      ],
      "parameters": {
        "width": 512,
        "height": 720,
        "content": "## AI Discord → ClickUp Support Automation\n\n### How it works\nThis workflow automatically converts Discord support messages into structured ClickUp tasks using AI.\n\nIt runs on a schedule, fetches recen"
      }
    },
    {
      "id": "43c71f4c-4ee0-4446-a005-4938ecd9f52f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16784,
        4480
      ],
      "parameters": {
        "width": 464,
        "height": 720,
        "content": "## Step 1 - Trigger & Fetch\n\nRuns on schedule and fetches recent Discord messages."
      }
    },
    {
      "id": "0ded10c2-af0e-4a9a-a040-ae388b050254",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        17264,
        4480
      ],
      "parameters": {
        "width": null,
        "height": 720,
        "content": "## Step 2 - Process Messages\n\nLoops through messages one-by-one for controlled execution."
      }
    },
    {
      "id": "eb6f82d2-940a-4b33-9c5c-301828342065",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        17520,
        4480
      ],
      "parameters": {
        "width": 464,
        "height": 720,
        "content": "## Step 3 - Check Duplicates\n\nLooks up message ID in table to avoid reprocessing."
      }
    },
    {
      "id": "1360c5f7-c36b-4ccd-a21b-9d91d613bfb4",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18000,
        4480
      ],
      "parameters": {
        "width": 288,
        "height": 720,
        "content": "## Step 4 - Store Messages\n\nSaves new messages to ensure idempotent workflow runs."
      }
    },
    {
      "id": "c6506d84-2a7d-41dc-a1f0-69e3c7264b3f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18320,
        4480
      ],
      "parameters": {
        "width": 352,
        "height": 720,
        "content": "## Step 5 - AI Classification\n\nGenerates assignee, priority, estimate, and title using AI."
      }
    },
    {
      "id": "cff8ca6e-6438-49df-ba20-c6ff19c97460",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18688,
        4480
      ],
      "parameters": {
        "width": null,
        "height": 720,
        "content": "## Step 6 - Format Task\n\nTransforms AI output into ClickUp-compatible structure."
      }
    },
    {
      "id": "beb0b9bc-8113-46d4-b698-3a529ba183f1",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18960,
        4480
      ],
      "parameters": {
        "width": null,
        "height": 720,
        "content": "## Step 7 - Create Task\n\nCreates ClickUp task with message context and metadata."
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Insert row",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s)": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert row": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Task": {
      "main": [
        [
          {
            "node": "Create ClickUp Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Get row(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Format Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get many messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many messages": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create ClickUp Task": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}