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/multimodal - add multimodal capabilities to a plain HTML page:
1<script defer src="https://unpkg.com/@nlxai/multimodal/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# Multimodal 14npm install @nlxai/multimodal
- Previous
- Introduction: Getting started