Setup

@wix/ai-site-chat

To use the Messages API, install the @wix/ai-site-chat package.

Install the package

To install the package, follow the instructions below based on your development environment.

Wix sites and Blocks apps

When developing with:

Copy
npm install @wix/ai-site-chat

or

Copy
yarn add @wix/ai-site-chat

Wix apps and Headless

When developing CLI or self-hosted Wix apps, as well as headless apps or sites, run the following command:

Copy
npm install @wix/ai-site-chat

or

Copy
yarn add @wix/ai-site-chat

Import the package

To import the package in your code:

Copy
import { messages } from "@wix/ai-site-chat";
Did this help?