google action包如何定义自定义广告位类型? [英] google action package how to define custom slot types?
问题描述
您好,这是一个有关以下方面的问题:google主页,action sdk,gactions.exe
在 https://developers.google.com/actions/reference/rest/Shared.Types/QueryPatterns
如此称为具有自定义类型的查询模式,但是当我尝试将其添加到action.json并通过gaction更新时,它总是说customTypes是未知参数。
有人一个使用ApiVersion的示例:2?
通常在某个地方存在此json的较大示例。为了更好地了解所有事物如何协同工作?经过2个小时的研究,我什么都找不到。
谢谢和问候
更新:编辑该 b 编辑:工作: https://drive.google.com/drive/folders/0B8G3pDr3aWiwZjU1akREdTZNQ1U 如果您具有自定义位置,例如人员或船名。 获取自定义词(如名称)。正确匹配后,我发现添加语音偏见提示的效果很好。 您可以在此处找到以下信息: https://developers.google.com/actions/ reference / rest / Shared.Types / AppResponse#Suggestion Hi this is a question about: google home, action sdk, gactions.exe at https://developers.google.com/actions/reference/rest/Shared.Types/QueryPatterns
Are so called query pattern with custom types but when I try to add them to my action.json and than update via gaction it always says customTypes is an unknown Parameter. Does someone have an working example with ApiVersion: 2 ? Is there somewhere in general an larger example of this json. To better see how all works together? After 2 hours research I cant find anything. Thanks and best regards Update: EDIT that works BUT only as intent to start the Skill/APP not inside the APP Its Still not change the Speech to text. edit: that work: https://drive.google.com/drive/folders/0B8G3pDr3aWiwZjU1akREdTZNQ1U If you have custom slots like names of People or Ships. To get Custom Words like names. Correctly matched I found that the adding of speech bias hints is working quite well. You can find informations here: https://developers.google.com/actions/reference/rest/Shared.Types/AppResponse#Suggestion 这篇关于google action包如何定义自定义广告位类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ b
{
操作:[
{
description:默认欢迎意图,
name: MAIN,
fulfillment:{
conversationName:云计算管理器
},
intent:{
name: actions.intent.MAIN,
trigger:{
queryPatterns:[
与云团队经理交谈,
欢迎云团队经理,
问云团队经理
]
}
}
},
{
description:第一个文本为Inte nt,
名称: hallo2,
实现:{
conversationName:云计算管理器
},
意图 :{{
name: com.cfm.hallo2,
trigger:{
queryPatterns:[
(您好)?到云车队经理,
您好$ Test:text云车队经理
]
},
参数:[
{
name:文本,
type:测试
}
]
}
}
],
types :[[
{
name: $ Test,
entities:[
{
key: bmw,
同义词:[
BMW
]
},
{
key: benz,
同义词:[
benz
]
}
],
isUserDefined:假
}
],
对话 :{{
云计算管理器:{
名称:云计算管理器,
url: https://a69fa73a.ngrok.io/google ,
fulfillmentApiVersion:2
}
}
}
{
"actions": [
{
"description": "Default Welcome Intent",
"name": "MAIN",
"fulfillment": {
"conversationName": "cloud fleet manager"
},
"intent": {
"name": "actions.intent.MAIN",
"trigger": {
"queryPatterns": [
"talk to cloud fleet manager",
"welcome at cloud fleet manager",
"ask cloud fleet manager"
]
}
}
},
{
"description": "first text Intent",
"name": "hallo2",
"fulfillment": {
"conversationName": "cloud fleet manager"
},
"intent": {
"name": "com.cfm.hallo2",
"trigger": {
"queryPatterns": [
"(hello)? to cloud fleet manager",
"hallo $Test:text cloud fleet manager"
]
},
"parameters": [
{
"name": "text",
"type": "Test"
}
]
}
}
],
"types": [
{
"name": "$Test",
"entities": [
{
"key": "bmw",
"synonyms": [
"B M W"
]
},
{
"key": "benz",
"synonyms": [
"benz"
]
}
],
"isUserDefined": false
}
],
"conversations": {
"cloud fleet manager": {
"name": "cloud fleet manager",
"url": "https://a69fa73a.ngrok.io/google",
"fulfillmentApiVersion": 2
}
}
}