Skip to content

Holds small, low-emphasis actions under a message — feedback buttons and icon buttons.

Type context_actions
Available in Messages, Modals, Home tab
Compatible block elements Feedback buttons element, Icon button element
Field Type Description Required?
type String The type of block. For a context actions block, type is always context_actions. Required
elements Object[] An array of feedback buttons and icon button elements. Maximum of 5 elements. Required
block_id String A unique identifier for the block. If not specified, one is generated. Use it to tell which block a block_actions payload came from. Maximum length is 255 characters. It must be unique within the message or view — a duplicate is replaced and reported as a warning. Optional

Feedback on an AI answer — how it renders in Repzo Chat

{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Order *SO-2041* left the Riyadh warehouse on 12 Oct and should arrive by 15 Oct."
}
},
{
"type": "context_actions",
"elements": [
{
"type": "feedback_buttons",
"action_id": "answer_feedback",
"positive_button": {
"text": {
"type": "plain_text",
"text": "Helpful"
},
"value": "helpful"
},
"negative_button": {
"text": {
"type": "plain_text",
"text": "Not helpful"
},
"value": "not_helpful"
}
},
{
"type": "icon_button",
"action_id": "delete_answer",
"icon": "trash",
"text": {
"type": "plain_text",
"text": "Delete"
},
"value": "answer_7712"
}
]
}
]
}