首页 > 解决方案 > 预期输入 [0] 处的 MalformedResponse:如果这不是最终响应,则响应必须提供至少一个可能的意图。这是什么意思?

问题描述

我在 dialogflow 上创建了一个非常简单的代理。时不时地,即使使用静态响应(只有会话 ID 发生变化),应用程序也会崩溃(在 Google Assistant 和模拟器中)。

在日志中,我发现有问题的消息:“预期输入 [0] 处的 MalformedResponse:如果这不是最终响应,则响应必须提供至少一种可能。这是什么意思?”。我不明白这是什么意思。有人可以帮我吗?

标签: dialogflow-esactions-on-google

解决方案


I'm having the same problem. That i've noted is that this problem doesn't ocurre every time. The behavior is really unstable.

I'm using 2 required parameters in the intent. I don't know if that has something to do with the problem.

MalformedResponse at expected_inputs[0].input_prompt: 'input_prompt' is empty MalformedResponse at expected_inputs[0]: Responses must provide at least one possible intent if this is not the final response


推荐阅读