Mailgun integration
Mailgun is an email automation service built for developers. Powerful transactional email APIs enable you to send, receive, and track emails.
What your agents can do with Mailgun
20 pre-built Mailgun tool steps, ready to drop into any agent. Anything they do not cover, an agent can reach with an authenticated API call.
Actions (9)
Send Email
Send email with Mailgun.
Suppress Email
Add email to the Mailgun suppression list.
List Domains
List domains in Mailgun.
Create Route
Create a new route.
Create Mailing List Member
Add to an existing mailing list.
Verify Email
Verify email address deliverability with Mailgun.
Get Mailing List Member
Retrieve a mailing list member by address.
Get Mailing List Members
List all mailing list members.
Delete Mailing List Member
Delete a mailing list member by address.
Triggers (11)
New Mailing List
Emit new event when a new mailing list is added to the associated Mailgun account.
New Log Data
Emit new event when new data is logged in Mailgun's Control Panel. Occurs for most actions within the associated Mailgun account.
New Temporary Failure (Instant)
Emit new event when an email can't be delivered to the recipient email server due to a temporary mailbox error such as an ESP block. ESP is the Email Service Provider managing the recipient email server.
New Click (Instant)
Emit new event when the email recipient clicked on a link in the email. Open tracking must be enabled in the Mailgun control panel, and the CNAME record must be pointing to mailgun.org. See more at the Mailgun User's Manual Tracking Messages section.
New Unsubscribe (Instant)
Emit new event when the email recipient clicked on the unsubscribe link. Unsubscribe tracking must be enabled in the Mailgun control panel. See more at the Mailgun User's Manual Tracking Messages section.
New Permanent Failure (Instant)
Emit new event when an email can't be delivered to the recipient email server due to a permanent mailbox error such as non-existent mailbox.
New Open (Instant)
Emit new event when the email recipient opened the email and enabled image viewing. Open tracking must be enabled in the Mailgun control panel, and the CNAME record must be pointing to mailgun.org. See more at the Mailgun User's Manual Tracking Messages section.
New Delivery (Instant)
Emit new event when an email is sent and accepted by the recipient email server.
New Delivery Failure (Instant)
Emit new event when an email can't be delivered to the recipient email server.
New Complaint (Instant)
Emit new event when the email recipient clicked on the spam complaint button within their email client. Feedback loops enable the notification to be received by Mailgun.
New Bounce (Instant)
Emit new event when the email recipient could not be reached.
Set up Mailgun in Relevance AI
Do this once. Every agent in your workspace can then use the connection.
Create a Relevance AI account
Sign in, or create a free account. You do not need to be a developer to set this up.
Connect your Mailgun account
In Relevance AI, open Integrations and add Mailgun, then paste your API Key and Region. You will find it in your Mailgun account settings.
Use Mailgun in an agent
Create a tool, add a Mailgun tool step, and connect it to an agent. The agent fills in the step's inputs each time it runs.
Put Mailgun to work in your agents
Connect Mailgun alongside 1,800+ other integrations and let your agents run the busywork.