tr Skip to content
File Management

When a new post is published in WordPress, compress all featured images attached to post

The instant you publish a new WordPress post, an AI Agent compresses its featured images so every article loads fast and scores well on performance, with no manual image prep.

WordPressWordPress AI AgentAI Agent
~5 min setup used by 3.0k sites

Free · import into FlowMattic in one click

How it works

Every step, explained

Import the template and this whole chain runs on autopilot — here's exactly what happens on each run.

WordPress → AI Agent
2 steps
WordPress
TRIGGER
WordPress · New Post
The workflow starts automatically when a new post is published in WordPress. FlowMattic captures that data for the steps below.
AI Agent
ACTION
AI Agent · Execute Agent
AI Agent runs its "Execute Agent" action using data mapped from earlier steps. Connect your AI Agent account on import and it's live.
Why this workflow

Built to own, not to rent

No-code setup

Import the JSON, connect your accounts, and go live in minutes. Every step is pre-mapped — you only add your own credentials.

Runs on your server

Self-hosted on your WordPress install. No per-task fees, no data leaving your infrastructure, no monthly SaaS bill.

Fully customizable

Open it in the visual builder and reshape it — add branches, swap apps, insert filters. A starting point, not a cage.

Ready to automate your WordPress site?

Download this workflow free, or grab FlowMattic and own every automation on your site — no per-task fees, ever.