@chitchatjs/plugin-ax-common
v0.2.8
Published
Alexa common building blocks plugin library using @chitchatjs/alexa.
Downloads
12
Maintainers
Readme
@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
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(),
});