FeedbackOptions

PropTypeDescriptionDefault
enabledboolean

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

false
votesboolean

Enable votes.

true
csatboolean

Enable thread CSAT.

true
csatReasonboolean

Enable thread CSAT reason.

false
headingstring

Heading above the form.

"Was this response helpful?"
headingCSATstring

Heading above the CSAT picker.

"How helpful was this?"
headingCSATReasonstring

Heading above the CSAT reason input field.

"Could you tell us more?"
thankYouCSATReasonstring

Heading above the CSAT reason input field when the user has submitted a reason.

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

Called when feedback is submitted.

PromptFeedback

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