Fallback Skill
A Fallback Skill is a Skill that will be called if no Intent is matched to the Utterance.
Fallback Skill order of precedence
Creating a Fallback Skill
from mycroft import FallbackSkillclass MeaningFallback(FallbackSkill):
"""
A Fallback skill to answer the question about the
meaning of life, the universe and everything.
"""
def __init__(self):
super(MeaningFallback, self).__init__(name='My Fallback Skill)
# Add your own initialization code here def initialize(self):
"""
Registers the fallback handler
"""
self.register_fallback(self.handle_fallback, 10)
# Any other initialize code you like can be placed hereLast updated
Was this helpful?