Giter VIP home page Giter VIP logo

yashu-alexa-skill's Introduction

Yashu-Alexa-Skill

An Alexa skill to use it as a personal assistent.

Request Flow

Here is the Alexa Request Flow for reference.

Request Flow

Steps

  1. Receive and send a voice request from Amazon echo or echo plus
  2. Amazon Voice Service (AVS) receve the voice request and convert to text message
  3. Send the Text message to identify the appropriate skill Alexa Skills Kit (ASK). This is done based on the Developer Tools to identify/process the Utterances, Intents and Slots
  4. Construct the a request object based on the appropriate/identified Utterances, Intents and Slots
  5. Call the configured endpoint based on the constructed Request object
  6. Process the request and send the response to AVS in SSML
  7. Process the response and send to Amazon Echo in voice format

Deploying locally

Make sure you have Node.js and the Heroku Toolbelt installed.

git clone https://github.com/puttareddy/yashu-alexa-skill.git # or clone your own fork
cd yashu-alexa-skill
npm install
npm start

Your app should now be running on http://localhost:8080.

For testing purposes, you can use either ngrok or localtunnel before you deploy the app to any cloud hosted environments

Testing it

You can access a test page to verify if the basic setup is working fine: http://localhost:8080/test.

Deploying to Heroku

heroku create
git push heroku master
heroku open

Alternatively, you can deploy your own copy of the app using this button:

Deploy to Heroku

Your app should now be running on https://<app-name>.herokuapp.com, where <app-name> is the heroku app name.

Testing it

You can access a test page to verify if the basic setup is working fine: https://<app-name>.herokuapp.com/test.

Create a New Skill

  • Sign into AWS Developer Console, https://developer.amazon.com.
  • Choose Alexa, Alexa Skill Kit
  • Add a New Skill
  • Fill Out Forms with INTENTS and UTTERANCES values from the above deployed endpoint. Invoke and copy these values from the /test endpoint from the above deployed application.
  • Choose HTTPs in Service Endpoint Type in the Alexa app configuration on developer.amazon.com and point to deployed app at https://<app-name>.herokuapp.com/test. Application name would change based on where it is deployed.

OR

  • Just specify the Lambda ARM, if you deploy it as a Lambda function

The skill is now available in http://alexa.amazon.com.

Try It

  • Alexa, ask yashu to tell about puttareddy.
  • Alexa, ask yashu who is Murali.
  • Alexa, ask yashu my age is 30.
  • Alexa, ask yashu my name is puttareddy and I am 30 years old.

References

This Alexa Skill is built by using the alexa-app module with Express.

yashu-alexa-skill's People

Contributors

puttareddy avatar

Stargazers

Giuseppe Nesca avatar  avatar

Watchers

James Cloos avatar

Forkers

marlondantas

yashu-alexa-skill's Issues

Not able to make requests

I followed all the steps you mentioned in your code.
But i am getting this
There was a problem communicating with the requested skill
Please help me

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.