Skip to content

Rating and feedback

Defines that step will wait for visitor to leave a rate mark with or without feedback.

Preview

Submit button label

Allows to override default 'Submit' label.

Cancel button label

Allows to override default 'No, thanks' label.

Input for feedback

Allows user to leave feedback message along with rating.

Placeholder for feedback input

Optional input, has 30 chars limit and text will be truncated on client if limit is exceeded. If input is empty in step, on chat input for feedback will be shown without placeholder.

Output

The structure of the output without feedback message:

js
{
    rating: 5
}
{
    rating: 5
}

The structure of the output with feedback message:

js
{
    rating: 5, // Number
    feedback: ''
}
{
    rating: 5, // Number
    feedback: ''
}

Use function to define user answer

Allows to override default answer by custom message.

Available variables

The same as output example.

js
{
  rating: 5, // Number
  feedback: ''
}
{
  rating: 5, // Number
  feedback: ''
}

Example

js
return `rating: ${rating} | feedback: ${feedback}`
return `rating: ${rating} | feedback: ${feedback}`
Step configuration:

Custom answer step configuration

Result:

Custom answer result