Coder Social home page Coder Social logo

primary_colors's Introduction

Alexa Demo - Primary Colors

Setup Steps

mix deps.get
mix ecto.create
mix ecto.migrate -r Authable.Repo #add tables for user linking
mix ecto.migrate
mix run priv/repo/seeds.exs # seed data with one user and one client (Alexa)

Amazon Setup

  • create Amazon Developer Account - Signup

  • create new Alexa skill

img

  • Add skill info. For our primary colors skill, we will not be using Audio Player directives.

img

  • Interaction Model
    • add intents using the intent.json file
    • add utterances using the utterances.json file

img

  • Configure Your Skill
    • Select HTTPS as the service endpoint type
    • Provide valid URL for endpoint to your local machine (I suggest using ngrok)
    • Supply client ID based on the client from the seed data. You can retrieve this with the following query in iex
    • Specify implicit grant for Authorization Grant Type
AlexaDemo.Repo.get_by(Authable.Model.Client, name: "demo").id

img

  • Do not select an SSL certificate option

Testing

At this point, you should be able to test the skill using the web interface.

img

With that successful test, you can move on to testing with your Alexa device. First you'll need to link accounts.

  • Visit Your Skills and locate your application
  • Select the skill and disable it if it's currently enabled.
  • Select Enable

img

  • when prompted to login, use the following credentials

Now you should be able to test the following interactions:

  • Alexa - launch color mixer.

This is an example of an intent where the session is left open. If you respond quickly, you can simply say "what are the primary colors" without using the invocation name or "Alexa". This is indicated by the blue ring remaining on around the device.

  • Alexa - ask color mixer what are the primary colors.
  • Alexa - tell color mixer my favorite color is red.
  • Alexa - ask color mixer what do I get when I mix blue and red?
  • Alexa - tell color mixer my favorite color is blue.
  • Alexa - ask color mixer what do I get when I mix my favorite color and red?
  • Alexa - ask color mixer what is my favorite color?

Although basic in nature, this skill demonstrates key pieces to voice integrations. Intents, slot values, and user linking combine to open the endless possibilities.

primary_colors's People

Watchers

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