DialgFlowApp 询问方法,重新提示不起作用

DialgFlowApp ask method, reprompt not working

根据 DialogFlowApp/ask 文档'https://developers.google.com/actions/reference/nodejs/DialogflowApp#ask),您应该能够在用户沉默时提供 3 次重新提示。我试过以下代码:

let PROMPT = [
"Are you still here?",
"Should we stop the conversation",
"bye"];


let answer = "welcome to the application";

const app = new DialogflowApp({request, response});

app.ask(answer, PROMPT);

在智能家居设备上。该设备确实会用自己预定义的答案重新提示沉默的用户,但不会使用提供的答案。 有人能做到吗?

感谢期待,

蒂埃里

是的,我能够使用您提供的代码让它工作。我在这里的视频中进行了演示:https://youtu.be/GpMjpo4hSR4

我在 Dialogflow 中使用了内联编辑器。 https://dialogflow.com/docs/how-tos/getting-started-fulfillment