Jules-OC commited on
Commit
2d47efe
·
verified ·
1 Parent(s): f5ee10e

Refresh the corpus: 242 -> 356 templates, 27 use cases, dataset card (part 2)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. architecture/architecture/observability-three-pillars-architecture/README.md +19 -0
  2. architecture/architecture/observability-three-pillars-architecture/workflow.fz +44 -0
  3. architecture/architecture/openclaw-dedicated-local-machine-architecture/README.md +19 -0
  4. architecture/architecture/openclaw-dedicated-local-machine-architecture/metadata.json +28 -0
  5. architecture/architecture/openclaw-dedicated-local-machine-architecture/workflow.fz +20 -0
  6. architecture/architecture/rate-limiter-architecture/README.md +19 -0
  7. architecture/architecture/rate-limiter-architecture/metadata.json +28 -0
  8. architecture/architecture/rate-limiter-architecture/workflow.fz +54 -0
  9. architecture/architecture/saga-choreography-pattern-architecture/README.md +19 -0
  10. architecture/architecture/saga-choreography-pattern-architecture/metadata.json +31 -0
  11. architecture/architecture/saga-choreography-pattern-architecture/workflow.fz +61 -0
  12. architecture/architecture/serverless-event-processing-architecture/README.md +19 -0
  13. architecture/architecture/serverless-event-processing-architecture/metadata.json +28 -0
  14. architecture/architecture/serverless-event-processing-architecture/workflow.fz +56 -0
  15. architecture/business-operations/webhook-integration-workflow/README.md +19 -0
  16. architecture/business-operations/webhook-integration-workflow/metadata.json +29 -0
  17. architecture/business-operations/webhook-integration-workflow/workflow.fz +55 -0
  18. architecture/patterns/event-driven-workflow/README.md +19 -0
  19. architecture/patterns/event-driven-workflow/metadata.json +26 -0
  20. architecture/patterns/event-driven-workflow/workflow.fz +47 -0
  21. billing/business-operations/dunning-flow-workflow/workflow.fz +42 -42
  22. billing/business-operations/payment-failure-workflow/README.md +1 -1
  23. billing/business-operations/payment-failure-workflow/metadata.json +7 -2
  24. billing/business-operations/payment-failure-workflow/workflow.fz +42 -42
  25. billing/business-operations/plan-downgrade-workflow/workflow.fz +54 -54
  26. billing/business-operations/plan-upgrade-workflow/workflow.fz +58 -58
  27. billing/business-operations/shopify-universal-commerce-protocol/README.md +1 -1
  28. billing/business-operations/shopify-universal-commerce-protocol/metadata.json +4 -2
  29. billing/business-operations/shopify-universal-commerce-protocol/workflow.fz +107 -107
  30. billing/business-operations/subscription-lifecycle-workflow/README.md +1 -1
  31. billing/business-operations/subscription-lifecycle-workflow/metadata.json +5 -2
  32. billing/business-operations/subscription-lifecycle-workflow/workflow.fz +52 -52
  33. billing/commerce-automation/agent-mediated-fiat-payment-workflow/README.md +19 -0
  34. billing/commerce-automation/agent-mediated-fiat-payment-workflow/metadata.json +28 -0
  35. billing/commerce-automation/agent-mediated-fiat-payment-workflow/workflow.fz +32 -0
  36. billing/commerce-automation/agent-to-agent-usdc-payment-workflow/README.md +19 -0
  37. billing/commerce-automation/agent-to-agent-usdc-payment-workflow/metadata.json +29 -0
  38. billing/commerce-automation/agent-to-agent-usdc-payment-workflow/workflow.fz +25 -0
  39. billing/commerce-automation/agentic-commerce-checkout-architecture/README.md +19 -0
  40. billing/commerce-automation/agentic-commerce-checkout-architecture/metadata.json +30 -0
  41. billing/commerce-automation/agentic-commerce-checkout-architecture/workflow.fz +61 -0
  42. billing/hr/conflict-resolution-workflow/workflow.fz +28 -28
  43. billing/logistics/returns-processing-workflow/workflow.fz +55 -55
  44. commerce-automation/commerce-automation/coinbase-trust-flow-onchain-settlement/README.md +19 -0
  45. commerce-automation/commerce-automation/coinbase-trust-flow-onchain-settlement/metadata.json +25 -0
  46. commerce-automation/commerce-automation/coinbase-trust-flow-onchain-settlement/workflow.fz +16 -0
  47. commerce-automation/commerce-automation/multi-platform-ecommerce-integration-hub/README.md +19 -0
  48. commerce-automation/commerce-automation/multi-platform-ecommerce-integration-hub/metadata.json +26 -0
  49. commerce-automation/commerce-automation/multi-platform-ecommerce-integration-hub/workflow.fz +25 -0
  50. commerce-automation/commerce-automation/shopify-river-brain-hands-decoupling-architecture/README.md +19 -0
