Тёмный

Create Your Own Amazon Alexa Skill from Scratch 

Tiny Technical Tutorials
Подписаться 54 тыс.
Просмотров 20 тыс.
50% 1

“Alexa, what’s a hot skill to have right now?” “It’s Alexa Skills!”
Artificial intelligence is taking the world by storm, and smart speakers like Alexa will continue to become more pervasive for the foreseeable future. In this hands-on tutorial, I’ll teach you the basics so you can take advantage of this exciting area of technology.
Together, we’ll create a custom Alexa-hosted Node.js skill, from scratch. The skill will tell us random fun facts (which we hard-code into a JS file to keep things simple). If you want to use the same list of fun facts, you can get to them here: docs.google.co....
To dig into more depth on Alexa Skills, I’ve partnered with the good folks at Pluralsight to do a 90-minute course. During the course, we get into more advanced topics like how to save state, how to make Alexa sound more natural, and even how to debug your skill. Check it out! pluralsight.px...
Timestamps:
00:00 - Interacting with the Alexa Skill we’ll be building (fun fact about cats!)
00:18 - Accessing the Alexa Developer Console (requires an Amazon Developer account)
00:45 - Creating a new Alexa Skill, using a custom Alexa-hosted Node.js skill, from scratch
02:04 - Updating an Alexa Skill’s invocation name, saving and building the model
03:20 - Testing an Alexa Skill using the simulator
04:24 - How an Alexa Skill works
06:00 - Adding functionality to our Alexa Skill for fun facts
06:39 - Updating the package.json file
07:19 - Updating the index.js file
08:05 - Explaining the interaction model or front end: wake word, launch, invocation, utterance, slot and intent for an Alexa Skill
09:36 - Adding fun facts into a new JS file
10:24 - Updating index.js to use the fun facts file
10:44 - Updating the speakOutput in HelloWorldIntentHandler to retrieve a random fun fact
11:46 - Explaining shouldEndSession: false in an Alexa Skill
12:31 - Replacing the HelloWorld code with our own
13:35 - Updating the interaction model/front end and intents
15:15 - Testing our updated Alexa Skill
15:26 - How to implement a reprompt and keep the session open
16:20 -Testing the Alexa Skill on your phone

Наука

Опубликовано:

 

