Use Case Diagram

A use case diagram captures how different actors interact with a system through discrete use cases, making functional requirements easy to visualize. It's commonly used early in software projects to align stakeholders on scope. Tip: keep actor names as roles, not individual people, to keep the diagram reusable.

Customize with AI — free Open in draw.io

The prompt behind this diagram

Create a UML use case diagram for a food delivery application. Include actors Customer, Restaurant, and Delivery Driver. Include use cases Browse Menu, Place Order, Make Payment, Track Delivery, Accept Order, Prepare Food, and Deliver Order. Connect Customer to Browse Menu, Place Order, Make Payment, and Track Delivery; connect Restaurant to Accept Order and Prepare Food; connect Delivery Driver to Deliver Order and Track Delivery. Include an extend relationship between Place Order and Make Payment.

Paste your own description (or Terraform / docker-compose / SQL schema) into draft1 and get a diagram like this for your exact system.

What this diagram shows

A use case diagram models interactions between actors (users, systems, or external entities) and a system under study. It shows what the system does from the perspective of those who use it, without detailing how. Actors appear as stick figures or roles on the left and right; use cases appear as ovals in the centre, connected to actors by lines showing relationships. The boundary rectangle encloses all use cases belonging to the system. The diagram captures functional requirements and clarifies scope by showing which features exist and who interacts with them.

Key components

When to use it

Use case diagrams are most effective during requirements gathering and system design, particularly when you need to communicate functionality to stakeholders who are not technical. They work well for defining scope, identifying actors, and capturing what the system must do. Use them early in the project to gain alignment on features and boundaries before detailed design or implementation. Avoid them if you need to show how the system works internally or the sequence of steps within a single interaction; sequence or activity diagrams suit those purposes.

Common mistakes

Adapting it to your system

Start by identifying all actors: users, external systems, and roles that touch your system. List each interaction each actor needs to perform, then draw ovals for those interactions inside your system boundary. Connect actors to use cases with lines. If one use case always requires another (such as 'verify payment' whenever 'checkout' happens), use <<include>>. If behaviour is optional or triggered by a condition, use <<extend>>. Keep the diagram at a high level; if it grows beyond 15 use cases, split it into separate diagrams by module or subsystem to maintain clarity.

More templates

System Architecture Diagram

Generate a clear system architecture diagram online and export an editable draw.io file in seconds with AI.

Network Topology Diagram

Draw a network topology diagram instantly with AI and download it as an editable draw.io file for your documentation.

Aktivitätsdiagramm Für Eine Java-Methode Erstellen

Erstellen Sie ein UML-Aktivitätsdiagramm für Java-Methoden mit KI und exportieren Sie es als editierbare draw.io-Datei

Diagram Przypadków Użycia UML

Wygeneruj diagram przypadków użycia UML online za pomocą AI i pobierz edytowalny plik draw.io.

Cloud Architecture Diagram

Create a cloud architecture diagram with AI and export it instantly as an editable draw.io file.

Cloud Infrastructure Diagram

Generate a detailed cloud infrastructure diagram online using AI and export it as an editable draw.io diagram.

Business Process Flowchart With Decision Points

Build a business process flowchart with decision points using AI and download an editable draw.io file.