architecture/architecture/observability-three-pillars-architecture/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Observability Three Pillars Architecture
2
+
3
+ An observability architecture diagram implementing the three pillars (metrics, traces, logs) with OpenTelemetry SDK instrumentation, OTLP collector pipeline, Prometheus, Jaeger, and Loki backends, Grafana dashboards, SLO/SLI tracking, and PagerDuty alerting integration. This template provides a complete observability stack reference showing how telemetry data flows from application instrumentation through collection, storage, visualization, and incident response. Essential for SRE teams building production monitoring infrastructure.
4
+
5
+ **Template ID:** `observability-three-pillars-architecture`
6
+ **Kind:** architecture
7
+ **Source domain:** Architecture
8
+ **Primary use case:** architecture
9
+ **Secondary use cases:** None
10
+ **Complexity:** 4/5
11
+ **Nodes:** 17
12
+ **Lanes:** 4
13
+ **Tags:** [observability, three-pillars, opentelemetry, prometheus, jaeger, loki, grafana, slo-sli, architecture-diagram]
14
+ **Source path:** ``
15
+ **Repo path:** `architecture/architecture/observability-three-pillars-architecture`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
architecture/architecture/observability-three-pillars-architecture/workflow.fz ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Application { # Application Services
2
+ n1: rectangle label:"Service A"
3
+ n2: rectangle label:"Service B"
4
+ n3: rectangle label:"Service C"
5
+ n4: rectangle label:"OpenTelemetry SDK"
6
+ n1.handle(bottom) -> n4.handle(top) [label="Instrument"]
7
+ n2.handle(bottom) -> n4.handle(top) [label="Instrument"]
8
+ n3.handle(bottom) -> n4.handle(top) [label="Instrument"]
9
+ n4.handle(bottom) -> Collector.n5.handle(top) [label="OTLP Export"]
10
+ }
11
+ Collector { # OpenTelemetry Collector
12
+ n5: rectangle label:"Receive Telemetry"
13
+ n6: rectangle label:"Process and Batch"
14
+ n7: rectangle label:"Export Metrics"
15
+ n8: rectangle label:"Export Traces"
16
+ n9: rectangle label:"Export Logs"
17
+ n5.handle(right) -> n6.handle(left) [label="Pipeline"]
18
+ n6.handle(right) -> n7.handle(left) [label="Metrics"]
19
+ n6.handle(bottom) -> n8.handle(top) [label="Traces"]
20
+ n6.handle(bottom) -> n9.handle(top) [label="Logs"]
21
+ n7.handle(bottom) -> Backends.n10.handle(top) [label="Prometheus"]
22
+ n8.handle(bottom) -> Backends.n11.handle(top) [label="Jaeger"]
23
+ n9.handle(bottom) -> Backends.n12.handle(top) [label="Loki"]
24
+ }
25
+ Backends { # Observability Backends
26
+ n10: rectangle label:"Prometheus (Metrics)"
27
+ n11: rectangle label:"Jaeger (Distributed Traces)"
28
+ n12: rectangle label:"Loki (Log Aggregation)"
29
+ n13: rectangle label:"Alertmanager"
30
+ n10.handle(right) -> n13.handle(left) [label="Alert Rules"]
31
+ n10.handle(bottom) -> Visualization.n14.handle(top) [label="PromQL"]
32
+ n11.handle(bottom) -> Visualization.n14.handle(top) [label="Trace ID"]
33
+ n12.handle(bottom) -> Visualization.n14.handle(top) [label="LogQL"]
34
+ }
35
+ Visualization { # Visualization & Alerting
36
+ n14: rectangle label:"Grafana Dashboard"
37
+ n15: rectangle label:"SLO/SLI Tracking"
38
+ n16: rectangle label:"Incident Response"
39
+ n17: rectangle label:"PagerDuty / Slack"
40
+ n14.handle(right) -> n15.handle(left) [label="SLO Burn Rate"]
41
+ n15.handle(right) -> n16.handle(left) [label="SLO Breach"]
42
+ n16.handle(right) -> n17.handle(left) [label="Alert"]
43
+ n13.handle(bottom) -> Visualization.n17.handle(top) [label="Fire Alert"]
44
+ }
architecture/architecture/openclaw-dedicated-local-machine-architecture/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # OpenClaw Dedicated Local Machine Architecture
2
+
3
+ OpenClaw architecture for a dedicated Mac Mini or homelab server with persistent workspace, agent state, and remote messaging access.
4
+
5
+ **Template ID:** `openclaw-dedicated-local-machine-architecture`
6
+ **Kind:** architecture
7
+ **Source domain:** Architecture
8
+ **Primary use case:** architecture
9
+ **Secondary use cases:** None
10
+ **Complexity:** 2/5
11
+ **Nodes:** 7
12
+ **Lanes:** 3
13
+ **Tags:** [OpenClaw, Mac Mini, Homelab, Dedicated Machine, Self-Hosted AI Agent, 24/7 AI Agent, Telegram, Local Server]
14
+ **Source path:** ``
15
+ **Repo path:** `architecture/architecture/openclaw-dedicated-local-machine-architecture`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
architecture/architecture/openclaw-dedicated-local-machine-architecture/metadata.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "openclaw-dedicated-local-machine-architecture",
3
+ "workflow_id": "openclaw-dedicated-local-machine-architecture",
4
+ "title": "OpenClaw Dedicated Local Machine Architecture",
5
+ "kind": "architecture",
6
+ "source_domain": "Architecture",
7
+ "primary_use_case": "architecture",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "architecture"
11
+ ],
12
+ "complexity": 2,
13
+ "num_nodes": 7,
14
+ "num_lanes": 3,
15
+ "tags": [
16
+ "OpenClaw",
17
+ "Mac Mini",
18
+ "Homelab",
19
+ "Dedicated Machine",
20
+ "Self-Hosted AI Agent",
21
+ "24/7 AI Agent",
22
+ "Telegram",
23
+ "Local Server"
24
+ ],
25
+ "description": "OpenClaw architecture for a dedicated Mac Mini or homelab server with persistent workspace, agent state, and remote messaging access.",
26
+ "source_path": "",
27
+ "repo_path": "architecture/architecture/openclaw-dedicated-local-machine-architecture"
28
+ }
architecture/architecture/openclaw-dedicated-local-machine-architecture/workflow.fz ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ User { # User (Phone / Laptop)
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Send Telegram message"
4
+ n1.handle(right) -> n2.handle(left)
5
+ n2.handle(bottom) -> MacMini.n3.handle(top) [label="LAN / Tailscale"]
6
+ }
7
+ MacMini { # Dedicated Mac Mini
8
+ n3: rectangle label:"OpenClaw Gateway"
9
+ n4: rectangle label:"Workspace"
10
+ n5: rectangle label:"Agent Memory + State"
11
+ n3.handle(right) -> n4.handle(left)
12
+ n4.handle(right) -> n5.handle(left)
13
+ n3.handle(bottom) -> LLM.n6.handle(top) [label="API Request"]
14
+ }
15
+ LLM { # Commercial LLM API
16
+ n6: rectangle label:"Claude Opus 4.5"
17
+ n7: rectangle label:"Generate response"
18
+ n6.handle(right) -> n7.handle(left)
19
+ n7.handle(top) -> MacMini.n3.handle(bottom) [label="Response"]
20
+ }
architecture/architecture/rate-limiter-architecture/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Rate Limiter Architecture
2
+
3
+ A rate limiter architecture diagram implementing the token bucket algorithm with Redis-backed distributed counters, sliding window logs, API key identification, rate limit headers, and multi-node synchronization for consistent enforcement. This template shows how to protect APIs from abuse and ensure fair usage across clients, with proper HTTP 429 responses and Retry-After headers. Essential for API platform teams building production-grade rate limiting infrastructure.
4
+
5
+ **Template ID:** `rate-limiter-architecture`
6
+ **Kind:** architecture
7
+ **Source domain:** Architecture
8
+ **Primary use case:** architecture
9
+ **Secondary use cases:** None
10
+ **Complexity:** 3/5
11
+ **Nodes:** 17
12
+ **Lanes:** 4
13
+ **Tags:** [rate-limiter, token-bucket, sliding-window, redis, api-protection, throttling, distributed-rate-limiting, architecture-diagram]
14
+ **Source path:** ``
15
+ **Repo path:** `architecture/architecture/rate-limiter-architecture`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
architecture/architecture/rate-limiter-architecture/metadata.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "rate-limiter-architecture",
3
+ "workflow_id": "rate-limiter-architecture",
4
+ "title": "Rate Limiter Architecture",
5
+ "kind": "architecture",
6
+ "source_domain": "Architecture",
7
+ "primary_use_case": "architecture",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "architecture"
11
+ ],
12
+ "complexity": 3,
13
+ "num_nodes": 17,
14
+ "num_lanes": 4,
15
+ "tags": [
16
+ "rate-limiter",
17
+ "token-bucket",
18
+ "sliding-window",
19
+ "redis",
20
+ "api-protection",
21
+ "throttling",
22
+ "distributed-rate-limiting",
23
+ "architecture-diagram"
24
+ ],
25
+ "description": "A rate limiter architecture diagram implementing the token bucket algorithm with Redis-backed distributed counters, sliding window logs, API key identification, rate limit headers, and multi-node synchronization for consistent enforcement. This template shows how to protect APIs from abuse and ensure fair usage across clients, with proper HTTP 429 responses and Retry-After headers. Essential for API platform teams building production-grade rate limiting infrastructure.",
26
+ "source_path": "",
27
+ "repo_path": "architecture/architecture/rate-limiter-architecture"
28
+ }
architecture/architecture/rate-limiter-architecture/workflow.fz ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Client { # Client
2
+ n1: circle label:"API Request"
3
+ n2: rectangle label:"Attach API Key"
4
+ n22: rectangle label:"Receive Response"
5
+ n23: circle label:"End"
6
+ n1.handle(right) -> n2.handle(left)
7
+ n2.handle(bottom) -> RateLimiter.n3.handle(top) [label="Request"]
8
+ n22.handle(right) -> n23.handle(left)
9
+ }
10
+ RateLimiter { # Rate Limiter (Token Bucket)
11
+ n3: rectangle label:"Extract Client Identity"
12
+ n4: rectangle label:"Lookup Rate Limit Config"
13
+ n5: rectangle label:"Check Token Bucket"
14
+ n9: rectangle label:"Receive Bucket Status"
15
+ n10: diamond label:"Tokens Available?"
16
+ n11: rectangle label:"Consume Token"
17
+ n12: rectangle label:"Return 429 Too Many Requests"
18
+ n13: rectangle label:"Add Rate Limit Headers"
19
+ n14: rectangle label:"Forward to Backend"
20
+ n19: rectangle label:"Receive Backend Response"
21
+ n20: rectangle label:"Forward Response to Client"
22
+ n21: rectangle label:"Send to Client"
23
+ n3.handle(right) -> n4.handle(left) [label="API Key / IP"]
24
+ n4.handle(right) -> n5.handle(left) [label="100 req/min"]
25
+ n5.handle(bottom) -> Store.n6.handle(top) [label="INCR + EXPIRE"]
26
+ n9.handle(right) -> n10.handle(left)
27
+ n10.handle(right) -> n11.handle(left) [label="Yes"]
28
+ n10.handle(bottom) -> n12.handle(top) [label="No"]
29
+ n11.handle(right) -> n13.handle(left) [label="Decrement"]
30
+ n13.handle(right) -> n14.handle(left) [label="X-RateLimit-Remaining"]
31
+ n12.handle(top) -> Client.n22.handle(bottom) [label="429"]
32
+ n14.handle(bottom) -> Backend.n15.handle(top) [label="Allowed"]
33
+ n19.handle(right) -> n20.handle(left)
34
+ n20.handle(right) -> n21.handle(left)
35
+ n21.handle(top) -> Client.n22.handle(bottom) [label="200"]
36
+ }
37
+ Backend { # Backend Service
38
+ n15: rectangle label:"Process Request"
39
+ n16: rectangle label:"Return Response"
40
+ n17: rectangle label:"Send to RateLimiter"
41
+ n18: rectangle label:"Forward Response"
42
+ n15.handle(right) -> n16.handle(left) [label="Execute"]
43
+ n16.handle(right) -> n17.handle(left)
44
+ n17.handle(right) -> n18.handle(left)
45
+ n18.handle(top) -> RateLimiter.n19.handle(bottom) [label="Backend Response"]
46
+ }
47
+ Store { # Rate Limit Store (Redis)
48
+ n6: rectangle label:"Redis Counter"
49
+ n7: rectangle label:"Sliding Window Log"
50
+ n8: rectangle label:"Return Bucket Status"
51
+ n6.handle(right) -> n7.handle(left) [label="Window Check"]
52
+ n7.handle(right) -> n8.handle(left)
53
+ n8.handle(top) -> RateLimiter.n9.handle(bottom) [label="Bucket Status"]
54
+ }
architecture/architecture/saga-choreography-pattern-architecture/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Saga Choreography Pattern Architecture
2
+
3
+ A saga choreography architecture diagram where Order, Payment, and Inventory services coordinate through domain events without a central orchestrator, with each service publishing and subscribing to events that drive the transaction forward or trigger compensation. This template models the decentralized saga approach where services autonomously react to events, reducing single points of failure at the cost of increased complexity in tracking saga state. Best for teams preferring service autonomy over centralized control.
4
+
5
+ **Template ID:** `saga-choreography-pattern-architecture`
6
+ **Kind:** architecture
7
+ **Source domain:** Architecture
8
+ **Primary use case:** architecture
9
+ **Secondary use cases:** patterns
10
+ **Complexity:** 4/5
11
+ **Nodes:** 18
12
+ **Lanes:** 5
13
+ **Tags:** [saga-choreography, event-driven-saga, decentralized, domain-events, compensation, autonomous-services, distributed-transaction, architecture-diagram]
14
+ **Source path:** ``
15
+ **Repo path:** `architecture/architecture/saga-choreography-pattern-architecture`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
architecture/architecture/saga-choreography-pattern-architecture/metadata.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "saga-choreography-pattern-architecture",
3
+ "workflow_id": "saga-choreography-pattern-architecture",
4
+ "title": "Saga Choreography Pattern Architecture",
5
+ "kind": "architecture",
6
+ "source_domain": "Architecture",
7
+ "primary_use_case": "architecture",
8
+ "secondary_use_cases": [
9
+ "patterns"
10
+ ],
11
+ "use_cases": [
12
+ "architecture",
13
+ "patterns"
14
+ ],
15
+ "complexity": 4,
16
+ "num_nodes": 18,
17
+ "num_lanes": 5,
18
+ "tags": [
19
+ "saga-choreography",
20
+ "event-driven-saga",
21
+ "decentralized",
22
+ "domain-events",
23
+ "compensation",
24
+ "autonomous-services",
25
+ "distributed-transaction",
26
+ "architecture-diagram"
27
+ ],
28
+ "description": "A saga choreography architecture diagram where Order, Payment, and Inventory services coordinate through domain events without a central orchestrator, with each service publishing and subscribing to events that drive the transaction forward or trigger compensation. This template models the decentralized saga approach where services autonomously react to events, reducing single points of failure at the cost of increased complexity in tracking saga state. Best for teams preferring service autonomy over centralized control.",
29
+ "source_path": "",
30
+ "repo_path": "architecture/architecture/saga-choreography-pattern-architecture"
31
+ }
architecture/architecture/saga-choreography-pattern-architecture/workflow.fz ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ OrderService { # Order Service
2
+ n1: circle label:"Place Order"
3
+ n2: rectangle label:"Create Pending Order"
4
+ n3: rectangle label:"Emit OrderCreated"
5
+ n19: rectangle label:"Receive Saga Result"
6
+ n20: diamond label:"Saga Outcome?"
7
+ n21: rectangle label:"Confirm Order"
8
+ n22: rectangle label:"Cancel Order"
9
+ n23: rectangle label:"Acknowledge to EventBus"
10
+ n25: rectangle label:"Send Saga Ack"
11
+ n1.handle(right) -> n2.handle(left)
12
+ n2.handle(right) -> n3.handle(left) [label="Pending"]
13
+ n3.handle(bottom) -> EventBus.n4.handle(top) [label="Publish"]
14
+ n19.handle(right) -> n20.handle(left)
15
+ n20.handle(right) -> n21.handle(left) [label="Success"]
16
+ n20.handle(bottom) -> n22.handle(top) [label="Failure"]
17
+ n21.handle(right) -> n23.handle(left)
18
+ n22.handle(right) -> n25.handle(left)
19
+ n23.handle(bottom) -> EventBus.n26.handle(top) [label="Success Ack"]
20
+ n25.handle(bottom) -> EventBus.n26.handle(top) [label="Failure Ack"]
21
+ }
22
+ EventBus { # Event Bus
23
+ n4: rectangle label:"OrderCreated Topic"
24
+ n10: rectangle label:"PaymentProcessed Topic"
25
+ n14: rectangle label:"PaymentFailed Topic"
26
+ n18: rectangle label:"InventoryReserved Topic"
27
+ n24: rectangle label:"Compensation Ack Received"
28
+ n26: rectangle label:"Saga Ack Received"
29
+ n4.handle(bottom) -> PaymentService.n5.handle(top) [label="Subscribe"]
30
+ n10.handle(bottom) -> InventoryService.n11.handle(top) [label="Subscribe"]
31
+ n14.handle(bottom) -> InventoryService.n15.handle(top) [label="Subscribe"]
32
+ n18.handle(top) -> OrderService.n19.handle(bottom) [label="Notify Success"]
33
+ n24.handle(right) -> n26.handle(left)
34
+ }
35
+ PaymentService { # Payment Service
36
+ n5: rectangle label:"Process Payment"
37
+ n6: diamond label:"Payment OK?"
38
+ n7: rectangle label:"Emit PaymentProcessed"
39
+ n8: rectangle label:"Emit PaymentFailed"
40
+ n9: rectangle label:"Publish Result"
41
+ n5.handle(right) -> n6.handle(left)
42
+ n6.handle(right) -> n7.handle(left) [label="Success"]
43
+ n6.handle(bottom) -> n8.handle(top) [label="Declined"]
44
+ n7.handle(right) -> n9.handle(left)
45
+ n9.handle(top) -> EventBus.n10.handle(bottom) [label="Publish"]
46
+ n8.handle(top) -> EventBus.n14.handle(bottom) [label="Publish"]
47
+ }
48
+ InventoryService { # Inventory Service
49
+ n11: rectangle label:"Reserve Inventory"
50
+ n12: rectangle label:"Emit InventoryReserved"
51
+ n13: rectangle label:"Publish Reserved"
52
+ n15: rectangle label:"Compensate: Release Stock"
53
+ n16: rectangle label:"Stock Released"
54
+ n17: rectangle label:"Compensation Complete"
55
+ n11.handle(right) -> n12.handle(left) [label="Reserved"]
56
+ n12.handle(right) -> n13.handle(left)
57
+ n13.handle(top) -> EventBus.n18.handle(bottom) [label="Publish"]
58
+ n15.handle(right) -> n16.handle(left) [label="Released"]
59
+ n16.handle(right) -> n17.handle(left)
60
+ n17.handle(top) -> EventBus.n24.handle(bottom) [label="Compensation Ack"]
61
+ }
architecture/architecture/serverless-event-processing-architecture/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Serverless Event Processing Architecture
2
+
3
+ A serverless event processing architecture diagram with S3, DynamoDB Streams, API Gateway, and CloudWatch triggers invoking Lambda functions, orchestrated by Step Functions with fan-out via SQS and dead letter queue error handling. This template shows how to build complex event processing pipelines entirely from managed serverless components, with no servers to provision or manage. Ideal for data processing workflows that need elastic scaling and built-in fault tolerance.
4
+
5
+ **Template ID:** `serverless-event-processing-architecture`
6
+ **Kind:** architecture
7
+ **Source domain:** Architecture
8
+ **Primary use case:** architecture
9
+ **Secondary use cases:** None
10
+ **Complexity:** 4/5
11
+ **Nodes:** 17
12
+ **Lanes:** 4
13
+ **Tags:** [serverless, event-processing, step-functions, lambda-triggers, sqs, s3-events, dynamodb-streams, architecture-diagram]
14
+ **Source path:** ``
15
+ **Repo path:** `architecture/architecture/serverless-event-processing-architecture`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
architecture/architecture/serverless-event-processing-architecture/metadata.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "serverless-event-processing-architecture",
3
+ "workflow_id": "serverless-event-processing-architecture",
4
+ "title": "Serverless Event Processing Architecture",
5
+ "kind": "architecture",
6
+ "source_domain": "Architecture",
7
+ "primary_use_case": "architecture",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "architecture"
11
+ ],
12
+ "complexity": 4,
13
+ "num_nodes": 17,
14
+ "num_lanes": 4,
15
+ "tags": [
16
+ "serverless",
17
+ "event-processing",
18
+ "step-functions",
19
+ "lambda-triggers",
20
+ "sqs",
21
+ "s3-events",
22
+ "dynamodb-streams",
23
+ "architecture-diagram"
24
+ ],
25
+ "description": "A serverless event processing architecture diagram with S3, DynamoDB Streams, API Gateway, and CloudWatch triggers invoking Lambda functions, orchestrated by Step Functions with fan-out via SQS and dead letter queue error handling. This template shows how to build complex event processing pipelines entirely from managed serverless components, with no servers to provision or manage. Ideal for data processing workflows that need elastic scaling and built-in fault tolerance.",
26
+ "source_path": "",
27
+ "repo_path": "architecture/architecture/serverless-event-processing-architecture"
28
+ }
architecture/architecture/serverless-event-processing-architecture/workflow.fz ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ EventSources { # Event Sources
2
+ n1: rectangle label:"S3 Bucket Upload"
3
+ n2: rectangle label:"DynamoDB Stream"
4
+ n3: rectangle label:"API Gateway Webhook"
5
+ n4: rectangle label:"CloudWatch Scheduled Rule"
6
+ n24: rectangle label:"Receive Processing Acks"
7
+ n1.handle(bottom) -> Triggers.n5.handle(top) [label="ObjectCreated"]
8
+ n2.handle(bottom) -> Triggers.n6.handle(top) [label="StreamRecord"]
9
+ n3.handle(bottom) -> Triggers.n7.handle(top) [label="POST Event"]
10
+ n4.handle(bottom) -> Triggers.n8.handle(top) [label="Cron"]
11
+ }
12
+ Triggers { # Lambda Triggers
13
+ n5: rectangle label:"Image Processing Lambda"
14
+ n6: rectangle label:"Data Sync Lambda"
15
+ n7: rectangle label:"Webhook Handler Lambda"
16
+ n8: rectangle label:"Batch Job Lambda"
17
+ n20: rectangle label:"Receive Processing Ack"
18
+ n21: rectangle label:"Aggregate Trigger Results"
19
+ n22: rectangle label:"Prepare Source Ack"
20
+ n23: rectangle label:"Send Source Ack"
21
+ n5.handle(bottom) -> Processing.n9.handle(top) [label="Process Image"]
22
+ n6.handle(bottom) -> Processing.n11.handle(top) [label="Sync Data"]
23
+ n7.handle(bottom) -> Processing.n9.handle(top) [label="Handle Event"]
24
+ n8.handle(bottom) -> Processing.n12.handle(top) [label="Run Batch"]
25
+ n20.handle(right) -> n21.handle(left)
26
+ n21.handle(right) -> n22.handle(left)
27
+ n22.handle(right) -> n23.handle(left)
28
+ n23.handle(top) -> EventSources.n24.handle(bottom) [label="Triggers Ack"]
29
+ }
30
+ Processing { # Processing Pipeline
31
+ n9: rectangle label:"Step Functions Orchestrator"
32
+ n10: diamond label:"Processing Complete?"
33
+ n11: rectangle label:"Fan-Out with SQS"
34
+ n12: rectangle label:"Transform and Load"
35
+ n13: rectangle label:"Error Handler Lambda"
36
+ n18: rectangle label:"Receive Storage Ack"
37
+ n19: rectangle label:"Send Processing Ack"
38
+ n9.handle(right) -> n10.handle(left)
39
+ n10.handle(right) -> n11.handle(left) [label="Success"]
40
+ n10.handle(bottom) -> n13.handle(top) [label="Failure"]
41
+ n11.handle(right) -> n12.handle(left) [label="Parallel"]
42
+ n13.handle(bottom) -> Storage.n17.handle(top) [label="DLQ"]
43
+ n12.handle(bottom) -> Storage.n14.handle(top) [label="Store"]
44
+ n18.handle(right) -> n19.handle(left)
45
+ n19.handle(top) -> Triggers.n20.handle(bottom) [label="Processing Ack"]
46
+ }
47
+ Storage { # Managed Storage
48
+ n14: rectangle label:"DynamoDB Table"
49
+ n15: rectangle label:"S3 Results Bucket"
50
+ n16: rectangle label:"SNS Notification Topic"
51
+ n17: rectangle label:"Return Storage Ack"
52
+ n14.handle(right) -> n15.handle(left) [label="Archive"]
53
+ n15.handle(right) -> n16.handle(left) [label="Notify"]
54
+ n16.handle(right) -> n17.handle(left)
55
+ n17.handle(top) -> Processing.n18.handle(bottom) [label="Storage Ack"]
56
+ }
architecture/business-operations/webhook-integration-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Webhook Integration Workflow
2
+
3
+ Webhook integration workflow with endpoint registration, payload signing, delivery attempt, retry with backoff, and delivery status tracking.
4
+
5
+ **Template ID:** `webhook-integration-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** business-operations
8
+ **Primary use case:** architecture
9
+ **Secondary use cases:** patterns
10
+ **Complexity:** 2/5
11
+ **Nodes:** 7
12
+ **Lanes:** 2
13
+ **Tags:** [webhook, event-driven, http-callback, integration, retry-logic, payload-signing]
14
+ **Source path:** `business-operations/webhook-integration`
15
+ **Repo path:** `architecture/business-operations/webhook-integration-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
architecture/business-operations/webhook-integration-workflow/metadata.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "webhook-integration-workflow",
3
+ "workflow_id": "webhook-integration",
4
+ "title": "Webhook Integration Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "business-operations",
7
+ "primary_use_case": "architecture",
8
+ "secondary_use_cases": [
9
+ "patterns"
10
+ ],
11
+ "use_cases": [
12
+ "architecture",
13
+ "patterns"
14
+ ],
15
+ "complexity": 2,
16
+ "num_nodes": 7,
17
+ "num_lanes": 2,
18
+ "tags": [
19
+ "webhook",
20
+ "event-driven",
21
+ "http-callback",
22
+ "integration",
23
+ "retry-logic",
24
+ "payload-signing"
25
+ ],
26
+ "description": "Webhook integration workflow with endpoint registration, payload signing, delivery attempt, retry with backoff, and delivery status tracking.",
27
+ "source_path": "business-operations/webhook-integration",
28
+ "repo_path": "architecture/business-operations/webhook-integration-workflow"
29
+ }
architecture/business-operations/webhook-integration-workflow/workflow.fz ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ExternalService { # External Service
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Event occurs"
4
+ n3: rectangle label:"Prepare webhook payload"
5
+ n4: rectangle label:"Send HTTP POST request"
6
+ n5: diamond label:"Response 2xx?"
7
+ n6: rectangle label:"Log successful delivery"
8
+ n7: circle label:"End"
9
+ n1.handle(right) -> n2.handle(left)
10
+ n2.handle(right) -> n3.handle(left)
11
+ n3.handle(right) -> n4.handle(left)
12
+ n4.handle(bottom) -> WebhookReceiver.n8.handle(top) [label="POST /webhook"]
13
+ n5.handle(right) -> n6.handle(left) [label="Yes"]
14
+ n5.handle(bottom) -> RetryQueue.n15.handle(top) [label="No"]
15
+ n6.handle(right) -> n7.handle(left)
16
+ }
17
+
18
+ WebhookReceiver { # Webhook Receiver
19
+ n8: rectangle label:"Validate signature header"
20
+ n9: diamond label:"Signature valid?"
21
+ n10: rectangle label:"Parse JSON payload"
22
+ n11: rectangle label:"Acknowledge with 200 OK"
23
+ n12: rectangle label:"Return 401 Unauthorized"
24
+ n13: rectangle label:"Queue for async processing"
25
+ n14: rectangle label:"Return 400 Bad Request"
26
+ n8.handle(right) -> n9.handle(left)
27
+ n9.handle(right) -> n10.handle(left) [label="Yes"]
28
+ n9.handle(bottom) -> n12.handle(top) [label="No"]
29
+ n10.handle(right) -> n11.handle(left)
30
+ n11.handle(right) -> n13.handle(left)
31
+ n12.handle(top) -> ExternalService.n5.handle(bottom) [label="401"]
32
+ n13.handle(bottom) -> EventProcessor.n18.handle(top) [label="Process"]
33
+ n14.handle(top) -> ExternalService.n5.handle(bottom) [label="400"]
34
+ }
35
+
36
+ RetryQueue { # Retry Queue
37
+ n15: rectangle label:"Add to retry queue"
38
+ n16: rectangle label:"Wait with backoff"
39
+ n17: rectangle label:"Retry delivery"
40
+ n15.handle(right) -> n16.handle(left)
41
+ n16.handle(right) -> n17.handle(left)
42
+ n17.handle(top) -> ExternalService.n4.handle(bottom) [label="Retry"]
43
+ loop [retry up to 5 times] n15 n16 n17
44
+ }
45
+
46
+ EventProcessor { # Event Processor
47
+ n18: rectangle label:"Deserialize event data"
48
+ n19: rectangle label:"Route to handler"
49
+ n20: rectangle label:"Execute business logic"
50
+ n21: rectangle label:"Update local state"
51
+ n18.handle(right) -> n19.handle(left)
52
+ n19.handle(right) -> n20.handle(left)
53
+ n20.handle(right) -> n21.handle(left)
54
+ n21.handle(top) -> ExternalService.n7.handle(bottom) [label="Complete"]
55
+ }
architecture/patterns/event-driven-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Event Driven Workflow
2
+
3
+ This workflow models reacting to incoming business events.
4
+
5
+ **Template ID:** `event-driven-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** patterns
8
+ **Primary use case:** architecture
9
+ **Secondary use cases:** patterns
10
+ **Complexity:** 3/5
11
+ **Nodes:** 10
12
+ **Lanes:** 3
13
+ **Tags:** [event, driven, patterns]
14
+ **Source path:** `patterns/event-driven`
15
+ **Repo path:** `architecture/patterns/event-driven-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
architecture/patterns/event-driven-workflow/metadata.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "event-driven-workflow",
3
+ "workflow_id": "event-driven",
4
+ "title": "Event Driven Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "patterns",
7
+ "primary_use_case": "architecture",
8
+ "secondary_use_cases": [
9
+ "patterns"
10
+ ],
11
+ "use_cases": [
12
+ "architecture",
13
+ "patterns"
14
+ ],
15
+ "complexity": 3,
16
+ "num_nodes": 10,
17
+ "num_lanes": 3,
18
+ "tags": [
19
+ "event",
20
+ "driven",
21
+ "patterns"
22
+ ],
23
+ "description": "This workflow models reacting to incoming business events.",
24
+ "source_path": "patterns/event-driven",
25
+ "repo_path": "architecture/patterns/event-driven-workflow"
26
+ }
architecture/patterns/event-driven-workflow/workflow.fz ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Producer { # Event Producer
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"User action occurs"
4
+ n3: rectangle label:"Create event payload"
5
+ n4: rectangle label:"Publish to message broker"
6
+ n5: circle label:"End"
7
+ n1.handle(right) -> n2.handle(left)
8
+ n2.handle(right) -> n3.handle(left)
9
+ n3.handle(bottom) -> MessageBroker.n6.handle(top) [label="Publish"]
10
+ n4.handle(right) -> n5.handle(left)
11
+ }
12
+ MessageBroker { # Message Broker
13
+ n6: rectangle label:"Receive event message"
14
+ n7: rectangle label:"Validate message schema"
15
+ n8: diamond label:"Valid schema?"
16
+ n9: rectangle label:"Route to topic partition"
17
+ n10: rectangle label:"Send to dead letter queue"
18
+ n11: rectangle label:"Acknowledge receipt"
19
+ n6.handle(right) -> n7.handle(left)
20
+ n7.handle(right) -> n8.handle(left)
21
+ n8.handle(right) -> n9.handle(left) [label="Yes"]
22
+ n8.handle(bottom) -> n10.handle(top) [label="No"]
23
+ n9.handle(right) -> n11.handle(left)
24
+ n10.handle(top) -> Producer.n5.handle(bottom) [label="DLQ"]
25
+ n11.handle(top) -> Producer.n4.handle(bottom) [label="ACK"]
26
+ n11.handle(bottom) -> Consumer.n12.handle(top) [label="Deliver"]
27
+ }
28
+ Consumer { # Event Consumer
29
+ n12: rectangle label:"Poll for new messages"
30
+ n13: rectangle label:"Deserialize event"
31
+ n14: diamond label:"Event type?"
32
+ n15: rectangle label:"Handle order created"
33
+ n16: rectangle label:"Handle payment received"
34
+ n17: rectangle label:"Handle user registered"
35
+ n18: rectangle label:"Process business logic"
36
+ n19: rectangle label:"Commit offset"
37
+ n12.handle(right) -> n13.handle(left)
38
+ n13.handle(right) -> n14.handle(left)
39
+ n14.handle(right) -> n15.handle(left) [label="order.created"]
40
+ n14.handle(bottom) -> n16.handle(top) [label="payment.received"]
41
+ n14.handle(left) -> n17.handle(top) [label="user.registered"]
42
+ n15.handle(bottom) -> n18.handle(top)
43
+ n16.handle(bottom) -> n18.handle(top)
44
+ n17.handle(bottom) -> n18.handle(top)
45
+ n18.handle(right) -> n19.handle(left)
46
+ n19.handle(top) -> Producer.n5.handle(bottom) [label="Complete"]
47
+ }
billing/business-operations/dunning-flow-workflow/workflow.fz CHANGED
@@ -1,43 +1,43 @@
1
- BillingSystem { # Billing System
2
- n1: circle label:"Start"
3
- n2: rectangle label:"Detect failed payment"
4
- n3: rectangle label:"Log payment failure"
5
- n4: diamond label:"First failure?"
6
- n5: rectangle label:"Schedule retry in 24h"
7
- n6: rectangle label:"Increment failure count"
8
- n1.handle(right) -> n2.handle(left)
9
- n2.handle(right) -> n3.handle(left)
10
- n3.handle(right) -> n4.handle(left)
11
- n4.handle(right) -> n5.handle(left) [label="Yes"]
12
- n4.handle(bottom) -> n6.handle(top) [label="No"]
13
- n5.handle(bottom) -> PaymentRetry.n7.handle(top) [label="Queue"]
14
- n6.handle(bottom) -> Notifications.n12.handle(top) [label="Escalate"]
15
- }
16
- PaymentRetry { # Payment Retry
17
- n7: rectangle label:"Attempt payment retry"
18
- n8: diamond label:"Payment successful?"
19
- n9: rectangle label:"Update subscription status"
20
- n10: rectangle label:"Mark retry failed"
21
- n11: circle label:"End"
22
- n7.handle(right) -> n8.handle(left)
23
- n8.handle(right) -> n9.handle(left) [label="Yes"]
24
- n8.handle(bottom) -> n10.handle(top) [label="No"]
25
- n9.handle(right) -> n11.handle(left)
26
- n10.handle(bottom) -> Notifications.n12.handle(top) [label="Notify"]
27
- }
28
- Notifications { # Notifications
29
- n12: rectangle label:"Send payment failed email"
30
- n13: diamond label:"Max retries reached?"
31
- n14: rectangle label:"Send final warning email"
32
- n15: rectangle label:"Schedule next retry"
33
- n16: rectangle label:"Suspend account"
34
- n17: rectangle label:"Send suspension notice"
35
- n12.handle(right) -> n13.handle(left)
36
- n13.handle(right) -> n14.handle(left) [label="Yes"]
37
- n13.handle(bottom) -> n15.handle(top) [label="No"]
38
- n14.handle(right) -> n16.handle(left)
39
- n15.handle(top) -> PaymentRetry.n7.handle(bottom) [label="Retry later"]
40
- n16.handle(right) -> n17.handle(left)
41
- n17.handle(top) -> PaymentRetry.n11.handle(bottom) [label="Complete"]
42
- loop [retry up to 4 times] n7 n8 n10 n12 n13 n15
43
  }
 
