# Zapier — SurFox AI Integrations
> zapier.com/apps/surfox-ai/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## 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

## Identity
SurFox AI is an AI-powered SMS lead qualification platform. Automate two-way text conversations to engage, score, and qualify leads via intelligent AI texting.

- App slug: surfox-ai
- Operations published here: 12 (8 events, 2 functions, 1 query, 1 search-or-write action)

## Authentication
Zapier connects to SurFox AI 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 surfox-ai
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/surfox-ai/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect SurFox AI through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

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

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action surfox-ai write create_lead \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing SurFox AI's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "surfox-ai" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions surfox-ai --page-size 50 --max-items 200 --json
```

### Events (8)

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

#### Call Logged
Triggers when a sales rep logs a call attempt (connected, voicemail, no answer, etc.).

- Type: read · Key: `call_logged`
- Requires: nothing
- Optional: campaign_id
- SDK: `runAction({ app: "surfox-ai", actionType: "read", action: "call_logged" })`
- CLI: `npx zapier-sdk run-action surfox-ai read call_logged`

#### Conversation Completed
Triggers when an AI conversation with a lead reaches completion.

- Type: read · Key: `conversation_completed`
- Requires: nothing
- Optional: campaign_id
- SDK: `runAction({ app: "surfox-ai", actionType: "read", action: "conversation_completed" })`
- CLI: `npx zapier-sdk run-action surfox-ai read conversation_completed`

#### Lead Became Hot
Triggers when a lead is marked as hot (high buying intent detected).

- Type: read · Key: `lead_became_hot`
- Requires: nothing
- Optional: campaign_id
- SDK: `runAction({ app: "surfox-ai", actionType: "read", action: "lead_became_hot" })`
- CLI: `npx zapier-sdk run-action surfox-ai read lead_became_hot`

#### Lead Converted (Won/Lost)
Triggers when a lead is marked as Won (with deal value) or Lost.

- Type: read · Key: `lead_converted`
- Requires: nothing
- Optional: campaign_id, conversion_type
- SDK: `runAction({ app: "surfox-ai", actionType: "read", action: "lead_converted" })`
- CLI: `npx zapier-sdk run-action surfox-ai read lead_converted`

#### Lead Opted Out
Triggers when a lead opts out of SMS communications (e.g., texts "STOP").

- Type: read · Key: `lead_opted_out`
- Requires: nothing
- Optional: campaign_id
- SDK: `runAction({ app: "surfox-ai", actionType: "read", action: "lead_opted_out" })`
- CLI: `npx zapier-sdk run-action surfox-ai read lead_opted_out`

#### Lead Replied
Triggers when a lead sends an SMS reply.

- Type: read · Key: `lead_replied`
- Requires: nothing
- Optional: campaign_id
- SDK: `runAction({ app: "surfox-ai", actionType: "read", action: "lead_replied" })`
- CLI: `npx zapier-sdk run-action surfox-ai read lead_replied`

#### Lead Status Changed
Triggers when a lead's status changes (e.g., Cold to Warm, Warm to Hot).

- Type: read · Key: `lead_status_changed`
- Requires: nothing
- Optional: campaign_id, status
- SDK: `runAction({ app: "surfox-ai", actionType: "read", action: "lead_status_changed" })`
- CLI: `npx zapier-sdk run-action surfox-ai read lead_status_changed`

#### New Lead Created
Triggers when a new lead is added to SurFox (from any source).

- Type: read · Key: `new_lead_created`
- Requires: nothing
- Optional: campaign_id
- SDK: `runAction({ app: "surfox-ai", actionType: "read", action: "new_lead_created" })`
- CLI: `npx zapier-sdk run-action surfox-ai read new_lead_created`

### Functions (2)

Functions change something in SurFox AI.

#### Create Lead
Add a new lead to a SurFox campaign and start AI qualification.

- Type: write · Key: `create_lead`
- Requires: campaign_id, first_name, last_name, phone
- Optional: email, custom_fields, notes
- SDK: `runAction({ app: "surfox-ai", actionType: "write", action: "create_lead" })`
- CLI: `npx zapier-sdk run-action surfox-ai write create_lead`

#### Update Lead Status
Update a lead's status or add notes in SurFox.

- Type: write · Key: `update_lead_status`
- Requires: lead_id
- Optional: status, notes, custom_fields
- SDK: `runAction({ app: "surfox-ai", actionType: "write", action: "update_lead_status" })`
- CLI: `npx zapier-sdk run-action surfox-ai write update_lead_status`

### Queries (1)

Queries read from SurFox AI and return data. They change nothing.

#### Find Lead
Find an existing lead by phone number or email.

- Type: search · Key: `find_lead`
- Requires: nothing
- Optional: phone, email, campaign_id
- SDK: `runAction({ app: "surfox-ai", actionType: "search", action: "find_lead" })`
- CLI: `npx zapier-sdk run-action surfox-ai search find_lead`

### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

#### Find or Create Lead
Finds a lead by phone or email. Creates one if not found.

- Type: search_or_write · Key: `find_lead`
- Requires: phone, campaign_id, first_name, last_name
- Optional: email, custom_fields, notes
- SDK: `runAction({ app: "surfox-ai", actionType: "search_or_write", action: "find_lead" })`
- CLI: `npx zapier-sdk run-action surfox-ai search_or_write find_lead`

## Popular integrations
- [SurFox AI + REsimpli 6.0](zapier.com/apps/surfox-ai/integrations/resimpli-60.md)

## Links
- Full app page: zapier.com/apps/surfox-ai/integrations
- MCP: zapier.com/mcp/surfox-ai
- SDK: npmjs.com/package/@zapier/zapier-sdk