You’ll need to set up your own Dialogflow agent to run this skill; check out the readme in the GitHub repo to learn how to set up “intents” for working with Misty. Then, update the meta file with the URL for your cloud function and the project ID for your Dialogflow agent.
Improving the SimpleVoiceCommand Skill
This skill demonstrates a very basic integration of Misty’s end-of-speech detection with Google’s Dialogflow service. A more advanced version of this skill would handle mapping of color strings to byte RGB values, so that Misty could handle more color requests than just red, green, and blue. Other improvements would add more intents to the Dialogflow agent, so that Misty could handle a more interesting variety of commands, including (but not limited to):
- Head movement (“Look at me”, “Look up”, “look down”, “Look left”)
- Arm movement (“Raise your left hand”)
- Expression (“Play a happy sound”, “Make a sad face”)
- Locomotion (“Turn around”, “Drive straight”, “turn left”, “Back up”)