It's cold this winter, isn't it? So, when I talked to Alexa that it was cold, I tried to develop a skill that would answer that it was cold.
Developer page https://developer.amazon.com/ja
Go to the skill creation page from the above URL Select the following and press Create Skill.
Select Create with Scratch and press Continue with Template.
Removed default HelloWorldIntent
Then press Add Indent and press Create Speak Intent. Enter a topic in the sample utterance.
After entering, press Build Model. After the build is complete, open the code editor and modify the following.
There are 3 corrections.
lambda_function.py
# speak_output = "Welcome, you can say Hello or Help. Which would you like to try?"
speak_output="It's cold."
# return ask_utils.is_intent_name("HelloWorldIntent")(handler_input)
return ask_utils.is_intent_name("SpeakIntent")(handler_input)
# speak_output = "Hello World!"
speak_output = "In such a case, how about a warm drink?"
Press Deploy after modification.
First, enter the skill name "Cold". Alexa replied, "It's cold!" After that, enter "It snowed" made from the sample utterance of Speak Intent. He answered, "Why don't you have a warm drink at that time?"
https://alexa.amazon.co.jp/spa/index.html#skills/?ref-suffix=nav_nav
Press a valid skill with. Confirm that the "Cold" skill is registered on the Development Skills tab.
with this, "Alexa, it's cold" Will answer when you talk to him.
Recommended Posts