Skip to content

maksymenko/alexa_connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Starter guide to create Alexa skill

Create custom skill

  • Navigate https://developer.amazon.com/home.html > ALEXA > Get Started > Create Skill

  • Select Custom skill

  • Enter name: Message Manager

  • Click: Create skill

  • Create Invocation - phrase users say to begin interation with skill. For custom skill only.

    • Intents - represents action
    • Slot - argument

Add AWS lambda endpoint

  • create lambda https://console.aws.amazon.com/lambda/home?region=us-east-1#/functions
    • create role for lambda from template Simple Microservice permissions
    • click Create
  • Add trigger : Alexa Skills Kit

Link Alexa Skill and AWS lambda

  • Copy skill ID amzn1.ask.skill.xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx to labbda function trigger.
  • Copy ARN from AWS lambda and pasete to Alexa Skill AWS Lambda ARN

Account Linking

  • Enable account linking
  • Get Authentication provider details https://console.developers.google.com > Credentials
    • Create Credentians > OAuth Client ID > Web application
    • Add authorised redirect urls from Alexa skill Account linking page.
    • Create and copy client ID and client secret to Alexa skill 'Account linking` page.
    • Download JSON with connection details and put parameters on Alexa skill page.
  • Configure Alexa skill
    • Choose: Auth Code Grant
    • Scope: openid
    • past: token URI and Auth URI from downloaded configuration file.

Launch Skill in Beta testing mode

  • To test if Account linking works
    • click Launch > Save and Continue > Save and Continue
    • copy invitation link or invite by mail.

Add Implementation

  • Create NodeJS project
  • Implement required functionality see index.js as sample.
  • Package all sources and dependencies (node_modules) into single zip file and deploy application to AWS lambda.

Resources

About

Alexa integration and acount linking

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published