How to generate an AI Use Case Diagram
Step-by-step guide on generating a Use Case Diagram
- Write a prompt describing how users interact with the system. 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:
- Make sure to describe users (e.g. student, teachers) and use cases (e.g. submit homework, view grades).
- Include the visual requirements of a use case diagram to the prompt: "A use case diagram consists of users and use cases. Users are rectangle shapes and use cases are oval shapes. Connections between users use cases show what users have what use cases, don't add any other connections. Put use cases in a group called use cases. Don't put users in a group and don't group use cases by users. Mention "Use Case Diagram" in the title."
- 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 a Use Case Diagram
- Instead of writing a prompt from scratch, consider pasting excerpts from existing documents such as requirements docs, user manuals, knowledge base articles that describe the system and the use cases.
- Working with an LLM to create a fleshed out diagram prompt can be effective. Describe a system and ask it to create a list of user and use case pairings.