Webhook logo
Cloudflare Browser Run logo
Cloudflare R2 logo
H

Workflow template

Archive published WordPress articles in R2

Capture the published WordPress permalink and save its rendered Markdown and desktop screenshot together in an R2 bucket.

How it works

Archive published WordPress articles in R2

1 Trigger · 1 Transformation · 5 Actions
Webhook1 · Trigger

WordPress publish notification received

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

FastHook2 · Transformation

Identify the published revision

Run JavaScript to prepare data for the next workflow step.

Cloudflare Browser Run3 · Action

Read the published article as Markdown

Convert the rendered article or page to text that preserves headings and links.

Cloudflare R24 · Action

Prepare a temporary R2 upload for the article

Create an expiring URL for one object.

Http5 · Action

Archive the Markdown revision

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

Cloudflare Browser Run6 · Action

Capture the published article

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

Cloudflare R27 · Action

Archive the rendered screenshot

Run the R2 S3-compatible PutObject operation.

Before activation

Set up your workflow

  1. Send a WordPress publication notice

    Configure the WordPress.com publish_post webhook to send ID, post_url, post_status and post_modified_gmt to the private FastHook webhook. On plugin-enabled sites, configure the equivalent publication notification.

  2. Select the site and bucket

    Connect Browser Run and give it a public article URL. Select the same bucket in Prepare a temporary R2 upload for the article and Archive the rendered screenshot. The Markdown upload URL expires after five minutes.

  3. Check the archived revision

    Publish a test article. Under wordpress/<post ID>/<modified time>/, open article.md and desktop.png and confirm that both show the published revision.

Explore connected apps