# ActiveTrail + AIFlow Integrations: Connect with Zapier MCP
> zapier.com/apps/activetrail/integrations/aiflow
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate ActiveTrail and AIFlow 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 · createTask`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action aiflow write createTask \
  --inputs '{}'
```

## ActiveTrail

### Identity
ActiveTrail is a marketing automation platform designed to help you maintain active relationships with customers, prospects, and user communities.

- App slug: activetrail
- Operations published here: 19 (6 events, 11 functions, 2 queries)

### Authentication
Zapier connects to ActiveTrail 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 activetrail
```

### Capabilities

#### Events (6)

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

##### Contact Added to Group
Triggers when a contact is added to a group (any group).

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

##### Contact Added via Landing Page
Triggers when a contact is added via a landing page.

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

##### Contact Added via Signup Form
Triggers when a contact is added via a signup form.

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

##### Contact Removed From Group
Triggers when a contact is removed from a group (any group).

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

##### Contact Unsubscribed
Triggers when a contact unsubscribes from receiving further emails.

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

##### Contact Updated
Triggers when a contact record in ActiveTrail is updated via the API (status or details).

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

#### Functions (11)

Functions change something in ActiveTrail.

##### Add a Contact to a Group (External ID)
Allows you to add a contact to a group in accounts with external ID

- Type: write · Key: `add_contact_to_group_external_id`
- Requires: groupId, externalId, externalName
- SDK: `runAction({ app: "activetrail", actionType: "write", action: "add_contact_to_group_external_id" })`
- CLI: `npx zapier-sdk run-action activetrail write add_contact_to_group_external_id`

##### Add Contact to Group
Add a new or an existing contact to a specific group (The new contact will be created if not already exists).

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

##### Remove Contact From Group
Removes a contact (passed as a parameter via the API) from a specific group (specified by the creator of the Zap).

- Type: write · Key: `contact_remove_from_group`
- Requires: group_id, email_removed
- SDK: `runAction({ app: "activetrail", actionType: "write", action: "contact_remove_from_group" })`
- CLI: `npx zapier-sdk run-action activetrail write contact_remove_from_group`

##### Create/Update Contact
Creates a new contact or updates a contact if a contact already exists.

- Type: write · Key: `contact_update`
- Requires: nothing
- Optional: status
- SDK: `runAction({ app: "activetrail", actionType: "write", action: "contact_update" })`
- CLI: `npx zapier-sdk run-action activetrail write contact_update`

##### Find Contact (External ID)
Find a contact in accounts with External ID identifier

- Type: write · Key: `find_contact_external_id`
- Requires: externalId, externalName
- SDK: `runAction({ app: "activetrail", actionType: "write", action: "find_contact_external_id" })`
- CLI: `npx zapier-sdk run-action activetrail write find_contact_external_id`

##### Import Customer (External ID)
Create new customers on accounts with External ID

- Type: write · Key: `import_external_id`
- Requires: group, externalId, externalName, email
- Optional: sms, city
- SDK: `runAction({ app: "activetrail", actionType: "write", action: "import_external_id" })`
- CLI: `npx zapier-sdk run-action activetrail write import_external_id`

##### Create External Identifier
This allows you to add an external ID and Name to an existing contact

- Type: write · Key: `map_external`
- Requires: customerId, externalId, externalName
- SDK: `runAction({ app: "activetrail", actionType: "write", action: "map_external" })`
- CLI: `npx zapier-sdk run-action activetrail write map_external`

##### Remove Contact From a Group (External ID)
Allows you to remove a contact from a group in accounts with External ID

- Type: write · Key: `remove_contact_external_id`
- Requires: groupId, externalId, externalName
- SDK: `runAction({ app: "activetrail", actionType: "write", action: "remove_contact_external_id" })`
- CLI: `npx zapier-sdk run-action activetrail write remove_contact_external_id`

##### Send SMS (External ID)
Send SMS messages in account with External ID

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

##### Send SMS Message
Send an operational SMS message to a mobile phone number.
Notice that not all countries are supported.

- Type: write · Key: `sms`
- Requires: details__name, details__from_name, details__content, phone_number
- Optional: details__can_unsubscribe, details__unsubscribe_text, scheduling__send_now, scheduling__scheduled_date_utc
- SDK: `runAction({ app: "activetrail", actionType: "write", action: "sms" })`
- CLI: `npx zapier-sdk run-action activetrail write sms`

##### Update Contact (External ID)
Allows updating a contact on accounts with external ID

- Type: write · Key: `update_contact_external_id`
- Requires: externalId, externalName
- SDK: `runAction({ app: "activetrail", actionType: "write", action: "update_contact_external_id" })`
- CLI: `npx zapier-sdk run-action activetrail write update_contact_external_id`

#### Queries (2)

Queries read from ActiveTrail and return data. They change nothing.

##### Find Contact
Find an existing contact in your account.

- Type: search · Key: `find_contact_copy`
- Requires: search_term
- SDK: `runAction({ app: "activetrail", actionType: "search", action: "find_contact_copy" })`
- CLI: `npx zapier-sdk run-action activetrail search find_contact_copy`

##### Find Group
Find a group matching the submitted search text.

- Type: search · Key: `find_group_copy`
- Requires: search_term
- SDK: `runAction({ app: "activetrail", actionType: "search", action: "find_group_copy" })`
- CLI: `npx zapier-sdk run-action activetrail search find_group_copy`

## AIFlow

### Identity
AIFlow is an extended CRM tool for small to medium sized businesses.

- App slug: aiflow
- Operations published here: 21 (4 functions, 17 queries)

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

- Auth type: oauth
- 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 aiflow
```

