Auto-pause burning senders in Smartlead when Warmforge placement drops

By General Input

Every morning at 7am, catch mailboxes landing in Spam and quietly detach them from your Smartlead campaigns before they torch your open rates.

Integrations

  • Warmforge
  • Smartlead
  • Slack Bot

Type

Agentic Task

Categories

  • Sales
  • Operations

Build me an agent workflow that runs on a cron every morning at 7am and protects my Smartlead outreach from mailboxes whose deliverability is falling apart. The goal: catch any mailbox landing in Spam (or missing inboxes entirely) on its latest Warmforge placement test, and detach it from every Smartlead campaign it is currently sending on, before another day of burning sends goes out.

Step by step the agent should follow:

1. Call Warmforge's List Mailboxes to enumerate every mailbox in the workspace. Paginate through all pages.

2. Call Warmforge's Get Latest Placement Results for Mailboxes, passing the mailbox addresses in batches. Warmforge returns integer enum results per seed inbox: Inbox, Spam, Pending, Unknown, or Missing. A mailbox is a candidate for pausing when the majority of its most recent placement seeds came back Spam or Missing.

3. Use judgement before acting. Skip a mailbox if only one out of many seed inboxes hit Spam, or if the sample size is too small to be meaningful (e.g. under three seeds returned, or most seeds still Pending). Do not pause on noise. Prefer to keep a healthy sender live than to yank one on a single bad seed.

4. For each mailbox that survives that filter, walk Smartlead. Call List Campaigns to enumerate every campaign in the account. For each campaign, call List Campaign Email Accounts and check whether the bad mailbox address is attached as a sender. When it is, call Remove Email Account from Campaign to detach it. Keep a record of which mailboxes were pulled from which campaigns.

5. Finish by posting a summary via Slack Bot's Send a Message to the channel I configure. The summary should list each mailbox that was pulled, the placement result that triggered it (e.g. "5 of 6 seeds in Spam"), the campaigns it was detached from, and a short recommended next step (let it cool down for a few days, rerun a placement test, and reattach once it lands in inbox again). If nothing was pulled, post a one-line all-clear so I know the check ran.

Constraints: never delete mailboxes from Warmforge or Smartlead, only detach them from campaigns. Never touch leads. Be idempotent so re-running the workflow is safe. Handle rate limits and pagination on both Warmforge and Smartlead. The Slack message should be scannable at a glance, one section per mailbox.

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