如何制作故障排查决策树。
排查树需要可观察的条件和安全的恢复操作。证据不足时应设置停止或升级处理的节点。
按任务需求调整流程。
从可见症状开始,根据用户实际能执行的检查建立分支。每条分支都应通向有界的下一步操作,或附上所需证据转交处理。避免循环,并用几个已知案例测试决策树。
- 你需要提供什么
- 已知症状、原因和获批修复方法。
- 你会得到什么
- 带升级处理节点的分支诊断步骤。
查看输入和结果。
演示用输入和输出 · 教学示例,并非 WebAct 实时运行结果
示例 个输入项
Known import checks: error MISSING_HEADER identifies a required column; error INVALID_VALUE identifies a record and field. No other causes confirmed.
完整示例
Import failed ├─ MISSING_HEADER → inspect the named required column in the header; correct the file and retry. ├─ INVALID_VALUE → inspect the named record and field; correct according to the schema and retry. └─ Other or no code → stop guessing; escalate with the error text, time and a sanitized sample. If a corrected file still fails, capture the new error and escalate rather than repeating the same action indefinitely.
将这份输入载入提示词,再复制到 WebAct 中尝试任务。实际结果可能与示例不同。
决策与问题排查。
排查树应该让用户猜测根本原因吗?
不应。要询问可观察的错误、状态或结果,使不同用户都能一致地遵循同一路径。
为什么决策树总让用户返回第一步?
某个分支可能缺少解决或升级条件。检查每条路径,补上明确的结束点。
使用自己的资料试一试。
将任务提示词中的示例换成你的材料。保留所需条件,再把任务复制到 WebAct。
自定义并复制任务 ↑