欢迎使用 FlowZap,快速、清晰、掌控的绘图应用。

FlowZap 代码示例与即用模板

DeepSeek 客户入职:

Sales Team { # Sales Team
  n1: circle label:"Start"
  n2: rectangle label:"Send Welcome Email & Contract"
  n3: rectangle label:"Receive Signed Contract"
  n4: rectangle label:"Create Internal Ticket"
  n5: circle label:"Handoff"
  n1.handle(right) -> n2.handle(left)
  n2.handle(right) -> n3.handle(left)
  n3.handle(right) -> n4.handle(left)
  n4.handle(right) -> n5.handle(left)
  n5.handle(bottom) -> Onboarding Specialist.n6.handle(top) [label="Ticket Created"]
}

Onboarding Specialist { # Onboarding Specialist
  n6: rectangle label:"Review Client Info & Goals"
  n7: rectangle label:"Schedule Kickoff Call"
  n8: rectangle label:"Conduct Kickoff Meeting"
  n9: rectangle label:"Configure Account"
  n10: rectangle label:"Prepare Training Materials"
  n11: rectangle label:"Grant System Access"
  n12: circle label:"Complete"
  n6.handle(right) -> n7.handle(left)
  n7.handle(right) -> n8.handle(left)
  n8.handle(right) -> n9.handle(left)
  n9.handle(right) -> n10.handle(left)
  n10.handle(right) -> n11.handle(left)
  n11.handle(right) -> n12.handle(left)
  n7.handle(bottom) -> Customer.n13.handle(top) [label="Sends Invite"]
  n8.handle(bottom) -> Customer.n14.handle(top) [label="Holds Meeting"]
  n11.handle(bottom) -> Customer.n15.handle(top) [label="Sends Credentials"]
}

Customer { # Customer
  n13: rectangle label:"Receive Meeting Invite"
  n14: rectangle label:"Attend Kickoff Meeting"
  n15: rectangle label:"Receive Login & Materials"
  n16: diamond label:"First Login Successful?"
  n17: rectangle label:"Complete Setup Tasks"
  n18: rectangle label:"Confirm Go-Live"
  n19: circle label:"Onboarded!"
  n13.handle(right) -> n14.handle(left)
  n14.handle(right) -> n15.handle(left)
  n15.handle(right) -> n16.handle(left)
  n16.handle(right) -> n17.handle(left) [label="Yes"]
  n17.handle(right) -> n18.handle(left)
  n18.handle(right) -> n19.handle(left)
  n16.handle(top) -> Onboarding Specialist.n11.handle(bottom) [label="No - Needs help"]
  n18.handle(top) -> Onboarding Specialist.n12.handle(bottom) [label="Notify Success"]
}

Claude Opus 客户入职流程:

sales { # sales
  n1: circle label:"Lead Qualified"
  n2: rectangle label:"Initial Contact"
  n3: rectangle label:"Discovery Call"
  n4: diamond label:"Good Fit?"
  n5: rectangle label:"Prepare Proposal"
  n6: rectangle label:"Present Proposal"
  n7: diamond label:"Accepted?"
  n8: rectangle label:"Send Contract"
  n9: circle label:"Deal Lost"
  n1.handle(right) -> n2.handle(left)
  n2.handle(right) -> n3.handle(left)
  n3.handle(right) -> n4.handle(left)
  n4.handle(right) -> n5.handle(left) [label="Yes"]
  n5.handle(right) -> n6.handle(left)
  n6.handle(right) -> n7.handle(left)
  n7.handle(right) -> n8.handle(left) [label="Yes"]
  n8.handle(bottom) -> legal.n10.handle(top) [label="Review"]
  n7.handle(top) -> n9.handle(top) [label="No"]
  n4.handle(top) -> n9.handle(top) [label="No"]
}

legal { # legal
  n10: rectangle label:"Contract Review"
  n11: diamond label:"Terms OK?"
  n12: rectangle label:"Request Changes"
  n13: rectangle label:"Finalize Contract"
  n14: rectangle label:"Contract Signed"
  n10.handle(right) -> n11.handle(left)
  n12.handle(top) -> sales.n6.handle(bottom) [label="Negotiate"]
  n13.handle(right) -> n14.handle(left)
  n14.handle(bottom) -> finance.n15.handle(top) [label="Process"]
  n11.handle(bottom) -> n13.handle(bottom) [label="Yes"]
  n11.handle(right) -> n12.handle(left) [label="No"]
}

finance { # finance
  n15: rectangle label:"Setup Billing"
  n16: rectangle label:"Process Payment"
  n17: diamond label:"Payment OK?"
  n18: rectangle label:"Payment Issue"
  n19: rectangle label:"Account Active"
  n15.handle(right) -> n16.handle(left)
  n16.handle(right) -> n17.handle(left)
  n19.handle(bottom) -> operations.n20.handle(top) [label="Activate"]
  n17.handle(top) -> n19.handle(top) [label="Yes"]
  n18.handle(bottom) -> n16.handle(bottom) [label="Retry"]
  n17.handle(right) -> n18.handle(left) [label="No"]
}

operations { # operations
  n20: rectangle label:"Create Account"
  n21: rectangle label:"Setup Environment"
  n22: rectangle label:"Configure Settings"
  n23: rectangle label:"Assign Team"
  n24: rectangle label:"Schedule Training"
  n20.handle(right) -> n21.handle(left)
  n21.handle(right) -> n22.handle(left)
  n22.handle(right) -> n23.handle(left)
  n23.handle(right) -> n24.handle(left)
  n24.handle(bottom) -> customersuccess.n25.handle(top) [label="Handoff"]
}

customersuccess { # customersuccess
  n25: rectangle label:"Welcome Call"
  n26: rectangle label:"Product Training"
  n27: rectangle label:"Implementation Support"
  n28: diamond label:"Ready to Launch?"
  n29: rectangle label:"Additional Training"
  n30: rectangle label:"Go Live"
  n31: rectangle label:"30-Day Check-in"
  n32: circle label:"Onboarding Complete"
  n25.handle(right) -> n26.handle(left)
  n26.handle(right) -> n27.handle(left)
  n27.handle(right) -> n28.handle(left)
  n28.handle(right) -> n30.handle(left) [label="Yes"]
  n30.handle(right) -> n31.handle(left)
  n31.handle(right) -> n32.handle(left)
  n28.handle(top) -> n29.handle(top) [label="No"]
  n29.handle(bottom) -> n27.handle(bottom) [label="Continue"]
}

解雇员工:

1 { # 1
  n1: rectangle label:"HR sets new goals and timelines for improvement and monitors progress"
  n2: rectangle label:"HR prepares paperwork, calculates final pay, and arranges to deactivate system access"
  n3: circle label:"End 1"
  n4: circle label:"End 2"
  n5: circle label:"Start firing"
  n6: rectangle label:"Employee receives feedback about performance or conduct issues"
  n7: rectangle label:"After continued problems or a significant incident, the employee manager meets with HR"
  n8: diamond label:"Should the employee be given one last chance"
  n5.handle(right) -> n6.handle(left)
  n6.handle(right) -> n7.handle(left)
  n7.handle(right) -> n8.handle(left)
  n8.handle(top) -> n1.handle(left) [label="One final chance"]
  n8.handle(right) -> n2.handle(left) [label="Termination"]
  n2.handle(right) -> n4.handle(left)
  n1.handle(right) -> n3.handle(left)
}

QWEN 员工入职:

HR { # HR
  n1: circle label:"Start"
  n2: rectangle label:"Send Offer Letter & Contract"
  n3: rectangle label:"Collect Signed Documents"
  n4: rectangle label:"Conduct Compliance Training"
  n5: circle label:"Onboarding Complete"
  n1.handle(right) -> n2.handle(left)
  n2.handle(right) -> n3.handle(left)
  n3.handle(right) -> n4.handle(left)
  n4.handle(right) -> n5.handle(left)
  n2.handle(bottom) -> IT.n6.handle(top) [label="New Hire Confirmed"]
  n2.handle(bottom) -> Manager.n9.handle(top) [label="Hire Confirmed"]
}

IT { # IT
  n6: rectangle label:"Provision Laptop & Accessories"
  n7: rectangle label:"Set Up Email & Accounts"
  n8: rectangle label:"Grant System Access (SSO, CRM, etc.)"
  n6.handle(right) -> n7.handle(left)
  n7.handle(right) -> n8.handle(left)
  n8.handle(top) -> HR.n4.handle(bottom) [label="Ready for Day 1"]
}

Manager { # Manager
  n9: rectangle label:"Schedule Welcome Meeting"
  n10: rectangle label:"Assign Onboarding Buddy"
  n11: rectangle label:"Review Role & 30-Day Goals"
  n12: rectangle label:"Conduct Weekly Check-ins"
  n9.handle(right) -> n10.handle(left)
  n10.handle(right) -> n11.handle(left)
  n11.handle(right) -> n12.handle(left)
  n12.handle(top) -> HR.n5.handle(bottom) [label="Goals Set"]
}

婚礼策划:

couple { # couple
  n1: circle label:"Start Planning"
  n2: rectangle label:"Define Budget & Priorities"
  n3: rectangle label:"Review Proposals"
  n4: rectangle label:"Make Final Decisions"
  n5: circle label:"Wedding Day!"
  n1.handle(right) -> n2.handle(left)
  n2.handle(right) -> n3.handle(left)
  n3.handle(right) -> n4.handle(left)
  n4.handle(right) -> n5.handle(left)
  n2.handle(bottom) -> planner.n6.handle(top) [label="Hires"]
}

planner { # planner
  n6: rectangle label:"Initial Consultation"
  n7: rectangle label:"Create Planning Timeline"
  n8: rectangle label:"Coordinate Vendors"
  n9: rectangle label:"Final Walkthrough"
  n6.handle(right) -> n7.handle(left)
  n7.handle(right) -> n8.handle(left)
  n8.handle(right) -> n9.handle(left)
  n7.handle(bottom) -> vendors.n10.handle(top) [label="Requests"]
}

