I tried to make a skill that Alexa will return as cold

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.

Create

Developer page https://developer.amazon.com/ja

Go to the skill creation page from the above URL Select the following and press Create Skill. スクリーンショット 2021-01-12 14.25.03.png

Select Create with Scratch and press Continue with Template. スクリーンショット 2021-01-12 14.28.48.png

development of

Removed default HelloWorldIntent スクリーンショット 2021-01-12 14.34.46.png

Then press Add Indent and press Create Speak Intent. Enter a topic in the sample utterance. スクリーンショット 2021-01-12 15.01.25.png

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.

test

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?"

スクリーンショット 2021-01-12 15.50.45.png

Actual machine confirmation

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

I tried to make a skill that Alexa will return as cold
I tried to make a Web API
I tried to make a system that fetches only deleted tweets
I tried to make a calculator with Tkinter so I will write it
I tried to make a ○ ✕ game using TensorFlow
[Python] I tried to make a Shiritori AI that enhances vocabulary through battles
I tried to make a translation BOT that works on Discord using googletrans
I tried to make a dictionary function that does not distinguish between cases
[LPIC 101] I tried to summarize the command options that are easy to make a mistake
I tried to make a memo app that can be pomodoro, but a reflection record
I tried to make a stopwatch using tkinter in python
I tried to make a simple text editor using PyQt
[1 hour challenge] I tried to make a fortune-telling site that is too suitable with Python
I tried to make a bot that randomly acquires Wikipedia articles and tweets once a day
[5th] I tried to make a certain authenticator-like tool with python
I tried to create a server environment that runs on Windows 10
I tried to make an activity that collectively sets location information
[2nd] I tried to make a certain authenticator-like tool with python
I tried to make a regular expression of "amount" using Python
[Python] I tried to implement stable sorting, so make a note
[Python] A memo that I tried to get started with asyncio
I tried to make a regular expression of "date" using Python
I tried to make a periodical process with Selenium and Python
I tried to make a 2channel post notification application with Python
I tried to make a todo application using bottle with python
[4th] I tried to make a certain authenticator-like tool with python
[1st] I tried to make a certain authenticator-like tool with python
I tried to make a strange quote for Jojo with LSTM
I tried to make a mechanism of exclusive control with Go
I tried to make a site that makes it easy to see the update information of Azure
[Python] I tried to make a simple program that works on the command line using argparse.
I tried to create a linebot (implementation)
I tried to create a linebot (preparation)
I tried my best to return to Lasso
Python: I tried to make a flat / flat_map just right with a generator
I tried to implement a blockchain that actually works with about 170 lines
I tried to make a face diagnosis AI for a female professional golfer ①
I tried to make a face diagnosis AI for a female professional golfer ②
I tried to make "Sakurai-san" a LINE BOT with API Gateway + Lambda
I tried to make a traffic light-like with Raspberry Pi 4 (Python edition)
I tried to develop a Formatter that outputs Python logs in JSON
[Pyto] I tried to use a smartphone as a flick keyboard for PC
I tried to make a url shortening service serverless with AWS CDK
I want to make matplotlib a dark theme
I tried to build a super-resolution method / ESPCN
I tried to make a periodical process with CentOS7, Selenium, Python and Chrome
I tried to build a super-resolution method / SRCNN ①
I tried to create a class that can easily serialize Json in Python
When I tried to make a VPC with AWS CDK but couldn't make it
I want to make a game with Python
I tried to explain what a Python generator is for as easily as possible.
I tried to make a castle search API with Elasticsearch + Sudachi + Go + echo
I tried to predict the horses that will be in the top 3 with LightGBM
I wrote a script to revive the gulp watch that will die soon
I read "How to make a hacking lab"
I tried to generate a random character string
I tried to build a super-resolution method / SRCNN ③
I tried to build a super-resolution method / SRCNN ②
[Python] I tried to get the type name as a string from the type function
I tried to make a suspicious person MAP quickly using Geolonia address data
I tried to make a simple image recognition API with Fast API and Tensorflow