{
  "name": "Convert CDP network topology to Lucidchart prompts with AWX and Gemini AI",
  "nodes": [
    {
      "id": "c7cf8ab1-ae6f-461a-b783-4888bd524a97",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -512,
        -80
      ]
    },
    {
      "id": "84bd41da-6a86-484a-8d21-700ab209ce4d",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -288,
        88
      ]
    },
    {
      "id": "9a9d62ed-e134-4b8a-9ee3-9f2645d461d1",
      "name": "HTTP Request-Launch Job",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1136,
        32
      ]
    },
    {
      "id": "876242f5-a1d8-4b4d-a14c-1493a4c98c8c",
      "name": "Edit Fields Parametros Basicos",
      "type": "n8n-nodes-base.set",
      "position": [
        -912,
        16
      ]
    },
    {
      "id": "e77699f3-b2a4-4e7e-8640-57954d37e871",
      "name": "HTTP Request - Get JobStatus",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -736,
        -8
      ]
    },
    {
      "id": "75af4fa6-54fa-4396-9b99-fcd1dd98c10d",
      "name": "HTTP Request - Get JobStdout",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -288,
        -128
      ]
    },
    {
      "id": "d06a2778-9efc-4c8a-bc63-9143e66d3d23",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1408,
        -8
      ]
    },
    {
      "id": "8db9c635-79a5-4ddb-b7c9-4810718c5576",
      "name": "Aggregate Devices",
      "type": "n8n-nodes-base.code",
      "position": [
        160,
        -128
      ]
    },
    {
      "id": "a91a9335-0a93-4384-a8fe-2d56b55aff7e",
      "name": "Generate L2 Topology",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        384,
        -128
      ]
    },
    {
      "id": "412bbdf9-0127-411e-b01c-3aae860258ec",
      "name": "Build nodes & links",
      "type": "n8n-nodes-base.code",
      "position": [
        736,
        -128
      ]
    },
    {
      "id": "7efcebc2-13cd-4487-9140-3c9719634aca",
      "name": "Parser",
      "type": "n8n-nodes-base.code",
      "position": [
        -64,
        -128
      ]
    },
    {
      "id": "bb27c131-09cc-4a28-b4a9-c02e47e969c3",
      "name": "Prompt for Lucid",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        960,
        -128
      ]
    },
    {
      "id": "04286094-b637-4596-aaa7-47be4fc8c696",
      "name": "Create a document",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1312,
        -128
      ]
    },
    {
      "id": "8e4e6525-729c-4354-b658-85cc66e123d3",
      "name": "Update a document",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1536,
        -128
      ]
    },
    {
      "id": "9cc0808e-9a26-4b7e-823a-c1470419011b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        -336
      ],
      "parameters": {
        "width": 592,
        "height": 752,
        "content": "## AI Network Diagram Prompt Generator \n⭐ How it Works\n\nThis workflow automatically retrieves Layer-2 topology data from network devices through AWX.\nIt triggers an AWX Job Template that runs commands"
      }
    },
    {
      "id": "b626e254-7d8b-4a08-adf8-73e5818b418b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        -176
      ],
      "parameters": {
        "width": 688,
        "height": 480,
        "content": "## Section 1 Call AWX Playbook and set the job id"
      }
    },
    {
      "id": "cc408e68-b560-4bf2-aad7-161202b9385c",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -544,
        -176
      ],
      "parameters": {
        "width": 832,
        "height": 480,
        "content": "## Section 2 Follow job status and Parsing Information"
      }
    },
    {
      "id": "babdaddb-606d-41e3-b6e9-5f87dab845a5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        -176
      ],
      "parameters": {
        "width": 1360,
        "height": 480,
        "content": "## Section 3 Create Prompt and save it!!"
      }
    },
    {
      "id": "398485ec-55f9-4b39-887a-85bb3c29d302",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1248,
        -112
      ],
      "parameters": {
        "width": 320,
        "height": 320,
        "content": "Set url for api request in AWX;\nexample: \nhttp://(ipawx:andport/api/v2/job_templates/(idtemplate)/launch/\nhttp://10.1.1.1:80/api/v2/job_templates/1/launch/\nfor the playbook (please contact me)"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "HTTP Request - Get JobStdout",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "HTTP Request - Get JobStatus",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parser": {
      "main": [
        [
          {
            "node": "Aggregate Devices",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prompt for Lucid": {
      "main": [
        [
          {
            "node": "Create a document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Devices": {
      "main": [
        [
          {
            "node": "Generate L2 Topology",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a document": {
      "main": [
        [
          {
            "node": "Update a document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build nodes & links": {
      "main": [
        [
          {
            "node": "Prompt for Lucid",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate L2 Topology": {
      "main": [
        [
          {
            "node": "Build nodes & links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request-Launch Job": {
      "main": [
        [
          {
            "node": "Edit Fields Parametros Basicos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request - Get JobStatus": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request - Get JobStdout": {
      "main": [
        [
          {
            "node": "Parser",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields Parametros Basicos": {
      "main": [
        [
          {
            "node": "HTTP Request - Get JobStatus",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "HTTP Request-Launch Job",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}