DialgFlowApp问方法,重新提示无法正常工作

问题描述 投票:0回答:1

根据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);

在goole家用设备上。设备会使用自己的预定义答案重新提示静默用户,但不使用提供的答案。有没有人可以做这个工作?

感谢期待,

蒂埃里

actions-on-google
1个回答
0
投票

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

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

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.