17 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 103   
@TinyTechnicalTutorials
@TinyTechnicalTutorials 2 года назад
What else do you want to learn in AWS? Let me know below in the comments!
@dasMaiki
@dasMaiki 4 месяца назад
the same thing in python actually ^^
@timothylynch4704
@timothylynch4704 12 дней назад
The link to show how to save state and make Alexa sound more normal does not seem to be working. Your video was great by the way and I'm definitely going to start watching more.
@loganlemay8005
@loganlemay8005 Год назад
YOU SAVED MY LIFE!!!!!! Thx so much for the insanely great tutorial
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
LOL! It's not every day that I get to save lives. 😂 Glad it helped!
@kianmomtahan9208
@kianmomtahan9208 Год назад
Not watched all of this yet, but I really appreciate the hand holding. I often run into issues with guides where they skips out "simple steps" and I spend 10 minutes trying to get past 5 seconds of skipped content.
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
I love this! Thanks for the nice comment, Kian! :)
@kianmomtahan9208
@kianmomtahan9208 Год назад
@@TinyTechnicalTutorials Finally had time to go through this in anger and thank you again, I managed to get the basic functionality up and running as you did without any headaches, now to get on with making my skill. All the best
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Oh, awesome! 💪 Thanks for the update!
@juice2868
@juice2868 5 месяцев назад
Hi, great video. I am looking to test my skill on my iPAD and have downloaded the app and signed in using the same credentials as on the developer website, however it is not showing the skill that i have been developing anywhere? I have tried searching for it and looking through my skills however it shows nothing. Help would be massively appreciated as i am looking to use this feature for my University Dissertation.
@TinyTechnicalTutorials
@TinyTechnicalTutorials 5 месяцев назад
Hi Juice! 👋 Apologies for the slow response. Were you able to sort this out? Really my only suggestion would have been to check that you're using the same email address, but it sounds like you already tried that. I've also sometimes had a delay with it appearing, and a couple times have even had to install the Alexa app on my phone (I haven't tried it on an iPad before). If you found a solution, feel free to post it here in case it helps someone else! 🤓 Hope the dissertation went well if it's already happened! 💪
@kristinemaeremodo1119
@kristinemaeremodo1119 Месяц назад
Hi. Reach to the part to test the skill but when I tested my invocation name by typing it like you did it didn't work. Help.
@TinyTechnicalTutorials
@TinyTechnicalTutorials Месяц назад
Hi kristinemae! 👋 Sorry for the slow response! Were you able to get this working?
@kristinemaeremodo1119
@kristinemaeremodo1119 Месяц назад
@@TinyTechnicalTutorials still haven't sorted it out. Help
@TinyTechnicalTutorials
@TinyTechnicalTutorials Месяц назад
Hmmmm...I know I had issues with invocation when I first started building skills. It was usually because I'd named something incorrectly, or was getting my skill name/invocation/intent mixed up. Best I can recommend is to maybe start from scratch with a new skill following the documentation, and see if you can get something simple working? developer.amazon.com/en-US/docs/alexa/custom-skills/steps-to-build-a-custom-skill.html
@goco15
@goco15 Год назад
Copied your package.json file verbatim. Still will not deploy. Log event show: "Failed to install dependencies! Something wrong in your package.json file!"
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hey Greg! Are you able to deploy the sample "hello world" skill that we started with (create a new custom skill, "from scratch")? I thought maybe the version of the SDK used in package.json had changed, but I just created a new skill (with no updates to code), and it seems to be the same as what I used for this video. So curious if you can create/deploy any skills at all.
@Jighm
@Jighm 9 месяцев назад
using slots to change outputs
@TinyTechnicalTutorials
@TinyTechnicalTutorials 9 месяцев назад
You got it! 👍
@ElectroCoderEC
@ElectroCoderEC 4 месяца назад
how control Smart Home Devices with lambda funcion python code???
@TinyTechnicalTutorials
@TinyTechnicalTutorials 4 месяца назад
Hey ElectroCoder! 👋 I haven't used these myself, but Alexa does have some Smart Home Skills: developer.amazon.com/en-US/docs/alexa/smarthome/understand-the-smart-home-skill-api.html
@mskleftwich
@mskleftwich 8 месяцев назад
Thanks so much for this amazingly detailed and well made tutorial.
@TinyTechnicalTutorials
@TinyTechnicalTutorials 8 месяцев назад
You bet! Glad it was helpful! 💪🔥🤓
@cekiert
@cekiert Год назад
Could the developer options allow more smart automation beyond what a routine can. Say I wanted something If door sensor open and light off then turn light on... I know routines can't have multiple conditions to trigger events I know a few other external options like ifttt can fill gaps at a monthly rate Any obstacles in using this at home, hosting costs, do I need to share the skill publicly?
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hey Cekiert! 😊 Unfortunately, I haven't done anything with Smart Home skills yet. Looking at the documentation, it definitely seems more involved than just the fun facts that I did the video. 😁 I think the best I could do is point you here: developer.amazon.com/en-US/docs/alexa/smarthome/smart-home-skill-concepts.html
@mustafadursun8596
@mustafadursun8596 9 месяцев назад
Hello is it possible to send alexa speaker output to aws iot mqtt topic with alexa developer console ?
@TinyTechnicalTutorials
@TinyTechnicalTutorials 9 месяцев назад
Ooh, interesting! I haven't done this myself, but it looks like it's possible. Seems that you have to use a Lambda function to publish the message though? Maybe this will help get you started? www.captechconsulting.com/technical/automating-a-tower-fan-with-alexa-skills-aws-lambda-aws-iot-and-an-esp32
@gbarnabic
@gbarnabic Год назад
How did you get that magnifying glass icon to show in the address bar that allowed you to increase the font size? It was around the 7:28 mark.
@gbarnabic
@gbarnabic Год назад
Oh, I just noticed that you are using a PC. I'm on a Mac. I hope it's a Chrome thing.
@gbarnabic
@gbarnabic Год назад
Found it. Thanks for the great basic tutorial.
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Glad you found it, George! Thanks for watching! 😊
@pythonantole9892
@pythonantole9892 2 года назад
How do we manage API credentials in a skill. Say we want to read data from a service in which every user has a unique API key, how would we go about it.
@TinyTechnicalTutorials
@TinyTechnicalTutorials 2 года назад
Hey Python Antole! I haven't needed to do this myself yet, but maybe this will help? stackoverflow.com/questions/64739184/alexa-skill-where-to-store-credentials
@alistairmurray626
@alistairmurray626 11 месяцев назад
Awesome tutorial! I'm trying to learn how to get Alexa to communicate with a ESP32 wifi module. I can get it to send /receive messages to the AWS, and i can also get Alexa to turn on/off dim or brighten an led/fan/or any circuit connected to the ESP32, but Alexa thinks she is turning on or dimming a light bulb (because i tricked her, hee hee), is there a way to create my own device with my own parameters in Alexa developer console? , and not just an on/off / pwm. Ideally serial communications, i would like to be able to say "Alexa, record my voice", ", and then i say my message e.g "hello world, stop recording", and then she converts my message to text and sends the string to m ESP32 module, and i can print the text in my serial monitor for example? or maybe alexa would have to publish the text to a AWS topic and my ESP32 can subcribe to the topic and get the message from there? (sorry i don't understand the AWS as much as i'd like so i may have said some terms wrong).
@TinyTechnicalTutorials
@TinyTechnicalTutorials 11 месяцев назад
Hey Alistair! 👋 Wow, you've made some impressive progress already! And sounds like you're probably more of an expert than me at getting it to work with hardware devices. 🤓 Unfortunately, I don't think I'll be much help, but hopefully someone else will chime in here. I see plenty of tutorials out there about how to get it to work with an ESP32, but most controlled through the Echo device (like this one: randomnerdtutorials.com/alexa-echo-with-esp32-and-esp8266). So I would imagine it's possible to do what you want with enough wrangling, but I can't give much help other than that! If you figure it out, feel free to report back here in case it helps someone else. 💪
@goco15
@goco15 Год назад
between 11:03 and 11:05 your 'facts' keystroke input autofills but mine does not, why?
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
I think this might be related to the overall issue of creating/deploying the skill (from your other comment).
@konycatstudio9762
@konycatstudio9762 Год назад
can I installa a npm library in lambda folder?
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hi KonyCat Studio! Maybe this will help? medium.com/underscoretec/upload-a-npm-module-to-aws-lambda-11a06d1eb64f
@user-nx2sh1mn7x
@user-nx2sh1mn7x Год назад
Can you make a video on how to create a skill that asks a follow up question that narrows the topics for which fun fact Alexa will tell the user?
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hi Morgan! 😊 Great suggestion! I'll add this to my list for future videos. Thanks for watching! 🙏
@hearthrob300
@hearthrob300 Год назад
Is there a way to get Alexa to respond in different voices such as kid's voice or make animal sounds based on what the user asks?
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hey Lenny! 😊 Hmmm, interesting question! I haven't tried that myself, but I found this blog post that seems to indicate it's possible: developer.amazon.com/blogs/alexa/post/b5716c1f-d57b-4178-9ed9-5f4cf50c64d6/new-developer-preview-easily-use-amazon-polly-voices-in-alexa-skills. Let me know if you have any luck with it!
@fabianapimentel1555
@fabianapimentel1555 7 месяцев назад
Great video! I have a question: create those skills it's free? Depending on the kind of skill i create, have I to pay anything?
@TinyTechnicalTutorials
@TinyTechnicalTutorials 7 месяцев назад
Thanks for watching, Fabiana! 🙏 The skills are free to create, but depending on how you want to host and distribute them, there can be a cost. This article sums it up pretty well: smarthomestarter.com/how-much-does-it-cost-to-create-an-alexa-skill/. Hope that helps, and good luck! 😊
@doughorwat
@doughorwat 10 месяцев назад
Is it possible to build a skill to stream my favorite radio station?And also play on alexa speaker groups. I have the main digital stream url of the station.
@TinyTechnicalTutorials
@TinyTechnicalTutorials 10 месяцев назад
Hey Doug! 👋 I haven't personally built one, but have seen it in the documentation here: developer.amazon.com/en-US/docs/alexa/music-skills/steps-to-create-a-music-skill.html. It seems fairly straightforward if you have the streaming URL?
@doughorwat
@doughorwat 10 месяцев назад
It lost me at step 3. Implement required features for a radio skill, Get playable content @@TinyTechnicalTutorials
@rtichy2648
@rtichy2648 Год назад
Is the link to pluralsight (above) still valid? I tried to go look at that, and I got the impression that Pluralsight may have altered their sites and broken the link, or something?
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hi R Tichy! The link is still working for me, but maybe something about the affiliate info is causing issues for you. Here's a direct link: app.pluralsight.com/library/courses/developing-alexa-skills.
@meh1366
@meh1366 2 года назад
If I wanted to add a reprompt at the end, what would I need to do?
@TinyTechnicalTutorials
@TinyTechnicalTutorials 2 года назад
Hi meh! :) If you're still needing help on the reprompt, this should get you started: developer.amazon.com/en-US/docs/alexa/custom-skills/handle-requests-sent-by-alexa.html#listen-and-reprompt
@aps8511
@aps8511 5 месяцев назад
How to integrate it with echo 5th gen ?
@TinyTechnicalTutorials
@TinyTechnicalTutorials 5 месяцев назад
Hi APS! 👋 I haven't tested it on an Echo before, and am finding very little information about how to do that. This is the best I can find: community.appinventor.mit.edu/t/connect-alexa-skill-to-echo-dot/69917/6 I believe (??) if the Echo is set up with the same email you use for your Developer Account, it should automatically be available to launch there?
@aps8511
@aps8511 5 месяцев назад
@@TinyTechnicalTutorials Thanks for reply, Anyways I found out a way: we need to connect our echo with the same Amazon account which we are using for development. It automatically incorporates the intent after deploying the code on lambda.
@TinyTechnicalTutorials
@TinyTechnicalTutorials 5 месяцев назад
Oh, nice work! Glad you were able to figure it out. And thanks for the update here...hopefully it'll help someone else! 🤓🔥💪
@lealandsellers4583
@lealandsellers4583 2 года назад
I’m going to use this to build my skill tomorrow. I’ll let you know how it goes. Thank you.
@TinyTechnicalTutorials
@TinyTechnicalTutorials 2 года назад
Awesome! Good luck! :)
@cartergiese3261
@cartergiese3261 Год назад
Hello, great video thus far. I'm at 11:32 in the video and am stuck I can't get my code to deploy. I press deploy and there's either no response or it says there is an error. Any tips to get past this?
@cartergiese3261
@cartergiese3261 Год назад
figured it out. if anybody has this issue, make sure your json file name doesn't have spaces!
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
D'oh! The dreaded space in the file name! This actually happened to me a couple days ago on another project. :) Thanks for the update here...this will be super helpful for other folks.
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Glad you got it figured out! :)
@parijat_sen
@parijat_sen Год назад
For some reason when trying to test even a newly created skill its not working. The first skill invocation itself not working
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hi Parijat! Sorry I missed this...were you able to get it working?
@parijat_sen
@parijat_sen Год назад
@@TinyTechnicalTutorials Thanks for your reply, yeah I was able to understand the issue
@imsteven3044
@imsteven3044 Год назад
Yes, that happended to my how did you solve it?
@RuiBentoAlves
@RuiBentoAlves Год назад
Hi, I cant make "this" Skill and i really would like to have "this" Skill: I have a lot of things at home that I want to arrange in a more or less organized way. The problem is that I have lots of different things and lots of places around the house, and after a while I forget where I put things. That's why I want a Skill where Alexa memorizes where I kept an item **through my voice command.**I want the skill to do the following: I say: "Alexa, I have stored the "Phone X charger" in the "X drawer"" Later, maybe mouths later, I want Alexa to tell me where I put the same "Phone X charger": Me: "Alexa, where did I put the "Phone X charger"? Alexa: "Phone X charger" is in "Drawer X" That skill, aplies to all stuff i have stored at home! I dont know if is already an skill like this one (if so, please let me know). If there are no Skills like this one, is anyone able to make it? (yes, i will buy, i will pay for it). Thanks in advance! best regards Rui Alves
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hi Rui! This is a great use case for Alexa, and this functionality actually already exists. :) Just tell Alexa to remember something, and then you can recall it later. More here: voicebrew.com/alexa-remember. Hope it helps! 😊
@RuiBentoAlves
@RuiBentoAlves Год назад
@@TinyTechnicalTutorials Hello, Thanks for your reply. Did you try that Skill? I tryed several times and does not work with me... :/ any tip?! Thanks
@zeevmindali780
@zeevmindali780 Год назад
where i can find yours advanced video for alexa?
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hi Zeev! 😊 I have a 90-minute course on Pluralsight here: app.pluralsight.com/library/courses/developing-alexa-skills/table-of-contents. Hope it helps!
@zeevmindali780
@zeevmindali780 Год назад
@@TinyTechnicalTutorials great, bought the course. one more question, I saw you are using JavaScript, rather then TypeScript. on you opinion, which will be a better choice? the JS or the TS
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Thanks so much, Zeev! 😊 You can definitely use TypeScript with an Alexa Skill. JavaScript tends to be slightly less code, but I'm not sure I have an opinion either way. 😊 It's whatever you're most comfortable with. Here's a walk-through that includes TypeScript examples if you need it: developer.amazon.com/en-US/docs/alexa/alexa-skills-kit-sdk-for-nodejs/develop-your-first-skill.html
@bharathkumar2007
@bharathkumar2007 8 месяцев назад
Great and simple Tutorial to get started :)
@TinyTechnicalTutorials
@TinyTechnicalTutorials 8 месяцев назад
Glad it helped! Thanks for watching! 😊🙏🌟
@imsteven3044
@imsteven3044 Год назад
can i use my alexa skill in my onw alexa? i tested on my phone my alexa skill, buut when i say alexa open "asistente steven(my skill)" she can't open it but in my phone she can open it
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hi I'm Steven! Yes, you should be able to test it on a device. Make sure the device is registered under the same email as your developer account, and that the locale of your device is the same as well. Here's some more info: developer.amazon.com/en-US/docs/alexa/test/test-your-skill-overview.html#alexa-device
@tejchanbanka4452
@tejchanbanka4452 Год назад
Can you please tell me how to insert an excel sheet into an Alexa skill which contains small data.
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hi Tejchan! I haven't personally done that before, and I'm not finding much online. But I did find this for Google Sheets. Maybe if you can use Google Sheets instead of Excel, you can get something like this to work? medium.com/@flreln/how-to-create-a-dynamic-alexa-skill-using-google-sheets-and-storyline-9fd37f2080d8
@tejchanbanka4452
@tejchanbanka4452 Год назад
Thank you very much this helps me a lot
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
You bet!
@rtichy2648
@rtichy2648 Год назад
@@TinyTechnicalTutorials fwiw, Storyline is dead.
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Thanks for the info, R Tichy! 👍
@vintagesixties
@vintagesixties Год назад
i appreciate the simplicity!
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Thanks so much! :)
@MestreDigital
@MestreDigital Год назад
I loved your video! Thank you!
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
I'm so glad! Thanks for watching! 🙏😊
@MEHEDIHASAN-pg1ti
@MEHEDIHASAN-pg1ti 2 года назад
That's an impressive tutorial. I was wondering if any project using APL pie chart visualization is possible using some kind JSX.
@TinyTechnicalTutorials
@TinyTechnicalTutorials 2 года назад
Thanks, Mehedi! Glad you liked it. Can you clarify? I'm not familiar with the APL pie chart visualization? I get a couple Google results, but want to make sure I'm understanding. :)
@finlamit88
@finlamit88 Год назад
Great tutorial, thanks! Is there a way of invoking a skill without asking Alexa to open it. In your case, instead if saying "Open TTT Fun Facts" I could just say 'Tell me a fun fact'?
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hi Mitchell! Thanks for watching! 😊 There's quite a bit you can do with invocations. Here's some more info that might help: developer.amazon.com/en-US/docs/alexa/custom-skills/understanding-how-users-invoke-custom-skills.html
@watchfulwren2251
@watchfulwren2251 Год назад
Great video!
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Thank you so much!! 😊
@LivinginFlorida24
@LivinginFlorida24 11 месяцев назад
love it thank you so much, how can i open on my apple phone?
@TinyTechnicalTutorials
@TinyTechnicalTutorials 10 месяцев назад
Hi Magdolna! 👋 I don't have an Apple phone myself, but I believe you just need to install Alexa from the Apple Store, then you can work with your skills from there (make sure the email address you use on your phone is the same one you used to develop the Alexa skill).
@fujur7
@fujur7 Год назад
Super cool video! I did a skill quite similar to ttt fun facts but when you said Tell me a fun fact it doesn't matter whatever you say will trigger the fun fact. Any solution to that? Thanks a lot again for this wonderfull video
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Hey Javier! Thanks for watching, and sorry for the slow response! Were you able to sort this out? I've had this issue before and realized it was a problem with how my utterance was set up. Hope you were able to get it working! Happy holidays! :)
@fujur7
@fujur7 Год назад
@@TinyTechnicalTutorials thanks a lot for your response. I ll try and let you know ...thanks a lot!
@ilyaszg
@ilyaszg Год назад
thanksss
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
You're welcome! Thank YOU for watching! 😊
@alljcory
@alljcory Год назад
I'm brand spanking new and the missing (') after const facts = require('./funfacts) and missing semicolon after in examples were initially killing me, but thank you so much for the quick demo it was fun once i figured out the syntax errors which in a way added to my learning) 😀
@TinyTechnicalTutorials
@TinyTechnicalTutorials Год назад
Oh gosh! Yes, debugging is a great way to learn, although a frustrating one! Glad you got it working. 😊
Далее
Classic Italian Pasta Dog
00:20
Просмотров 4,7 млн
Run your own AI (but private)
22:13
Просмотров 1,3 млн
How to Build a Software Company From Scratch Solo
13:41
I forced EVERYONE to use Linux
22:59
Просмотров 368 тыс.
What are AI Agents?
12:29
Просмотров 157 тыс.
How I Coded An Entire Website Using ChatGPT
18:22
Просмотров 1,9 млн
The Greenwich Meridian is in the wrong place
25:07
Просмотров 754 тыс.
Как Apple тестируют iPhone😁😁😁
0:16
Odam vs BYD power bank 🤣😂
0:30
Просмотров 576 тыс.
Nokia 3310 top
0:20
Просмотров 5 млн
Nokia imba #trollface #sorts
0:31
Просмотров 4,6 млн
📱магазин техники в 2014 vs 2024
0:41