Welcome to FlowZap, the App to diagram with Speed, Clarity and Control.

短信验证工作流

business-operations

包含一次性验证码生成、频率限制、验证码校验、重试处理及验证状态追踪的短信手机验证工作流。

完整 FlowZap 代码

User { # User
n1: circle label:"Start"
n2: rectangle label:"Enter phone number"
n3: rectangle label:"Receive SMS code"
n4: rectangle label:"Enter verification code"
n5: rectangle label:"Access granted"
n6: circle label:"End"
n1.handle(right) -> n2.handle(left)
n2.handle(bottom) -> App.n7.handle(top) [label="Submit"]
n3.handle(right) -> n4.handle(left)
n4.handle(bottom) -> App.n12.handle(top) [label="Verify"]
n5.handle(right) -> n6.handle(left)
}
App { # Application
n7: rectangle label:"Validate phone format"
n8: diamond label:"Valid E.164 format?"
n9: rectangle label:"Generate 6-digit OTP"
n10: rectangle label:"Store OTP with expiry"
n11: rectangle label:"Return format error"
n12: diamond label:"Code matches?"
n13: rectangle label:"Mark phone verified"
n14: rectangle label:"Increment attempt counter"
n7.handle(right) -> n8.handle(left)
n8.handle(right) -> n9.handle(left) [label="Yes"]
n8.handle(bottom) -> n11.handle(top) [label="No"]
n9.handle(right) -> n10.handle(left)
n10.handle(bottom) -> Twilio.n15.handle(top) [label="Send SMS"]
n11.handle(top) -> User.n2.handle(bottom) [label="Try again"]
n12.handle(right) -> n13.handle(left) [label="Yes"]
n12.handle(bottom) -> n14.handle(top) [label="No"]
n13.handle(top) -> User.n5.handle(bottom) [label="Verified"]
n14.handle(top) -> User.n4.handle(bottom) [label="Retry"]
loop [retry up to 3 times] n12 n14
}
Twilio { # Twilio API
n15: rectangle label:"Format SMS message"
n16: rectangle label:"POST to Messages API"
n17: diamond label:"Delivery status?"
n18: rectangle label:"Log successful delivery"
n19: rectangle label:"Queue for retry"
n15.handle(right) -> n16.handle(left)
n16.handle(right) -> n17.handle(left)
n17.handle(right) -> n18.handle(left) [label="delivered"]
n17.handle(bottom) -> n19.handle(top) [label="failed"]
n18.handle(top) -> User.n3.handle(bottom) [label="SMS sent"]
n19.handle(top) -> n16.handle(bottom) [label="Retry"]
}

相关模板

账户删除工作流程

business-operations

账户删除工作流程,包含**取消原因捕获**、**留存优惠**、**订阅终止**、**数据清理**和**确认邮件**。

API 密钥轮换工作流程

business-operations

API 密钥轮换工作流程,包含**新密钥生成**、**双密钥过渡期**、**客户端通知**、**旧密钥弃用**和**审计日志记录**。

队列分析工作流

business-operations

队列分析工作流,包含按注册日期的用户分段、留存曲线计算、LTV预测以及行为模式识别。

社区审核工作流

business-operations

社区内容审核工作流,包含 AI 自动标记、用户举报、人工审核队列、执行措施以及申诉处理。