简体   繁体   English

以编程方式管理Google Assistant操作

[英]Manage Google Assistant Actions programmatically

I'm trying to integrate my online Google Actions builder with Actions Console. 我正在尝试将在线Google Actions构建器与Actions Console集成。

Now users have to manually create Actions JSON descriptor file and upload it to the project via gactions tool. 现在,用户必须手动创建Actions JSON描述符文件,然后通过gactions工具将其上传到项目中。 But I would to let them upload their actions without these steps. 但是我要让他们不用这些步骤就可以上传自己的操作。 As an example I saw that Gupshup service does this already - user has to authorise Gupshup once he would to upload his project, and all things perform behind the scene by Gupshup. 举例来说,我看到Gupshup服务已经做到了这一点-用户一旦要上载项目,就必须授权Gupshup,Gupshup会在后台执行所有操作。

As I know I have to use some sort of Google API that allows to manage projects in Google Console with some specific OAuth scope - something like "Allow this service to manage Google Assistant dialogues and grammars". 据我所知,我必须使用某种Google API,该API才能在具有特定OAuth范围的Google控制台中管理项目-例如“允许此服务管理Google Assistant对话和语法”。

Are there anybody who knows anything about such OAuth scopes and API? 是否有人对这种OAuth范围和API有所了解?

尽管没有完全公共的API来管理Assistant控制台项目,但是您可以使用gactions工具执行某些操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM