# HappyFox Chat + Mailgun Integrations: Connect with Zapier MCP
> zapier.com/apps/happyfox-chat/integrations/mailgun
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate HappyFox Chat and Mailgun in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · bulkValidateEmail`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "mailgun", owner: "me" });

const { data } = await zapier.runAction({
  app: "mailgun",
  actionType: "write",
  action: "bulkValidateEmail",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action mailgun write bulkValidateEmail \
  --inputs '{}'
```

## HappyFox Chat

### Identity
Powerful live chat software built from ground-up for super fast customer support.

- App slug: happyfox-chat
- Operations published here: 3 (3 events)

### Authentication
Zapier connects to HappyFox Chat via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection happyfox-chat
```

### Capabilities

#### Events (3)

Events fire when something happens in HappyFox Chat. Use them to start a run.

##### Finished Chat
Triggers when a chat conversation ends.

- Type: read · Key: `completed_chat`
- Requires: nothing
- SDK: `runAction({ app: "happyfox-chat", actionType: "read", action: "completed_chat" })`
- CLI: `npx zapier-sdk run-action happyfox-chat read completed_chat`

##### New Missed Chat
Triggers when no agents pickup an incoming chat request.

- Type: read · Key: `missed_chat`
- Requires: nothing
- SDK: `runAction({ app: "happyfox-chat", actionType: "read", action: "missed_chat" })`
- CLI: `npx zapier-sdk run-action happyfox-chat read missed_chat`

##### New Offline Message
Triggers when a visitor leaves a message when all agents are offline.

- Type: read · Key: `offline_message`
- Requires: nothing
- SDK: `runAction({ app: "happyfox-chat", actionType: "read", action: "offline_message" })`
- CLI: `npx zapier-sdk run-action happyfox-chat read offline_message`

## Mailgun

### Identity
Mailgun is a tool with powerful APIs that allow you to send, receive, track and store email effortlessly. Except, with Zapier you don't have to write any code!

- App slug: mailgun
- Operations published here: 15 (10 events, 5 functions)

### Authentication
Zapier connects to Mailgun via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection mailgun
```

### Capabilities

#### Events (10)

Events fire when something happens in Mailgun. Use them to start a run.

##### New Log Data
Triggers when new log entries are found in Mailgun. Because this trigger uses polling, multiple log entries may be returned at once during each polling interval.

- Type: read · Key: `logdata`
- Requires: nothing
- SDK: `runAction({ app: "mailgun", actionType: "read", action: "logdata" })`
- CLI: `npx zapier-sdk run-action mailgun read logdata`

##### New Alert
Triggers when a Mailgun alert occurs. Validation alerts (e.g., bulk validation job completed, validation previews) are available on all plans. Deliverability alerts (e.g., IP or domain blocklist changes, reputation shifts) require an Optimize plan.

- Type: read · Key: `newAlertEvent`
- Requires: nothing
- Optional: event_types
- SDK: `runAction({ app: "mailgun", actionType: "read", action: "newAlertEvent" })`
- CLI: `npx zapier-sdk run-action mailgun read newAlertEvent`

##### New Bounce Event
Triggers when an email permanently or temporarily fails in Mailgun.

- Type: read · Key: `newBounceEvent`
- Requires: nothing
- SDK: `runAction({ app: "mailgun", actionType: "read", action: "newBounceEvent" })`
- CLI: `npx zapier-sdk run-action mailgun read newBounceEvent`

##### New Complaint Event
Triggers when a recipient reports an email as spam in Mailgun.

- Type: read · Key: `newComplaintEvent`
- Requires: nothing
- SDK: `runAction({ app: "mailgun", actionType: "read", action: "newComplaintEvent" })`
- CLI: `npx zapier-sdk run-action mailgun read newComplaintEvent`

##### New Delivery Event
Triggers when an email is successfully delivered in Mailgun.

- Type: read · Key: `newDeliveryEvent`
- Requires: nothing
- SDK: `runAction({ app: "mailgun", actionType: "read", action: "newDeliveryEvent" })`
- CLI: `npx zapier-sdk run-action mailgun read newDeliveryEvent`

