Auto-pause Instantly campaigns when bounce rates spike

By General Input

Every two hours during business hours, check bounce rates and sender health, pause risky campaigns, and post one Slack alert that says what to do next.

Integrations

  • Instantly
  • Slack Bot

Type

Agentic Task

Categories

  • Operations
  • Sales

Build an agent workflow that protects my Instantly sending reputation by auto-pausing campaigns that are putting deliverability at risk and alerting me in Slack when it does.

Trigger: a cron schedule that fires every 2 hours during business hours (default Monday through Friday, 8am to 6pm in my local timezone). Make the schedule and timezone easy to change at setup.

Each run, the agent should do the following:

1. Call Instantly List Campaigns filtered to status active (status code 1) to get the campaigns currently sending.

2. For each active campaign, call Instantly Get Campaign Analytics scoped to the trailing 24 hours and compute the bounce rate (bounced divided by emails sent).

3. Call Instantly List Email Accounts once per run and flag every sender mailbox whose status is error, suspended, warmup issue, or otherwise unhealthy (anything that is not a normal healthy/active state).

4. For each campaign, decide whether to pause it. Pause when EITHER condition is true:

- 24-hour bounce rate is at or above the configured threshold (default 5 percent, make this configurable).

- A majority of the campaign's assigned sender accounts are in an unhealthy state.

5. If the campaign meets the pause condition, call Instantly Pause Campaign for that campaign.

6. Then post ONE Slack message per paused campaign using Slack Bot Send a Message to a configurable channel (default #deliverability-alerts). The message should include:

- Campaign name and a link to it in Instantly.

- Current 24-hour bounce rate and the threshold it crossed.

- The specific sender mailboxes that are unhealthy and their statuses.

- A short diagnosis of the likely cause: warmup gap (recently added or under-warmed senders), list quality (high invalid rate), or DNS/auth issue (SPF/DKIM/DMARC) based on what the data shows.

- A recommended remediation, for example pause and re-warm the affected senders, scrub the list with a verifier, or fix the DNS records before resuming.

- A clear note that the campaign has already been paused so nobody scrambles.

If a campaign is healthy (below threshold and senders mostly fine), do NOT post anything. The Slack channel must stay silent unless something is actually wrong, so the alert keeps its signal.

Configuration the user should be able to set at install time: bounce rate threshold (default 5 percent), what fraction of unhealthy senders counts as a majority (default more than half), the cron schedule and business-hours window, the Slack channel for alerts, and an optional allowlist of campaign IDs that should only trigger an alert and never be auto-paused.

Use the Instantly integration for List Campaigns, Get Campaign Analytics, List Email Accounts, and Pause Campaign. Use the Slack Bot integration for Send a Message.

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