Tracing an AI Customer-Service Mistake to Its Failing Step
A developer built 12 legal-rule questions for a customer-service AI and used Observability Cloud to replay two rule versions under slow and failed retrieval conditions. Across 240 controlled replays, the second version passed 116 of 120 content checks, while four requests timed out during statute retrieval; the trace data separated answer-quality failures from retrieval failures. The article also shows how Prompt Eval, Trace and Span inspection, and dashboards can locate incorrect citations, missing conditions, and stalled workflow steps.
The workflow demonstrates how trace-level inspection can identify whether a customer-service AI failed because of its prompt, retrieval step, rules, or downstream answer, rather than leaving teams to infer the cause from the final response alone.
我开发的智能客服 AI,这次试了这样一道题:手机网购到手,买家按商家的指引激活了手机查验功能。商家说激活了就不能七日无理由退货,但下单时买家有没有确认过这个条件,还不知道。
AI 没有直接下结论,而是先让客服核实三件事:购买时有没有确认记录、激活对商品状态有什么影响、退货期限还剩多久,再按不同情况分别作答。放到客服那边,第一步就得问清楚。商品一激活就把工单关了,丢掉的可能正是决定下一步怎么处理的那条信息。
这样的回答方式是合理的,但我更关心另一个问题:它是怎么答出来的,出了错又怎么查。上一篇试的是「只拆了快递外盒,还能七日无理由退货吗?」,AI 把拆封查验规则引错了条号,补上条文摘要后才引对。我当时用观测云 Prompt Eval 只评这一处引用,错引样本得 0 分,附条文样本得 100 分。