{
  "name": "Auto-generate sticky notes and rename nodes",
  "nodes": [
    {
      "id": "9ac0258b-4280-4e51-92b9-73bdb68a9fda",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1664,
        224
      ],
      "parameters": {
        "width": 368,
        "height": 272,
        "content": "## Initialize workflow\n\nStarts the workflow and sets initial variables."
      }
    },
    {
      "id": "9b2ebac0-c8d3-46b4-81a1-0a9ba16797e1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2064,
        224
      ],
      "parameters": {
        "width": 368,
        "height": 272,
        "content": "## Prepare and parse nodes\n\nPrepares nodes and parses them for further processing."
      }
    },
    {
      "id": "d406950c-0fb6-431e-ae54-733c742558a5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2464,
        224
      ],
      "parameters": {
        "width": 448,
        "height": 496,
        "content": "## AI logical grouping\n\nUses AI to logically group nodes."
      }
    },
    {
      "id": "357b6500-6a50-4881-9e0c-c19033e0431f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2944,
        224
      ],
      "parameters": {
        "width": 1072,
        "height": 256,
        "content": "## Collision handling and export\n\nHandles collisions and merges results for export."
      }
    },
    {
      "id": "da1723ee-9f3e-468e-8c9a-a6d250ff328f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1664,
        1008
      ],
      "parameters": {
        "width": 592,
        "height": 320,
        "content": "## Iterative adjustment\n\nControls loop for iterative collision fixes and picks the best result."
      }
    },
    {
      "id": "e8557f66-051d-4fb7-8341-672215412b45",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2288,
        752
      ],
      "parameters": {
        "width": 800,
        "height": 576,
        "content": "## Conditional node renaming\n\nDecides and executes the renaming procedure with AI assistance."
      }
    },
    {
      "id": "5c2f420e-733b-4fdb-83f2-c5ebbca8a21d",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3120,
        752
      ],
      "parameters": {
        "width": 832,
        "height": 576,
        "content": "## Final output preparation\n\nFormats and normalizes the final workflow for output."
      }
    },
    {
      "id": "041f5632-69b8-4e1f-ae72-bc9431c49b8b",
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1696,
        352
      ]
    },
    {
      "id": "f7e1e2d2-76cc-4ab5-9c48-f3e86f0ea063",
      "name": "Parse Nodes",
      "type": "n8n-nodes-base.code",
      "position": [
        2288,
        352
      ]
    },
    {
      "id": "4fed7ea4-6f87-477d-9051-41cfc8c459bd",
      "name": "AI Groups Logically",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2512,
        336
      ]
    },
    {
      "id": "f99294c8-4b0e-4be9-b573-3d03953f7163",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2512,
        576
      ]
    },
    {
      "id": "0170da4a-2a88-422d-ae09-78021ee7f132",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2656,
        576
      ]
    },
    {
      "id": "9de1a64a-97c2-40ce-9670-fc52644ca375",
      "name": "Generate Stickies",
      "type": "n8n-nodes-base.code",
      "position": [
        3472,
        336
      ]
    },
    {
      "id": "0350bd4c-4f57-428a-8221-f545a0aabfc6",
      "name": "Strip & Prepare",
      "type": "n8n-nodes-base.code",
      "position": [
        2112,
        352
      ]
    },
    {
      "id": "9004966d-ce52-424b-9593-5c598dc128c1",
      "name": "Compute Bounding Boxes",
      "type": "n8n-nodes-base.code",
      "position": [
        2992,
        336
      ]
    },
    {
      "id": "c2080ff0-77b3-4605-9e57-1570e0aa635f",
      "name": "Collision Resolution",
      "type": "n8n-nodes-base.code",
      "position": [
        3216,
        336
      ]
    },
    {
      "id": "c293a6bc-5b01-4a06-9441-40680f88b205",
      "name": "Merge & Export",
      "type": "n8n-nodes-base.code",
      "position": [
        3680,
        336
      ]
    },
    {
      "id": "11105e54-015c-44f9-a991-fd9bad6a09f5",
      "name": "Pick Best Result",
      "type": "n8n-nodes-base.code",
      "position": [
        2112,
        1152
      ]
    },
    {
      "id": "4f2d5b38-a856-4cdc-a3d0-a341dbee5223",
      "name": "Collision Detector",
      "type": "n8n-nodes-base.code",
      "position": [
        3888,
        336
      ]
    },
    {
      "id": "2d77d13a-0661-4107-94e7-dee3a596ac29",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1888,
        1136
      ]
    },
    {
      "id": "97fa4a43-26de-443f-896e-e459060ec9b9",
      "name": "Loop Controller (Automatic Fixer)",
      "type": "n8n-nodes-base.code",
      "position": [
        1712,
        1136
      ]
    },
    {
      "id": "1dff0d21-f998-48d1-9894-873317b51993",
      "name": "Set Workflow Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        1888,
        352
      ]
    },
    {
      "id": "cfaa7dac-121e-4f0d-83a1-8fa1624eab92",
      "name": "Should Rename Nodes",
      "type": "n8n-nodes-base.if",
      "position": [
        2336,
        1152
      ]
    },
    {
      "id": "4a30959a-66da-42fc-9020-c2f106d81aaf",
      "name": "Output Normalization",
      "type": "n8n-nodes-base.set",
      "position": [
        3728,
        1168
      ]
    },
    {
      "id": "128d8236-5bd5-446b-b91f-66d6dd3d2310",
      "name": "Parse for Renaming",
      "type": "n8n-nodes-base.code",
      "position": [
        2544,
        864
      ]
    },
    {
      "id": "5943ae15-d6a1-43f1-ab6a-5026e0c24ed9",
      "name": "AI Rename",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2784,
        864
      ]
    },
    {
      "id": "84610bbc-2ddf-468c-8455-7e83058a00e2",
      "name": "Apply Renames",
      "type": "n8n-nodes-base.code",
      "position": [
        3168,
        864
      ]
    },
    {
      "id": "8d49a031-392a-4f22-af00-2ec94d7fdc21",
      "name": "Format for Export",
      "type": "n8n-nodes-base.code",
      "position": [
        3488,
        864
      ]
    },
    {
      "id": "769bb4e4-6729-4344-92ba-11aeaf0d9b27",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2784,
        1088
      ]
    },
    {
      "id": "5fa4ff96-4ccd-4ce6-9136-3fb91b168e2b",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2928,
        1056
      ]
    },
    {
      "id": "67b6e6b9-e5a0-4c26-9cca-62659ede7b2a",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        224
      ],
      "parameters": {
        "width": 624,
        "height": 704,
        "content": "## Sticky note generator and node renamer\n\n### How it works\nThis workflow creates sticky notes and renames your nodes according to [our guidelines](https://n8n.notion.site/Sticky-note-guidelines-for-t"
      }
    },
    {
      "id": "0b4c610a-c3d1-4bdd-b9a2-cfdc44cb8b24",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        944
      ],
      "parameters": {
        "width": 624,
        "height": 80,
        "content": "### How can we improve this workflow?\n### [>>> Share your feedback here](https://templates.app.n8n.cloud/form/dbf8d22e-4b05-4328-b164-dcc5555623e0)"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "AI Groups Logically",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Pick Best Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start": {
      "main": [
        [
          {
            "node": "Set Workflow Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Rename": {
      "main": [
        [
          {
            "node": "Apply Renames",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Nodes": {
      "main": [
        [
          {
            "node": "AI Groups Logically",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Apply Renames": {
      "main": [
        [
          {
            "node": "Format for Export",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge & Export": {
      "main": [
        [
          {
            "node": "Collision Detector",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Strip & Prepare": {
      "main": [
        [
          {
            "node": "Parse Nodes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pick Best Result": {
      "main": [
        [
          {
            "node": "Should Rename Nodes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format for Export": {
      "main": [
        [
          {
            "node": "Output Normalization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Stickies": {
      "main": [
        [
          {
            "node": "Merge & Export",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Groups Logically",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Collision Detector": {
      "main": [
        [
          {
            "node": "Loop Controller (Automatic Fixer)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Rename",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Parse for Renaming": {
      "main": [
        [
          {
            "node": "AI Rename",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Groups Logically": {
      "main": [
        [
          {
            "node": "Compute Bounding Boxes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Should Rename Nodes": {
      "main": [
        [
          {
            "node": "Parse for Renaming",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Output Normalization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Collision Resolution": {
      "main": [
        [
          {
            "node": "Generate Stickies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compute Bounding Boxes": {
      "main": [
        [
          {
            "node": "Collision Resolution",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Workflow Variables": {
      "main": [
        [
          {
            "node": "Strip & Prepare",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Groups Logically",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Rename",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Loop Controller (Automatic Fixer)": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}