This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Sets the widget settings for the site.
function setWidgetSettings(
widgetSettings: WidgetSettings,
): Promise<SetWidgetSettingsResponse>;
Widget settings to update.
import { widgetSettings } from "@wix/ai-site-chat";
async function setWidgetSettings(widgetSettings) {
const response = await widgetSettings.setWidgetSettings(widgetSettings);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.