google上的Python操作库
google上用于操作的Node.js包是 使用这个,它可以很好地从谷歌应用程序中获取应用程序和对话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上的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"
}
]
}
]}