Why is my Alexa Skill not reactiong with my intents?

I am just playing around and thought why not creating a simple Alexa Skill.
I created a Skill hosted by Alexa. Added the intent handler like this

class ShutdownPCIntentHandler(AbstractRequestHandler):
    """Handler for Hello World Intent."""
    def can_handle(self, handler_input):
        return ask_utils.is_intent_name("ShutdownPCIntent")(handler_input)

    def handle(self, handler_input):
        speak_output = "test"

        return (
            handler_input.response_builder
                .speak(speak_output)
                .response
        )

and of course added the handler down in the skill builder

sb = SkillBuilder()

sb.add_request_handler(LaunchRequestHandler())
sb.add_request_handler(ShutdownPCIntentHandler())
sb.add_request_handler(HelloWorldIntentHandler())
sb.add_request_handler(HelpIntentHandler())
sb.add_request_handler(CancelOrStopIntentHandler())
sb.add_request_handler(FallbackIntentHandler())
sb.add_request_handler(SessionEndedRequestHandler())
sb.add_request_handler(IntentReflectorHandler())

these are the only changes I made to the code

I also added the intent

intents for the skill

buf for some reason alexa does not answere

test environment

can somebody help me?

I tried changing the code and intents but nothing really did something good.
Now I am clueless.
Thanks in advance

Leave a Comment