{
  "name": "Zendesk ticket escalation to ClickUp with Telegram alerts",
  "nodes": [
    {
      "id": "613892c0-fbe7-4ab9-ac04-c0cbc0979a91",
      "name": "Fetch Zendesk Tickets",
      "type": "n8n-nodes-base.zendesk",
      "position": [
        -224,
        16
      ]
    },
    {
      "id": "308d53f2-a968-44bb-be27-d787b8d601e2",
      "name": "Select Latest Ticket",
      "type": "n8n-nodes-base.code",
      "position": [
        32,
        16
      ]
    },
    {
      "id": "8faf2c0b-d6c7-4513-9b0c-40de728dde4d",
      "name": "Fetch Requester Email",
      "type": "n8n-nodes-base.zendesk",
      "position": [
        336,
        -176
      ]
    },
    {
      "id": "551ea948-976a-4b8f-abd9-e320d9881f7e",
      "name": "Create a task",
      "type": "n8n-nodes-base.clickUp",
      "position": [
        1056,
        0
      ]
    },
    {
      "id": "955d2b4a-a387-4586-9bbe-db77e690c27d",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -496,
        16
      ]
    },
    {
      "id": "0c712188-6a30-4de6-afa2-a0c08f90c6c4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1184,
        -320
      ],
      "parameters": {
        "width": null,
        "height": 288,
        "content": "Action: Builds a concise escalation alert for Telegram.\n\nDescription: Extracts the key details from the ClickUp task — such as ticket subject, requester’s name/email, and task link — and formats them "
      }
    },
    {
      "id": "159cc87f-c633-4a75-8aeb-70f8e828c8d7",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        176
      ],
      "parameters": {
        "width": null,
        "height": 272,
        "content": "Action: Creates a new task in the designated ClickUp list.\n\nDescription: Pushes the formatted payload into ClickUp, generating a trackable task inside the escalation list. It sets the assignee, fills "
      }
    },
    {
      "id": "fffd694d-fe17-4aa6-987d-14e8b6631b56",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        -384
      ],
      "parameters": {
        "width": null,
        "height": 320,
        "content": "Action: Formats the ticket and requester data into ClickUp task structure.\n\nDescription: Builds a new task object with a clear escalation title, detailed description (including ticket info and request"
      }
    },
    {
      "id": "ab81ac67-e9af-4990-aee2-cd7e8b5f04db",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        176
      ],
      "parameters": {
        "width": null,
        "height": 272,
        "content": "Action: Combines ticket and requester information into one dataset.\n\nDescription: Consolidates the ticket metadata (ID, subject, description, creation time) with requester details (name, email, timezo"
      }
    },
    {
      "id": "09511909-5d66-4eb9-be18-ca738ec1e0c6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        -496
      ],
      "parameters": {
        "width": null,
        "height": 288,
        "content": "Action: Retrieves requester details from Zendesk.\n\nDescription: Uses the requester_id from the ticket to fetch the associated user record in Zendesk. This provides critical context, including the requ"
      }
    },
    {
      "id": "df617f84-9ad6-4647-856f-c51ed74a7a58",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        176
      ],
      "parameters": {
        "width": null,
        "height": 304,
        "content": "Action: Chooses the most recent ticket from the Zendesk list.\n\n Description: From the list of tickets retrieved, this node sorts them by created_at in descending order and selects only the latest tick"
      }
    },
    {
      "id": "43aa9671-8dc0-4ff6-8e63-0ed4ce24c3f6",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -288,
        -256
      ],
      "parameters": {
        "width": null,
        "height": 240,
        "content": "Action: Retrieves Zendesk tickets from a specific group.\n\nDescription: Pulls all tickets with status “pending” from the specified Zendesk group, sorted by status. This ensures the workflow always work"
      }
    },
    {
      "id": "48ecaccd-160f-447e-bbc0-0252a7488606",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        176
      ],
      "parameters": {
        "width": null,
        "height": 336,
        "content": "Action: Sends the formatted message to Telegram.\n\nDescription: Delivers the escalation alert directly into the manager’s Telegram chat. The notification contains all the essentials — ticket details, r"
      }
    },
    {
      "id": "3455937a-d102-45e7-a337-d300f82ea268",
      "name": "Merge Ticket & Requester Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        592,
        0
      ]
    },
    {
      "id": "3fc52bad-cb5f-49b0-a28d-c3ce296a0a16",
      "name": "Prepare ClickUp Task Payload",
      "type": "n8n-nodes-base.code",
      "position": [
        832,
        0
      ]
    },
    {
      "id": "9188d0e5-08a2-4387-8689-c903fcb71c83",
      "name": "Format Telegram Alert Message",
      "type": "n8n-nodes-base.code",
      "position": [
        1264,
        0
      ]
    },
    {
      "id": "50807447-941e-4192-a04e-2b4e33026243",
      "name": "Send Telegram Escalation Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1504,
        0
      ]
    }
  ],
  "connections": {
    "Create a task": {
      "main": [
        [
          {
            "node": "Format Telegram Alert Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Select Latest Ticket": {
      "main": [
        [
          {
            "node": "Fetch Requester Email",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Ticket & Requester Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Fetch Requester Email": {
      "main": [
        [
          {
            "node": "Merge Ticket & Requester Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Zendesk Tickets": {
      "main": [
        [
          {
            "node": "Select Latest Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare ClickUp Task Payload": {
      "main": [
        [
          {
            "node": "Create a task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Telegram Alert Message": {
      "main": [
        [
          {
            "node": "Send Telegram Escalation Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Ticket & Requester Data": {
      "main": [
        [
          {
            "node": "Prepare ClickUp Task Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Telegram Escalation Alert": {
      "main": [
        []
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Fetch Zendesk Tickets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}