### Capabilities

#### Functions (4)

Functions change something in AIFlow.

##### Create Task
Creates a task in the system

- Type: write · Key: `createTask`
- Requires: organization, title
- Optional: description, assigned, customer, order, sale, dueAt
- SDK: `runAction({ app: "aiflow", actionType: "write", action: "createTask" })`
- CLI: `npx zapier-sdk run-action aiflow write createTask`

##### Create Customer
Creates a customer in selected organization

- Type: write · Key: `create_customer`
- Requires: organization, name, type
- Optional: address, assigned, billing.address, billing.channel, billing.channelReference, billing.city, billing.country, billing.county, billing.email, billing.municipality, billing.phone, billing.reference, billing.zip, business, category, city, contract, country, county, customerNr, municipality, nickname, orgnr, relationType, status, targetUnit, zip, deliveryAddresses.name, deliveryAddresses.address, deliveryAddresses.isDefault, deliveryAddresses.city, deliveryAddresses.country, deliveryAddresses.county, deliveryAddresses.email, deliveryAddresses.municipality, deliveryAddresses.zip
- SDK: `runAction({ app: "aiflow", actionType: "write", action: "create_customer" })`
- CLI: `npx zapier-sdk run-action aiflow write create_customer`

##### Create Note
Creates a note for customer

- Type: write · Key: `create_note`
- Requires: organization, customer, note
- SDK: `runAction({ app: "aiflow", actionType: "write", action: "create_note" })`
- CLI: `npx zapier-sdk run-action aiflow write create_note`

##### Create Person
Creates a person in selected organization

- Type: write · Key: `create_person`
- Requires: organization, customer, name
- Optional: email, favorite, phone, role
- SDK: `runAction({ app: "aiflow", actionType: "write", action: "create_person" })`
- CLI: `npx zapier-sdk run-action aiflow write create_person`

#### Queries (17)

Queries read from AIFlow and return data. They change nothing.

##### Search Activities
Search activities from an organization

- Type: search · Key: `searchActivity`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchActivity" })`
- CLI: `npx zapier-sdk run-action aiflow search searchActivity`

##### Search Conversations
Search conversations from an organization

- Type: search · Key: `searchConversation`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchConversation" })`
- CLI: `npx zapier-sdk run-action aiflow search searchConversation`

##### Search Customers
Search customers from an organization

- Type: search · Key: `searchCustomer`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchCustomer" })`
- CLI: `npx zapier-sdk run-action aiflow search searchCustomer`

##### Search Customer Categories
Search customer categories from an organization

- Type: search · Key: `searchCustomerCategory`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchCustomerCategory" })`
- CLI: `npx zapier-sdk run-action aiflow search searchCustomerCategory`

##### Search Customer Statuses
Search customer statuses from an organization

- Type: search · Key: `searchCustomerStatus`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchCustomerStatus" })`
- CLI: `npx zapier-sdk run-action aiflow search searchCustomerStatus`

##### Search Event Types
Search event types from an organization

- Type: search · Key: `searchEventType`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchEventType" })`
- CLI: `npx zapier-sdk run-action aiflow search searchEventType`

##### Search Exports
Search exports from an organization

- Type: search · Key: `searchExportable`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchExportable" })`
- CLI: `npx zapier-sdk run-action aiflow search searchExportable`

##### Search Lists
Search lists from an organization

- Type: search · Key: `searchList`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchList" })`
- CLI: `npx zapier-sdk run-action aiflow search searchList`

##### Search Notifications
Search notifications from an organization

- Type: search · Key: `searchNotification`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchNotification" })`
- CLI: `npx zapier-sdk run-action aiflow search searchNotification`

##### Search Orders
Search orders from an organization

- Type: search · Key: `searchOrder`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchOrder" })`
- CLI: `npx zapier-sdk run-action aiflow search searchOrder`

##### Search People
Search from an organization

- Type: search · Key: `searchPerson`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchPerson" })`
- CLI: `npx zapier-sdk run-action aiflow search searchPerson`

##### Search Products
Search products from an organization

- Type: search · Key: `searchProduct`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchProduct" })`
- CLI: `npx zapier-sdk run-action aiflow search searchProduct`

##### Search Sales
Search sales from an organization

- Type: search · Key: `searchSale`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchSale" })`
- CLI: `npx zapier-sdk run-action aiflow search searchSale`

##### Search Tasks
Search tasks from an organization

- Type: search · Key: `searchTask`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchTask" })`
- CLI: `npx zapier-sdk run-action aiflow search searchTask`

##### Search Contracts
Search contracts from an organization

- Type: search · Key: `searchTemplate`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchTemplate" })`
- CLI: `npx zapier-sdk run-action aiflow search searchTemplate`

##### Search Time Trackings
Search time trackings from an organization

- Type: search · Key: `searchTimeTracking`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchTimeTracking" })`
- CLI: `npx zapier-sdk run-action aiflow search searchTimeTracking`

##### Search Users
Search users from an organization

- Type: search · Key: `searchUser`
- Requires: organization
- Optional: search
- SDK: `runAction({ app: "aiflow", actionType: "search", action: "searchUser" })`
- CLI: `npx zapier-sdk run-action aiflow search searchUser`

## Frequently asked questions about automating with ActiveTrail and AIFlow

### 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
- ActiveTrail integrations: zapier.com/apps/activetrail/integrations.md
- AIFlow integrations: zapier.com/apps/aiflow/integrations.md
- Full page: zapier.com/apps/activetrail/integrations/aiflow
- SDK: npmjs.com/package/@zapier/zapier-sdk