1
+ BillingSystem { # Billing System
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Detect failed payment"
4
+ n3: rectangle label:"Log payment failure"
5
+ n4: diamond label:"First failure?"
6
+ n5: rectangle label:"Schedule retry in 24h"
7
+ n6: rectangle label:"Increment failure count"
8
+ n1.handle(right) -> n2.handle(left)
9
+ n2.handle(right) -> n3.handle(left)
10
+ n3.handle(right) -> n4.handle(left)
11
+ n4.handle(right) -> n5.handle(left) [label="Yes"]
12
+ n4.handle(bottom) -> n6.handle(top) [label="No"]
13
+ n5.handle(bottom) -> PaymentRetry.n7.handle(top) [label="Queue"]
14
+ n6.handle(bottom) -> Notifications.n12.handle(top) [label="Escalate"]
15
+ }
16
+ PaymentRetry { # Payment Retry
17
+ n7: rectangle label:"Attempt payment retry"
18
+ n8: diamond label:"Payment successful?"
19
+ n9: rectangle label:"Update subscription status"
20
+ n10: rectangle label:"Mark retry failed"
21
+ n11: circle label:"End"
22
+ n7.handle(right) -> n8.handle(left)
23
+ n8.handle(right) -> n9.handle(left) [label="Yes"]
24
+ n8.handle(bottom) -> n10.handle(top) [label="No"]
25
+ n9.handle(right) -> n11.handle(left)
26
+ n10.handle(bottom) -> Notifications.n12.handle(top) [label="Notify"]
27
+ }
28
+ Notifications { # Notifications
29
+ n12: rectangle label:"Send payment failed email"
30
+ n13: diamond label:"Max retries reached?"
31
+ n14: rectangle label:"Send final warning email"
32
+ n15: rectangle label:"Schedule next retry"
33
+ n16: rectangle label:"Suspend account"
34
+ n17: rectangle label:"Send suspension notice"
35
+ n12.handle(right) -> n13.handle(left)
36
+ n13.handle(right) -> n14.handle(left) [label="Yes"]
37
+ n13.handle(bottom) -> n15.handle(top) [label="No"]
38
+ n14.handle(right) -> n16.handle(left)
39
+ n15.handle(top) -> PaymentRetry.n7.handle(bottom) [label="Retry later"]
40
+ n16.handle(right) -> n17.handle(left)
41
+ n17.handle(top) -> PaymentRetry.n11.handle(bottom) [label="Complete"]
42
+ loop [retry up to 4 times] n7 n8 n10 n12 n13 n15
43
  }
