Webhook logo
Cloudflare Browser Run logo
Slack logo
H

Workflow template

Share desktop and mobile deployment previews in Slack

Render the deployed page at two viewport sizes and attach both PNGs to one Slack message.

How it works

Share desktop and mobile deployment previews in Slack

1 Trigger · 2 Transformations · 7 Actions
Webhook1 · Trigger

Deployment finished

Receive a JSON submission from your existing form backend at this Workflow's private webhook URL.

FastHook2 · Transformation

Prepare the deployment previews

Run JavaScript to prepare data for the next workflow step.

Cloudflare Browser Run3 · Action

Capture the desktop viewport

Capture a page or selected element at the viewport size you choose.

Slack4 · Action

Prepare the desktop Slack upload

Call another Slack Web API method with the connected app token.

Http5 · Action

Upload the desktop PNG to Slack

Send an HTTP request and use the response in subsequent steps.

Cloudflare Browser Run6 · Action

Capture the mobile viewport

Capture a page or selected element at the viewport size you choose.

Slack7 · Action

Prepare the mobile Slack upload

Call another Slack Web API method with the connected app token.

Http8 · Action

Upload the mobile PNG to Slack

Send an HTTP request and use the response in subsequent steps.

FastHook9 · Transformation

Group both screenshots in one message

Run JavaScript to prepare data for the next workflow step.

Slack10 · Action

Share both previews in the release channel

Call another Slack Web API method with the connected app token.

Before activation

Set up your workflow

  1. Send the deployment URL and release name

    After your deployment finishes, POST a JSON object with url and release to the private webhook. The URL must be reachable from a Cloudflare browser.

  2. Choose the release channel

    Connect your Cloudflare Browser Run account and your Slack bot. Invite the bot to the destination channel, grant it files:write and enter the channel ID in Prepare the deployment previews.

  3. Inspect both previews

    Send a test release. Open the Slack message and check the desktop PNG at 1440 × 900 and the mobile PNG at 390 × 844. Both captures use one image pixel per viewport pixel.

Explore connected apps