FeedbackOptions

PropTypeDescription
enabledboolean

Enable feedback functionality, shows a thumbs up/down button after a prompt was submitted. Default: false.

votesboolean

Enable votes. Default: true.

csatboolean

Enable thread CSAT. Default: true.

csatReasonboolean

Enable thread CSAT reason. Default: false.

headingstring

Heading above the form. Default: "Was this response helpful?".

headingCSATstring

Heading above the CSAT picker. Default: "How helpful was this?".

headingCSATReasonstring

Heading above the CSAT reason input field. Default: "Could you tell us more?".

thankYouCSATReasonstring

Heading above the CSAT reason input field when the user has submitted a reason. Default: "Thank you!".

onFeedbackSubmit( feedback: PromptFeedback, messages: ChatViewMessage[], messageId?: string, ) => void

Called when feedback is submitted.

PromptFeedback

1interface PromptFeedback {
2  vote: '1' | '-1';
3}