@chitchatjs/plugin-ax-session

Session management plugin for chitchat.js

Usage no npm install needed!

<script type="module">
  import chitchatjsPluginAxSession from 'https://cdn.skypack.dev/@chitchatjs/plugin-ax-session';
</script>

README

@chitchatjs/plugin-ax-session

Chitchat.js display utilties for manage session easily. @chitchatjs/alexa.

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

Get in touch

gitter

Usage

End session:

import {session} from "@chitchatjs/plugin-ax-session"

// ends the session
session.end(true)

// sets a session attribute
session.set("key": "value")

Example:

ax.compound()
  .add(ax.say("Hello, this is a sample text. Good bye!"))
  .add(session.end(true))
  .build();