This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Adds feedback to a message.
function addFeedback(
messageId: string,
options: AddFeedbackOptions,
): Promise<AddFeedbackResponse>;
ID of the message to add feedback to.
import { assistantTraining } from "@wix/ai-site-chat";
async function addFeedback(messageId, options) {
const response = await assistantTraining.addFeedback(messageId, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.