Developers

Install

Installation

SDK packages can be installed as follows:

Using script tags

The following packages are available as direct script tags:

1<script defer src="https://unpkg.com/@nlxai/chat-widget/lib/index.umd.js"></script>
1<script defer src="https://unpkg.com/@nlxai/chat-core/lib/index.umd.js"></script>
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