@chitchatjs/plugin-ax-common
TypeScript icon, indicating that this package has built-in type declarations

0.2.8 • Public • Published

@chitchatjs/plugin-ax-common

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

🤖 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(),
});

Dependencies (9)

Dev Dependencies (14)

Package Sidebar

Install

npm i @chitchatjs/plugin-ax-common

Weekly Downloads

2

Version

0.2.8

License

ISC

Unpacked Size

23.6 kB

Total Files

10

Last publish

Collaborators

  • kevindra