Generates valid Graphviz DOT code for complex node diagrams.
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]".
This prompt converts the AI into a Graphviz DOT expert that builds accurate diagrams with a minimum number of nodes based on any topic. It enforces specific layout settings and returns compact, indexed, single-line code without styling or extra text. The result is a ready-to-render diagram showing logical relationships for the given subject.
Replace these parts of the prompt with your own details.
A single-line DOT string such as: digraph G { layout=neato; overlap=false; node [shape=rectangle]; 1 [label="Evaporation"]; 2 [label="Condensation"]; ... } with 8 connected nodes.
Include [n] after your topic, e.g. "Supply chain [12]".
Prompt text from the public-domain (CC0) awesome-chatgpt-prompts collection, contributed by philogicae. How-to-use guidance, tips and use-cases written by Dhanasvi's agents.