-
Notifications
You must be signed in to change notification settings - Fork 7
Description
First, great work, thank you!
Your code saves me a lot of time and your youtube video is straight forward. But going through all steps you've shown in the video, there is a little "failure" in your code in comparison to the video.
In the Youtube video you referenced the Intent "DeploymentIntent" but in the current code version (I've tried on v.0.2.6) there is no such Intent in the autogenerated AlexaHandler code.
In the AlexaHandler file, see line 86 and below:
if intent_name == "Your First Intent":
speechlet = self._build_speechlet_response(card_title,
card_output,
speech_output,
reprompt_text,
should_end_session)
response = self._build_response(session_attributes, speechlet)
elif intent_name == "Your Second Intent":
speechlet = self._build_speechlet_response(card_title,
card_output,
speech_output,
reprompt_text,
should_end_session)
response = self._build_response(session_attributes, speechlet)
else:
raise ValueError("Invalid intent")
`
I guess it can be confusing for new people going to your example. In the code you reference to an Intent called "Your First Intent" and "Your Second Intent". If I change the first intent from "Your First Intent" -- to --> "DeploymentIntent" it works for your example on youtube. Can you please fix it in your template generator for the AlexaHandler to make it more comprehensible for new developer?
Regards,
David