addFeedback( )


Developer Preview

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.

Method Declaration
Copy
function addFeedback(
  messageId: string,
  options: AddFeedbackOptions,
): Promise<AddFeedbackResponse>;
Method Parameters
messageIdstringRequired

ID of the message to add feedback to.


optionsAddFeedbackOptionsRequired
Returns
Return Type:Promise<AddFeedbackResponse>
JavaScript
import { assistantTraining } from "@wix/ai-site-chat"; async function addFeedback(messageId, options) { const response = await assistantTraining.addFeedback(messageId, options); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?