How to Program a Conversation with Alexa! (Python & AWS Lambda) - Part 1

Поділитися
Вставка
  • Опубліковано 1 лис 2024

КОМЕНТАРІ • 98

  • @ashasahmad5037
    @ashasahmad5037 3 роки тому

    Finest Alexa Skill Walkthrough using Lambda Function in AWS account.

  • @jallwork
    @jallwork 4 роки тому +2

    This is great. I searched a load of Amazon docs and not getting anywhere before finding this. It's really useful.

  • @michaelturner7804
    @michaelturner7804 5 років тому +1

    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.

  • @freedlezack
    @freedlezack 4 роки тому +1

    What a video man! Hats off to you for explaining it to a degree that even I was able to understand

  • @vochristopher
    @vochristopher 6 років тому +12

    Thanks for doing Python, I greatly appreciate it!

  • @NadimShaikh123
    @NadimShaikh123 5 років тому

    I struggled for 3 days before I found this video.. it worked perfectly to get started
    .. thank you

  • @shted224
    @shted224 3 роки тому

    you're a legend for focusing on python

  • @homerdus9668
    @homerdus9668 6 років тому +4

    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

    • @KeithGalli
      @KeithGalli  6 років тому

      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.

  • @hari20001
    @hari20001 3 роки тому

    Keith, many thx for such a great tutorial. Great work! A big thank you!

  • @techfalkon3858
    @techfalkon3858 6 років тому

    Very useful and pretty much the only guide out there with the updated UI. Kudos.

  • @wspaiva
    @wspaiva 4 роки тому

    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!!!

  • @2000mipo
    @2000mipo 6 років тому +5

    That "WHAT?!" at 9:27 tho, all of us feel you bro

    • @reyariass
      @reyariass 4 роки тому +2

      M.Poorvesh Muthraman Haha yeah!

  • @huipingliang4359
    @huipingliang4359 5 років тому

    太棒了!对于我们刚入门的人真的提供了很大的帮助

  • @monikaswarnkar19
    @monikaswarnkar19 4 роки тому +1

    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?

  • @pankeshpatel6835
    @pankeshpatel6835 5 років тому

    Thank you so much Keith for this great tutorial! Excellent job!!

  • @joshuagajjala176
    @joshuagajjala176 3 роки тому

    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

  • @isaacchan6879
    @isaacchan6879 6 років тому +1

    Excellent video. Thaks for the help and making it entertaining as well.

  • @ciaraanderson3424
    @ciaraanderson3424 4 роки тому +3

    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?! :)

  • @daniyaldehleh8253
    @daniyaldehleh8253 4 роки тому

    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.

  • @jeromeyeah8879
    @jeromeyeah8879 5 років тому

    Keith, I hear you won an award

    • @KeithGalli
      @KeithGalli  5 років тому

      I won all the awards. But probably not as much as you silly jerome.

    • @jeromeyeah8879
      @jeromeyeah8879 5 років тому

      Keith Galli I only won 1 participation award for playing competitive bowling

  • @eriolisa
    @eriolisa 6 років тому

    Thank you with this video..really helpful..i can't wait for part 2

  • @kirankumarb2190
    @kirankumarb2190 3 роки тому

    Life saver🙏

  • @Winter-Bear
    @Winter-Bear 6 років тому

    Great Video and explained in easy way

  • @nazaninkhazaeefarid8757
    @nazaninkhazaeefarid8757 4 роки тому

    keith can you please make part 3 and teach how to make an aws iot and control a device from alexa skill?

  • @gaganmishra1000
    @gaganmishra1000 4 роки тому

    Thanks for this great video.
    I am facing a problem , can anyone help me ....alexa is not responding/utterances keeps on loading

  • @bianchao2639
    @bianchao2639 4 роки тому

    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.

  • @umaira2272
    @umaira2272 4 роки тому

    Thank you!

  • @gittin_funky
    @gittin_funky 6 років тому

    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

  • @irfanrana
    @irfanrana 4 роки тому

    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?

    • @irfanrana
      @irfanrana 4 роки тому

      also, my Alexa developer account and aws have different credentials

  • @jrq3rq
    @jrq3rq 6 років тому

    can't wait to see more :) keep up the great work

  • @amitrupak1981
    @amitrupak1981 4 роки тому

    good work

  • @daleschulz3306
    @daleschulz3306 4 роки тому

    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

    • @KeithGalli
      @KeithGalli  4 роки тому

      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

    • @daleschulz3306
      @daleschulz3306 4 роки тому

      Thanks Brother!!! You're awesome!!!!

  • @indian2223
    @indian2223 5 років тому

    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.

  • @rudrachand6643
    @rudrachand6643 5 років тому

    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

    • @KeithGalli
      @KeithGalli  5 років тому

      Did you watch the second video I made on Alexa? That had some debugging tips in it

  • @shreerams8147
    @shreerams8147 4 роки тому

    Thnks man !!! 👌👍👌👍

  • @ramakrishnakillana4225
    @ramakrishnakillana4225 6 років тому

    Can you please post video with New SDK alexa and python 3 - can you please include ElicitSlotDirectives and audio play?

  • @sourabhiitg1
    @sourabhiitg1 6 років тому

    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?

    • @KeithGalli
      @KeithGalli  6 років тому +1

      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

  • @mari-tn7zb
    @mari-tn7zb 5 років тому +2

    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 🥺

    • @KeithGalli
      @KeithGalli  5 років тому

      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
      @mari-tn7zb 5 років тому

      perfect, then I shall continue. thanks a lot for the quick response!

    • @gyulnaragrigoryan7256
      @gyulnaragrigoryan7256 5 років тому +1

      @@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.

    • @satyam-bhalla17
      @satyam-bhalla17 5 років тому

      @@gyulnaragrigoryan7256 Thanks for your help. It worked for me

    • @mari-tn7zb
      @mari-tn7zb 5 років тому

      Thanks but I figured it out :D

  • @Aley676
    @Aley676 6 років тому

    this was really helpful could you please make a part 2

    • @KeithGalli
      @KeithGalli  6 років тому +1

      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! :)

    • @Aley676
      @Aley676 6 років тому

      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

    • @KeithGalli
      @KeithGalli  6 років тому +1

      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.

    • @Aley676
      @Aley676 6 років тому

      Keith Galli yes pls pls plssss

    • @KeithGalli
      @KeithGalli  6 років тому

      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.

  • @PrivacyDefend
    @PrivacyDefend 5 років тому

    You're awesome

  • @wernersbacher
    @wernersbacher 5 років тому +2

    Hey, do you know how to see Python errors? Like when I have sntax error or import issues.

    • @KeithGalli
      @KeithGalli  5 років тому

      Check the part 2 of this video! It will cover that there!!

  • @devgarg5833
    @devgarg5833 5 років тому

    Hello !! How to place mp3 in lambda python code for response , which is in s3 bucket ,

  • @omarjimz
    @omarjimz 5 років тому

    I don’t have the option to add the Alexa Skills and configure it, why is that?

  • @CruelCrusader90
    @CruelCrusader90 4 роки тому

    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.

  • @Sanjeevkumar-rm6bk
    @Sanjeevkumar-rm6bk 6 років тому

    what changes should be done in lambda function code if we have to add more than 1 intents. please help me in this regard

    • @KeithGalli
      @KeithGalli  6 років тому

      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.

    • @Sanjeevkumar-rm6bk
      @Sanjeevkumar-rm6bk 6 років тому

      thanks now its working.

  • @kkerlley
    @kkerlley 5 років тому

    the alexa skills kit is not on the list. I get AWS IoT and then Application Load Balancer

    • @ishanpradhan05
      @ishanpradhan05 5 років тому +1

      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

  • @danchalmers5216
    @danchalmers5216 5 років тому

    Please help! When I go to run my application, it says "There was a problem with the requested skill's response"! What???

    • @danchalmers5216
      @danchalmers5216 5 років тому

      @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!

  • @jeromeyeah8879
    @jeromeyeah8879 5 років тому

    Yo it’s jerome

  • @MarsTheProgrammer
    @MarsTheProgrammer 5 років тому +1

    this only works once on the echo, then closes the conversation app...

  • @saurabhdhavale8602
    @saurabhdhavale8602 5 років тому

    Please explain the python code also

  • @lucasjustice
    @lucasjustice 4 роки тому

    Booton smashed

  • @Menace2Reality
    @Menace2Reality 5 років тому

    bruuuuh nice

  • @William1hus
    @William1hus 4 роки тому

    Is it free tho?

  • @networkfreddy2000
    @networkfreddy2000 5 років тому

    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..

  • @sinnvollerkommentar263
    @sinnvollerkommentar263 4 роки тому

    Basic Template: github.com/KeithGalli/Alexa-Python/blob/master/basic_template.py

  • @vickcityy1143
    @vickcityy1143 6 років тому

    money intro hahah

  • @jeromeyeah8879
    @jeromeyeah8879 5 років тому

    This ain’t a race cuz I’m stuck in jamaca.

  • @paulmunywoki6362
    @paulmunywoki6362 6 років тому

    Me vs you in connect 4😈. I will win