##### New Failed Delivery Event
Triggers when an email fails to deliver in Mailgun.

- Type: read · Key: `newFailedDeliveryEvent`
- Requires: nothing
- SDK: `runAction({ app: "mailgun", actionType: "read", action: "newFailedDeliveryEvent" })`
- CLI: `npx zapier-sdk run-action mailgun read newFailedDeliveryEvent`

##### New Inbound Email via Route
Triggers when an incoming email matches a Mailgun route. Automatically creates a route in Mailgun to forward emails to Zapier. Use Zapier Filters and Paths to process emails based on sender, subject, or content.

- Type: read · Key: `newInboundEmail`
- Requires: nothing
- SDK: `runAction({ app: "mailgun", actionType: "read", action: "newInboundEmail" })`
- CLI: `npx zapier-sdk run-action mailgun read newInboundEmail`

##### New Open/Click Event
Triggers when a recipient opens an email or clicks a tracked link in Mailgun.

- Type: read · Key: `newOpenClickEvent`
- Requires: nothing
- SDK: `runAction({ app: "mailgun", actionType: "read", action: "newOpenClickEvent" })`
- CLI: `npx zapier-sdk run-action mailgun read newOpenClickEvent`

##### New Unsubscribe Event
Triggers when a recipient unsubscribes in Mailgun.

- Type: read · Key: `newUnsubscribeEvent`
- Requires: nothing
- SDK: `runAction({ app: "mailgun", actionType: "read", action: "newUnsubscribeEvent" })`
- CLI: `npx zapier-sdk run-action mailgun read newUnsubscribeEvent`

##### New List
Triggers when a new mailing list is added to your account.

- Type: read · Key: `new_list`
- Requires: nothing
- SDK: `runAction({ app: "mailgun", actionType: "read", action: "new_list" })`
- CLI: `npx zapier-sdk run-action mailgun read new_list`

#### Functions (5)

Functions change something in Mailgun.

##### Bulk Email Validation
Upload a CSV (with an "email" header) and start a bulk validation job using Mailgun V4 API.

- Type: write · Key: `bulkValidateEmail`
- Requires: list_id, file
- SDK: `runAction({ app: "mailgun", actionType: "write", action: "bulkValidateEmail" })`
- CLI: `npx zapier-sdk run-action mailgun write bulkValidateEmail`

##### Send Email
Sends an email using your Mailgun account.

- Type: write · Key: `createEmail`
- Requires: from, to, subject
- Optional: cc, bcc, reply_to, html, text, attachment, tags
- SDK: `runAction({ app: "mailgun", actionType: "write", action: "createEmail" })`
- CLI: `npx zapier-sdk run-action mailgun write createEmail`

##### Get Bulk Validation Results
Retrieves completed bulk validation job results using the job identifier for automated result processing.

- Type: write · Key: `getBulkValidationResults`
- Requires: list_id
- SDK: `runAction({ app: "mailgun", actionType: "write", action: "getBulkValidationResults" })`
- CLI: `npx zapier-sdk run-action mailgun write getBulkValidationResults`

##### Add Mailing List Member
Adds a new member to a mailing list in Mailgun.

- Type: write · Key: `member_add_to_mailinglist`
- Requires: list_address, member_address, upsert
- Optional: name
- SDK: `runAction({ app: "mailgun", actionType: "write", action: "member_add_to_mailinglist" })`
- CLI: `npx zapier-sdk run-action mailgun write member_add_to_mailinglist`

##### Validate Email
Validates an email address using Mailgun's validation service and returns comprehensive deliverability results.

- Type: write · Key: `validateEmail`
- Requires: address
- SDK: `runAction({ app: "mailgun", actionType: "write", action: "validateEmail" })`
- CLI: `npx zapier-sdk run-action mailgun write validateEmail`

## Frequently asked questions about automating with HappyFox Chat and Mailgun

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- HappyFox Chat integrations: zapier.com/apps/happyfox-chat/integrations.md
- Mailgun integrations: zapier.com/apps/mailgun/integrations.md
- Full page: zapier.com/apps/happyfox-chat/integrations/mailgun
- SDK: npmjs.com/package/@zapier/zapier-sdk