Giter Club home page Giter Club logo

cs4296-gp8's Introduction

AWS Lex V2 - An Online Shop Order Chatbot

CS4296 group 8

Chatbot Conversation Flow

Architecture

image

Amazon Lex V2

  • Import Chatbot
    1. Compress OnlineShopChatbot Directory as OnlineShopChatbot.zip
    2. Login to AWS console with a valid account
    3. Navigate to Services and search for Amazon Lex
    4. Click get started
    5. Under the bots section, click Action, Import
    6. Input file section:
      • Bot name: OnlineShopChatbot
      • Input file: OnlineShopChatbot.zip
      • Password: N/A
    7. IAM permission section:
      • Runtime role: Create a role with basic Amazon Lex permissions.
    8. Children's Online Privacy Protection Act (COPPA)
      • Is use of your bot subject to the Children's Online Privacy Protection Act (COPPA)? No
    9. Idle session timeout
      • Session timeout: 5 minute(s)
    10. Advanced settings - optional: N/A
    11. Navigate to the Bots section, imported bot status should be Available.

Amazon DynamoDB

  • Create orders table
    1. Login to AWS console with a valid account
    2. Navigate to Services and search for DynamoDB
    3. Under Create Resources, Create table
    4. Table details
      • Table name: Orders
      • Partition key: OrderID with type String
    5. Create table, the status should be Active

AWS Lambda function

  • Import Lambda function
    1. Login to AWS console with a valid account
    2. Navigate to Services and search for Lambda
    3. Under Functions, Create function
    4. Author from scratch, since we are not authorized to perform serverless app repository
    5. Basic information
      • Function name: productinformation
      • Runtime: Python 3.9
      • Architecture: x86_64
      • Permissions -> Change default execution role: LabRole
    6. Code source
      • Copy / Paste lamda functions within AWSLambdaFunctions directory or compress lambda functions as zip and upload as code source
    7. Press Deploy

Lex & Lambda Integration

(AWS console) Amazon Lex -> Bots -> OnlineShopChatbot -> Aliases -> Alias item -> Languages -> English -> Lambda function :

Source : productinformation
Lambda function version or alias : $LATEST

cs4296-gp8's People

Contributors

icasso avatar tahr-tom avatar jameswong2000 avatar leosoftleo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.