SuperAPI AI 工具集

running-chat-assistant

智能体与模型

查看项目

更新于 10-16 09:50

技能介绍

用途:测试以 Robomotion.ChatAssistant.ChatIn 起始的 Chat Assistant 流程。这类流程自身不会运行,需等待聊天页面发来消息,因此不能直接用 robomotion run(只会等到超时),而应把它当作 Workspace 中的 Agent,在真实聊天页面对话测试。

主要能力:robomotion agent 子命令在终端完成原本需 Designer、Admin Console、Desktop App 和 /agents 页面手动执行的步骤,包括校验、推送开发副本、创建 Agent、启动其专属机器人与发起聊天。

必要用法:先 robomotion validate .,再 robomotion agent push,然后 robomotion agent create --mode guided(或 conversational),接着 robomotion agent start,用 robomotion agent logs -n 20 等待出现 Started running,最后 robomotion agent chat 逐步对话并用 --expect 断言。若目录是云流程的 git 检出,push 会拒绝,改用 git add -A && git commit -m "…" && git push。需 robomotion 26.9.8 或更高版本,先用 robomotion version 检查;旧版无 agent 命令,应提示更新并停止,不要绕道 API 或 Designer。需预先在流程目录用 robomotion auth login 以会话登录(非 API Key)。

适用场景:在本地按用户视角验证 guided 或 conversational 对话流程、分支与错误路径;编辑后可用 --draft 快速重跑,约 15 秒一轮。

限制:不要用 robomotion run 测试此类流程;不要泄露会话令牌或带 ?sid= 的地址;不要读取页面 HTML 判断结果,应看聊天输出与机器人日志;失败排查看 robomotion agent logs,--select 与 --date 需要 26.9.8 之后的版本;同一症状连续三次失败应停止并展示步骤、回复和日志。