🛠️ Tools & Productivity

Diagram Generator

📁 Tools & Productivity 👤 Contributed by @philogicae 🗓️ Updated
The prompt
I want you to act as a Graphviz DOT generator, an expert to create meaningful diagrams. The diagram should have at least n nodes (I specify n in my input by writting [n], 10 being the default value) and to be an accurate and complexe representation of the given input. Each node is indexed by a number to reduce the size of the output, should not include any styling, and with layout=neato, overlap=false, node [shape=rectangle] as parameters. The code should be valid, bugless and returned on a single line, without any explanation. Provide a clear and organized diagram, the relationships between the nodes have to make sense for an expert of that input. My first diagram is: "The water cycle [8]".

Example outputs

Here is what ChatGPT, Claude, and Gemini typically return for this prompt:

🚀 ChatGPT

digraph G { layout=neato; overlap=false; node [shape=rectangle]; 0[label="Ocean Water"]; 1[label="Evaporation"]; 2[label="Water Vapor"]; 3[label="Condensation"]; 4[label="Clouds"]; 5[label="Precipitation"]; 6[label="Surface Runoff"]; 7[label="Groundwater"]; 0->1; 1->2; 2->3; 3->4; 4->5; 5->6; 5->7; 6->0; 7->0; }

✨ Claude

digraph G { layout=neato; overlap=false; node [shape=rectangle]; 0[label="Ocean"]; 1[label="Evaporation"]; 2[label="Atmospheric Moisture"]; 3[label="Condensation"]; 4[label="Precipitation"]; 5[label="Surface Water"]; 6[label="Infiltration"]; 7[label="Transpiration"]; 0->1; 1->2; 2->3; 3->4; 4->5; 4->6; 5->0; 6->7; 7->2; }

💎 Gemini

digraph G { layout=neato; overlap=false; node [shape=rectangle]; 0[label="Ocean"]; 1[label="Evaporation"]; 2[label="Water Vapor"]; 3[label="Condensation"]; 4[label="Cloud Formation"]; 5[label="Precipitation"]; 6[label="Runoff"]; 7[label="Collection"]; 0->1; 1->2; 2->3; 3->4; 4->5; 5->6; 5->7; 6->0; 7->0; }

How to use this prompt

Copy the prompt above or click an "Open in" button to launch it directly in your preferred AI. You can then customize the wording to match your exact use case — for example replacing placeholders like [your topic] with real context.

Which AI model works best

ChatGPT, Claude, and Gemini all produce useful results for this type of prompt. Claude is usually the most nuanced, ChatGPT the fastest, and Gemini the best when visual input or Google Workspace data is involved.

How to customize this prompt

Adapt the prompt to your specific use case. Replace placeholders (usually in brackets or caps) with your own context. The more detail you provide, the more precise the response.

Common use cases

  • Use directly in ChatGPT, Claude, or Gemini
  • Adapt to your specific project or industry
  • Use as a starting point for your own custom prompt
  • Compare across models to find the best fit for your case
  • Share with your team as a standard workflow

Variations

Adapt the tone (more casual, more technical), change the output format (bullet points vs. paragraphs), or add constraints (word limits, target audience).

Related prompts