Skip to content

feat: add support for context_actions block#1495

Merged
nlopes merged 4 commits into
slack-go:masterfrom
tgvashworth:tom-a/context-actions-block
Nov 13, 2025
Merged

feat: add support for context_actions block#1495
nlopes merged 4 commits into
slack-go:masterfrom
tgvashworth:tom-a/context-actions-block

Conversation

@tgvashworth

@tgvashworth tgvashworth commented Nov 13, 2025

Copy link
Copy Markdown
Contributor

This commit adds support for Slack's context_actions block type, which enables interactive feedback elements. The implementation includes:

  • ContextActionsBlock: New block type for holding interactive elements
  • FeedbackButtonsBlockElement: Positive/negative feedback buttons
  • IconButtonBlockElement: Icon-based interactive buttons with confirmation dialogs
  • Test coverage for all new types
  • Working example demonstrating usage
  • Updated documentation with examples and API references

This feature is particularly useful for AI-generated content where users need to provide quick feedback or perform actions on messages.

Closes #1494

Screenshot

From the rendered example...

Screenshot 2025-11-13 at 07 21 05

This commit adds support for Slack's context_actions block type, which
enables interactive feedback elements. The implementation includes:

- ContextActionsBlock: New block type for holding interactive elements
- FeedbackButtonsBlockElement: Positive/negative feedback buttons
- IconButtonBlockElement: Icon-based interactive buttons with confirmation dialogs
- Test coverage for all new types
- Working example demonstrating usage
- Updated documentation with examples and API references

This feature is particularly useful for AI-generated content where users
need to provide quick feedback or perform actions on messages.
@nlopes

nlopes commented Nov 13, 2025

Copy link
Copy Markdown
Member

Closes #1494

@nlopes nlopes linked an issue Nov 13, 2025 that may be closed by this pull request
@nlopes nlopes merged commit d93ef6e into slack-go:master Nov 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is it possible to implement context_actions?

2 participants