4.1.0 • Published 9 years ago

generator-alexa-skill v4.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

generator-alexa-skill

Build Status NPM Version License

A Yeoman generator for scaffolding an Alexa Skill for AWS Lambda using alexa-lambda-skill.

Installation

npm install -g yo generator-alexa-skill

Generating a new Alexa Skill

yo alexa-skill

This creates a brand new Alexa Skill, add your logic into src/index.js and tests into test/index-test.js. The template is a HelloWorld skill:

import Response from 'alexa-response';
import { Skill, Launch, Intent } from 'alexa-lambda-skill';

@Skill
export default class HelloWorld {

  @Launch
  launch() {
    return Response.say('HelloWorld launched!');
  }

  @Intent('hello')
  hello({ name = 'world' }) {
    return Response.say(`Hello ${name}`).card({ title: 'HelloWorld', content: `Hello ${name}` });
  }

  @Intent('AMAZON.HelpIntent')
  help() {
    return Response.ask('I say hello to people. Who should I say hello to?').reprompt('Who should I say hello to?');
  }

  @Intent('AMAZON.CancelIntent', 'AMAZON.StopIntent')
  stop() {
    return Response.say('Goodbye');
  }

}

Also see model/UTTERANCES for phrases that users may say to interact with this skill and the schema of user intents in model/schema.json that are used to build the interaction model for your skill.

4.1.0

9 years ago

4.0.6

9 years ago

4.0.5

9 years ago

4.0.4

9 years ago

4.0.3

9 years ago

4.0.2

9 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.0.3

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.2.9

10 years ago

0.2.8

10 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.15

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago