Skip to content

The moment it happens

Get campaign results when an Instantly campaign ends

When a campaign finishes, you get its sent, opened and replied totals in one message.

Runs
The moment it happens
Apps
Instantly
AI
Not needed
Access
read campaigns

Send this to your assistant

Create a ClickRuntime automation: when an Instantly campaign completes, post its name and the number of emails sent, opened and replied to #outbound in Slack, with the reply rate as a percentage.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

An agency runs five Instantly campaigns for different clients, each with a list of hundreds of prospects. When a campaign finishes sending its sequence, the leads that did not respond are done, and the next step, such as a new list, a different offer or a report to the client, should start. But nobody notices the campaign has completed until someone opens the dashboard a few days later, and the pipeline sits idle in between.

The moment Instantly reports that a campaign has completed, ClickRuntime receives the event, fetches the campaign's analytics, and posts a message in Slack with the totals for emails sent, replies and bounces. The team knows right away that the campaign is done and what it achieved.

It is aimed at outbound sales teams and agencies running many campaigns at the same time.

What you get out of it

  • The next campaign starts without a gap

    Idle days between sequences are lost pipeline. When the team hears a campaign has finished, the follow-up list or new offer can be launched the same day instead of the following week.

  • Clients get results promptly

    Agencies that tell a client a campaign has finished and share the numbers within the day look organized. Waiting until someone remembers to check the dashboard makes the same work look slower.

  • Results are captured at the right moment

    The message includes the final analytics when the campaign ends. You have a snapshot of sends, replies and bounces to compare against future campaigns, instead of numbers that keep shifting as late replies arrive.

  • Lists do not sit unattended

    Leads that finished the sequence without replying may deserve a different approach later. A completion notice is the prompt to tag them, move them to a nurture list or schedule a re-contact.

  • Fewer dashboard check-ins

    Opening Instantly several times a week just to see whether anything finished is wasted attention for every campaign manager. A single message takes the place of those checks and still arrives on time.

How it works

What happens, step by step

  1. When an Instantly campaign finishes, Instantly tells ClickRuntime straight away.

  2. ClickRuntime fetches the campaign's final numbers from Instantly: emails sent, opens and replies.

  3. It works out the reply rate and posts the campaign name and totals to #outbound in Slack as a single message.

Before it runs live

  • Connect Instantly
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Get campaign results when an Instantly campaign endsjust nowSucceeded
Slack · #outboundCampaign finished: Q4 Ops leaders Sent 1,240 · Opened 612 · Replied 38 (3.1% reply rate)

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Act only on the items that match your own rules, and skip the rest
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Instantly steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
campaign_completed_alert.pyexample
from clickruntime import on_event, credentials, notify, http

@on_event
def handle(event):
    e = event.json or {}
    if e.get("event_type") != "campaign_completed":
        return {"posted": False}
    resp = http.get("https://api.instantly.ai/api/v2/campaigns/analytics",
                    params={"id": e["campaign_id"]},
                    headers={"Authorization": f"Bearer {credentials.secret('INSTANTLY_API_KEY')}"})
    resp.raise_for_status()
    stats = resp.json()[0]
    sent, opened, replied = stats["emails_sent_count"], stats["open_count"], stats["reply_count"]
    rate = replied / sent * 100 if sent else 0
    notify.slack(
        f"Campaign finished: {stats['campaign_name']}\n"
        f"Sent {sent} · Opened {opened} · Replied {replied} ({rate:.1f}% reply rate)",
        channel="#outbound",
    )
    return {"sent": sent, "replied": replied}

FAQ

Common questions

What counts as a completed campaign in Instantly?
Instantly marks a campaign as completed when all of its leads have gone through the whole sequence and there is nothing left to send. A paused campaign is not completed, so pausing will not trigger this alert.
Does it include replies in the numbers?
The message shows the analytics Instantly reports for that campaign at the time, which includes sent emails, replies and bounces. Replies that arrive after completion will not be in that message, so check the campaign later for late responders.
How do I connect Instantly to this?
You create a webhook in Instantly for the campaign completed event pointing to the link ClickRuntime gives you, and provide an Instantly API key so the analytics can be read. The key is stored as a secret and used only to fetch campaign statistics.
What permissions does it need?
read campaigns. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Get campaign results when an Instantly campaign ends” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.