Converse
Converse allows a recently active Skill to inspect utterances before the normal intent handling process. It allows for Skills to respond to unstructured follow up utterances.
Basic usage
from mycroft import MycroftSkill, intent_handler
class IceCreamSkill(MycroftSkill):
def __init__(self):
MycroftSkill.__init__(self)
self.flavors = ['vanilla', 'chocolate', 'mint']
@intent_handler('request.icecream.intent')
def handle_request_icecream(self):
self.speak_dialog('welcome')
selection = self.ask_selection(self.flavors, 'what.flavor')
self.speak_dialog('coming-right-up', {'flavor': selection})
def converse(self, message):
if self.voc_match(message.data['utterances'][0], 'Thankyou'):
self.speak_dialog("you-are-welcome")
return True
def create_skill():
return IceCreamSkill()Active Skill List
Making a Skill Active
Further information
Last updated
Was this helpful?