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

171 views · ⚒️ Engineering

Description

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:
  1. Add Credentials in n8n:
  1. Update Workflow Nodes:
  1. Run the workflow:

🔗 Nodes Used

HTTP Request, Google Docs, Google Gemini

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup