GithubHelp home page GithubHelp logo

danvucore / youtube-data-alexa-skill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from znergy/youtube-data-alexa-skill

1.0 0.0 1.0 6 KB

This is an Alexa skill that was made to receive data from youtube's api and give users some immediate insight into their channels.

JavaScript 100.00%

youtube-data-alexa-skill's Introduction

Alexa Skill: YouTube Data API

This Alexa Skill queries the YouTube Data API, and returns the subscriber count and viewer count based off what the user asks for. Examples:

  • "Alexa, ask youtube data stream for current subscribers count"
  • "Alexa, ask youtube data stream for number of video views this month"

Project Requirements

  • To fully understand what's taking place
    • You need some understanding of AWS
    • You need some understanding of Node.js
    • You need some understanding of API's

Lambda Setup

  • Navigate to AWS Console, sign in, click Lambda, set geolocation (top right) as N. Virginia, click create new Lambda function
  • Select Blank function as template
  • Select Alexa Skills Kit as a trigger
    • You need to create an account in the Alexa Developer console for the alexa skills kit to show in the lambda trigger dropdown menu
    • URL: https://developer.amazon.com/
  • Set lambda function name as 'youtubeDataAPIAlexaSkill'
  • Create a role with basic lambda execution permission (lambda_basic_execution)
  • Add the temp.js code to your lambda function
  • Get a YouTube Data API Key from https://console.developers.google.com/apis/
    • Go to Library, click YouTube Data API, click get credentials, and copy API key
  • Get your channel id from YouTube Advanced Settings
    • Log In, click user icon, click account settings icon, click advanced (next to profile picture)
    • Copy Youtube Channel ID
  • Using both your YouTube API Key and YouTube Channel ID add them to the endpoint variable inside of your lambda function (code copied from temp.js)
    • Each different intent needs the updated endpoint for your Alexa skill to work properly

Alexa Setup

  • Go to https://developer.amazon.com/, sign in, click Alexa, click Alexa Skills Kit
  • Click 'Add a New Skill'
  • Create an Alexa app name, I used 'YouTube Data API'
  • Create an Invocation name, I used 'youtube data stream' (this is your Alexa skill name)
  • Click Next
  • Add the intent-schema.json code and insert into 'Intent Schema' section
  • Add the sample-utterances.txt text and insert into 'Sample Utterances' section
  • Click next
  • Connect your Lambda function using the ARN from AWS Lambda console
    • Example, arn:aws:lambda:us-east-1:xxxxxx:function:youtubeDataAPIAlexaSkill
  • Click next
  • Type a sample utterance, ex: 'current subscriber count' and hit 'Ask {app name}'
    • This should trigger your lambda function and respond with how many subscribers you have

Reporting bugs

If any of the information above, doesn't work or is missing a step. You can reach me at [email protected]

Technologies Used

youtube-data-alexa-skill's People

Stargazers

VMDAO avatar

Forkers

vmdao

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.