Skip to main content

Convert CDP network topology to Lucidchart prompts with AWX and Gemini AI

Workflow preview

Workflow preview
100%
Convert CDP network topology to Lucidchart prompts with AWX and Gemini AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI NETWORK DIAGRAM PROMPT GENERATOR Template Description This workflow automates the creation of network diagram prompts using AI. It retrieves Layer 2 topology data from AWX, parses device relatio...

Best for

  • Engineering automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.if, n8n-nodes-base.wait, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.manualtrigger, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.googledocs

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Mr Shifu.

Original n8n.io source

1.1 Workflow description

Title
Convert CDP network topology to Lucidchart prompts with AWX and Gemini AI
Workflow name
Convert CDP network topology to Lucidchart prompts with AWX and Gemini AI

AI NETWORK DIAGRAM PROMPT GENERATOR

Template Description

This workflow automates the creation of network diagram prompts using AI. It retrieves Layer-2 topology data from AWX, parses device relationships, and generates a clean, structured prompt ready for Lucidchart’s AI diagram generator.

How It Works

The workflow triggers an AWX Job Template that runs commands such as show cdp neighbors detail. After the job completes, n8n fetches the stdout, extracts neighbor relationships through a JavaScript parser, and sends the structured data to an LLM (Gemini). The LLM transforms the topology into a formatted prompt you can paste directly into Lucidchart to instantly generate a visual network diagram.

Setup Steps

  1. Configure AWX:
  • Ensure your Job Template runs the required network commands and produces stdout.
  • Obtain your AWX base URL, credentials, and Job Template ID.
  1. Add Credentials in n8n:
  • Create AWX API credentials.
  • Add Google Gemini credentials for the LLM node.
  1. Update Workflow Nodes:
  • Insert your AWX URL and Job Template ID in the “Launch Job” node.
  • Verify endpoints in the “Job Status” and “Job Stdout” nodes.
  1. Run the workflow:
  • After execution, copy the generated Lucidchart prompt and paste it into Lucidchart’s AI to produce the network diagram.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 2 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 3 - HTTP Request-Launch Job

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Edit Fields Parametros Basicos

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - HTTP Request - Get JobStatus

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - HTTP Request - Get JobStdout

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 8 - Aggregate Devices

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Generate L2 Topology

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 10 - Build nodes & links

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Parser

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Prompt for Lucid

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 13 - Create a document

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 14 - Update a document

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 15 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Convert CDP network topology to Lucidchart prompts with AWX and Gemini AI
Complexity advanced
Nodes 19
Categories Engineering, Multimodal AI
Author Mr Shifu
Published 05 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11537/11537.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Convert CDP network topology to Lucidchart prompts with AWX and Gemini AI do?

AI NETWORK DIAGRAM PROMPT GENERATOR Template Description This workflow automates the creation of network diagram prompts using AI. It retrieves Layer 2 topology data from AWX, parses device relatio...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, Multimodal AI use case.