billing/business-operations/payment-failure-workflow/README.md CHANGED
@@ -6,7 +6,7 @@ Failed payment recovery workflow with smart retry scheduling, dunning email sequ
6
  **Kind:** workflow
7
  **Source domain:** business-operations
8
  **Primary use case:** billing
9
- **Secondary use cases:** None
10
  **Complexity:** 3/5
11
  **Nodes:** 7
12
  **Lanes:** 2
 
6
  **Kind:** workflow
7
  **Source domain:** business-operations
8
  **Primary use case:** billing
9
+ **Secondary use cases:** commerce-automation, patterns
10
  **Complexity:** 3/5
11
  **Nodes:** 7
12
  **Lanes:** 2
billing/business-operations/payment-failure-workflow/metadata.json CHANGED
@@ -5,9 +5,14 @@
5
  "kind": "workflow",
6
  "source_domain": "business-operations",
7
  "primary_use_case": "billing",
8
- "secondary_use_cases": [],
 
 
 
9
  "use_cases": [
10
- "billing"
 
 
11
  ],
12
  "complexity": 3,
13
  "num_nodes": 7,
 
5
  "kind": "workflow",
6
  "source_domain": "business-operations",
7
  "primary_use_case": "billing",
8
+ "secondary_use_cases": [
9
+ "commerce-automation",
10
+ "patterns"
11
+ ],
12
  "use_cases": [
13
+ "billing",
14
+ "commerce-automation",
15
+ "patterns"
16
  ],
17
  "complexity": 3,
18
  "num_nodes": 7,
billing/business-operations/payment-failure-workflow/workflow.fz CHANGED
@@ -1,43 +1,43 @@
1
- PaymentGateway { # Payment Gateway
2
- n1: circle label:"Start"
3
- n2: rectangle label:"Receive payment request"
4
- n3: diamond label:"Card valid?"
5
- n4: rectangle label:"Attempt charge"
6
- n5: diamond label:"Charge successful?"
7
- n6: rectangle label:"Return success response"
8
- n7: rectangle label:"Log failure reason"
9
- n1.handle(right) -> n2.handle(left)
10
- n2.handle(right) -> n3.handle(left)
11
- n3.handle(right) -> n4.handle(left) [label="Yes"]
12
- n3.handle(bottom) -> n7.handle(top) [label="No - Invalid"]
13
- n4.handle(right) -> n5.handle(left)
14
- n5.handle(right) -> n6.handle(left) [label="Yes"]
15
- n5.handle(bottom) -> RetryEngine.n8.handle(top) [label="No - Declined"]
16
- n6.handle(bottom) -> App.n15.handle(top) [label="Confirmed"]
17
- n7.handle(bottom) -> App.n16.handle(top) [label="Card error"]
18
- }
19
- RetryEngine { # Retry Engine
20
- n8: diamond label:"Retries remaining?"
21
- n9: rectangle label:"Wait with exponential backoff"
22
- n10: rectangle label:"Retry payment"
23
- n11: rectangle label:"Mark as failed"
24
- n8.handle(right) -> n9.handle(left) [label="Yes"]
25
- n8.handle(bottom) -> n11.handle(top) [label="No"]
26
- n9.handle(right) -> n10.handle(left)
27
- n10.handle(top) -> PaymentGateway.n4.handle(bottom) [label="Retry"]
28
- n11.handle(bottom) -> App.n16.handle(top) [label="Max retries"]
29
- loop [retry up to 3 times] n8 n9 n10
30
- }
31
- App { # Application
32
- n12: rectangle label:"Update order status"
33
- n13: rectangle label:"Send confirmation email"
34
- n14: circle label:"End"
35
- n15: rectangle label:"Mark payment complete"
36
- n16: rectangle label:"Notify customer of failure"
37
- n17: rectangle label:"Offer alternative payment"
38
- n15.handle(right) -> n12.handle(left)
39
- n12.handle(right) -> n13.handle(left)
40
- n13.handle(right) -> n14.handle(left)
41
- n16.handle(right) -> n17.handle(left)
42
- n17.handle(right) -> n14.handle(top)
43
  }
 
1
+ PaymentGateway { # Payment Gateway
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Receive payment request"
4
+ n3: diamond label:"Card valid?"
5
+ n4: rectangle label:"Attempt charge"
6
+ n5: diamond label:"Charge successful?"
7
+ n6: rectangle label:"Return success response"
8
+ n7: rectangle label:"Log failure reason"
9
+ n1.handle(right) -> n2.handle(left)
10
+ n2.handle(right) -> n3.handle(left)
11
+ n3.handle(right) -> n4.handle(left) [label="Yes"]
12
+ n3.handle(bottom) -> n7.handle(top) [label="No - Invalid"]
13
+ n4.handle(right) -> n5.handle(left)
14
+ n5.handle(right) -> n6.handle(left) [label="Yes"]
15
+ n5.handle(bottom) -> RetryEngine.n8.handle(top) [label="No - Declined"]
16
+ n6.handle(bottom) -> App.n15.handle(top) [label="Confirmed"]
17
+ n7.handle(bottom) -> App.n16.handle(top) [label="Card error"]
18
+ }
19
+ RetryEngine { # Retry Engine
20
+ n8: diamond label:"Retries remaining?"
21
+ n9: rectangle label:"Wait with exponential backoff"
22
+ n10: rectangle label:"Retry payment"
23
+ n11: rectangle label:"Mark as failed"
24
+ n8.handle(right) -> n9.handle(left) [label="Yes"]
25
+ n8.handle(bottom) -> n11.handle(top) [label="No"]
26
+ n9.handle(right) -> n10.handle(left)
27
+ n10.handle(top) -> PaymentGateway.n4.handle(bottom) [label="Retry"]
28
+ n11.handle(bottom) -> App.n16.handle(top) [label="Max retries"]
29
+ loop [retry up to 3 times] n8 n9 n10
30
+ }
31
+ App { # Application
32
+ n12: rectangle label:"Update order status"
33
+ n13: rectangle label:"Send confirmation email"
34
+ n14: circle label:"End"
35
+ n15: rectangle label:"Mark payment complete"
36
+ n16: rectangle label:"Notify customer of failure"
37
+ n17: rectangle label:"Offer alternative payment"
38
+ n15.handle(right) -> n12.handle(left)
39
+ n12.handle(right) -> n13.handle(left)
40
+ n13.handle(right) -> n14.handle(left)
41
+ n16.handle(right) -> n17.handle(left)
42
+ n17.handle(right) -> n14.handle(top)
43
  }
billing/business-operations/plan-downgrade-workflow/workflow.fz CHANGED
@@ -1,55 +1,55 @@
1
- Customer { # Customer
2
- n1: circle label:"Start"
3
- n2: rectangle label:"Request plan downgrade"
4
- n3: rectangle label:"Review feature changes"
5
- n4: diamond label:"Confirm downgrade?"
6
- n5: rectangle label:"Receive downgrade confirmation"
7
- n6: circle label:"End"
8
- n1.handle(right) -> n2.handle(left)
9
- n2.handle(bottom) -> RetentionFlow.n7.handle(top) [label="Process request"]
10
- n3.handle(right) -> n4.handle(left)
11
- n4.handle(right) -> n6.handle(left) [label="No - Keep plan"]
12
- n4.handle(bottom) -> Billing.n14.handle(top) [label="Yes"]
13
- n5.handle(right) -> n6.handle(left)
14
- }
15
- RetentionFlow { # Retention Flow
16
- n7: rectangle label:"Check usage patterns"
17
- n8: diamond label:"Heavy feature user?"
18
- n9: rectangle label:"Offer discount to stay"
19
- n10: rectangle label:"Show feature comparison"
20
- n11: diamond label:"Accept offer?"
21
- n12: rectangle label:"Apply retention discount"
22
- n13: rectangle label:"Continue to downgrade"
23
- n7.handle(right) -> n8.handle(left)
24
- n8.handle(right) -> n9.handle(left) [label="Yes"]
25
- n8.handle(bottom) -> n10.handle(top) [label="No"]
26
- n9.handle(right) -> n11.handle(left)
27
- n10.handle(top) -> Customer.n3.handle(bottom) [label="Review"]
28
- n11.handle(right) -> n12.handle(left) [label="Yes"]
29
- n11.handle(bottom) -> n13.handle(top) [label="No"]
30
- n12.handle(top) -> Customer.n6.handle(bottom) [label="Retained"]
31
- n13.handle(top) -> Customer.n3.handle(bottom) [label="Proceed"]
32
- }
33
- Billing { # Billing System
34
- n14: rectangle label:"Calculate credit balance"
35
- n15: rectangle label:"Schedule plan change"
36
- n16: diamond label:"Immediate or end of period?"
37
- n17: rectangle label:"Apply immediately"
38
- n18: rectangle label:"Queue for period end"
39
- n19: rectangle label:"Issue prorated credit"
40
- n14.handle(right) -> n15.handle(left)
41
- n15.handle(right) -> n16.handle(left)
42
- n16.handle(right) -> n17.handle(left) [label="Immediate"]
43
- n16.handle(bottom) -> n18.handle(top) [label="Period end"]
44
- n17.handle(right) -> n19.handle(left)
45
- n18.handle(bottom) -> Provisioning.n20.handle(top) [label="Scheduled"]
46
- n19.handle(bottom) -> Provisioning.n20.handle(top) [label="Process"]
47
- }
48
- Provisioning { # Feature Provisioning
49
- n20: rectangle label:"Disable premium features"
50
- n21: rectangle label:"Update usage limits"
51
- n22: rectangle label:"Send downgrade email"
52
- n20.handle(right) -> n21.handle(left)
53
- n21.handle(right) -> n22.handle(left)
54
- n22.handle(top) -> Customer.n5.handle(bottom) [label="Complete"]
55
  }
 
1
+ Customer { # Customer
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Request plan downgrade"
4
+ n3: rectangle label:"Review feature changes"
5
+ n4: diamond label:"Confirm downgrade?"
6
+ n5: rectangle label:"Receive downgrade confirmation"
7
+ n6: circle label:"End"
8
+ n1.handle(right) -> n2.handle(left)
9
+ n2.handle(bottom) -> RetentionFlow.n7.handle(top) [label="Process request"]
10
+ n3.handle(right) -> n4.handle(left)
11
+ n4.handle(right) -> n6.handle(left) [label="No - Keep plan"]
12
+ n4.handle(bottom) -> Billing.n14.handle(top) [label="Yes"]
13
+ n5.handle(right) -> n6.handle(left)
14
+ }
15
+ RetentionFlow { # Retention Flow
16
+ n7: rectangle label:"Check usage patterns"
17
+ n8: diamond label:"Heavy feature user?"
18
+ n9: rectangle label:"Offer discount to stay"
19
+ n10: rectangle label:"Show feature comparison"
20
+ n11: diamond label:"Accept offer?"
21
+ n12: rectangle label:"Apply retention discount"
22
+ n13: rectangle label:"Continue to downgrade"
23
+ n7.handle(right) -> n8.handle(left)
24
+ n8.handle(right) -> n9.handle(left) [label="Yes"]
25
+ n8.handle(bottom) -> n10.handle(top) [label="No"]
26
+ n9.handle(right) -> n11.handle(left)
27
+ n10.handle(top) -> Customer.n3.handle(bottom) [label="Review"]
28
+ n11.handle(right) -> n12.handle(left) [label="Yes"]
29
+ n11.handle(bottom) -> n13.handle(top) [label="No"]
30
+ n12.handle(top) -> Customer.n6.handle(bottom) [label="Retained"]
31
+ n13.handle(top) -> Customer.n3.handle(bottom) [label="Proceed"]
32
+ }
33
+ Billing { # Billing System
34
+ n14: rectangle label:"Calculate credit balance"
35
+ n15: rectangle label:"Schedule plan change"
36
+ n16: diamond label:"Immediate or end of period?"
37
+ n17: rectangle label:"Apply immediately"
38
+ n18: rectangle label:"Queue for period end"
39
+ n19: rectangle label:"Issue prorated credit"
40
+ n14.handle(right) -> n15.handle(left)
41
+ n15.handle(right) -> n16.handle(left)
42
+ n16.handle(right) -> n17.handle(left) [label="Immediate"]
43
+ n16.handle(bottom) -> n18.handle(top) [label="Period end"]
44
+ n17.handle(right) -> n19.handle(left)
45
+ n18.handle(bottom) -> Provisioning.n20.handle(top) [label="Scheduled"]
46
+ n19.handle(bottom) -> Provisioning.n20.handle(top) [label="Process"]
47
+ }
48
+ Provisioning { # Feature Provisioning
49
+ n20: rectangle label:"Disable premium features"
50
+ n21: rectangle label:"Update usage limits"
51
+ n22: rectangle label:"Send downgrade email"
52
+ n20.handle(right) -> n21.handle(left)
53
+ n21.handle(right) -> n22.handle(left)
54
+ n22.handle(top) -> Customer.n5.handle(bottom) [label="Complete"]
55
  }
