Git Product home page Git Product logo

alexa-custom-skill-light's Introduction

alexa-custom-skill-light

Alexa custom skill

Use AWS lambda

  • config.example -> config
  • npm install
  • upload this project to lambda

알렉사 커스텀 스킬

람다를 통해 알렉사와 연동 가능

  • config.example 폴더 -> config로 수정
  • command에서 npm install로 모듈을 설치
  • 이 프로젝트 폴더를 압축해서 AWS 람다에 zip 형태로 올리면 실행 가능
    • AWS CLI를 활용하여 timeout에 걸리지 않고 zip파일을 올릴 수 있음
      • 기본 활용 방법
      • 배치 파일 활용 방법
        • 프로젝트 내 lambda_upload.bat 파일로 업로드 가능
        • AWS CLI7zip가 설치되어 있어야 함.
      • 쉘 스크립트 파일 활용 방법
        • 프로젝트 내 lambda_upload.sh 파일로 업로드 가능
        • 커맨드에서 아래의 명령어를 실행하여 해당 파일을 실행 가능하게 만든 후 실행
          sudo chmod +x lambda_upload.sh
        
  • 로컬 환경 테스트
    • lambda-local을 활용하여 테스트 가능
    • 아래와 같이 Alexa-SDK를 활용하여 DynamoDB에 상태를 저장한 경우 이 부분은 lambda-local 테스트가 제대로 동작하지 않음
      this.attributes[key] = value
    

알렉사 skill 구성하기

  • 람다에 Alexa skill interface를 연결하여야 함

  • IAM을 활용하여 람다에 DynamoDB, CloudWatch에 변경 권한을 주어야 함

  • 스킬 구성하기(Build An Alexa How To Skill) 링크

  • 스킬에 아마존 로그인 연동하기(Login with Amazon, LWA) 링크

  • 아마존 개발자 홈(Amazon developer) 링크


참고

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.