# 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:

{
    rating: 5
}

The structure of the output with feedback message:

{
    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.

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

# Example

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

Custom answer step configuration

# Result:

Custom answer result

Last Updated: 12/21/2023, 2:38:08 PM