Skip to content

Instantly share code, notes, and snippets.

@mizutori
Last active August 21, 2018 08:14
Show Gist options
  • Save mizutori/49a9d50e30fa47c4769d3dd33a44b03f to your computer and use it in GitHub Desktop.
Save mizutori/49a9d50e30fa47c4769d3dd33a44b03f to your computer and use it in GitHub Desktop.
{
"manifest": {
"displayName": "Moving Google Home",
"invocationName": "Moving Google Home",
"category": "PRODUCTIVITY"
},
"actions": [
{
"name": "com.goldrushcomputing.actions.Move",
"availability": {
"deviceClasses": [
{
"assistantSdkDevice": {}
}
]
},
"intent": {
"name": "com.goldrushcomputing.intents.Move",
"parameters": [
{
"name": "number",
"type": "SchemaOrg_Number"
},
{
"name": "speed",
"type": "Speed"
},
{
"name": "go_direction",
"type": "GoDirection"
}
],
"trigger": {
"queryPatterns": [
"move ($GoDirection:go_direction)? ($Speed:speed)? for $SchemaOrg_Number:number seconds",
"move ($GoDirection:go_direction)? for $SchemaOrg_Number:number seconds ($Speed:speed)?",
"go ($GoDirection:go_direction)? ($Speed:speed)? for $SchemaOrg_Number:number seconds",
"go ($GoDirection:go_direction)? for $SchemaOrg_Number:number seconds ($Speed:speed)?"
]
}
},
"fulfillment": {
"staticFulfillment": {
"templatedResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Move for $number seconds"
}
},
{
"deviceExecution": {
"command": "com.goldrushcomputing.commands.Move",
"params": {
"go_direction": "$go_direction",
"speed": "$speed",
"number": "$number"
}
}
}
]
}
}
}
},
{
"name": "com.goldrushcomputing.actions.Turn",
"availability": {
"deviceClasses": [
{
"assistantSdkDevice": {}
}
]
},
"intent": {
"name": "com.goldrushcomputing.intents.Turn",
"parameters": [
{
"name": "direction",
"type": "Direction"
}
],
"trigger": {
"queryPatterns": [
"turn $Direction:direction"
]
}
},
"fulfillment": {
"staticFulfillment": {
"templatedResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Turn $Direction"
}
},
{
"deviceExecution": {
"command": "com.goldrushcomputing.commands.Turn",
"params": {
"direction": "$direction"
}
}
}
]
}
}
}
},
{
"name": "com.goldrushcomputing.actions.Hackathon",
"availability": {
"deviceClasses": [
{
"assistantSdkDevice": {}
}
]
},
"intent": {
"name": "com.goldrushcomputing.intents.Hackathon",
"trigger": {
"queryPatterns": [
"What is Hackathon?",
"What is Hackathon",
"What is Hackathon ?",
"Who is Hackathon?",
"Who is Hackathon",
"Who is Hackathon ?"
]
}
},
"fulfillment": {
"staticFulfillment": {
"templatedResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "<speak>こんにちは<break time = \"0.5s\"/></speak>"
}
},
{
"deviceExecution": {
"command": "com.goldrushcomputing.commands.Hackathon"
}
}
]
}
}
}
}
],
"types": [
{
"name": "$Speed",
"entities": [
{
"key": "SLOWLY",
"synonyms": [
"slowly",
"slow"
]
},
{
"key": "NORMALLY",
"synonyms": [
"normally",
"regular"
]
},
{
"key": "QUICKLY",
"synonyms": [
"quickly",
"fast",
"quick"
]
}
]
},
{
"name": "$GoDirection",
"entities": [
{
"key": "FORWARD",
"synonyms": [
"forward",
"further"
]
},
{
"key": "BACKWARD",
"synonyms": [
"back",
"backward"
]
}
]
},
{
"name": "$Direction",
"entities": [
{
"key": "LEFT",
"synonyms": [
"left"
]
},
{
"key": "RIGHT",
"synonyms": [
"right"
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment