The Widget Settings API allows you to manage your AI Site-Chat's settings. Learn more about configuring your AI Site-Chat's settings.
With this API, you can:
Note: Wix AI Site-Chat is currently only available in the Wix Editor.
It's important to note the following point before starting to code:
To use the WidgetSettings API, install the @wix/ai-site-chat
package using npm or Yarn:
or
Then import { widgetSettings }
from @wix/ai-site-chat
:
This article shares some possible use cases your app or site could support, as well as a sample flow that could support each use case. This can be a helpful jumping-off point.
To retrieve and update the widget settings:
To display a message if the AI assistant is offline:
assistantOnline
in the response.false
, display a message on the site.