Google动作模拟器不适用于标准的Google Assistant功能 [英] Google actions simulator does not work for standard Google Assistant features

查看:62
本文介绍了Google动作模拟器不适用于标准的Google Assistant功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Google动作(2.5.0)和dialogflow-fulfillment(0.6.1)Node.js库构建了一个动作.我无法在dialogflow测试控制台上测试我的应用程序,因为我返回了那里不支持的conv对象.现在,我也无法在Google动作模拟器中对其进行测试.这是我得到的错误:

I have built an action with Actions-on-Google(2.5.0) and dialogflow-fulfillment(0.6.1) Node.js Library. I cannot test my app on dialogflow test console because I return conv object which is not supported there. Now, I cannot test it in the google action simulator, either. This is the error I get:

调用错误您不能在模拟器中使用标准的Google Assistant功能.如果要尝试使用它们,请在手机或其他兼容设备上使用Google助手.

Invocation Error You cannot use standard Google Assistant features in the Simulator. If you want to try them, use Google Assistant on your phone or other compatible devices.

我想使用模拟器,这样我可以进行更好的调试.

I'd like to use the simulator, so I can debug better.

推荐答案

错误消息是这样说的:模拟器缺少普通助手界面(扬声器,助手应用)所具有的许多功能,有时甚至会给您完全错误的错误消息.真的没有办法在实际设备上测试您的应用程序.

It is how the error message says: The simulator lacks many features that normal Assistant surfaces (speaker, Assistant app) have and can even sometimes give you completely wrong error messages. There is really no way around testing your app on real devices.

但是,您可以在Google Stackdriver Logging中查看在模拟器中看到的相同日志.要激活此功能,请转到Dialogflow代理的设置,选择常规"标签,然后激活将交互记录到Google Cloud".然后单击按钮下方的链接以获取日志.默认视图可能只会向您显示Google Actions-on-Google日志,即您的用户与AoG之间的请求.要查看Dialogflow和您的Webhook之间的请求,请单击过滤器框中的下拉箭头,选择转换为高级过滤器",并将过滤器设置为 resource.type ="global" .

You can however view the same logs that you see in the simulator in Google Stackdriver Logging. To activate this go to the settings of your Dialogflow agent, select the "General" tab and activate the "Log interactions to Google Cloud" option. Then click on the link below the button to get to the logs. The default view will probably show you only the Actions-on-Google logs, i.e. the requests between your users and AoG. To see the requests between Dialogflow and your webhook click on the dropdown arrow in the filter box, select "Convert to advanced filter" and set the filter to resource.type="global".

这篇关于Google动作模拟器不适用于标准的Google Assistant功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