Code Monkey home page Code Monkey logo

aws-lex-robo-advisor's Introduction

AWS Lex Robo Advisor - UW Fintech Bootcamp Module 15 Challenge

This is my AWS Lex bot that uses an AWS Lambda to give investment portfolio recommendations based on user input details such as age, risk-level, and investment amount.

Using the Bot

Assuming that valid input has been provided to the bot, you will be able to receive recommended portfolio diversification percentages based on your personal details.

Gif showing general usage of inputing your age, risk-level, and investment amount and the bot responding with outputs such as “60% bonds (AGG), 40% equities (SPY)” or “20% bonds (AGG), 80% equities (SPY)

In the Videos folder I have provided examples of running each test event in the chatbot dialog box, and have also included videos showing general valid/invalid usage of the bot.

Test Events

General Usage

Initial Test (Before Lambda Logic)


Bot Configurations

The Lex bot has the following configurations:

General Criteria:

  • Bot name: RoboAdvisor
  • Language: English (US)
  • Output voice: Salli
  • Session timeout: 5 minutes
  • Sentiment analysis: No
  • COPPA: No
  • Advanced options: No
  • All other options: The default value

Intents:

  • recommendPortfolio
    • Utterances
      • I want to save money for my retirement
      • I'm {age} and I would like to invest for my retirement
      • I'm ​{age} and I want to invest for my retirement
      • I want the best option to invest for my retirement
      • I'm worried about my retirement
      • I want to invest for my retirement
      • I would like to invest for my retirement
    • Slots
      • firstName - AMAZON.US_FIRST_NAME - "Thank you for trusting me to help, could you please give me your name?"
      • age - AMAZON.NUMBER - "How old are you?"
      • investmentAmount - AMAZON.NUMBER - "How much do you want to invest?"
      • riskLevel - AMAZON.AlphaNumeric - "What level of investment risk would you like to take? (None, Low, Medium, High)"

Technologies

This is an Amazon Lex chatbot that uses a Python 3.7 lambda function.

The following dependencies are used:

  1. AWS Lex (V1) - NLP chatbot
  2. AWS Lambda - Business logic extension to Lex bot

Usage

The lambda function lambda_function.py will provide the logic for a bot with similar configurations to how I have mine set up.


Contributors

Ethan Silvas


License

This project uses the GNU General Public License

aws-lex-robo-advisor's People

Contributors

ethansilvas avatar

Stargazers

 avatar

Watchers

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