Mastering Agile Architecture: A Comprehensive Guide to C4 Supplementary Diagrams with VPasCode and AI

In the fast-paced world of Agile Enterprise Architecture (EA), clarity is currency. Teams often struggle with the “diagram paradox”: creating too much documentation that becomes outdated immediately, or too little that leaves critical architectural gaps. The solution lies in a hybrid approach that combines the structural rigor of the C4 Model with the dynamic capabilities of supplementary UML diagrams, all accelerated by modern tools like VPasCode and AI-assisted drafting.
This tutorial guides you through a strategic workflow for selecting, creating, and maintaining these architectural views. We will explore how to move beyond static structure to model time, behavior, and deployment, ensuring your documentation remains a living asset rather than a static burden.
The Strategic “Question-First” Approach
The most critical rule in modern architecture modeling is to start with the question, not the notation. Before opening any diagramming tool, you must identify the specific architectural concern you are trying to resolve. The C4 model provides a robust foundation for static structure, but it is not a panacea. To answer complex questions, you must supplement C4 with specific UML or specialized views.
When you are unsure which view to choose, refer to this strategic decision matrix based on the specific question you are trying to answer:
- Question: “How do several systems fit into an organizational or technical landscape?”
Answer: Choose the C4 System Landscape diagram. - Question: “Which system elements collaborate in a use case?”
Answer: Choose the C4 Dynamic diagram. - Question: “What messages pass between participants, and in what order?”
Answer: Choose the UML Sequence diagram. - Question: “What are the process steps, decisions, or parallel paths?”
Answer: Choose the UML Activity diagram. - Question: “What states can an entity enter, and what triggers transitions?”
Answer: Choose the UML State Machine diagram. - Question: “What are the important domain or code structures?”
Answer: Choose the UML Class diagram. - Question: “What data is persisted and how are records related?”
Answer: Choose the Entity-Relationship (ER) diagram. - Question: “Where does software run in a particular environment?”
Answer: Choose the C4 Deployment or UML Deployment diagram.
The Power of Diagrams as Code with VPasCode
In an Agile environment, diagrams must be versioned, editable, and integrated into the software development lifecycle. VPasCode, a browser-based “diagram-as-code” workspace from Visual Paradigm, is the ideal tool for this. It allows teams to treat architectural diagrams like source code—enabling syntax checking, collaboration, and AI-assisted drafting.
By using PlantUML syntax within VPasCode, you can define complex interactions, such as a dynamic sequence of a checkout process, with precision. Below is an example of how to define a dynamic view for an “Online Shop” scenario, explicitly connecting architectural elements like the Web App and Orders API.

@startuml
!include https://static.visual-paradigm.com/web/resources/plantuml-stdlib/themes/vp.puml
skinparam {
vpDiagramType CommunicationDiagram
nodesep 80
}
<style>
object {
MinimumWidth 80
}
</style>
left to right direction
title Online Shop — Place Order (Dynamic View)
' Object declarations (Declare each entity EXACTLY ONCE)
object "Customer" as Customer
object "Web App" as Web
object "Orders API" as Orders
object "Payment Adapter" as Payments
object "Orders DB" as DB
object "Payment Provider" as Provider 
When using VPasCode, you can leverage its AI features to draft initial content. However, it is crucial to treat AI output as a draft. The architecture team remains responsible for validating the model, ensuring that participants, relationships, and branches accurately reflect the actual system design.
Essential Supplementary Diagrams Explained
1. UML Sequence Diagram: Timing and Interaction
While the C4 Dynamic diagram is excellent for showing a high-level collaboration, it often lacks the granularity required to explain how data flows over time. The UML Sequence Diagram is your go-to when the reader needs to trace message order, request/response behavior, and synchronous interactions.
It excels at showing alternate paths. For instance, in an order fulfillment workflow, you might need to show the difference between a payment that is approved versus one that is declined. Sequence diagrams handle this alt and else logic beautifully.
2. UML Activity Diagram: Workflow Logic
If your question is about the process itself—specifically steps, decisions, and parallel paths—the UML Activity Diagram is the correct choice. Unlike a sequence diagram which focuses on objects, an activity diagram focuses on actions.
This is ideal for describing business processes (e.g., “Order Fulfilment”) without implying that every activity is a distinct software component. It allows you to visualize decision diamonds and merge points clearly, helping stakeholders understand the logic of the workflow.
3. UML State Machine: Entity Lifecycle
State machines are often misunderstood. They are not for processes involving many participants; they are for the lifecycle of a single entity. Use this diagram when rules about an entity’s permitted states matter, such as an Order, Subscription, or Job.
For example, an Order can only move from PendingPayment to Confirmed if the payment is approved. This diagram clearly maps the conditions required for state transitions, preventing ambiguity in business rules.
4. UML Class & ER Diagrams: Structure and Data
For deep dives into structure, you have two primary tools:
- UML Class Diagram: Use this to model domain concepts or code-level classes. It explains relationships like “contains,” “refers to,” or “places.”
- Entity-Relationship (ER) Diagram: Use this specifically when the question is about persisted data. It focuses on tables, primary keys (PK), foreign keys (FK), and data types (VARCHAR, TIMESTAMP).
Deployment and Landscape Views
Understanding where software runs is as important as understanding what it does. The C4 System Landscape provides a high-level view of multiple systems within an organizational scope, distinguishing between internal systems and external ones (like a Payment Provider or Identity Service).
For runtime placement, the Deployment Diagram maps software instances to nodes. In VPasCode, you can nest nodes to represent environments (e.g., Cloud Region -> Web Tier) and artifacts (e.g., Browser, Web App, Orders API). This is vital for DevOps and Operations teams to understand connectivity, such as an API communicating via HTTPS or SQL.
Review Checklist for Agile Teams
Before publishing any supplementary diagram, run it through this quick review checklist to ensure it adds value:
- Purpose: Does the title or surrounding text make the specific question clear?
- Scope: Is the system, environment, or scenario identified?
- Consistency: Do the names match the C4 views and project terminology?
- Abstraction: Is the level (domain vs. code vs. database) explicit?
- Readability: Can readers follow the flow without a dense tangle of elements?
- Maintenance: Is there a clear trigger for review and update?
By combining the structural clarity of C4 with the behavioral depth of UML, and leveraging the efficiency of tools like VPasCode, Agile EA teams can create architecture documentation that is accurate, maintainable, and truly useful.