DEVOPS

ChatOps Cloudflare purge with a Slack approval gate

Lets an engineer request a Cloudflare purge from Slack; a full-zone purge requires a second person's approval before it runs, while scoped URL purges run immediately, and every…

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerchat
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerSlack slash command requests purgeSlack
  • LogicBranch scoped-URL vs full-zone purge
  • ActionCloudflare purge-by-URL for scoped requestsCloudflareCloudflare
  • ActionPost Slack approval gate for full-zoneSlack
  • ActionCloudflare purge_everything on approvalCloudflareCloudflare
  • OutputReply with result and approver in threadSlack

What it does

This workflow turns Cloudflare cache purges into a controlled ChatOps action. An engineer types a purge request in Slack with a scope. Narrow URL purges execute right away; a risky purge-everything is held behind an approval button that a second team member must click before it fires. Each run is recorded.

When to use it

Use it when you want on-demand purges without handing everyone Cloudflare API tokens, and you need a guardrail so nobody flushes the entire zone during peak traffic on a whim. It gives you speed for safe operations and a human gate for dangerous ones.

How it works

  1. 1A Slack slash command starts the request with the requested scope and target.
  2. 2A logic branch splits scoped-URL purges from full-zone purges.
  3. 3Scoped purges call Cloudflare purge-by-URL immediately.
  4. 4Full-zone purges post an approval prompt to Slack and wait for a second approver to confirm.
  5. 5On approval, Cloudflare purge_everything runs; the result and approver are posted back to the thread.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect SlackChannels, DMs, threads, mentions.
  2. 2
    Connect CloudflareWorkers, Pages, R2, KV — the edge stack.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.