{
  "nodes": [
    {
      "id": "27dbf373-3072-47de-88a6-fc3b6a4a47b6",
      "name": "When clicking \u2018Execute workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        368,
        176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b5844156-2d81-4067-a05a-4aa8f0a1b7b4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -16
      ],
      "parameters": {
        "width": 400,
        "height": 928,
        "content": "\n\n## \u2699\ufe0f Setup Instructions\n\n### 1\ufe0f\u20e3 Connect Trello (Developer API)\n1. Get your **API key**: https://trello.com/app-key  \n2. Generate a **token** (from the same page \u2192 **Token**)\n3. In n8n \u2192 **Credentials \u2192 New \u2192 Trello API**, paste **API Key** and **Token**, save.  \n4. Open each Trello node (**Get Board**, **Get Lists**, **Get Cards**) and select your Trello credential.\n\n\n### 2\ufe0f\u20e3 Add Your Board URL to \u201cGet Board\u201d\n1. Copy your Trello board URL (e.g., `https://trello.com/b/DCpuJbnd/administrative-tasks`).  \n2. Open the **Get Board** node \u2192 **Resource: Board**, **Operation: Get**.  \n3. In **ID**, choose **URL** mode and paste the **board URL**.  \n   - The node will resolve the board and output its `id` \u2192 used by **Get Lists** / **Get Cards**.\n\n## \ud83d\udcec Contact\n\ud83d\udce7 [rbreen@ynteractive.com](mailto:rbreen@ynteractive.com)  \n\ud83d\udd17 [Robert Breen](https://www.linkedin.com/in/robert-breen-29429625/)  \n\ud83c\udf10 [ynteractive.com](https://ynteractive.com)\n"
      },
      "typeVersion": 1
    },
    {
      "id": "25af7640-7002-487b-be74-86ed02af5a84",
      "name": "Sticky Note56",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        -16
      ],
      "parameters": {
        "color": 7,
        "width": 1504,
        "height": 928,
        "content": "# \ud83d\uddd1\ufe0f Auto Trello Cleanup with Label and Delete Card Node\n\nAutomatically clean up Trello boards by deleting any cards labeled **\u201cMark for Deletion.\u201d**  \n\nThis workflow checks all cards on your chosen Trello board, looks for the **Mark for Deletion** label, and removes those cards automatically \u2014 keeping your boards tidy without manual effort.  \n"
      },
      "typeVersion": 1
    },
    {
      "id": "8a0996e3-4cff-40b7-a2c7-f1535323150c",
      "name": "Get Board4",
      "type": "n8n-nodes-base.trello",
      "position": [
        608,
        176
      ],
      "parameters": {
        "id": {
          "__rl": true,
          "mode": "url",
          "value": "https://trello.com/b/DCpuJbnd/administrative-tasks"
        },
        "resource": "board",
        "operation": "get",
        "additionalFields": {}
      },
      "credentials": {
        "trelloApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "56e3f710-8b4a-4867-975c-97ed8f4e298f",
      "name": "Get Lists4",
      "type": "n8n-nodes-base.trello",
      "position": [
        576,
        720
      ],
      "parameters": {
        "id": "={{ $json.id }}",
        "resource": "list",
        "operation": "getAll",
        "additionalFields": {}
      },
      "credentials": {
        "trelloApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e8bc8790-d311-449e-a54e-0a8989d5294f",
      "name": "Get Cards4",
      "type": "n8n-nodes-base.trello",
      "position": [
        784,
        352
      ],
      "parameters": {
        "id": "={{ $json.id }}",
        "resource": "list",
        "operation": "getCards",
        "additionalFields": {}
      },
      "credentials": {
        "trelloApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a80e96fd-6bc4-497e-89c9-7d11c85d8301",
      "name": "Sticky Note58",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        544
      ],
      "parameters": {
        "color": 3,
        "width": 336,
        "height": 304,
        "content": "### 1\ufe0f\u20e3 Connect Trello (Developer API)\n1. Get your **API key**: https://trello.com/app-key  \n2. Generate a **token** (from the same page \u2192 **Token**)\n3. In n8n \u2192 **Credentials \u2192 New \u2192 Trello API**, paste **API Key** and **Token**, save.  "
      },
      "typeVersion": 1
    },
    {
      "id": "bd419fde-7d75-4231-8b18-c1ca2eba08e7",
      "name": "Delete a card",
      "type": "n8n-nodes-base.trello",
      "position": [
        1552,
        240
      ],
      "parameters": {
        "id": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Get Cards4').item.json.id }}"
        },
        "operation": "delete"
      },
      "credentials": {
        "trelloApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5ae1a4b6-05ec-48d8-a62b-d8202225cb32",
      "name": "Split Labels",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        992,
        624
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "labels"
      },
      "typeVersion": 1
    },
    {
      "id": "58344fe6-a5bc-427c-863e-2f971e88c0c1",
      "name": "Filter Marked for Delete",
      "type": "n8n-nodes-base.filter",
      "position": [
        1264,
        400
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "58a9c806-b9ef-43d5-9f4d-6d0dfcae474e",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.name }}",
              "rightValue": "Mark for Deletion"
            }
          ]
        }
      },
      "typeVersion": 2.2
    }
  ],
  "connections": {
    "Get Board4": {
      "main": [
        [
          {
            "node": "Get Lists4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Cards4": {
      "main": [
        [
          {
            "node": "Split Labels",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Lists4": {
      "main": [
        [
          {
            "node": "Get Cards4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Labels": {
      "main": [
        [
          {
            "node": "Filter Marked for Delete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Marked for Delete": {
      "main": [
        [
          {
            "node": "Delete a card",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Execute workflow\u2019": {
      "main": [
        [
          {
            "node": "Get Board4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}