{
  "name": "Trello task management with Telegram notifications and Supabase database",
  "nodes": [
    {
      "id": "cc23f775-67b6-47d1-b13f-fa91cb973d9b",
      "name": "Trello Trigger",
      "type": "n8n-nodes-base.trelloTrigger",
      "position": [
        128,
        -16
      ]
    },
    {
      "id": "b5f7a4e2-32e8-48cd-9bd8-5f6e6edf2e0c",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        128,
        544
      ]
    },
    {
      "id": "be79211c-78c1-4823-b0ec-ada0f492bad1",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1024,
        880
      ]
    },
    {
      "id": "d52b7cd0-d703-4eb9-af5d-55c3a861513a",
      "name": "username",
      "type": "n8n-nodes-base.set",
      "position": [
        576,
        880
      ]
    },
    {
      "id": "acf6a2fe-e127-4ff9-b2b5-4484fa5eb401",
      "name": "Create card",
      "type": "n8n-nodes-base.supabase",
      "position": [
        352,
        -16
      ]
    },
    {
      "id": "7ce79763-e35f-4f2c-af48-2f791d508ad0",
      "name": "Create Card Webhook",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        576,
        -16
      ]
    },
    {
      "id": "b024e07e-73ec-477f-85df-d2cbc2a1e521",
      "name": "Get user row",
      "type": "n8n-nodes-base.supabase",
      "position": [
        576,
        448
      ]
    },
    {
      "id": "7aebe854-c87e-4982-88e6-ecaead011ded",
      "name": "Create user",
      "type": "n8n-nodes-base.supabase",
      "position": [
        1024,
        544
      ]
    },
    {
      "id": "1579543f-8a23-4192-9f17-ab604a5bb78b",
      "name": "Trello Action Type Check",
      "type": "n8n-nodes-base.if",
      "position": [
        336,
        896
      ]
    },
    {
      "id": "4017bf8e-b104-4708-bac9-f04c5a8679a6",
      "name": "Update card due-date",
      "type": "n8n-nodes-base.supabase",
      "position": [
        336,
        240
      ]
    },
    {
      "id": "ed643ce9-83d6-4a70-8bc6-70cec72f264a",
      "name": "Create user card relation",
      "type": "n8n-nodes-base.supabase",
      "position": [
        1472,
        432
      ]
    },
    {
      "id": "693aafe2-8648-453f-93d6-2f10ba200cd8",
      "name": "Code in JavaScript1",
      "type": "n8n-nodes-base.code",
      "position": [
        1248,
        432
      ]
    },
    {
      "id": "205f1a6d-de1a-4fe1-9bdb-11183fc1b2f8",
      "name": "Does User Exist?",
      "type": "n8n-nodes-base.if",
      "position": [
        800,
        448
      ]
    },
    {
      "id": "e3059b04-4950-4bda-a130-3276952a1fbd",
      "name": "Delete from users-card",
      "type": "n8n-nodes-base.supabase",
      "position": [
        576,
        640
      ]
    },
    {
      "id": "ccdbc090-16c3-47e6-9a35-a3d55b1b2b2a",
      "name": "Send a text message1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1520,
        1232
      ]
    },
    {
      "id": "752e0fce-9711-49b5-ad6c-dce13d7acd83",
      "name": "Code in JavaScript2",
      "type": "n8n-nodes-base.code",
      "position": [
        1296,
        1232
      ]
    },
    {
      "id": "6586d8fc-b019-4e9b-83f7-cce440fd66f2",
      "name": "Get users in card",
      "type": "n8n-nodes-base.supabase",
      "position": [
        848,
        1232
      ]
    },
    {
      "id": "b4ed0a9c-6f23-4a73-bfb5-91437f91601e",
      "name": "Get user-card",
      "type": "n8n-nodes-base.supabase",
      "position": [
        624,
        1232
      ]
    },
    {
      "id": "e35e0fc7-dec4-473f-b70f-a2767de4f941",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        800,
        880
      ]
    },
    {
      "id": "5afda61c-871d-489a-836a-3dea53931913",
      "name": "Due-Date Notification Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        128,
        1232
      ]
    },
    {
      "id": "7ad9809d-33bf-47d7-93f1-74e1ac4a95c8",
      "name": "Get all cards due today",
      "type": "n8n-nodes-base.supabase",
      "position": [
        400,
        1232
      ]
    },
    {
      "id": "bb94a9b2-c0fa-4d96-bf8d-e8c9539146f1",
      "name": "usernames 1",
      "type": "n8n-nodes-base.set",
      "position": [
        1072,
        1232
      ]
    },
    {
      "id": "73521891-8c38-4723-b56d-39f71c551357",
      "name": "Add/Remove Member from Card Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        352,
        544
      ]
    },
    {
      "id": "861b019d-e717-47c0-83e9-d59da9e6eacf",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1568,
        224
      ],
      "parameters": {
        "width": 752,
        "height": 1152,
        "content": "# Workflow Overview: Trello → Supabase → Telegram Automation\n\n## Main Purpose\nAutomates the creation, update, and notification process for Trello cards by syncing users and due dates with Supabase, an"
      }
    },
    {
      "id": "df0e4a69-1d71-42fb-a4ea-36470b7c6a11",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        224
      ],
      "parameters": {
        "width": 576,
        "height": 688,
        "content": "# ⚙️ Instructions for Use\n\n## Webhook Setup\n- Ensure Trello webhooks are active for card events.\n- The webhook URL in Trello must match your n8n Webhook node’s public URL.\n- Follow the following instr"
      }
    },
    {
      "id": "38e09c6c-4dd0-4c72-8c2e-a2eab7023ecb",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -352
      ],
      "parameters": {
        "width": 368,
        "height": 352,
        "content": "Replace `[BOARD_ID]` with your Trello board Id. Here is how to get your board Id\n\n1. Go to your Trello board\n2. Open one of your cards in the board, if no card is created, create a new one\n3. On the U"
      }
    },
    {
      "id": "d1c77fde-62d1-4a64-b632-f63cb83ecef6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        768
      ],
      "parameters": {
        "width": 304,
        "height": 128,
        "content": "Replace `[TELEGRAM_CHAT_ID]` and the optional `[THREAD_ID]` if your chat has multiple topics with the telegram chat id you intend to send messages to. Beware that this chat has to be one which your bo"
      }
    },
    {
      "id": "9806254c-c31f-4147-99e7-05fa63b781d7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        1024
      ],
      "parameters": {
        "width": 160,
        "height": null,
        "content": "If you intend to address users with their usernames on telegram, map each user's name to their respective telegram usernames here"
      }
    },
    {
      "id": "802b8a33-2915-4360-b496-0eabb3b430c9",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        672,
        -176
      ],
      "parameters": {
        "width": 256,
        "height": 176,
        "content": "- Replace `[TRELLO_TOKEN]` and `[TRELLO_API_KEY]` after getting a Trello API from Atlassian Developer Dashboard\n\n- Replase `[WEBHOOK_URL]` with the URL of the \"webhook\" node below"
      }
    },
    {
      "id": "5e2c61d9-45ec-4f0c-83dd-c34ce112a7c2",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        432
      ],
      "parameters": {
        "width": 176,
        "height": 128,
        "content": "- Replace `[WEBHOOK_PATH]` with whatever path you want your webhook URL have"
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Trello Action Type Check",
            "type": "main",
            "index": 0
          },
          {
            "node": "Update card due-date",
            "type": "main",
            "index": 0
          },
          {
            "node": "Add/Remove Member from Card Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "username": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create card": {
      "main": [
        [
          {
            "node": "Create Card Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create user": {
      "main": [
        [
          {
            "node": "Code in JavaScript1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "usernames 1": {
      "main": [
        [
          {
            "node": "Code in JavaScript2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get user row": {
      "main": [
        [
          {
            "node": "Does User Exist?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get user-card": {
      "main": [
        [
          {
            "node": "Get users in card",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trello Trigger": {
      "main": [
        [
          {
            "node": "Create card",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does User Exist?": {
      "main": [
        [
          {
            "node": "Code in JavaScript1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get users in card": {
      "main": [
        [
          {
            "node": "usernames 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript1": {
      "main": [
        [
          {
            "node": "Create user card relation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript2": {
      "main": [
        [
          {
            "node": "Send a text message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get all cards due today": {
      "main": [
        [
          {
            "node": "Get user-card",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trello Action Type Check": {
      "main": [
        [
          {
            "node": "username",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add/Remove Member from Card Switch": {
      "main": [
        [
          {
            "node": "Get user row",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Delete from users-card",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Due-Date Notification Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get all cards due today",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}