任务与项目7.6k · #13201
routing-forms
它能做什么
这项技能描述在预约前提出几个问题,然后将访客引导到合适的会议或页面的表单。适合希望潜在客户被自动分配给合适负责人的团队。
适用场景
- ✓当你希望访客通过一份简短表单选择合适的会议类型的时候。
- ✓当你需要把特定线索发送给特定主持人的时候。
- ✓当你想查看人们在分流表单中的回答的时候。
技能链接
https://github.com/BuilderIO/agent-native/blob/main/packages/scheduling/docs/skills/routing-forms/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/BuilderIO/agent-native/blob/main/packages/scheduling/docs/skills/routing-forms/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add BuilderIO/agent-native --skill routing-forms
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/BuilderIO/agent-native/main/packages/scheduling/docs/skills/routing-forms/SKILL.md -o SKILL.md
可以这样问 AI
“把大公司发送到我的销售负责人的会议页面,其他所有人则发送到通用页面。”
每周 5 个新技能,1 分钟读完。
工作原理
规则按顺序检查,第一条匹配的规则决定访客去向。如果没有任何规则匹配,则使用备用操作,并且每个回答都会与其所匹配的规则一同保存。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Routing forms
Shape
- Fields — text, email, phone, number, select, multi
- Rules — ordered list of
{conditions, action} - Fallback — action taken when no rule matches
Rule conditions
conditions: [{fieldId, op, value}, …] — all ANDed together. Ops:
equals,not-equals,contains,starts-with,in(value is array)
Rule actions
{kind: "event-type", eventTypeId, teamId?}→ redirect to Booker{kind: "external-url", url}→ redirect off-site{kind: "custom-message", message}→ render message, no booking
Public URL
/forms/:formId renders the form. On submit:
- Walk rules in order; first match wins.
- If none match, use
fallback. - Record the response in
routing_form_responseswithmatchedRuleId. - If the action is
event-type, redirect to Booker with prefilledname/email/ custom-field values from the form answers.
Common tasks
| User | Action |
|---|---|
| "Route enterprise prospects to Bob" | create-routing-form with a rule matching company size → Bob's event type |
| "See submissions" | list-routing-form-responses --formId <id> |
常见问题
如果多条规则匹配,哪条生效?
按列出顺序,第一条匹配的规则。
规则能做什么?
把访客引导到某个会议类型或外部网址,或显示自定义消息。
表单回答会被保留吗?
会。每份回复都会与其匹配的规则一同保存,并可以查看列表。
详情
作者的原始描述
ChiliPiper-style pre-booking forms that route prospects to the right event type based on their answers.
repo: BuilderIO/agent-native
热度
- GitHub 星标
- 7.6k
- 排名
- #13201
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …