Creating your own Skill

The basic structure for a skill is laid out below:

from kenzy_brain import Skill

class MyCustomSkill(Skill):
    def __init__(self):
        self._name = "My Custom Skill"

    def initialize(self):
        self.register_intent_file("customskill.intent", self.handle_custom_intent)
        return True

    def handle_custom_intent(self, message, context=None):
        text = self.getMessageFromDialog("customskill.dialog")
        self.say(text, context=context)
        return True

    def stop(self):
        return True

def create_skill():
    return MyCustomSkill()

You can also create folders as follows:


Help & Support

Help and additional details is available at