Draft newsletters from new WordPress posts in MailerLite

By General Input

Every weekday morning, turn each fresh WordPress post into a ready-to-review MailerLite draft with a Slack ping so your team can approve and send in one click.

Integrations

  • MailerLite
  • WordPress
  • Slack Bot

Type

Agentic Task

Categories

  • Marketing

Build me an agent workflow that runs every weekday at 8am in my timezone and turns any new WordPress post into a draft MailerLite newsletter campaign, then pings my marketing team in Slack to review and approve. Trigger is a cron schedule, weekdays at 8am.

Step 1: Pull new posts from WordPress. Use the WordPress 'List Posts' action, filtered to status=publish and to posts dated after the last successful run of this workflow. If there are no new posts, stop the run silently. Do not create a MailerLite draft and do not post to Slack. The workflow only speaks up when there is something new.

Step 2: For each new WordPress post, draft newsletter copy in the site's voice. Write a subject line under 60 characters that matches the post's real value prop with no clickbait. Write preview text under 100 characters. Write a short HTML teaser body (a couple of short paragraphs, not the full post) that summarizes what the reader will learn and links to the full article on the WordPress site. Do not paste the entire post into the email, write a real teaser that drives clicks.

Step 3: Find the target MailerLite group. Call MailerLite 'List All Groups' once per run and find the group whose name matches 'Newsletter' (or a group name I specify at setup time). Grab its group id.

Step 4: Create the draft in MailerLite. Call MailerLite 'Create a Campaign' as a regular campaign in draft status, addressed to the group from Step 3, with the drafted subject line, preview text, and HTML body from Step 2. Always leave the campaign as a draft. Do not call 'Schedule a Campaign' and do not send. This guardrail is critical: the workflow must never dispatch a campaign, only prepare it for human approval.

Step 5: Post a review ping in Slack. Use Slack Bot 'Send a Message' to post one message per drafted campaign in my marketing review channel. The message should include the WordPress post title, the drafted subject line, the drafted preview text, and a link to the MailerLite draft so a teammate can open it, tweak if needed, and hit send in one click. Only post to Slack on runs where at least one new post was drafted.

At setup time, let me configure: my timezone, the MailerLite group name to send drafts to (default 'Newsletter'), and the Slack channel to ping for review.

Related prompts

Explore more prompts
A brand asset library your marketing team actually searchesTurn Mailjet email clicks into ranked HubSpot follow-upsClean out the Looker dashboards and Looks nobody opensLiveKit live operations console for room moderationWake up dormant Keap leads with a researched reasonLiveChat coverage board for planning next week's shiftsPhone routing control panel for LiveKit voice agentsLinkedIn Ads budget pacing dashboard for every client accountGive your team Looker numbers without buying more seatsPause marketing emails to escalated customers, then restore them