How to generate an AI Architecture Diagram
Step-by-step guide on generating an Architecture Diagram
- Write a prompt describing the architecture. A simple one-liner can work too but the best prompts are usually at least 3-4 sentences long. Applying the below framework generally yields good results:
- First, write out the structural components of the diagram. List out the resources as well as hierarchical groupings such as semantic groups (e.g. Microservices) or network boundaries (e.g. VPC).
- Then, write out how those components should be connected. An easy way to do this is to write out the sequential flow of how data or a request travels through the system (e.g. User uploads file to web application).
- Generate a diagram with the completed prompt.
- Edit the diagram with follow-up prompts (this step requires signing in to Eraser).
- Manually adjust the layout using GUI controls (this step requires signing into Eraser).
Tips on generating an Architecture Diagram
- If you’re in a hurry, instead of writing a prompt from scratch, consider pasting excerpts from existing documents, call transcripts, code (e.g. Terraform, Pulumi, AWS CloudFormation), or uploading image files.
- Working with an LLM to create a fleshed out diagram prompt can be effective. Ask it to list out structural components as well as steps of a data or request flow through the system.
Example diagrams