billing/business-operations/plan-upgrade-workflow/workflow.fz CHANGED
@@ -1,59 +1,59 @@
1
- Customer { # Customer
2
- n1: circle label:"Start"
3
- n2: rectangle label:"Select new plan tier"
4
- n3: rectangle label:"Review price difference"
5
- n4: rectangle label:"Enter payment details"
6
- n5: rectangle label:"Receive upgrade confirmation"
7
- n6: circle label:"End"
8
-
9
- n1.handle(right) -> n2.handle(left)
10
- n2.handle(bottom) -> PricingEngine.n7.handle(top) [label="Calculate"]
11
- n3.handle(right) -> n4.handle(left)
12
- n4.handle(bottom) -> Billing.n12.handle(top) [label="Process payment"]
13
- n5.handle(right) -> n6.handle(left)
14
- }
15
-
16
- PricingEngine { # Pricing Engine
17
- n7: rectangle label:"Fetch current subscription"
18
- n8: rectangle label:"Calculate prorated amount"
19
- n9: diamond label:"Credit balance available?"
20
- n10: rectangle label:"Apply credit to upgrade"
21
- n11: rectangle label:"Show full price"
22
-
23
- n7.handle(right) -> n8.handle(left)
24
- n8.handle(right) -> n9.handle(left)
25
- n9.handle(right) -> n10.handle(left) [label="Yes"]
26
- n9.handle(bottom) -> n11.handle(top) [label="No"]
27
- n10.handle(top) -> Customer.n3.handle(bottom) [label="Price ready"]
28
- n11.handle(top) -> Customer.n3.handle(bottom) [label="Price ready"]
29
- }
30
-
31
- Billing { # Billing System
32
- n12: rectangle label:"Validate payment method"
33
- n13: diamond label:"Payment valid?"
34
- n14: rectangle label:"Charge prorated amount"
35
- n15: rectangle label:"Return payment error"
36
- n16: diamond label:"Charge successful?"
37
- n17: rectangle label:"Update subscription tier"
38
- n18: rectangle label:"Log failed charge"
39
-
40
- n12.handle(right) -> n13.handle(left)
41
- n13.handle(right) -> n14.handle(left) [label="Yes"]
42
- n13.handle(bottom) -> n15.handle(top) [label="No"]
43
- n14.handle(right) -> n16.handle(left)
44
- n15.handle(top) -> Customer.n4.handle(bottom) [label="Try again"]
45
- n16.handle(right) -> n17.handle(left) [label="Yes"]
46
- n16.handle(bottom) -> n18.handle(top) [label="No"]
47
- n17.handle(bottom) -> Provisioning.n19.handle(top) [label="Activate"]
48
- n18.handle(top) -> Customer.n4.handle(bottom) [label="Retry"]
49
- }
50
-
51
- Provisioning { # Feature Provisioning
52
- n19: rectangle label:"Enable premium features"
53
- n20: rectangle label:"Update usage limits"
54
- n21: rectangle label:"Send upgrade email"
55
-
56
- n19.handle(right) -> n20.handle(left)
57
- n20.handle(right) -> n21.handle(left)
58
- n21.handle(top) -> Customer.n5.handle(bottom) [label="Complete"]
59
  }
 
1
+ Customer { # Customer
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Select new plan tier"
4
+ n3: rectangle label:"Review price difference"
5
+ n4: rectangle label:"Enter payment details"
6
+ n5: rectangle label:"Receive upgrade confirmation"
7
+ n6: circle label:"End"
8
+
9
+ n1.handle(right) -> n2.handle(left)
10
+ n2.handle(bottom) -> PricingEngine.n7.handle(top) [label="Calculate"]
11
+ n3.handle(right) -> n4.handle(left)
12
+ n4.handle(bottom) -> Billing.n12.handle(top) [label="Process payment"]
13
+ n5.handle(right) -> n6.handle(left)
14
+ }
15
+
16
+ PricingEngine { # Pricing Engine
17
+ n7: rectangle label:"Fetch current subscription"
18
+ n8: rectangle label:"Calculate prorated amount"
19
+ n9: diamond label:"Credit balance available?"
20
+ n10: rectangle label:"Apply credit to upgrade"
21
+ n11: rectangle label:"Show full price"
22
+
23
+ n7.handle(right) -> n8.handle(left)
24
+ n8.handle(right) -> n9.handle(left)
25
+ n9.handle(right) -> n10.handle(left) [label="Yes"]
26
+ n9.handle(bottom) -> n11.handle(top) [label="No"]
27
+ n10.handle(top) -> Customer.n3.handle(bottom) [label="Price ready"]
28
+ n11.handle(top) -> Customer.n3.handle(bottom) [label="Price ready"]
29
+ }
30
+
31
+ Billing { # Billing System
32
+ n12: rectangle label:"Validate payment method"
33
+ n13: diamond label:"Payment valid?"
34
+ n14: rectangle label:"Charge prorated amount"
35
+ n15: rectangle label:"Return payment error"
36
+ n16: diamond label:"Charge successful?"
37
+ n17: rectangle label:"Update subscription tier"
38
+ n18: rectangle label:"Log failed charge"
39
+
40
+ n12.handle(right) -> n13.handle(left)
41
+ n13.handle(right) -> n14.handle(left) [label="Yes"]
42
+ n13.handle(bottom) -> n15.handle(top) [label="No"]
43
+ n14.handle(right) -> n16.handle(left)
44
+ n15.handle(top) -> Customer.n4.handle(bottom) [label="Try again"]
45
+ n16.handle(right) -> n17.handle(left) [label="Yes"]
46
+ n16.handle(bottom) -> n18.handle(top) [label="No"]
47
+ n17.handle(bottom) -> Provisioning.n19.handle(top) [label="Activate"]
48
+ n18.handle(top) -> Customer.n4.handle(bottom) [label="Retry"]
49
+ }
50
+
51
+ Provisioning { # Feature Provisioning
52
+ n19: rectangle label:"Enable premium features"
53
+ n20: rectangle label:"Update usage limits"
54
+ n21: rectangle label:"Send upgrade email"
55
+
56
+ n19.handle(right) -> n20.handle(left)
57
+ n20.handle(right) -> n21.handle(left)
58
+ n21.handle(top) -> Customer.n5.handle(bottom) [label="Complete"]
59
  }
billing/business-operations/shopify-universal-commerce-protocol/README.md CHANGED
@@ -6,7 +6,7 @@ End-to-end agentic commerce workflow showing how an AI assistant (ChatGPT) orche
6
  **Kind:** workflow
7
  **Source domain:** business-operations
8
  **Primary use case:** billing
9
- **Secondary use cases:** agentic
10
  **Complexity:** 4/5
11
  **Nodes:** 47
12
  **Lanes:** 5
 
6
  **Kind:** workflow
7
  **Source domain:** business-operations
8
  **Primary use case:** billing
9
+ **Secondary use cases:** agentic, commerce-automation
10
  **Complexity:** 4/5
11
  **Nodes:** 47
12
  **Lanes:** 5
billing/business-operations/shopify-universal-commerce-protocol/metadata.json CHANGED
@@ -6,11 +6,13 @@
6
  "source_domain": "business-operations",
7
  "primary_use_case": "billing",
8
  "secondary_use_cases": [
9
- "agentic"
 
10
  ],
11
  "use_cases": [
12
  "billing",
13
- "agentic"
 
14
  ],
15
  "complexity": 4,
16
  "num_nodes": 47,
 
6
  "source_domain": "business-operations",
7
  "primary_use_case": "billing",
8
  "secondary_use_cases": [
9
+ "agentic",
10
+ "commerce-automation"
11
  ],
12
  "use_cases": [
13
  "billing",
14
+ "agentic",
15
+ "commerce-automation"
16
  ],
17
  "complexity": 4,
18
  "num_nodes": 47,
billing/business-operations/shopify-universal-commerce-protocol/workflow.fz CHANGED
@@ -1,107 +1,107 @@
1
- HumanShopper { # Human Shopper
2
- n1: circle label:"Start: open ChatGPT"
3
- n2: rectangle label:"Ask for a product"
4
- n14: rectangle label:"Review recommendations"
5
- n15: rectangle label:"Choose a product"
6
- n24: rectangle label:"Provide address & prefs"
7
- n33: rectangle label:"Confirm payment"
8
- n47: circle label:"Order confirmed"
9
- n1.handle(right) -> n2.handle(left)
10
- n2.handle(right) -> ChatGPTAssistant.n3.handle(left) [label="Product request"]
11
- n14.handle(right) -> n15.handle(left)
12
- n15.handle(right) -> ChatGPTAssistant.n16.handle(left) [label="Selected product"]
13
- n24.handle(right) -> ChatGPTAssistant.n25.handle(left) [label="Address & prefs"]
14
- n33.handle(right) -> ChatGPTAssistant.n34.handle(left) [label="Payment confirmed"]
15
- }
16
-
17
- ChatGPTAssistant { # ChatGPT AI Assistant
18
- n3: rectangle label:"Receive request & interpret intent"
19
- n4: rectangle label:"Build structured search query"
20
- n5: rectangle label:"Search via UCP gateway"
21
- n11: rectangle label:"Receive UCP offers"
22
- n12: rectangle label:"Rank & present recommendations"
23
- n13: rectangle label:"Send recommendations to shopper"
24
- n16: rectangle label:"Receive product selection"
25
- n17: rectangle label:"Create checkout session via UCP"
26
- n21: rectangle label:"Receive required checkout fields"
27
- n22: rectangle label:"Ask shopper for missing info"
28
- n23: rectangle label:"(wait for shopper)"
29
- n25: rectangle label:"Receive shopper info"
30
- n26: rectangle label:"Submit buyer details via UCP"
31
- n30: rectangle label:"Receive final order summary"
32
- n31: rectangle label:"Ask shopper to confirm payment"
33
- n32: rectangle label:"(wait for confirmation)"
34
- n34: rectangle label:"Receive payment confirmation"
35
- n35: rectangle label:"Send payment intent via UCP"
36
- n44: rectangle label:"Receive final order status"
37
- n45: rectangle label:"Display confirmation"
38
- n46: rectangle label:"(notify shopper)"
39
- n3.handle(right) -> n4.handle(left)
40
- n4.handle(right) -> n5.handle(left)
41
- n5.handle(right) -> ShopifyUCPGateway.n6.handle(left) [label="Catalog search"]
42
- n11.handle(right) -> n12.handle(left)
43
- n12.handle(right) -> n13.handle(left)
44
- n13.handle(left) -> HumanShopper.n14.handle(right) [label="Recommendations"]
45
- n16.handle(right) -> n17.handle(left)
46
- n17.handle(right) -> ShopifyUCPGateway.n18.handle(left) [label="Create checkout"]
47
- n21.handle(right) -> n22.handle(left)
48
- n22.handle(right) -> n23.handle(left)
49
- n23.handle(left) -> HumanShopper.n24.handle(right) [label="Request address & prefs"]
50
- n25.handle(right) -> n26.handle(left)
51
- n26.handle(right) -> ShopifyUCPGateway.n27.handle(left) [label="Buyer details"]
52
- n30.handle(right) -> n31.handle(left)
53
- n31.handle(right) -> n32.handle(left)
54
- n32.handle(left) -> HumanShopper.n33.handle(right) [label="Confirm payment?"]
55
- n34.handle(right) -> n35.handle(left)
56
- n35.handle(right) -> ShopifyUCPGateway.n36.handle(left) [label="Payment intent"]
57
- n44.handle(right) -> n45.handle(left)
58
- n45.handle(right) -> n46.handle(left)
59
- n46.handle(left) -> HumanShopper.n47.handle(right) [label="Order confirmed"]
60
- }
61
-
62
- ShopifyUCPGateway { # Shopify UCP Gateway
63
- n6: rectangle label:"Normalize search request"
64
- n7: rectangle label:"Query Shopify Store catalog"
65
- n10: rectangle label:"Assemble & return UCP offers"
66
- n18: rectangle label:"Create checkout session"
67
- n19: rectangle label:"Initialize checkout with Store"
68
- n20: rectangle label:"Return required fields"
69
- n27: rectangle label:"Update checkout with buyer data"
70
- n28: rectangle label:"Recalculate totals via Store"
71
- n29: rectangle label:"Return order summary"
72
- n36: rectangle label:"Forward payment authorization"
73
- n38: rectangle label:"Receive payment result"
74
- n39: rectangle label:"Create order in Store"
75
- n42: rectangle label:"Receive order confirmation"
76
- n43: rectangle label:"Return final order status"
77
- n6.handle(right) -> n7.handle(left)
78
- n7.handle(right) -> ShopifyStoreCatalog.n8.handle(left) [label="Catalog query"]
79
- n10.handle(left) -> ChatGPTAssistant.n11.handle(right) [label="UCP offers"]
80
- n18.handle(right) -> n19.handle(left)
81
- n19.handle(right) -> n20.handle(left)
82
- n20.handle(left) -> ChatGPTAssistant.n21.handle(right) [label="Required fields"]
83
- n27.handle(right) -> n28.handle(left)
84
- n28.handle(right) -> n29.handle(left)
85
- n29.handle(left) -> ChatGPTAssistant.n30.handle(right) [label="Order summary"]
86
- n36.handle(right) -> PaymentProcessor.n37.handle(left) [label="Authorize/capture"]
87
- n38.handle(right) -> n39.handle(left)
88
- n39.handle(right) -> ShopifyStoreCatalog.n40.handle(left) [label="Create order"]
89
- n42.handle(right) -> n43.handle(left)
90
- n43.handle(left) -> ChatGPTAssistant.n44.handle(right) [label="Order status"]
91
- }
92
-
93
- ShopifyStoreCatalog { # Shopify Store & Catalog
94
- n8: rectangle label:"Search catalog for products"
95
- n9: rectangle label:"Return matching products"
96
- n40: rectangle label:"Persist order"
97
- n41: rectangle label:"Return order confirmation"
98
- n8.handle(bottom) -> n9.handle(top)
99
- n9.handle(left) -> ShopifyUCPGateway.n10.handle(right) [label="Matching products"]
100
- n40.handle(bottom) -> n41.handle(top)
101
- n41.handle(left) -> ShopifyUCPGateway.n42.handle(right) [label="Order confirmation"]
102
- }
103
-
104
- PaymentProcessor { # Payment Processor
105
- n37: rectangle label:"Authorize & capture payment"
106
- n37.handle(left) -> ShopifyUCPGateway.n38.handle(right) [label="Payment result"]
107
- }
 
1
+ HumanShopper { # Human Shopper
2
+ n1: circle label:"Start: open ChatGPT"
3
+ n2: rectangle label:"Ask for a product"
4
+ n14: rectangle label:"Review recommendations"
5
+ n15: rectangle label:"Choose a product"
6
+ n24: rectangle label:"Provide address & prefs"
7
+ n33: rectangle label:"Confirm payment"
8
+ n47: circle label:"Order confirmed"
9
+ n1.handle(right) -> n2.handle(left)
10
+ n2.handle(right) -> ChatGPTAssistant.n3.handle(left) [label="Product request"]
11
+ n14.handle(right) -> n15.handle(left)
12
+ n15.handle(right) -> ChatGPTAssistant.n16.handle(left) [label="Selected product"]
13
+ n24.handle(right) -> ChatGPTAssistant.n25.handle(left) [label="Address & prefs"]
14
+ n33.handle(right) -> ChatGPTAssistant.n34.handle(left) [label="Payment confirmed"]
15
+ }
16
+
17
+ ChatGPTAssistant { # ChatGPT AI Assistant
18
+ n3: rectangle label:"Receive request & interpret intent"
19
+ n4: rectangle label:"Build structured search query"
20
+ n5: rectangle label:"Search via UCP gateway"
21
+ n11: rectangle label:"Receive UCP offers"
22
+ n12: rectangle label:"Rank & present recommendations"
23
+ n13: rectangle label:"Send recommendations to shopper"
24
+ n16: rectangle label:"Receive product selection"
25
+ n17: rectangle label:"Create checkout session via UCP"
26
+ n21: rectangle label:"Receive required checkout fields"
27
+ n22: rectangle label:"Ask shopper for missing info"
28
+ n23: rectangle label:"(wait for shopper)"
29
+ n25: rectangle label:"Receive shopper info"
30
+ n26: rectangle label:"Submit buyer details via UCP"
31
+ n30: rectangle label:"Receive final order summary"
32
+ n31: rectangle label:"Ask shopper to confirm payment"
33
+ n32: rectangle label:"(wait for confirmation)"
34
+ n34: rectangle label:"Receive payment confirmation"
35
+ n35: rectangle label:"Send payment intent via UCP"
36
+ n44: rectangle label:"Receive final order status"
37
+ n45: rectangle label:"Display confirmation"
38
+ n46: rectangle label:"(notify shopper)"
39
+ n3.handle(right) -> n4.handle(left)
40
+ n4.handle(right) -> n5.handle(left)
41
+ n5.handle(right) -> ShopifyUCPGateway.n6.handle(left) [label="Catalog search"]
42
+ n11.handle(right) -> n12.handle(left)
43
+ n12.handle(right) -> n13.handle(left)
44
+ n13.handle(left) -> HumanShopper.n14.handle(right) [label="Recommendations"]
45
+ n16.handle(right) -> n17.handle(left)
46
+ n17.handle(right) -> ShopifyUCPGateway.n18.handle(left) [label="Create checkout"]
47
+ n21.handle(right) -> n22.handle(left)
48
+ n22.handle(right) -> n23.handle(left)
49
+ n23.handle(left) -> HumanShopper.n24.handle(right) [label="Request address & prefs"]
50
+ n25.handle(right) -> n26.handle(left)
51
+ n26.handle(right) -> ShopifyUCPGateway.n27.handle(left) [label="Buyer details"]
52
+ n30.handle(right) -> n31.handle(left)
53
+ n31.handle(right) -> n32.handle(left)
54
+ n32.handle(left) -> HumanShopper.n33.handle(right) [label="Confirm payment?"]
55
+ n34.handle(right) -> n35.handle(left)
56
+ n35.handle(right) -> ShopifyUCPGateway.n36.handle(left) [label="Payment intent"]
57
+ n44.handle(right) -> n45.handle(left)
58
+ n45.handle(right) -> n46.handle(left)
59
+ n46.handle(left) -> HumanShopper.n47.handle(right) [label="Order confirmed"]
60
+ }
61
+
62
+ ShopifyUCPGateway { # Shopify UCP Gateway
63
+ n6: rectangle label:"Normalize search request"
64
+ n7: rectangle label:"Query Shopify Store catalog"
65
+ n10: rectangle label:"Assemble & return UCP offers"
66
+ n18: rectangle label:"Create checkout session"
67
+ n19: rectangle label:"Initialize checkout with Store"
68
+ n20: rectangle label:"Return required fields"
69
+ n27: rectangle label:"Update checkout with buyer data"
70
+ n28: rectangle label:"Recalculate totals via Store"
71
+ n29: rectangle label:"Return order summary"
72
+ n36: rectangle label:"Forward payment authorization"
73
+ n38: rectangle label:"Receive payment result"
74
+ n39: rectangle label:"Create order in Store"
75
+ n42: rectangle label:"Receive order confirmation"
76
+ n43: rectangle label:"Return final order status"
77
+ n6.handle(right) -> n7.handle(left)
78
+ n7.handle(right) -> ShopifyStoreCatalog.n8.handle(left) [label="Catalog query"]
79
+ n10.handle(left) -> ChatGPTAssistant.n11.handle(right) [label="UCP offers"]
80
+ n18.handle(right) -> n19.handle(left)
81
+ n19.handle(right) -> n20.handle(left)
82
+ n20.handle(left) -> ChatGPTAssistant.n21.handle(right) [label="Required fields"]
83
+ n27.handle(right) -> n28.handle(left)
84
+ n28.handle(right) -> n29.handle(left)
85
+ n29.handle(left) -> ChatGPTAssistant.n30.handle(right) [label="Order summary"]
86
+ n36.handle(right) -> PaymentProcessor.n37.handle(left) [label="Authorize/capture"]
87
+ n38.handle(right) -> n39.handle(left)
88
+ n39.handle(right) -> ShopifyStoreCatalog.n40.handle(left) [label="Create order"]
89
+ n42.handle(right) -> n43.handle(left)
90
+ n43.handle(left) -> ChatGPTAssistant.n44.handle(right) [label="Order status"]
91
+ }
92
+
93
+ ShopifyStoreCatalog { # Shopify Store & Catalog
94
+ n8: rectangle label:"Search catalog for products"
95
+ n9: rectangle label:"Return matching products"
96
+ n40: rectangle label:"Persist order"
97
+ n41: rectangle label:"Return order confirmation"
98
+ n8.handle(bottom) -> n9.handle(top)
99
+ n9.handle(left) -> ShopifyUCPGateway.n10.handle(right) [label="Matching products"]
100
+ n40.handle(bottom) -> n41.handle(top)
101
+ n41.handle(left) -> ShopifyUCPGateway.n42.handle(right) [label="Order confirmation"]
102
+ }
103
+
104
+ PaymentProcessor { # Payment Processor
105
+ n37: rectangle label:"Authorize & capture payment"
106
+ n37.handle(left) -> ShopifyUCPGateway.n38.handle(right) [label="Payment result"]
107
+ }
billing/business-operations/subscription-lifecycle-workflow/README.md CHANGED
@@ -6,7 +6,7 @@ SaaS subscription lifecycle workflow with trial signup, conversion nurturing, pa
6
  **Kind:** workflow
7
  **Source domain:** business-operations
8
  **Primary use case:** billing
9
- **Secondary use cases:** None
10
  **Complexity:** 4/5
11
  **Nodes:** 10
12
  **Lanes:** 3
 
6
  **Kind:** workflow
7
  **Source domain:** business-operations
8
  **Primary use case:** billing
9
+ **Secondary use cases:** commerce-automation
10
  **Complexity:** 4/5
11
  **Nodes:** 10
12
  **Lanes:** 3
billing/business-operations/subscription-lifecycle-workflow/metadata.json CHANGED
@@ -5,9 +5,12 @@
5
  "kind": "workflow",
6
  "source_domain": "business-operations",
7
  "primary_use_case": "billing",
8
- "secondary_use_cases": [],
 
 
9
  "use_cases": [
10
- "billing"
 
11
  ],
12
  "complexity": 4,
13
  "num_nodes": 10,
 
5
  "kind": "workflow",
6
  "source_domain": "business-operations",
7
  "primary_use_case": "billing",
8
+ "secondary_use_cases": [
9
+ "commerce-automation"
10
+ ],
11
  "use_cases": [
12
+ "billing",
13
+ "commerce-automation"
14
  ],
15
  "complexity": 4,
16
  "num_nodes": 10,
billing/business-operations/subscription-lifecycle-workflow/workflow.fz CHANGED
@@ -1,53 +1,53 @@
1
- Stripe { # Stripe Webhooks
2
- n1: circle label:"Start"
3
- n2: rectangle label:"Receive webhook event"
4
- n3: diamond label:"Event type?"
5
- n4: rectangle label:"Handle subscription.created"
6
- n5: rectangle label:"Handle invoice.paid"
7
- n6: rectangle label:"Handle subscription.canceled"
8
- n7: rectangle label:"Handle invoice.payment_failed"
9
- n1.handle(right) -> n2.handle(left)
10
- n2.handle(right) -> n3.handle(left)
11
- n3.handle(right) -> n4.handle(left) [label="created"]
12
- n3.handle(bottom) -> n5.handle(top) [label="paid"]
13
- n3.handle(left) -> n6.handle(top) [label="canceled"]
14
- n3.handle(top) -> n7.handle(top) [label="failed"]
15
- n4.handle(bottom) -> Provisioning.n8.handle(top) [label="Provision"]
16
- n5.handle(bottom) -> Provisioning.n12.handle(top) [label="Extend"]
17
- n6.handle(bottom) -> Provisioning.n14.handle(top) [label="Revoke"]
18
- n7.handle(bottom) -> Dunning.n17.handle(top) [label="Retry"]
19
- }
20
- Provisioning { # Account Provisioning
21
- n8: rectangle label:"Create user account"
22
- n9: rectangle label:"Assign plan features"
23
- n10: rectangle label:"Send welcome email"
24
- n11: circle label:"End"
25
- n12: rectangle label:"Update billing period"
26
- n13: rectangle label:"Send receipt email"
27
- n14: rectangle label:"Disable premium features"
28
- n15: rectangle label:"Archive user data"
29
- n16: rectangle label:"Send cancellation email"
30
- n8.handle(right) -> n9.handle(left)
31
- n9.handle(right) -> n10.handle(left)
32
- n10.handle(right) -> n11.handle(left)
33
- n12.handle(right) -> n13.handle(left)
34
- n13.handle(right) -> n11.handle(top)
35
- n14.handle(right) -> n15.handle(left)
36
- n15.handle(right) -> n16.handle(left)
37
- n16.handle(right) -> n11.handle(top)
38
- }
39
- Dunning { # Dunning Management
40
- n17: rectangle label:"Log payment failure"
41
- n18: diamond label:"Retry count?"
42
- n19: rectangle label:"Schedule retry charge"
43
- n20: rectangle label:"Send payment reminder"
44
- n21: rectangle label:"Suspend account"
45
- n22: rectangle label:"Send final notice"
46
- n17.handle(right) -> n18.handle(left)
47
- n18.handle(right) -> n19.handle(left) [label="< 3"]
48
- n18.handle(bottom) -> n21.handle(top) [label=">= 3"]
49
- n19.handle(right) -> n20.handle(left)
50
- n20.handle(top) -> Provisioning.n11.handle(bottom) [label="Wait"]
51
- n21.handle(right) -> n22.handle(left)
52
- n22.handle(top) -> Provisioning.n11.handle(bottom) [label="Suspended"]
53
  }
 
1
+ Stripe { # Stripe Webhooks
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Receive webhook event"
4
+ n3: diamond label:"Event type?"
5
+ n4: rectangle label:"Handle subscription.created"
6
+ n5: rectangle label:"Handle invoice.paid"
7
+ n6: rectangle label:"Handle subscription.canceled"
8
+ n7: rectangle label:"Handle invoice.payment_failed"
9
+ n1.handle(right) -> n2.handle(left)
10
+ n2.handle(right) -> n3.handle(left)
11
+ n3.handle(right) -> n4.handle(left) [label="created"]
12
+ n3.handle(bottom) -> n5.handle(top) [label="paid"]
13
+ n3.handle(left) -> n6.handle(top) [label="canceled"]
14
+ n3.handle(top) -> n7.handle(top) [label="failed"]
15
+ n4.handle(bottom) -> Provisioning.n8.handle(top) [label="Provision"]
16
+ n5.handle(bottom) -> Provisioning.n12.handle(top) [label="Extend"]
17
+ n6.handle(bottom) -> Provisioning.n14.handle(top) [label="Revoke"]
18
+ n7.handle(bottom) -> Dunning.n17.handle(top) [label="Retry"]
19
+ }
20
+ Provisioning { # Account Provisioning
21
+ n8: rectangle label:"Create user account"
22
+ n9: rectangle label:"Assign plan features"
23
+ n10: rectangle label:"Send welcome email"
24
+ n11: circle label:"End"
25
+ n12: rectangle label:"Update billing period"
26
+ n13: rectangle label:"Send receipt email"
27
+ n14: rectangle label:"Disable premium features"
28
+ n15: rectangle label:"Archive user data"
29
+ n16: rectangle label:"Send cancellation email"
30
+ n8.handle(right) -> n9.handle(left)
31
+ n9.handle(right) -> n10.handle(left)
32
+ n10.handle(right) -> n11.handle(left)
33
+ n12.handle(right) -> n13.handle(left)
34
+ n13.handle(right) -> n11.handle(top)
35
+ n14.handle(right) -> n15.handle(left)
36
+ n15.handle(right) -> n16.handle(left)
37
+ n16.handle(right) -> n11.handle(top)
38
+ }
39
+ Dunning { # Dunning Management
40
+ n17: rectangle label:"Log payment failure"
41
+ n18: diamond label:"Retry count?"
42
+ n19: rectangle label:"Schedule retry charge"
43
+ n20: rectangle label:"Send payment reminder"
44
+ n21: rectangle label:"Suspend account"
45
+ n22: rectangle label:"Send final notice"
46
+ n17.handle(right) -> n18.handle(left)
47
+ n18.handle(right) -> n19.handle(left) [label="< 3"]
48
+ n18.handle(bottom) -> n21.handle(top) [label=">= 3"]
49
+ n19.handle(right) -> n20.handle(left)
50
+ n20.handle(top) -> Provisioning.n11.handle(bottom) [label="Wait"]
51
+ n21.handle(right) -> n22.handle(left)
52
+ n22.handle(top) -> Provisioning.n11.handle(bottom) [label="Suspended"]
53
  }
