Skip to main content

Feedback buttons element

Fields

FieldTypeDescriptionRequired?
typeStringThe type of element. In this case type is always feedback_buttons.Required
positive_buttonObjectA button to indicate positive feedback. See button object fields below.Required
negative_buttonObjectA button to indicate negative feedback. See button object fields below.Required
action_idStringAn identifier for this action. You can use this when you receive an interaction payload to identify the source of the action. Should be unique among all other action_id values in the containing block. Maximum length is 255 characters.Optional

Button object fields

Both positive_button and negative_button contain the following fields:

FieldTypeDescriptionRequired?
textObjectA text object that defines the button's text. Can only be of type: plain_text. Maximum length for the text in this field is 75 characters.Required
valueStringThe value to send along with the interaction payload. Maximum length is 2000 characters.Required
accessibility_labelStringA label for longer descriptive text about a button element. This label will be read out by screen readers instead of the button text object. Maximum length is 75 characters.Optional

Example

Feedback buttons with accessibility labels:

{
"type": "feedback_buttons",
"action_id": "feedback_buttons_1",
"positive_button": {
"text": {
"type": "plain_text",
"text": "Good"
},
"value": "positive_feedback",
"accessibility_label": "Mark this response as good"
},
"negative_button": {
"text": {
"type": "plain_text",
"text": "Bad"
},
"value": "negative_feedback",
"accessibility_label": "Mark this response as bad"
}
}