0.2.8 • Published 3 years ago

@chitchatjs/plugin-ax-common v0.2.8

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@chitchatjs/plugin-ax-common

Chitchat.js platform developed plugin package for common builing blocks to build alexa skills.

npm.io

🤖 Chitchat.js is a JavaScript framework for building voice user interfaces for Alexa Skills. | 📄 Read the documentation

Get in touch

gitter

Usage

import { ax } from "@chitchatjs/alexa";
import { common } from "@chitchatjs/plugin-ax-common";

ax.compound()
  .add(ax.whenLaunch().then(ax.say("Hello world!")).build())
  .add(common.defaultHandlers()) // automatically add help, stop, fallback handlers
  .build();

or customize

common.defaultHandlers({
  help: ax
    .ask("You can ask me a number, I will say that number back.")
    .reprompt("What is your number?")
    .build(),
});