Google上的操作 - Mac gactions将无法运行

Ale*_*lea 2 actions-on-google google-assistant-sdk

我正在尝试按照此处所述设置Actions sdk:

https://developers.google.com/actions/sdk

我为Mac 64位机器下载了gactions.如果我尝试打开文件,它将以文本形式打开.当我在包含gactions的文件夹中时,我尝试运行gactions init并获得响应:

-bash:gactions:命令未找到

有什么想法吗?

Sar*_*ara 7

试试这个:

  • gaction CLI下载Google gactions cli
  • 在Mac和Linux上,要从终端运行二进制可执行文件: $ cd folder_with_gactions $ chmod +x gactions
  • 执行派系 $ cd folder_with_gactions $ ./gactions init

此外,如果您尝试在Google Home中创建操作,您可能会发现本教程很有趣:如何使用API​​.AI和Google App Engine创建自定义私有Google Home Action.在STEP 8中,您可以找到一个gactions的示例.