I am planning to implement 2 custom commands using the Google Assistant SDK and I have made appropriate changes in the actions.json file (Attached Below). However, somehow only one of the command gets triggered at a time i.e. either the start or select commands randomly. How do I make it trigger both commands?
{
"manifest": {
"displayName": "Start Test",
"invocationName": "Start Test",
"category": "PRODUCTIVITY"
},
"actions": [
{
"name": "com.example.actions.StartTest",
"availability": {
"deviceClasses": [
{
"assistantSdkDevice": {}
}
]
},
"intent": {
"name": "com.example.intents.StartTest",
"parameters": [
{
"name": "testname",
"type" : "SchemaOrg_Number"
}
],
"trigger": {
"queryPatterns": [
"prepare test ($SchemaOrg_Number:testname)"
]
}
},
"fulfillment": {
"staticFulfillment": {
"templatedResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Preparing to start test $testname"
}
},
{
"deviceExecution": {
"command": "com.example.commands.StartTest",
"params": {
"testname": "$testname"
}
}
}
]
}
}
}
}
],
"types": [
{
"name": "$testname",
"entities": [
{
"key": "5",
"synonyms": [
"Test5"
]
}
]
}
],
"manifest": {
"displayName": "Select Lane",
"invocationName": "Select Lane",
"category": "PRODUCTIVITY"
},
"actions": [
{
"name": "com.example.actions.SelectLane",
"availability": {
"deviceClasses": [
{
"assistantSdkDevice": {}
}
]
},
"intent": {
"name": "com.example.intents.SelectLane",
"parameters": [
{
"name": "lanename",
"type" : "SchemaOrg_Number"
}
],
"trigger": {
"queryPatterns": [
"select lane ($SchemaOrg_Number:lanename)"
]
}
},
"fulfillment": {
"staticFulfillment": {
"templatedResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Selected lane $lanename"
}
},
{
"deviceExecution": {
"command": "com.example.commands.SelectLane",
"params": {
"lanename": "$lanename"
}
}
}
]
}
}
}
}
],
"types": [
{
"name": "$lanename",
"entities": [
{
"key": "5",
"synonyms": [
"Lane5"
]
}
]
}
]
}