Skip to content

feat(automations): Run Slack channel automations on named bot posts - #2197

Open
sentry-junior[bot] wants to merge 1 commit into
mainfrom
feat/slack-bot-post-automations
Open

sentry-junior[bot] wants to merge 1 commit into
mainfrom
feat/slack-bot-post-automations

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Slack channel-message automations dropped every bot post at ingress. So an automation built to triage Sentry alert posts in a channel could never run, because the alerts come from the Sentry bot.

Now bot posts (other than Slackbot) publish a message.posted event marked postedByBot. The slack / channel resource type adds a userId match field. A bot post runs only automations whose match.userId names that bot. Automations without a userId match still ignore bot posts, so a noisy bot cannot use up their hourly run limits. Junior's own posts are still dropped earlier by the isMe check, so this cannot loop.

Example trigger: match: { userId: "U012F5JFM1A" } for Sentry alert posts.

via michael.

--

View Junior Session [Sentry]

A Slack channel-message automation dropped every bot post, so an
automation meant to triage Sentry alert posts could never run. Bot posts
now publish with postedByBot, and they run only automations whose match
names the bot in userId. Other automations in the channel still ignore
bot posts, so a noisy bot cannot use up their run limits.

Co-Authored-By: Michael Warkentin <michael@sentry.io>
@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Oct 20, 2026 7:18pm UTC

Request Review

@github-actions github-actions Bot added the risk: high PR risk score: high label Oct 20, 2026

This branch was successfully deployed

1 active deployment
Preview – junior-docs — f9a1adf6 Deployed Oct 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants