【发布时间】:2021-01-27 16:46:34
【问题描述】:
我有一个通过 Webhook 与 Google 助理通信的应用程序。当用户提出要求时,我的应用程序会将问题发送给 AI (Watson IBM)。得到响应后,我想将其展示给用户并结束对话。所以我从 Watson 和 nextSecene =actions.scene.END_CONVERSATION 发送了一条短信。但是 Google 助理只是结束了对话,而不向用户显示响应。那么是否可以向用户显示响应消息然后结束对话?
我的应用 JSON 格式响应示例:
GAResponse(prompt=GAPrompt(override=false, firstSimple=GAFirstSimple(speech=<speak>You are very smart bro,y<break time="100ms"/> and i love monsters like you.</speak>, text=You are very smart bro and i love monsters like you), content=null, lastSimple=null, link=null, canvas=null, orderUpdate=null), scene=GAScene(name=null, slotFillingStatus=null, slots=null, next=actions.scene.END_CONVERSATION) ...)
【问题讨论】: