Use Case Diagram Examples & Templates

Use case diagrams show the functional requirements of a system by illustrating actors (users) and their interactions with the system's use cases.

When to Use Use Case Diagrams

Use use case diagrams to capture functional requirements, communicate with stakeholders, document user stories, and plan system features.

Common Use Cases:

  • Requirements documentation
  • Feature planning
  • User story mapping
  • System scope definition
  • Stakeholder communication

Featured Use Case Diagram Examples

Explore 3 real-world use case diagram examples with detailed explanations and PlantUML source code.

E-commerce Recommendation EngineE-commerce Recommendation EngineE-commerce PlatformBrowse ProductsView RecommendationsGenerate PersonalizedSuggestionsAnalyze BrowsingHistoryAnalyze PurchaseHistoryRate a ProductTrack User BehaviorUpdate ProductCatalogCalculate SimilarityScoresFilter by AvailabilityCustomerSystemRecommendation AlgorithmCore algorithm that processesuser data to generatepersonalized recommendationsAnalyzes pages visited,time spent, search queries,and click patternsReviews past purchases,order frequency, seasonalpatterns, and price preferencesUser ratings directlyinfluence futurerecommendation qualityDisplays curated productsuggestions based onalgorithm outputinitiatesviewsprovides ratingmonitorsmaintainsensures availabilityexecutescomputes«include»«include»«include»«extend»«extend»«extend»«extend»

E-commerce Recommendation Engine

Use case diagram illustrating the complex interactions within an e-commerce recommendation system, showing how customer actions, system processes, and algorithmic intelligence work together to deliver personalized shopping experiences.

View Example
Supply Chain & Logistics: Real-Time Shipment TrackingSupply Chain & Logistics: Real-Time Shipment TrackingSupply Chain PlatformCreate ShipmentAssign to CarrierUpdate Shipment StatusMonitor ShipmentSend Status AlertConfirm DeliveryGenerate Tracking NumberRecord GPS LocationScan PackageCalculate ETAHandle ExceptionArchive ShipmentManufacturerLogistics CarrierRetailerTracking SystemManufacturer creates shipmentwith product details, destination,and delivery requirementsSystem automatically assignsshipment to optimal carrierbased on capacity and routesCarrier updates status atkey milestones: picked up,in transit, out for deliveryReal-time visibility for allstakeholders with live trackingand estimated delivery timesAutomated notifications sentfor delays, exceptions, orsuccessful deliveriesFinal confirmation closesthe shipment lifecycle andtriggers billing processesException handling for delays,damages, customs issues, ordelivery failuresinitiatesmonitors progressprovides updatesrecords locationscans at checkpointsreports issuestracks deliveryacknowledges receiptorchestrates assignmentgenerates identifierspredicts arrivalmaintains history«include»«include»«include»«include»«extend»«extend»«extend»«extend»«precedes»«precedes»«precedes»

Supply Chain & Logistics: Real-Time Shipment Tracking

Use case diagram modeling the complex interactions between different business entities in a modern supply chain, focusing on visibility and event-driven notifications for real-time shipment tracking.

View Example
DevOps: CI/CD Pipeline AutomationDevOps: CI/CD Pipeline AutomationCI/CD Pipeline PlatformPush CodeBuild ApplicationRun Automated TestsRun Unit TestsRun Integration TestsDeploy to StagingDeploy to ProductionTrigger PipelineGenerate Build ArtifactsRun Security ScansSend NotificationsRollback DeploymentApprove ReleaseMonitor DeploymentDeveloperCode Repository(GitHub)CI/CD System(Jenkins)Release ManagerDeveloper commits codechanges to version control,triggering the CI/CD pipelineWebhook automaticallytriggers pipeline executionon code push eventsAutomated compilation andpackaging of applicationcode into deployable artifactsComprehensive test suiteincluding unit, integration,and security testingAutomated deployment tostaging environment forfinal validation testingProduction deploymentrequires manual approvaland includes monitoringRelease Manager reviewsstaging results andapproves production releaseEmergency rollback capabilityfor failed productiondeploymentscommits changeswebhook triggerstatus updatesexecutes buildorchestrates testingautomates stagingperforms scanstracks statusprovides approvalauthorizes productioninitiates rollback«include»«include»«include»«include»«include»«extend»«extend»«extend»«extend»«extend»«extend»«extend»«precedes»«precedes»«precedes»«precedes»

DevOps: CI/CD Pipeline Automation

Use case diagram illustrating a comprehensive Continuous Integration/Continuous Deployment pipeline, showing how modern software development teams automate code integration, testing, and deployment processes.

View Example

How to Create Use Case Diagrams in PlantUML

With Plantdiagrams AI-powered editor, you can create professional use case diagrams in seconds. Simply describe what you want to diagram, and our AI will generate the PlantUML code for you.

1

Open the Editor

Start with our free online PlantUML editor - no installation required.

2

Describe Your Diagram

Use our AI assistant to generate use case diagram code from natural language.

3

Customize & Export

Edit the diagram with live preview, then export or share with your team.

Need More Examples?

Explore our full gallery of PlantUML diagram examples across all diagram types and industries.