Data flow diagram: e-commerce (Level 0)
Level-0 DFD (context diagram) for an e-commerce ordering system with external entities and bidirectional data flows.
The prompt
Level 0 DFD (context diagram) for an e-commerce ordering system. External entities: Customer, Payment Gateway, Shipping Provider, Email Service, Tax Service. The system is shown as a single process labelled "Ordering System". Data flows in: order details from Customer, payment authorisation from Payment Gateway, shipping confirmation from Shipping Provider, calculated tax from Tax Service. Data flows out: order receipt to Customer, payment request to Payment Gateway, shipment request to Shipping Provider, confirmation email to Email Service. Mark trust boundaries between the Ordering System and each external entity. Annotate flows that carry PII or payment card data.
What it generates
A Level-0 DFD showing the system, external entities, every data flow that crosses the boundary, and trust boundaries — the foundation for STRIDE threat modelling.
When to use it
Whenever you need to scope a system for threat modelling, compliance, or analysis — Level-0 is the foundation every other DFD level builds on.
Generate this diagram in seconds
Copy the prompt above, sign in for free, and paste it into the generator.
Related software architecture templates
C4 System Context diagram
Level-1 C4 diagram showing the system, its users, and the external systems it depends on.
Sequence diagram: OAuth 2.0 flow
UML sequence diagram of the authorisation code flow with PKCE, including error handling alt fragments.
ER diagram: e-commerce data model
Entity-relationship diagram for an e-commerce platform with crow's foot notation, primary/foreign keys, and join tables.