Cloudflare Worker template
Instagram Campaign Worker
A self-hosted TypeScript/Cloudflare Worker template for Meta API Instagram comment campaigns, automated message steps, and an admin UI.
Overview
Comment event to admin flow
This worker lets a creator configure a specific Instagram post and trigger word. When someone comments that word, it records the event, runs the next message step, and keeps the campaign visible in the admin UI.
Backend
How it works
I built the backend around campaign rules, webhook intake, database storage, queued delivery, and admin actions for draft, activate, pause, and edit states.
Campaign flow
What the user sees
The UI keeps the practical setup visible: watched post, trigger word, message copy, setup checklist, comment preview, and message preview.
Demo
Flow and UI