How to generate an AI Sequence Diagram
Step-by-step guide on generating a sequence diagram
- Write a prompt describing a user flow or a data flow as a sequence of events. Structuring the prompt as a numbered list maps well to a sequence diagram. The best prompts are usually at least 3-4 sentences long.
- Generate a diagram with the completed prompt.
- Edit the diagram with follow-up prompts (this step requires signing in to Eraser).
Tips on generating a sequence diagram
- If available, instead of writing a prompt from scratch, consider pasting excerpts from existing code (e.g. scripts), call transcripts, or requirements documents.
- Working with an LLM to create a thoughtful diagram prompt could also save time. Ask it to describe a user flow or data flow as a numbered list.
Example diagrams