Amazon Lex Chatbot Tutorial - Introduction and Demo - with AWS Lambda | Lex V2 Architecture Example

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 53

  • @ArchitectureBytes
    @ArchitectureBytes  2 роки тому +1

    You may also be interested in:
    AI ChatBot / AI Assistant (Voice/Text) using Amazon Connect and Lex:
    ua-cam.com/video/3AZ1n2oHtEI/v-deo.html

  • @Ali-ls3oy
    @Ali-ls3oy 2 роки тому

    Hey man, this is the best tutorial seen so far, good job!

  • @bytesandbitstraining
    @bytesandbitstraining Рік тому +1

    for the branching, I had to remove the "if" at the beginning of the statement. I think the one already provided in the field (although it looks like it's ghosted out) prevents the need to manually type in the "if".

  • @faikkoprenca5204
    @faikkoprenca5204 2 роки тому +1

    Good job, it was really helpful

  • @Shukla-gf8iv
    @Shukla-gf8iv Рік тому

    Very good demo of Lex Bot.. very informative showing all the steps .. thank you ...

  • @karatekidskc6832
    @karatekidskc6832 2 роки тому +1

    Brilliant.. Thank you very much

  • @srinivasrepala1
    @srinivasrepala1 3 місяці тому

    Good efforts 🔥🔥🔥

  • @nithishsubramaniyan
    @nithishsubramaniyan Рік тому +1

    Hello, When I try to call lambda using code hook invoked slot parameter in the Lex event is null.

    • @ArchitectureBytes
      @ArchitectureBytes  Рік тому +1

      Please check:
      1. Debug as shown in 38:54 to see if slot value is being captured.
      2. Are you accessing the slot value correctly in Lambda function?
      See the Lambda Code example mentioned in the video description.

    • @nithishsubramaniyan
      @nithishsubramaniyan Рік тому

      @@ArchitectureBytes
      Thanks for your response.
      Q1: Using logs I can see that the slot is captured and saved in the session attributes.
      Q2: I have printed the whole Lex event in the log; that's how I confirmed that lambda received the empty slot object in the lambda.
      I can observe that the issue occurs only if we use the slot before the condition block. If the condition block is removed, then the code hook works as expected.

  • @michaelevert9509
    @michaelevert9509 8 місяців тому

    Hello, when programming fallback I found that no matter what I typed it assumed that was an order number and wanted to know if I wanted to cancel order thkddhhftb I changed this slot to be only a number and that helped BUT if I simply type in multiple numbers it trys to cancel

    • @ArchitectureBytes
      @ArchitectureBytes  8 місяців тому +1

      Without looking at your setup - I guess the CancelOrderIntent is getting invoked because you either chose that option(button) Or typed an utterance about canceling the order - so after that the ChatBot is looking for OrderNo to cancel.

    • @michaelevert9509
      @michaelevert9509 8 місяців тому

      I would enjoy showing you at anytime. My set up was just like yours.

  • @stevebuonincontri6853
    @stevebuonincontri6853 Місяць тому

    I like your videos

  • @sitabjachatterjee249
    @sitabjachatterjee249 Рік тому

    1st Question - How to use the Version 1 for later purpose?
    2nd Question - And after I built the bot again, and I wrote "Hey/Hello" etc.. it throws and error as "Cannot call FulfillmentCodeHook for Intent CreateOrderIntent. BotAlias/LocaleId TestBotAlias/en_US doesn't have an associated Lambda Function."
    Is this expected ?
    When I selected the settings button and manually added the source again on the chat screen , it started working. But no cloud watch log is generated after that also.

    • @ArchitectureBytes
      @ArchitectureBytes  Рік тому

      1 You can migrate from V1 to V2. There is documentation available regarding that.
      2 If you are testing Chatbot Draft version - you must configure lambda function in the Settings 34:07
      If you are creating a Version & Alias 36:19 - then you must configure lambda function 37:43

  • @UncleF115
    @UncleF115 Рік тому

    what if one lex bot need to invoke multiple lambda? the alias page seems only allow us to select one?

    • @ArchitectureBytes
      @ArchitectureBytes  Рік тому +1

      Amazon Lex V2 uses one Lambda function per bot alias per language (instead of one Lambda function for each intent). So, you can use the Lambda function that's configured for your bot's alias - to invoke other Lambda functions, based on the current intent's name.

    • @UncleF115
      @UncleF115 Рік тому

      @@ArchitectureBytes got it. Much thanks. You got me unstucked from a skill builder lab

    • @UncleF115
      @UncleF115 Рік тому

      @@ArchitectureBytes what’s your LinkedIn btw? I will follow you there.

  • @eshadas4857
    @eshadas4857 2 роки тому

    Hi , after configuring lambda function I am not able to place an order. Getting something went wrong error.Please help here.

    • @ArchitectureBytes
      @ArchitectureBytes  2 роки тому

      Have you checked the error message in CloudWatch Logs?

    • @eshadas4857
      @eshadas4857 2 роки тому

      @@ArchitectureBytes No not checked yet

    • @dhinuvideos
      @dhinuvideos 2 роки тому

      @@eshadas4857 pls check the cloud watch log after you get some idea

    • @eshadas4857
      @eshadas4857 2 роки тому

      @@dhinuvideos still not able to get idea can you please help

  • @christofbergner
    @christofbergner Рік тому

    really helpful

  • @HarshKumar-r5f
    @HarshKumar-r5f Рік тому

    Thanks a lot.

  • @jjawal
    @jjawal 2 роки тому

    Very informative video sir. Can you please share some videos related visual builder as well

  • @kishore6399
    @kishore6399 2 роки тому

    Hello I am getting the Reached Maximum number of allowed steps in single user input.Please update the bot definition to avoid any potential loops error if I use conditional loops

    • @kishore6399
      @kishore6399 2 роки тому

      What to do and why it is coming?

    • @ArchitectureBytes
      @ArchitectureBytes  2 роки тому

      Please check your conditional branching logic - the 'Next Step in Conversation' part.
      Perhaps it is resulting in a 'loop' behavior.

    • @kishore6399
      @kishore6399 2 роки тому

      @@ArchitectureBytes no we have just given a single slot and for a particular value of slot we have given the display message in the branching condition.
      We are developing a simple question and answer type bot for that we are using the branch what might be the issue?

    • @ArchitectureBytes
      @ArchitectureBytes  2 роки тому

      Pls verify/change 'Next Step in Conversation' part for Condition/Slots etc.

    • @kishore6399
      @kishore6399 2 роки тому

      @@ArchitectureBytes thank you so much sir we got it right

  • @prasannamansabdar5570
    @prasannamansabdar5570 Рік тому

    Hi how to publish the boat for end user usage ?

    • @ArchitectureBytes
      @ArchitectureBytes  Рік тому

      You can write a custom web page with javascript to invoke Amazon Lex APIs.
      Pls see video description for a link to an example.

  • @sruthi.ppakki2736
    @sruthi.ppakki2736 Рік тому

    Can we connect it directly to any website from where the BOT can automatically fetch the data?

    • @ArchitectureBytes
      @ArchitectureBytes  Рік тому

      Not sure if I understand the question. Using a Lambda function alongside the chatbot as shown in the demo, you can fetch data from wherever you want.

  • @kishore6399
    @kishore6399 2 роки тому

    How can we provide user with a clickable link as response please help

    • @ArchitectureBytes
      @ArchitectureBytes  2 роки тому

      Try returning the response (with hyperlink) via a Lambda function.
      However, whether the link is displayed correctly or not depends on the chat client.

    • @kishore6399
      @kishore6399 2 роки тому

      @@ArchitectureBytes can't we do this without using lambda?

    • @ArchitectureBytes
      @ArchitectureBytes  2 роки тому

      Under (Advanced Options >) More Response Options > Add > Custom Payload - here you could return a custom payload for eg. your link
      Your chat client (custom/facebook messenger/slack) has to interpret the response and display hyperlink.

    • @kishore6399
      @kishore6399 2 роки тому

      @@ArchitectureBytes can't we check that in lex interface for now because I tried it but it displays as a normal text message only

    • @kishore6399
      @kishore6399 2 роки тому

      @@ArchitectureBytes and one more thing using u r method i.e from lambda also do we need to check with client?

  • @stevebuonincontri6853
    @stevebuonincontri6853 Місяць тому

    Let me know if u want to team up on some RFP

  • @sgoro1
    @sgoro1 4 дні тому

    Too many ads