Thank you! Great point at 4:43. Before I thought the user’s intent was described only by the set of sample utterances the developer provides. Now I understand that Alexa uses machine learning to handle various inputs outside of that so those utterances are still properly routed to the correct intent.
Thanks great stuff Couple wishes , for next video - how to run Timer eg. cooking time 1min and it would tell when the time is passed - how to,pause / resume the timer - how to configure a sequence e.g. option 2min with interval
Glad you enjoyed and thank you for the suggestions! I'll play around later this week and try to get the timer you mentioned working. The tricky part about integrating a timer into your alexa application is that alexa is normally just triggered by voice. I need to figure out how to trigger responses based on timer events as well. I'll write back to you after I figure this out. Not sure yet if I'll incorporate this into part 2 of the video. I'll keep you updated.
Hi Keith Galli, congratulations! I´m already using the on intent function and now I´m facing this situation. I want to create a Skill that returns a value for each kind of food as an example: bread = 28 black bread = 25 Italian bread = 22 France bread = 20 ****** but the possible intents has the same sample as bread Apple = 3 milk = 12 chocolate = 5 My idea is, the user says the name of the food and the skill should return the value. Thank you in advance!!!
Hi, Thanks for sharing. It was indeed an amazing video. Also, can you please explain how we can take inputs in alexa and how to save it in variables? Say for example - Alexa - Hi, Whats your name? Me - Hi, My name is Monika. now i want to save this, so alexa's next statement will be - Hi Monika, How are you doing today? How can we achieve this?
Thanks, mate, it's been really useful in 2021 too.. amidst of all the complex updates from amazon, need some help I could get the required output in the test console but when i command my echo dot it's not giving the same Please help me with this
Hey! Thanks for this tutorial it's been really helpful in getting started with Alexa in Python. Question - is there a way to use the template you provided and add SSML to change Alexa's intonation etc. I tried changing 'Plain Text' to 'SSML' in the backend code and using tags but I'm having trouble getting it working. Any suggestions? Or maybe another tutorial that includes SSML?! :)
Hi There, Thanks for your awesome video!! I was wondering if there is a way to have Alexa to do 2 things simaltounesly. Ex: User says: Set timer for 2 minutes. Alexa: Timer started. (and starts the timer). So how can you fit 2 functions into one variable? Also it would be awesome if you could tell us the difference between "Events" & "Functions that control the skill's behavior" in the template.
Hi Keith, thank you for your video. This is relevant to what I want to do. However, I want the Alexa to initiate the conversation by speaking first. Do you happen to know how to realize this? I have been trying sending a PutSession request using a client side python code to trigger the welcoming message to make it seem like the speaker speaks first, however, it seems the subsequent conversation doesn't work as I expected.
Hey Keith really nice video, I like your style. I am new to coding but interested in seeing if I can get Alexa to query a dynamodb and return answers to my questions. Is it possible to adapt your starting lambda function or is there a better way to tackle this ? Cheers
Hi Keith, I have a problem with the code itself. I have configured the end-points as you have indicated in the video. When I go into the Alexa skill, start test and invoke lambda, I am not seeing any formatting json output. Alexa is not responding with any messages. Is there any step that I might have missed?
Keith Thanks so much for the video. You made a video that makes it so easy to use my python skills for a different task. I subscribed and liked your video, and it's the only channel on youtube I've ever liked or subscribed to!! One question though...... How do I import your github "compliments.txt file into my lamda directory. I can cut and paste your text file obviously, but where do I paste it to? How do I get to that directory? Thanks in advance Dale
Hey Dale, thanks for the kind words and thanks for subscribing! In your lambda code editor, you can either do file --> new file --> (name it compliments.txt) --> paste in the text. The other option is to zip a folder of al the files you want to use on lambda (python code and compliments.txt) and then inside of lambda editor, click on "code entry type", switch it to "upload a .zip folder" and then upload the files that you zipped up. You can then switch it back to edit code inline and everything should be there. Hope this helps!!! Best, Keith
At 1:55, you said that login should be same for all 3 places, developer, aws,alexa. Do you mean that credentials should be same on these places, is it possible to login aws account with developer account credentials. Please correct me.
Keith ,Excellent Vedio..but sometimes i am getting JSON response as null..not sure why. I need another help building interactive Tableau Dashboard and Alexa Lambda skill..I need a help how i can first connect to my Tableau Dashboard using python lamda function
Hi Keith! Great video, got me started with AWS with Python. After this I tried developing a skill to talk to my SQLServer DB. I am able to run the skill wit Flask-ask(I am using the pymssql driver) but when I try it with lambda, I get an error saying Unable to import module 'lambda_function': No module named 'pymssql'. Have you tried connecting to a database?
Hey! I believe the issue that you are running into is because AWS lambda by default does not have a pymssql installed on it. What you need to do to fix this issue is install the library locally and then upload it in a zip folder to AWS lambda with your actual python file. These links will probably be helpful for you: stackoverflow.com/questions/40538730/how-to-install-pymysql-on-aws-lambda?rq=1 stackoverflow.com/questions/38877058/how-do-i-add-python-libraries-to-an-aws-lambda-function-for-alexa
Hey Keith, I really appreciate you posting this video! So I'm encountering an error when I'm running the Alexa Simulator. I'm not sure why but it won't run the conversation application. Alexa replies with a "There was a problem with the requested skill's response." I honestly don't know what I did wrong bc you've made this tutorial so simple to follow lmao please help 🥺
Hey glad you've enjoyed the video! Debugging Alexa skills can be super annoying. I recommend you skip ahead to part 2 video of programming alexa because I go through the debugging process in that one. Hopefully that will clear up things, but if not feel free to comment again!
@@mari-tn7zb Hey just in case you were not able to figure out the issue, I think I figured it out. Try commenting out the import statement "from __future__ import print_function". That worked for me.
Glad you enjoyed! I think because you included a heart emoji I have to post a part 2. I'll aim to post it by the end of the weekend of August 10-12! :)
hey, no pressure but im dyinggg for this part 2, have to make an alexa skill for this competition in python and i have no idea how to get it fully functioning
Hello again, I have most of a part 2 filmed. I mainly just need to edit it. Don't know if i'll be able to do that before the weekend, but what I can do for you is upload the unedited version as a private video later today and link you to that. Won't be much different from the edited version, except the sound is a bit off and I need to add one additional part.
I'll have that uploaded before I go to bed and send you a link to it as a reply here. I'm hoping to upload it in a couple hours, but because I'm running around the rest of the day, i might not be able to do it until like midnight EST.
couldnt you simplify the compliment variables with a function that divides the phrase? so alexa would know your the recipient of the compliment and have a variety of features to compliment you on, and how to compliment each feature. while avoiding errors like. "your eyes are intelligent." lol.
Sure thing! Inside the function "on_intent" you need to add an elif statement after the first if statement. The elif statement should be something like "elif intent_name == 'your_intent_name_here' ". You'll have to add that additional intent on the alexa skills kit side. And then inside that elif statement you'll want to call a new response function. The new response function can be structured just like get_welcome_response. Hopefully this helps. If not I should have part 2 posted within a few days so watch out for that for additional help.
Hey! I was having the same issue and all you have to do is change your default location of your aws account to virginia and just create the function function again you'll find alexa skills kit now
@FERNANDO MAGALLON-ROMERO thanks! In the end i realised it was because i was using a newer version of python so i wrote a new script for that version and it works!
Why did you skip writing the python code? All the tutorials are skipping to them pulling the code from a git repo or something...Lets see that part as well..
Finest Alexa Skill Walkthrough using Lambda Function in AWS account.
This is great. I searched a load of Amazon docs and not getting anywhere before finding this. It's really useful.
Thank you! Great point at 4:43. Before I thought the user’s intent was described only by the set of sample utterances the developer provides. Now I understand that Alexa uses machine learning to handle various inputs outside of that so those utterances are still properly routed to the correct intent.
What a video man! Hats off to you for explaining it to a degree that even I was able to understand
Thanks for doing Python, I greatly appreciate it!
I struggled for 3 days before I found this video.. it worked perfectly to get started
.. thank you
you're a legend for focusing on python
Thanks great stuff
Couple wishes , for next video
- how to run Timer eg. cooking time 1min and it would tell when the time is passed
- how to,pause / resume the timer
- how to configure a sequence e.g. option 2min with interval
Glad you enjoyed and thank you for the suggestions!
I'll play around later this week and try to get the timer you mentioned working. The tricky part about integrating a timer into your alexa application is that alexa is normally just triggered by voice. I need to figure out how to trigger responses based on timer events as well. I'll write back to you after I figure this out. Not sure yet if I'll incorporate this into part 2 of the video. I'll keep you updated.
Keith, many thx for such a great tutorial. Great work! A big thank you!
Very useful and pretty much the only guide out there with the updated UI. Kudos.
Hi
Keith Galli, congratulations!
I´m already using the on intent function and now I´m facing this situation.
I want to create a Skill that returns a value for each kind of food as an example:
bread = 28
black bread = 25
Italian bread = 22
France bread = 20
****** but the possible intents has the same sample as bread
Apple = 3
milk = 12
chocolate = 5
My idea is, the user says the name of the food and the skill should return the value.
Thank you in advance!!!
That "WHAT?!" at 9:27 tho, all of us feel you bro
M.Poorvesh Muthraman Haha yeah!
太棒了!对于我们刚入门的人真的提供了很大的帮助
Hi, Thanks for sharing. It was indeed an amazing video.
Also, can you please explain how we can take inputs in alexa and how to save it in variables?
Say for example -
Alexa - Hi, Whats your name?
Me - Hi, My name is Monika.
now i want to save this, so alexa's next statement will be - Hi Monika, How are you doing today?
How can we achieve this?
Thank you so much Keith for this great tutorial! Excellent job!!
Thanks, mate, it's been really useful in 2021 too.. amidst of all the complex updates from amazon, need some help I could get the required output in the test console but when i command my echo dot it's not giving the same Please help me with this
Excellent video. Thaks for the help and making it entertaining as well.
Glad you enjoyed! :)
Hey! Thanks for this tutorial it's been really helpful in getting started with Alexa in Python. Question - is there a way to use the template you provided and add SSML to change Alexa's intonation etc. I tried changing 'Plain Text' to 'SSML' in the backend code and using tags but I'm having trouble getting it working. Any suggestions? Or maybe another tutorial that includes SSML?! :)
Hi There,
Thanks for your awesome video!!
I was wondering if there is a way to have Alexa to do 2 things simaltounesly. Ex: User says: Set timer for 2 minutes. Alexa: Timer started. (and starts the timer). So how can you fit 2 functions into one variable?
Also it would be awesome if you could tell us the difference between "Events" & "Functions that control the skill's behavior" in the template.
Keith, I hear you won an award
I won all the awards. But probably not as much as you silly jerome.
Keith Galli I only won 1 participation award for playing competitive bowling
Thank you with this video..really helpful..i can't wait for part 2
Life saver🙏
Great Video and explained in easy way
keith can you please make part 3 and teach how to make an aws iot and control a device from alexa skill?
Thanks for this great video.
I am facing a problem , can anyone help me ....alexa is not responding/utterances keeps on loading
Hi Keith, thank you for your video. This is relevant to what I want to do. However, I want the Alexa to initiate the conversation by speaking first. Do you happen to know how to realize this? I have been trying sending a PutSession request using a client side python code to trigger the welcoming message to make it seem like the speaker speaks first, however, it seems the subsequent conversation doesn't work as I expected.
Thank you!
Hey Keith really nice video, I like your style. I am new to coding but interested in seeing if I can get Alexa to query a dynamodb and return answers to my questions. Is it possible to adapt your starting lambda function or is there a better way to tackle this ? Cheers
Hi Keith,
I have a problem with the code itself. I have configured the end-points as you have indicated in the video. When I go into the Alexa skill, start test and invoke lambda, I am not seeing any formatting json output. Alexa is not responding with any messages.
Is there any step that I might have missed?
also, my Alexa developer account and aws have different credentials
can't wait to see more :) keep up the great work
good work
Keith Thanks so much for the video. You made a video that makes it so easy to use my python skills for a different task. I subscribed and liked your video, and it's the only channel on youtube I've ever liked or subscribed to!! One question though...... How do I import your github "compliments.txt file into my lamda directory. I can cut and paste your text file obviously, but where do I paste it to? How do I get to that directory? Thanks in advance
Dale
Hey Dale, thanks for the kind words and thanks for subscribing!
In your lambda code editor, you can either do file --> new file --> (name it compliments.txt) --> paste in the text.
The other option is to zip a folder of al the files you want to use on lambda (python code and compliments.txt) and then inside of lambda editor, click on "code entry type", switch it to "upload a .zip folder" and then upload the files that you zipped up. You can then switch it back to edit code inline and everything should be there.
Hope this helps!!!
Best,
Keith
Thanks Brother!!! You're awesome!!!!
At 1:55, you said that login should be same for all 3 places, developer, aws,alexa. Do you mean that credentials should be same on these places, is it possible to login aws account with developer account credentials. Please correct me.
Keith ,Excellent Vedio..but sometimes i am getting JSON response as null..not sure why.
I need another help building interactive Tableau Dashboard and Alexa Lambda skill..I need a help how i can first connect to my Tableau Dashboard using python lamda function
Did you watch the second video I made on Alexa? That had some debugging tips in it
Thnks man !!! 👌👍👌👍
Can you please post video with New SDK alexa and python 3 - can you please include ElicitSlotDirectives and audio play?
Hi Keith! Great video, got me started with AWS with Python. After this I tried developing a skill to talk to my SQLServer DB. I am able to run the skill wit Flask-ask(I am using the pymssql driver) but when I try it with lambda, I get an error saying Unable to import module 'lambda_function': No module named 'pymssql'. Have you tried connecting to a database?
Hey! I believe the issue that you are running into is because AWS lambda by default does not have a pymssql installed on it. What you need to do to fix this issue is install the library locally and then upload it in a zip folder to AWS lambda with your actual python file.
These links will probably be helpful for you:
stackoverflow.com/questions/40538730/how-to-install-pymysql-on-aws-lambda?rq=1
stackoverflow.com/questions/38877058/how-do-i-add-python-libraries-to-an-aws-lambda-function-for-alexa
Hey Keith, I really appreciate you posting this video! So I'm encountering an error when I'm running the Alexa Simulator. I'm not sure why but it won't run the conversation application. Alexa replies with a "There was a problem with the requested skill's response." I honestly don't know what I did wrong bc you've made this tutorial so simple to follow lmao please help 🥺
Hey glad you've enjoyed the video! Debugging Alexa skills can be super annoying. I recommend you skip ahead to part 2 video of programming alexa because I go through the debugging process in that one. Hopefully that will clear up things, but if not feel free to comment again!
perfect, then I shall continue. thanks a lot for the quick response!
@@mari-tn7zb Hey just in case you were not able to figure out the issue, I think I figured it out. Try commenting out the import statement "from __future__ import print_function". That worked for me.
@@gyulnaragrigoryan7256 Thanks for your help. It worked for me
Thanks but I figured it out :D
this was really helpful could you please make a part 2
Glad you enjoyed! I think because you included a heart emoji I have to post a part 2. I'll aim to post it by the end of the weekend of August 10-12! :)
hey, no pressure but im dyinggg for this part 2, have to make an alexa skill for this competition in python and i have no idea how to get it fully functioning
Hello again, I have most of a part 2 filmed. I mainly just need to edit it. Don't know if i'll be able to do that before the weekend, but what I can do for you is upload the unedited version as a private video later today and link you to that. Won't be much different from the edited version, except the sound is a bit off and I need to add one additional part.
Keith Galli yes pls pls plssss
I'll have that uploaded before I go to bed and send you a link to it as a reply here. I'm hoping to upload it in a couple hours, but because I'm running around the rest of the day, i might not be able to do it until like midnight EST.
You're awesome
Hey, do you know how to see Python errors? Like when I have sntax error or import issues.
Check the part 2 of this video! It will cover that there!!
Hello !! How to place mp3 in lambda python code for response , which is in s3 bucket ,
I don’t have the option to add the Alexa Skills and configure it, why is that?
couldnt you simplify the compliment variables with a function that divides the phrase? so alexa would know your the recipient of the compliment and have a variety of features to compliment you on, and how to compliment each feature. while avoiding errors like. "your eyes are intelligent." lol.
what changes should be done in lambda function code if we have to add more than 1 intents. please help me in this regard
Sure thing! Inside the function "on_intent" you need to add an elif statement after the first if statement. The elif statement should be something like "elif intent_name == 'your_intent_name_here' ". You'll have to add that additional intent on the alexa skills kit side. And then inside that elif statement you'll want to call a new response function. The new response function can be structured just like get_welcome_response. Hopefully this helps. If not I should have part 2 posted within a few days so watch out for that for additional help.
thanks now its working.
the alexa skills kit is not on the list. I get AWS IoT and then Application Load Balancer
Hey!
I was having the same issue and all you have to do is change your default location of your aws account to virginia
and just create the function function again
you'll find alexa skills kit now
Please help! When I go to run my application, it says "There was a problem with the requested skill's response"! What???
@FERNANDO MAGALLON-ROMERO thanks! In the end i realised it was because i was using a newer version of python so i wrote a new script for that version and it works!
Yo it’s jerome
this only works once on the echo, then closes the conversation app...
Please explain the python code also
Booton smashed
Lol thank you!!
bruuuuh nice
Is it free tho?
Why did you skip writing the python code? All the tutorials are skipping to them pulling the code from a git repo or something...Lets see that part as well..
Basic Template: github.com/KeithGalli/Alexa-Python/blob/master/basic_template.py
money intro hahah
:)
This ain’t a race cuz I’m stuck in jamaca.
Me vs you in connect 4😈. I will win