Prompts
A prompt is any question or statement spoken by Mycroft that expects a response from the User.
Get Response
from mycroft import MycroftSkill, intent_handler
class IceCreamSkill(MycroftSkill):
@intent_handler('set.favorite.intent')
def handle_set_favorite(self):
favorite_flavor = self.get_response('what.is.your.favorite.flavor')
self.speak_dialog('confirm.favorite.flavor', {'flavor': favorite_flavor})
def create_skill():
return IceCreamSkill()Optional Arguments
See it in action:
Yes / No Questions
See it in action:
Providing a list of options
Optional arguments
See it in action:
Returning responses to the intent parser
Last updated
Was this helpful?