Preview deploy alerts in Slack with PR context

By General Input

When a Vercel preview build finishes, post a plain-English summary, the preview link, and the pull request to the right Slack channel.

Integrations

  • Vercel
  • GitHub
  • Slack

Type

Agentic Task

Categories

  • Engineering
  • Product

I want an agent workflow that posts a stakeholder-friendly heads-up in Slack every time a Vercel preview deployment finishes building, so designers, PMs, and reviewers can click straight through without digging in GitHub.

Trigger: an incoming webhook from Vercel on the deployment.succeeded event. Filter to preview deployments only and ignore production builds, failed builds, and cancelled builds.

When it fires, the agent should:

1. Call Vercel's Get Deployment with the deployment ID from the webhook payload to read the project name, branch, commit SHA, preview URL, and the deploy author.

2. Use GitHub's Search Issues and Pull Requests (or List Pull Requests filtered by head branch) to find the matching open pull request for that branch and commit SHA. If no PR is found, post a minimal heads-up with the preview URL and project/branch, and skip the summary step.

3. Call GitHub's Get a Pull Request for the matched PR to read its title, body, author, base branch, and diff statistics.

4. Draft a plain-language summary of what changed in 1 to 3 sentences. No diff syntax, no jargon, no raw file path lists. The audience is non-engineers.

5. Decide which Slack channel to post to using a configurable map from directory prefix to channel. For example, apps/design-system goes to #design-review, apps/marketing-site goes to #marketing, apps/api goes to #backend-review. If nothing matches, fall back to a default channel like #previews.

6. Use Slack's Send a Message to post one message to the chosen channel that includes the PR title and link, the author, the preview URL as a clickable link, and the plain-language summary.

Skip the post entirely if the branch is on an ignore list, if the deploy author is on an ignore list, or if the PR is a draft and draft-skipping is enabled.

I should be able to configure: the directory-to-channel routing map, the default channel, branches and authors to skip, whether draft PRs are included, and which Vercel projects this workflow watches (so one workflow can cover multiple projects).

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentWin back LiveChat visitors whose chats went unansweredChat quality review board for LiveChat support leadsWin back no-show and cancelled appointments every morningLive Loop returns analytics with product-level drill-downNewsletter pre-flight and approval board for Mailjet sendsTurn a prospect spreadsheet into personalized sequence enrollmentsMailjet email delivery lookup console for support teamsCatch feature flags that never got switched on in productionKajabi customer support console for member access fixes