FZ File Sequence Diagram Example
The reference example from the .fz file announcement: a text-first sequence diagram with two lanes, four nodes and one labeled message, stored as a portable .fz file.
Vibe-coding example: a cart lane and an AI lane, where the assistant analyses the shopper profile, asks for missing details and adds the suggested products to the cart.
Copy and paste the following FlowZap code into a project in your FlowZap account to see this template diagram.
User { # User
n1: circle label:"Start"
n2: rectangle label:"Sign up with email & interests"
n3: diamond label:"Vibe confirmed?"
n4: rectangle label:"Ask for more details"
n5: rectangle label:"Show default product list"
n6: circle label:"End"
n1.handle(right) -> n2.handle(left)
n2.handle(right) -> AI Recommender.n7.handle(left) [label="Submit details"]
AI Recommender.n7.handle(right) -> n3.handle(left) [label="Suggestions ready"]
n3.handle(right) -> AI Recommender.n8.handle(left) [label="Yes"]
n3.handle(bottom) -> n4.handle(top) [label="No"]
n4.handle(right) -> AI Recommender.n7.handle(left) [label="Refine"]
n4.handle(bottom) -> n5.handle(top) [label="Max retries: 2"]
n5.handle(right) -> Cart.n9.handle(left) [label="Proceed with defaults"]
}
AI Recommender { # AI Recommender
n7: rectangle label:"Analyze profile & suggest 3 products"
n8: rectangle label:"Prepare cart data"
n8.handle(right) -> Cart.n9.handle(left) [label="Add to cart"]
loop [retry up to 2 times] n7 n3 n4
}
Cart { # Cart
n9: rectangle label:"Auto-add products to cart"
n10: rectangle label:"Send welcome email"
n9.handle(right) -> n10.handle(left) [label="Email"]
n10.handle(right) -> User.n6.handle(left) [label="Complete"]
}
Install the MCP packagenpm install -g flowzap-mcpMCP documentation
The reference example from the .fz file announcement: a text-first sequence diagram with two lanes, four nodes and one labeled message, stored as a portable .fz file.
An n8n automation rendered as FlowZap Code: manual trigger, spreadsheet read, batch iteration, AI field mapping, PDF generation, email send, with success and error logging branches.
Compact order fulfillment diagram generated through the FlowZap MCP server, written with the shorthand syntax: sales validation with a validity gate, then fulfillment processing and shipping.
n8n as the central integration layer: one workflow decides whether an event is a product sync or an order, routes it to the right channel and closes the loop.
Product sync between platforms with an AI agent in the middle: field extraction, category mapping and schema normalization before the write-back returns 200 OK.