angel_alexa 0.0.0 copy "angel_alexa: ^0.0.0" to clipboard
angel_alexa: ^0.0.0 copied to clipboard

Angel framework infrastructure for writing Amazon Alexa skills.

angel_alexa #

Pub build status

Angel framework infrastructure for writing Amazon Alexa skills.

TODO: More docs

Contrived example:

class HelloWorldHandler extends AlexaLaunchRequestHandler {
  @override
  bool canHandleTyped(
          AlexaHandlerInput handlerInput, AlexaLaunchRequest request) =>
      true;

  @override
  AlexaResponseEnvelope handleTyped(
      AlexaHandlerInput handlerInput, AlexaLaunchRequest request) {
    return handlerInput.responseBuilder
        .withSpeech('Hello, Angel framework!')
        .withShouldEndSession(true)
        .response;
  }
}

// We can use any Service<String, Map<String, dynamic>> to store
// persistence data.
//
// For example, you might use this with a Redis store. Otherwise,
// the default is just an in-memory store.
var adapter = ServicePersistenceAdapter(MapService());

// Create a skill object.
var skill = AlexaSkill(persistenceAdapter: adapter)
  ..requestHandlers.add(HelloWorldHandler());

// Mount the skill as a route.
app.post('/', alexaSkill(skill));
}
0
likes
30
pub points
0%
popularity

Publisher

verified publisherangel-dart.dev

Angel framework infrastructure for writing Amazon Alexa skills.

Repository (GitHub)
View/report issues

License

LGPL-3.0 (LICENSE)

Dependencies

alexa_skill, angel_framework

More

Packages that depend on angel_alexa