vendors { # vendors
  n10: rectangle label:"Receive Requirements"
  n11: diamond label:"Available?"
  n12: rectangle label:"Send Proposal"
  n13: rectangle label:"Confirm Booking"
  n10.handle(right) -> n11.handle(left)
  n12.handle(right) -> n13.handle(left)
  n11.handle(right) -> n12.handle(left) [label="No"]
  n11.handle(bottom) -> n12.handle(bottom) [label="Yes"]
  n12.handle(top) -> couple.n3.handle(bottom) [label="Sends"]
}

预防流程失败:

InitialIncident {
  n1: circle label:"Incident Detected"
  n2: rectangle label:"Document Current State"
  n3: diamond label:"Root Cause Identified?"
  n4: rectangle label:"Conduct Root Cause Analysis"
  n5: rectangle label:"Create Prevention Protocol"
  n6: rectangle label:"Monitor Implementation"
  n3.handle(right) -> n5.handle(left) [label="Yes - Proceed"]
  n1.handle(right) -> n2.handle(left)
  n2.handle(right) -> n3.handle(left)
  n5.handle(right) -> n6.handle(left)
  n6.handle(right) -> n7.handle(left)
  n3.handle(top) -> n4.handle(left) [label="No - Investigate"]
  n4.handle(bottom) -> n5.handle(top)
}

PreventionImplementation {
  n7: rectangle label:"Update Standard Procedures"
  n8: rectangle label:"Train Affected Staff"
  n9: diamond label:"Controls Effective?"
  n10: circle label:"Incident Prevented"
  n9.handle(right) -> n10.handle(left) [label="Yes"]
  n7.handle(right) -> n8.handle(left)
  n9.handle(bottom) -> n7.handle(bottom) [label="No - Revise"]
  n8.handle(right) -> n9.handle(left)
}

一个认证流程:

User { # User
  n1: circle label:"Start"
  n2: rectangle label:"Enter username and password"
  n3: rectangle label:"Submit form"
  n4: rectangle label:"Receive confirmation"
  n5: circle label:"Access granted"
  n1.handle(right) -> n2.handle(left)
  n2.handle(right) -> n3.handle(left)
  n3.handle(bottom) -> Application.n6.handle(top) [label="Send credentials"]
  n4.handle(right) -> n5.handle(left)

  loop [retry until valid format] n2 n3 n7 n8
}

Application { # Application
  n6: rectangle label:"Receive request"
  n7: rectangle label:"Validate format"
  n8: diamond label:"Valid format?"
  n9: rectangle label:"Forward to server"
  n14: rectangle label:"Forward confirmation to client"
  n6.handle(right) -> n7.handle(left)
  n7.handle(right) -> n8.handle(left)
  n8.handle(right) -> n9.handle(left) [label="Yes"]
  n9.handle(bottom) -> Server.n10.handle(top) [label="Authenticate"]
  n8.handle(top) -> User.n2.handle(bottom) [label="No - Error"]
  n14.handle(top) -> User.n4.handle(bottom) [label="Success"]
}

Server { # Server
  n10: rectangle label:"Check database"
  n11: diamond label:"Valid credentials?"
  n12: rectangle label:"Generate session token"
  n13: rectangle label:"Return error"
  n10.handle(right) -> n11.handle(left)
  n11.handle(right) -> n12.handle(left) [label="Yes"]
  n11.handle(bottom) -> n13.handle(bottom) [label="No"]
  n12.handle(top) -> Application.n14.handle(bottom) [label="Token"]
  n13.handle(top) -> Application.n6.handle(bottom) [label="Error 401"]
}

AI 购物车流程

User { # User
n1: circle label="Start"
n2: rectangle label="Sign up with email & interests"
n3: diamond label="Vibe confirmed?"
n4: rectangle label="Ask for more details"
n5: rectangle label="Show default product list"
n6: circle label="End"

n1.handle(right) -> n2.handle(left)
n2.handle(right) -> AI Recommender.n7.handle(left) [label="Submit details"]
AI Recommender.n7.handle(right) -> n3.handle(left) [label="Suggestions ready"]
n3.handle(right) -> AI Recommender.n8.handle(left) [label="Yes"]
n3.handle(bottom) -> n4.handle(top) [label="No"]
n4.handle(right) -> AI Recommender.n7.handle(left) [label="Refine"]
n4.handle(bottom) -> n5.handle(top) [label="Max retries: 2"]
n5.handle(right) -> Cart.n9.handle(left) [label="Proceed with defaults"]
}

AI Recommender { # AI Recommender
n7: rectangle label="Analyze profile & suggest 3 products"
n8: rectangle label="Prepare cart data"

n8.handle(right) -> Cart.n9.handle(left) [label="Add to cart"]
loop [retry up to 2 times] n7 n3 n4
}

Cart { # Cart
n9: rectangle label="Auto-add products to cart"
n10: rectangle label="Send welcome email"

n9.handle(right) -> n10.handle(left) [label="Email"]
n10.handle(right) -> User.n6.handle(left) [label="Complete"]
}