Install
Installation
SDK packages can be installed as follows:
Using script tags
The following packages are available as direct script tags:
- @nlxai/chat-widget - add a chat widget to your website with only HTML:
1<script defer src="https://unpkg.com/@nlxai/chat-widget/lib/index.umd.js"></script>
- @nlxai/chat-core - talk to a bot in plain JavaScript without a bundler:
1<script defer src="https://unpkg.com/@nlxai/chat-core/lib/index.umd.js"></script>
- @nlxai/voice-plus-core - add Voice+ capabilities to a plain HTML page:
1<script defer src="https://unpkg.com/@nlxai/voice-plus-core/lib/index.umd.js"></script>
Using npm
All packages are available on npm as CommonJS modules. They are written in TypeScript and include comprehensive type definitions.
1# The Chat widget 2npm install @nlxai/chat-widget 3 4# React hooks, along with peer dependencies 5npm install @nlxai/chat-react react react-dom 6 7# Preact hooks, along with peer dependencies 8npm install @nlxai/chat-preact preact 9 10# Core chat SDK 11npm install @nlxai/chat-core 12 13# Voice+ 14npm install @nlxai/voice-plus-core
- Previous
- Introduction: Getting started