Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actions on google 更改提示服务器端_Actions On Google - Fatal编程技术网

Actions on google 更改提示服务器端

Actions on google 更改提示服务器端,actions-on-google,Actions On Google,我开始把自己融入aog。我现在只使用SDK和WebSimulator。我试图实现的是更改之前设置的提示,例如,因为我有新的可用信息。我尝试了以下失败的方法: let inputPrompt = assistant.buildInputPrompt(true, '<speak>1+1=3 Agree?</speak>',['I didn\'t hear a number', 'If you\'re still there, what\'s the number?', 'Wh

我开始把自己融入aog。我现在只使用SDK和WebSimulator。我试图实现的是更改之前设置的提示,例如,因为我有新的可用信息。我尝试了以下失败的方法:

let inputPrompt = assistant.buildInputPrompt(true, '<speak>1+1=3 Agree?</speak>',['I didn\'t hear a number', 'If you\'re still there, what\'s the number?', 'What is the number?']);
assistant.ask(inputPrompt);
let inputPrompt2 = assistant.buildInputPrompt(true, '<speak>Sorry! 1+1=2 Agree?</speak>',['I didn\'t hear a number', 'If you\'re still there, what\'s the number?', 'What is the number?']);
assistant.ask(inputPrompt2);
let inputPrompt=assistant.buildInputPrompt(true,'1+1=3 Agree?',[“我没听到数字”,“如果你还在,数字是多少?”,“数字是多少?”);
助理。询问(输入提示);
让inputPrompt2=assistant.buildInputPrompt(true,'对不起!1+1=2同意?',['我没有听到一个数字','如果你还在,数字是多少?','数字是多少?');
助理询问(输入提示2);
仅显示第一个提示,然后(仅在用户响应后)显示第二个提示

是否可以更改提示服务器端?怎样才能做到呢?或者有没有解决办法

assistant.ask()方法将向用户发送提示,然后等待响应


如果您试图向用户发送某些内容,然后在用户回复之前发送其他内容,则当前无法使用操作执行此操作。这更像是通知或异步操作。

谢谢。我希望有一种方法,因为使用MS Bot框架可以做到这一点,而且我认为这对操作也是一个很好的增强。