Giter Site home page Giter Site logo

dima1034 / skill-sample-nodejs-decision-tree Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexa-samples/skill-sample-nodejs-decision-tree

0.0 3.0 0.0 40 KB

An Alexa Skill Sample for building a skill that can take a user through a decision tree, like "What should I eat for breakfast?"

License: Other

JavaScript 100.00%

skill-sample-nodejs-decision-tree's Introduction

Build An Alexa Decision Tree Skill

Voice User InterfaceLambda FunctionConnect VUI to CodeTestingCustomizationPublication

What You Will Learn

  • AWS Lambda
  • Alexa Skills Kit (ASK)
  • Voice User Interface (VUI) Design
  • Skill Certification
  • Reprompts
  • State Management
  • A Simple Binary ("Yes" or "No") Decision Tree Algorithm Implementation

What You Will Need

  • Amazon Developer Portal Account
  • Amazon Web Services Account
  • The sample code provided in this repository.
  • A series of yes or no questions to ask your users and results based on their answers. Good types of question and answers for this could be:
    • Magazine style quizzes like "What kind of job is good for me?", or "Which superhero personality type am I?"
    • Suggestion and Reccommendation based skills like "Where cuisine should I eat today?", or "What genre of movie should I watch?"

What Your Skill Will Do

We make choices every day. We choose what to wear, where to go for dinner, which route to take to work or school. Decision making is a vital and regular part of our livelihood.

Sometimes we're faced with so many choices, that arriving at a conclusive decision can be difficult. Decision trees can help simplify this for us.

Decision trees are a model that provide a structured process to chart out a course of action or arrive at a generalized conclusion, based on specific facts. Inherent in their name, decision trees are visualized as a tree like structure illuminating possible outcomes down a series of branches.

To learn more about decision trees, a good place to start would be the wikipedia page for Decision Trees.

Decision trees can form the basis of many different kinds of Alexa skills. In a turn based adventure game, presenting a user with a choice can progress a narrative. Additionally, decision trees can be utilized to recommend, or suggest a course of action (i.e. "What movie should I watch?").

In this sample skill, we'll explore how a decision tree can be implemented. Alexa will provide an ideal career by asking a series of questions and giving you an answer. Alexa will ask questions such as:

  • "Do you like working with people?"
  • "Do you like caring for others?"
  • "Would you like to work during the day?"

The response to each question will procedurally progress the user through the nodes (branches) in the decision tree. Alexa will continue asking more questions until a final decision node is reached, at which point she will suggest an ideal career for you!

skill-sample-nodejs-decision-tree's People

Contributors

akersh-s avatar deegles avatar memodoring avatar steoneill avatar

Watchers

James Cloos avatar Dmytro Ostapenko 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.