Automate Mailgun
Watch how the email you send through Mailgun is doing. Delivered, bounced and complained counts land in your inbox each morning, bounce spikes are caught the same hour, and permanent failures on important messages are reported as they happen. Describe what you want to your AI assistant, check what it will do, and it keeps running with your laptop closed.
Try asking
Create a ClickRuntime automation: every hour, check today's bounce rate for my Mailgun domain mg.example.com and email me if it's above 5%, no more than once a day.
Paste it into your assistant. It tells you what it will send or change before it runs live.
Ideas
What you can automate in Mailgun
Get warned when your bounce rate climbs
You hear the same day if today's bounces pass your limit, once rather than every hour.
See how it worksGet yesterday's delivery numbers each morning
One email shows accepted, delivered, bounced and complained counts for each sending domain.
See how it worksGet a message when an email permanently fails
Each hard failure or spam complaint shows up with the recipient and reason, so you can follow up.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with Mailgun, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any Mailgun automation you can describe
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.
For example, ask your assistant
Every hour, check Mailgun bounce and complaint rates for our domain and alert me if either goes above 2 percent.
When Mailgun reports a hard bounce, mark that contact as invalid in HubSpot.
When a Mailgun event shows a recipient clicked a link, update their Airtable record, add a tag in HubSpot and post a note in Slack for the sales owner.
Beyond chat
Have Mailgun work when you're not in the chat
Instant
Get a message when an email permanently failsThe moment it happens
On a schedule
Get warned when your bounce rate climbsHourly
On a schedule
Get yesterday's delivery numbers each morningDaily
Setup
Connect Mailgun
You connect Mailgun with an API key from your own account. Reports and alerts need your private API key, while a domain sending key is limited to sending messages.
Mailgun
Email (transactional)
- In Mailgun, open Account Settings → API Keys and copy your private API key.
- If an automation only sends email, you can instead create a narrower key under Sending → Domains → your domain → Domain Settings → Sending API keys → Add Sending Key. It's shown only once.
- Note whether your account is in the US or EU region.
- In the ClickRuntime dashboard, open Connections & secrets and save the key as a secret for Mailgun, with your region.
Good to know
Mailgun limits that affect automations
- Mailgun keeps US and EU accounts separate, so the connection must use the region your account is in.
- A domain sending key can only send messages. Delivery reports, bounce alerts and webhook setup need the private API key.
- Sandbox domains only send to recipients you've authorized, so test with your own address or add a real domain.
- Instant failure alerts use Mailgun webhooks, and each incoming event's signature is checked before it is acted on.
FAQ
Questions about automating Mailgun
What can ClickRuntime see in Mailgun?
Which events can trigger an alert straight away?
How is the bounce rate worked out?
Does it matter whether I'm on the US or EU region?
Do I need AI for Mailgun automations?
Is this a Mailgun connector for ChatGPT or Claude?
Related pages
Keep exploring