Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/144.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
google上的Python操作库_Python_Node.js_Actions On Google - Fatal编程技术网

google上的Python操作库

google上的Python操作库,python,node.js,actions-on-google,Python,Node.js,Actions On Google,google上用于操作的Node.js包是 使用这个,它可以很好地从谷歌应用程序中获取应用程序和对话 Google上的actions的Python类似库是什么?目前Google上没有actions的官方实现库。可能有一个是由社区成员维护的 如果您想使用Python,也可以使用JSON消息进行响应。有一个选项卡,描述您需要发送的直接JSON响应 这样,Node.js代码 conv.ask(new SimpleResponse({ speech: 'Howdy! I can tell you f

google上用于操作的Node.js包是

使用这个,它可以很好地从谷歌应用程序中获取应用程序和对话


Google上的actions的Python类似库是什么?

目前Google上没有actions的官方实现库。可能有一个是由社区成员维护的

如果您想使用Python,也可以使用JSON消息进行响应。有一个选项卡,描述您需要发送的直接JSON响应

这样,Node.js代码

conv.ask(new SimpleResponse({
  speech: 'Howdy! I can tell you fun facts about almost any number, like 42. What do you have in mind?',
  text: 'Howdy! I can tell you fun facts about almost any number, like 42. What do you have in mind?',
}));
相当于

{
  "conversationToken": "",
  "expectUserResponse": true,
  "expectedInputs": [
    {
        "inputPrompt": {
            "richInitialPrompt": {
                "items": [
                    {
                        "simpleResponse": {
                            "textToSpeech": "Howdy! I can tell you fun facts about almost any number, like 42. What do you have in mind?",
                            "displayText": "Howdy! I can tell you fun facts about almost any number. What do you have in mind?"
                        }
                    }
                ],
                "suggestions": []
            }
        },
        "possibleIntents": [
            {
                "intent": "actions.intent.TEXT"
            }
        ]
    }
]}