billing/commerce-automation/agent-mediated-fiat-payment-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Agent-Mediated Fiat Payment Workflow
2
+
3
+ Stripe Agent Toolkit flow: the consumer approves an agent spend, the agent requests a scoped token, passes it to the merchant and the order completes in fiat.
4
+
5
+ **Template ID:** `agent-mediated-fiat-payment-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** Commerce Automation
8
+ **Primary use case:** billing
9
+ **Secondary use cases:** commerce-automation
10
+ **Complexity:** 2/5
11
+ **Nodes:** 11
12
+ **Lanes:** 4
13
+ **Tags:** [stripe, agent-toolkit, shared-payment-token, fiat, agent-payments]
14
+ **Source path:** ``
15
+ **Repo path:** `billing/commerce-automation/agent-mediated-fiat-payment-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
billing/commerce-automation/agent-mediated-fiat-payment-workflow/metadata.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "agent-mediated-fiat-payment-workflow",
3
+ "workflow_id": "agent-mediated-fiat-payment",
4
+ "title": "Agent-Mediated Fiat Payment Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "Commerce Automation",
7
+ "primary_use_case": "billing",
8
+ "secondary_use_cases": [
9
+ "commerce-automation"
10
+ ],
11
+ "use_cases": [
12
+ "billing",
13
+ "commerce-automation"
14
+ ],
15
+ "complexity": 2,
16
+ "num_nodes": 11,
17
+ "num_lanes": 4,
18
+ "tags": [
19
+ "stripe",
20
+ "agent-toolkit",
21
+ "shared-payment-token",
22
+ "fiat",
23
+ "agent-payments"
24
+ ],
25
+ "description": "Stripe Agent Toolkit flow: the consumer approves an agent spend, the agent requests a scoped token, passes it to the merchant and the order completes in fiat.",
26
+ "source_path": "",
27
+ "repo_path": "billing/commerce-automation/agent-mediated-fiat-payment-workflow"
28
+ }
billing/commerce-automation/agent-mediated-fiat-payment-workflow/workflow.fz ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ buyer { # Consumer
2
+ n1: circle label:"Start Checkout"
3
+ n2: rectangle label:"Approve Agent Spend"
4
+ n11: circle label:"Purchase Complete"
5
+ n1.handle(right) -> n2.handle(left)
6
+ n2.handle(bottom) -> agent.n3.handle(top) [label="Authorize"]
7
+ }
8
+
9
+ agent { # AI Assistant
10
+ n3: rectangle label:"Request Scoped Token"
11
+ n6: rectangle label:"Pass Token to Merchant"
12
+ n10: rectangle label:"Confirm Order"
13
+ n3.handle(bottom) -> stripe.n4.handle(top) [label="Get SPT"]
14
+ n6.handle(bottom) -> merchant.n7.handle(top) [label="Send Token"]
15
+ n10.handle(top) -> buyer.n11.handle(bottom) [label="Done"]
16
+ }
17
+
18
+ stripe { # Stripe Core
19
+ n4: rectangle label:"Create Shared Payment Token"
20
+ n5: rectangle label:"Run Radar Fraud Checks"
21
+ n9: rectangle label:"Approve Fiat Payment"
22
+ n4.handle(top) -> agent.n6.handle(bottom) [label="Return SPT"]
23
+ n5.handle(right) -> n9.handle(left)
24
+ n9.handle(top) -> merchant.n8.handle(bottom) [label="Success"]
25
+ }
26
+
27
+ merchant { # E-commerce Store
28
+ n7: rectangle label:"Create PaymentIntent"
29
+ n8: rectangle label:"Complete Fiat Order"
30
+ n7.handle(bottom) -> stripe.n5.handle(top) [label="Validate SPT"]
31
+ n8.handle(top) -> agent.n10.handle(bottom) [label="Order Success"]
32
+ }
billing/commerce-automation/agent-to-agent-usdc-payment-workflow/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Agent-to-Agent USDC Payment Workflow
2
+
3
+ Coinbase AgentKit flow: a human allocates a USDC budget, the agent authenticates its Base wallet, pays an x402 invoice and processes the supplier data, with no fiat in the path.
4
+
5
+ **Template ID:** `agent-to-agent-usdc-payment-workflow`
6
+ **Kind:** workflow
7
+ **Source domain:** Commerce Automation
8
+ **Primary use case:** billing
9
+ **Secondary use cases:** commerce-automation
10
+ **Complexity:** 2/5
11
+ **Nodes:** 9
12
+ **Lanes:** 3
13
+ **Tags:** [coinbase, agentkit, usdc, x402, agent-payments, stablecoin]
14
+ **Source path:** ``
15
+ **Repo path:** `billing/commerce-automation/agent-to-agent-usdc-payment-workflow`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
billing/commerce-automation/agent-to-agent-usdc-payment-workflow/metadata.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "agent-to-agent-usdc-payment-workflow",
3
+ "workflow_id": "agent-to-agent-usdc-payment",
4
+ "title": "Agent-to-Agent USDC Payment Workflow",
5
+ "kind": "workflow",
6
+ "source_domain": "Commerce Automation",
7
+ "primary_use_case": "billing",
8
+ "secondary_use_cases": [
9
+ "commerce-automation"
10
+ ],
11
+ "use_cases": [
12
+ "billing",
13
+ "commerce-automation"
14
+ ],
15
+ "complexity": 2,
16
+ "num_nodes": 9,
17
+ "num_lanes": 3,
18
+ "tags": [
19
+ "coinbase",
20
+ "agentkit",
21
+ "usdc",
22
+ "x402",
23
+ "agent-payments",
24
+ "stablecoin"
25
+ ],
26
+ "description": "Coinbase AgentKit flow: a human allocates a USDC budget, the agent authenticates its Base wallet, pays an x402 invoice and processes the supplier data, with no fiat in the path.",
27
+ "source_path": "",
28
+ "repo_path": "billing/commerce-automation/agent-to-agent-usdc-payment-workflow"
29
+ }
billing/commerce-automation/agent-to-agent-usdc-payment-workflow/workflow.fz ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ user { # Human User
2
+ n1: circle label:"Start Task"
3
+ n2: rectangle label:"Allocate USDC Budget"
4
+ n9: circle label:"Task Complete"
5
+ n1.handle(right) -> n2.handle(left)
6
+ n2.handle(bottom) -> agent.n3.handle(top) [label="Start Session"]
7
+ }
8
+
9
+ agent { # AI Agent
10
+ n3: rectangle label:"Authenticate Base Wallet"
11
+ n4: rectangle label:"Ping Global Supplier API"
12
+ n7: rectangle label:"Pay x402 Invoice via USDC"
13
+ n8: rectangle label:"Process Supplier Data"
14
+ n3.handle(right) -> n4.handle(left)
15
+ n4.handle(bottom) -> supplier.n5.handle(top) [label="Data Request"]
16
+ n7.handle(bottom) -> supplier.n6.handle(top) [label="Send Crypto"]
17
+ n8.handle(top) -> user.n9.handle(bottom) [label="Result"]
18
+ }
19
+
20
+ supplier { # Supplier API
21
+ n5: rectangle label:"Return 402 Payment Required"
22
+ n6: rectangle label:"Verify Onchain Transfer"
23
+ n5.handle(top) -> agent.n7.handle(bottom) [label="x402 Invoice"]
24
+ n6.handle(top) -> agent.n8.handle(bottom) [label="Unlock Data"]
25
+ }
billing/commerce-automation/agentic-commerce-checkout-architecture/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Agentic Commerce Checkout Architecture
2
+
3
+ Five-lane architecture for agent-driven checkout: merchant edge, commerce services, payment stack, fulfillment and the approval gate before an order is authorized.
4
+
5
+ **Template ID:** `agentic-commerce-checkout-architecture`
6
+ **Kind:** workflow
7
+ **Source domain:** Commerce Automation
8
+ **Primary use case:** billing
9
+ **Secondary use cases:** agentic, commerce-automation
10
+ **Complexity:** 3/5
11
+ **Nodes:** 21
12
+ **Lanes:** 5
13
+ **Tags:** [agentic-commerce, chatgpt-commerce, checkout, merchant, payments]
14
+ **Source path:** ``
15
+ **Repo path:** `billing/commerce-automation/agentic-commerce-checkout-architecture`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
billing/commerce-automation/agentic-commerce-checkout-architecture/metadata.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "agentic-commerce-checkout-architecture",
3
+ "workflow_id": "agentic-commerce-checkout-architecture",
4
+ "title": "Agentic Commerce Checkout Architecture",
5
+ "kind": "workflow",
6
+ "source_domain": "Commerce Automation",
7
+ "primary_use_case": "billing",
8
+ "secondary_use_cases": [
9
+ "agentic",
10
+ "commerce-automation"
11
+ ],
12
+ "use_cases": [
13
+ "billing",
14
+ "agentic",
15
+ "commerce-automation"
16
+ ],
17
+ "complexity": 3,
18
+ "num_nodes": 21,
19
+ "num_lanes": 5,
20
+ "tags": [
21
+ "agentic-commerce",
22
+ "chatgpt-commerce",
23
+ "checkout",
24
+ "merchant",
25
+ "payments"
26
+ ],
27
+ "description": "Five-lane architecture for agent-driven checkout: merchant edge, commerce services, payment stack, fulfillment and the approval gate before an order is authorized.",
28
+ "source_path": "",
29
+ "repo_path": "billing/commerce-automation/agentic-commerce-checkout-architecture"
30
+ }
billing/commerce-automation/agentic-commerce-checkout-architecture/workflow.fz ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ merchantEdge { # Merchant Edge
2
+ n1: rectangle label:"Publish product feed"
3
+ n2: rectangle label:"Validate feed"
4
+ n3: rectangle label:"Expose ACP endpoints"
5
+ n4: rectangle label:"Create checkout session"
6
+ n5: diamond label:"Approve order?"
7
+ n6: rectangle label:"Return order outcome"
8
+ n1.handle(right) -> n2.handle(left)
9
+ n2.handle(right) -> n3.handle(left)
10
+ n3.handle(right) -> n4.handle(left)
11
+ n4.handle(right) -> n5.handle(left)
12
+ n5.handle(right) -> n6.handle(left) [label="Yes"]
13
+ n2.handle(bottom) -> commerce.n7.handle(top) [label="Refresh catalog state"]
14
+ n4.handle(bottom) -> payment.n11.handle(top) [label="Delegated payment request"]
15
+ n6.handle(bottom) -> operations.n14.handle(top) [label="Create order event"]
16
+ n6.handle(top) -> chatgpt.n20.handle(bottom) [label="Order outcome"]
17
+ }
18
+
19
+ commerce { # Commerce Services
20
+ n7: rectangle label:"Resolve content"
21
+ n8: rectangle label:"Resolve price promo"
22
+ n9: rectangle label:"Resolve inventory"
23
+ n10: rectangle label:"Resolve tax shipping"
24
+ n7.handle(right) -> n8.handle(left)
25
+ n8.handle(right) -> n9.handle(left)
26
+ n9.handle(right) -> n10.handle(left)
27
+ n10.handle(top) -> merchantEdge.n4.handle(bottom) [label="Checkout data"]
28
+ }
29
+
30
+ payment { # Payment Stack
31
+ n11: rectangle label:"Tokenize payment"
32
+ n12: rectangle label:"Authorize payment"
33
+ n13: rectangle label:"Return auth status"
34
+ n11.handle(right) -> n12.handle(left)
35
+ n12.handle(right) -> n13.handle(left)
36
+ n13.handle(top) -> merchantEdge.n5.handle(bottom) [label="Approved or declined"]
37
+ }
38
+
39
+ operations { # Order Operations
40
+ n14: rectangle label:"Create OMS order"
41
+ n15: rectangle label:"Reserve inventory"
42
+ n16: rectangle label:"Trigger fulfillment"
43
+ n17: rectangle label:"Handle returns support"
44
+ n14.handle(right) -> n15.handle(left)
45
+ n15.handle(right) -> n16.handle(left)
46
+ n16.handle(right) -> n17.handle(left)
47
+ n17.handle(top) -> chatgpt.n21.handle(bottom) [label="Service and support"]
48
+ }
49
+
50
+ chatgpt { # ChatGPT Channel
51
+ n18: circle label:"Shopper intent"
52
+ n19: rectangle label:"Display products"
53
+ n20: rectangle label:"Show confirmation"
54
+ n21: circle label:"Support entry"
55
+ n18.handle(right) -> n19.handle(left)
56
+ n19.handle(right) -> n20.handle(left)
57
+ n20.handle(right) -> n21.handle(left)
58
+ n18.handle(left) -> merchantEdge.n3.handle(right) [label="Discovery request"]
59
+ n19.handle(left) -> merchantEdge.n4.handle(right) [label="Session request"]
60
+ n20.handle(left) -> merchantEdge.n5.handle(right) [label="Purchase approval"]
61
+ }
billing/hr/conflict-resolution-workflow/workflow.fz CHANGED
@@ -1,28 +1,28 @@
1
- employee { # Employee
2
- n1: circle label:"Start Conflict Resolution"
3
- n4: diamond label:"Make Conflict Resolution decision"
4
- n7: rectangle label:"Continue Conflict Resolution process"
5
- n10: circle label:"End Conflict Resolution"
6
- n1.handle(bottom) -> manager.n2.handle(top)
7
- n4.handle(bottom) -> manager.n5.handle(top)
8
- n7.handle(bottom) -> manager.n8.handle(top)
9
- n4.handle(right) -> hr_system.n3.handle(bottom) [label="Retry/Rejected"]
10
- }
11
-
12
- manager { # Manager
13
- n2: rectangle label:"Receive Conflict Resolution request"
14
- n5: rectangle label:"Update records for Conflict Resolution"
15
- n8: rectangle label:"Continue Conflict Resolution process"
16
- n2.handle(bottom) -> hr_system.n3.handle(top) [label="Next"]
17
- n5.handle(bottom) -> hr_system.n6.handle(top) [label="Done"]
18
- n8.handle(bottom) -> hr_system.n9.handle(top) [label="Processed"]
19
- }
20
-
21
- hr_system { # Hr_System
22
- n3: rectangle label:"Review Conflict Resolution details"
23
- n6: rectangle label:"Continue Conflict Resolution process"
24
- n9: rectangle label:"Continue Conflict Resolution process"
25
- n9.handle(right) -> employee.n10.handle(bottom)
26
- n6.handle(right) -> employee.n7.handle(left)
27
- n3.handle(right) -> employee.n4.handle(left)
28
- }
 
1
+ employee { # Employee
2
+ n1: circle label:"Start Conflict Resolution"
3
+ n4: diamond label:"Make Conflict Resolution decision"
4
+ n7: rectangle label:"Continue Conflict Resolution process"
5
+ n10: circle label:"End Conflict Resolution"
6
+ n1.handle(bottom) -> manager.n2.handle(top)
7
+ n4.handle(bottom) -> manager.n5.handle(top)
8
+ n7.handle(bottom) -> manager.n8.handle(top)
9
+ n4.handle(right) -> hr_system.n3.handle(bottom) [label="Retry/Rejected"]
10
+ }
11
+
12
+ manager { # Manager
13
+ n2: rectangle label:"Receive Conflict Resolution request"
14
+ n5: rectangle label:"Update records for Conflict Resolution"
15
+ n8: rectangle label:"Continue Conflict Resolution process"
16
+ n2.handle(bottom) -> hr_system.n3.handle(top) [label="Next"]
17
+ n5.handle(bottom) -> hr_system.n6.handle(top) [label="Done"]
18
+ n8.handle(bottom) -> hr_system.n9.handle(top) [label="Processed"]
19
+ }
20
+
21
+ hr_system { # Hr_System
22
+ n3: rectangle label:"Review Conflict Resolution details"
23
+ n6: rectangle label:"Continue Conflict Resolution process"
24
+ n9: rectangle label:"Continue Conflict Resolution process"
25
+ n9.handle(right) -> employee.n10.handle(bottom)
26
+ n6.handle(right) -> employee.n7.handle(left)
27
+ n3.handle(right) -> employee.n4.handle(left)
28
+ }
billing/logistics/returns-processing-workflow/workflow.fz CHANGED
@@ -1,55 +1,55 @@
1
- Customer { # Customer
2
- n1: circle label:"Start"
3
- n2: rectangle label:"Request return authorization"
4
- n3: rectangle label:"Ship item back"
5
- n4: rectangle label:"Receive refund or replacement"
6
- n5: circle label:"End"
7
- n1.handle(right) -> n2.handle(left)
8
- n2.handle(bottom) -> CustomerService.n6.handle(top) [label="RMA request"]
9
- n3.handle(bottom) -> Warehouse.n13.handle(top) [label="Package shipped"]
10
- n4.handle(right) -> n5.handle(left)
11
- }
12
- CustomerService { # Customer Service
13
- n6: rectangle label:"Verify order details"
14
- n7: diamond label:"Within return window?"
15
- n8: rectangle label:"Generate RMA number"
16
- n9: rectangle label:"Deny return request"
17
- n10: rectangle label:"Email return label"
18
- n11: diamond label:"Prepaid return?"
19
- n12: rectangle label:"Charge return shipping"
20
- n6.handle(right) -> n7.handle(left)
21
- n7.handle(right) -> n8.handle(left) [label="Yes"]
22
- n7.handle(bottom) -> n9.handle(top) [label="No"]
23
- n8.handle(right) -> n11.handle(left)
24
- n9.handle(top) -> Customer.n5.handle(bottom) [label="Denied"]
25
- n11.handle(right) -> n10.handle(left) [label="Yes"]
26
- n11.handle(bottom) -> n12.handle(top) [label="No"]
27
- n10.handle(top) -> Customer.n3.handle(bottom) [label="Label sent"]
28
- n12.handle(top) -> Customer.n3.handle(bottom) [label="Pay shipping"]
29
- }
30
- Warehouse { # Warehouse
31
- n13: rectangle label:"Receive returned package"
32
- n14: rectangle label:"Inspect item condition"
33
- n15: diamond label:"Item condition?"
34
- n16: rectangle label:"Return to inventory"
35
- n17: rectangle label:"Process as defective"
36
- n18: rectangle label:"Flag as damaged by customer"
37
- n13.handle(right) -> n14.handle(left)
38
- n14.handle(right) -> n15.handle(left)
39
- n15.handle(right) -> n16.handle(left) [label="Like new"]
40
- n15.handle(bottom) -> n17.handle(top) [label="Defective"]
41
- n15.handle(left) -> n18.handle(top) [label="Damaged"]
42
- n16.handle(bottom) -> Refunds.n19.handle(top) [label="Full refund"]
43
- n17.handle(bottom) -> Refunds.n19.handle(top) [label="Full refund"]
44
- n18.handle(bottom) -> Refunds.n22.handle(top) [label="Partial refund"]
45
- }
46
- Refunds { # Refunds Processing
47
- n19: rectangle label:"Calculate refund amount"
48
- n20: rectangle label:"Process refund to payment method"
49
- n21: rectangle label:"Update order status"
50
- n22: rectangle label:"Apply restocking fee"
51
- n19.handle(right) -> n20.handle(left)
52
- n20.handle(right) -> n21.handle(left)
53
- n21.handle(top) -> Customer.n4.handle(bottom) [label="Refund issued"]
54
- n22.handle(right) -> n20.handle(top)
55
- }
 
1
+ Customer { # Customer
2
+ n1: circle label:"Start"
3
+ n2: rectangle label:"Request return authorization"
4
+ n3: rectangle label:"Ship item back"
5
+ n4: rectangle label:"Receive refund or replacement"
6
+ n5: circle label:"End"
7
+ n1.handle(right) -> n2.handle(left)
8
+ n2.handle(bottom) -> CustomerService.n6.handle(top) [label="RMA request"]
9
+ n3.handle(bottom) -> Warehouse.n13.handle(top) [label="Package shipped"]
10
+ n4.handle(right) -> n5.handle(left)
11
+ }
12
+ CustomerService { # Customer Service
13
+ n6: rectangle label:"Verify order details"
14
+ n7: diamond label:"Within return window?"
15
+ n8: rectangle label:"Generate RMA number"
16
+ n9: rectangle label:"Deny return request"
17
+ n10: rectangle label:"Email return label"
18
+ n11: diamond label:"Prepaid return?"
19
+ n12: rectangle label:"Charge return shipping"
20
+ n6.handle(right) -> n7.handle(left)
21
+ n7.handle(right) -> n8.handle(left) [label="Yes"]
22
+ n7.handle(bottom) -> n9.handle(top) [label="No"]
23
+ n8.handle(right) -> n11.handle(left)
24
+ n9.handle(top) -> Customer.n5.handle(bottom) [label="Denied"]
25
+ n11.handle(right) -> n10.handle(left) [label="Yes"]
26
+ n11.handle(bottom) -> n12.handle(top) [label="No"]
27
+ n10.handle(top) -> Customer.n3.handle(bottom) [label="Label sent"]
28
+ n12.handle(top) -> Customer.n3.handle(bottom) [label="Pay shipping"]
29
+ }
30
+ Warehouse { # Warehouse
31
+ n13: rectangle label:"Receive returned package"
32
+ n14: rectangle label:"Inspect item condition"
33
+ n15: diamond label:"Item condition?"
34
+ n16: rectangle label:"Return to inventory"
35
+ n17: rectangle label:"Process as defective"
36
+ n18: rectangle label:"Flag as damaged by customer"
37
+ n13.handle(right) -> n14.handle(left)
38
+ n14.handle(right) -> n15.handle(left)
39
+ n15.handle(right) -> n16.handle(left) [label="Like new"]
40
+ n15.handle(bottom) -> n17.handle(top) [label="Defective"]
41
+ n15.handle(left) -> n18.handle(top) [label="Damaged"]
42
+ n16.handle(bottom) -> Refunds.n19.handle(top) [label="Full refund"]
43
+ n17.handle(bottom) -> Refunds.n19.handle(top) [label="Full refund"]
44
+ n18.handle(bottom) -> Refunds.n22.handle(top) [label="Partial refund"]
45
+ }
46
+ Refunds { # Refunds Processing
47
+ n19: rectangle label:"Calculate refund amount"
48
+ n20: rectangle label:"Process refund to payment method"
49
+ n21: rectangle label:"Update order status"
50
+ n22: rectangle label:"Apply restocking fee"
51
+ n19.handle(right) -> n20.handle(left)
52
+ n20.handle(right) -> n21.handle(left)
53
+ n21.handle(top) -> Customer.n4.handle(bottom) [label="Refund issued"]
54
+ n22.handle(right) -> n20.handle(top)
55
+ }
commerce-automation/commerce-automation/coinbase-trust-flow-onchain-settlement/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Coinbase Trust Flow — On-Chain Settlement
2
+
3
+ The trust layer behind agent-to-agent payments on Coinbase: the agent initiates the spend, the transaction is broadcast, the block confirms and the payment finalizes on-chain.
4
+
5
+ **Template ID:** `coinbase-trust-flow-onchain-settlement`
6
+ **Kind:** workflow
7
+ **Source domain:** Commerce Automation
8
+ **Primary use case:** commerce-automation
9
+ **Secondary use cases:** None
10
+ **Complexity:** 1/5
11
+ **Nodes:** 5
12
+ **Lanes:** 2
13
+ **Tags:** [coinbase, trust-flow, onchain, settlement, base]
14
+ **Source path:** ``
15
+ **Repo path:** `commerce-automation/commerce-automation/coinbase-trust-flow-onchain-settlement`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
commerce-automation/commerce-automation/coinbase-trust-flow-onchain-settlement/metadata.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "coinbase-trust-flow-onchain-settlement",
3
+ "workflow_id": "coinbase-trust-flow-onchain-settlement",
4
+ "title": "Coinbase Trust Flow — On-Chain Settlement",
5
+ "kind": "workflow",
6
+ "source_domain": "Commerce Automation",
7
+ "primary_use_case": "commerce-automation",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "commerce-automation"
11
+ ],
12
+ "complexity": 1,
13
+ "num_nodes": 5,
14
+ "num_lanes": 2,
15
+ "tags": [
16
+ "coinbase",
17
+ "trust-flow",
18
+ "onchain",
19
+ "settlement",
20
+ "base"
21
+ ],
22
+ "description": "The trust layer behind agent-to-agent payments on Coinbase: the agent initiates the spend, the transaction is broadcast, the block confirms and the payment finalizes on-chain.",
23
+ "source_path": "",
24
+ "repo_path": "commerce-automation/commerce-automation/coinbase-trust-flow-onchain-settlement"
25
+ }
commerce-automation/commerce-automation/coinbase-trust-flow-onchain-settlement/workflow.fz ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ agent_env { # Agent & Wallet
2
+ n1: circle label:"Agent Initiates Spend"
3
+ n2: rectangle label:"Wallet Enforces Policy"
4
+ n5: circle label:"Payment Finalized"
5
+
6
+ n1.handle(right) -> n2.handle(left)
7
+ n2.handle(bottom) -> base_ledger.n3.handle(top) [label="Broadcast Tx"]
8
+ }
9
+
10
+ base_ledger { # Base Blockchain
11
+ n3: rectangle label:"Process USDC Transfer"
12
+ n4: rectangle label:"Update Ledger State"
13
+
14
+ n3.handle(right) -> n4.handle(left)
15
+ n4.handle(top) -> agent_env.n5.handle(bottom) [label="Block Confirmed"]
16
+ }
commerce-automation/commerce-automation/multi-platform-ecommerce-integration-hub/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Multi-Platform eCommerce Integration Hub
2
+
3
+ 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.
4
+
5
+ **Template ID:** `multi-platform-ecommerce-integration-hub`
6
+ **Kind:** workflow
7
+ **Source domain:** Commerce Automation
8
+ **Primary use case:** commerce-automation
9
+ **Secondary use cases:** None
10
+ **Complexity:** 2/5
11
+ **Nodes:** 11
12
+ **Lanes:** 1
13
+ **Tags:** [n8n, ecommerce, integration, multi-channel, shopify, woocommerce]
14
+ **Source path:** ``
15
+ **Repo path:** `commerce-automation/commerce-automation/multi-platform-ecommerce-integration-hub`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata
commerce-automation/commerce-automation/multi-platform-ecommerce-integration-hub/metadata.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "template_id": "multi-platform-ecommerce-integration-hub",
3
+ "workflow_id": "multi-platform-ecommerce-integration-hub",
4
+ "title": "Multi-Platform eCommerce Integration Hub",
5
+ "kind": "workflow",
6
+ "source_domain": "Commerce Automation",
7
+ "primary_use_case": "commerce-automation",
8
+ "secondary_use_cases": [],
9
+ "use_cases": [
10
+ "commerce-automation"
11
+ ],
12
+ "complexity": 2,
13
+ "num_nodes": 11,
14
+ "num_lanes": 1,
15
+ "tags": [
16
+ "n8n",
17
+ "ecommerce",
18
+ "integration",
19
+ "multi-channel",
20
+ "shopify",
21
+ "woocommerce"
22
+ ],
23
+ "description": "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.",
24
+ "source_path": "",
25
+ "repo_path": "commerce-automation/commerce-automation/multi-platform-ecommerce-integration-hub"
26
+ }
commerce-automation/commerce-automation/multi-platform-ecommerce-integration-hub/workflow.fz ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ main { # Multi-Platform Integration Layer
2
+ n1: circle label:"Start"
3
+ n2: diamond label:"Channel?"
4
+ n3: rectangle label:"n8n Webhook Receiver"
5
+ n4: rectangle label:"AI Agent: Parse & Validate"
6
+ n5: diamond label:"Event Type?"
7
+ n6: rectangle label:"Product Sync Pipeline"
8
+ n7: rectangle label:"Order Orchestrator"
9
+ n8: rectangle label:"Inventory Update"
10
+ n9: rectangle label:"Unified DB Write"
11
+ n10: rectangle label:"Fulfillment Trigger"
12
+ n11: circle label:"Done"
13
+ n1.handle(right) -> n2.handle(left)
14
+ n2.handle(right) -> n3.handle(left) [label="Shopify"]
15
+ n3.handle(right) -> n4.handle(left)
16
+ n4.handle(right) -> n5.handle(left)
17
+ n5.handle(right) -> n6.handle(left) [label="product"]
18
+ n6.handle(right) -> n9.handle(left)
19
+ n7.handle(right) -> n8.handle(left)
20
+ n8.handle(right) -> n9.handle(left)
21
+ n9.handle(right) -> n10.handle(left)
22
+ n10.handle(right) -> n11.handle(left)
23
+ n2.handle(top) -> n3.handle(top) [label="WooCommerce"]
24
+ n5.handle(bottom) -> n7.handle(bottom) [label="Order"]
25
+ }
commerce-automation/commerce-automation/shopify-river-brain-hands-decoupling-architecture/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Shopify River Brain-Hands Decoupling Architecture
2
+
3
+ Decoupling the brain from the hands: the harness calls the LLM and emits tool intents, while the sandbox executes them, so a new agent is a profile and not a platform.
4
+
5
+ **Template ID:** `shopify-river-brain-hands-decoupling-architecture`
6
+ **Kind:** workflow
7
+ **Source domain:** Commerce Automation
8
+ **Primary use case:** commerce-automation
9
+ **Secondary use cases:** agentic-security
10
+ **Complexity:** 2/5
11
+ **Nodes:** 12
12
+ **Lanes:** 3
13
+ **Tags:** [shopify, river, harness, sandbox, agent-architecture]
14
+ **Source path:** ``
15
+ **Repo path:** `commerce-automation/commerce-automation/shopify-river-brain-hands-decoupling-architecture`
16
+
17
+ ## Files
18
+ - `workflow.fz` — FlowZap Code source
19
+ - `metadata.json` — Structured metadata