🤖 AI Tools
· 4 min read

Zapier Agent SDK: Connect AI Agents to 7,000+ Apps (2026 Guide)


Building an AI agent that can actually do things — send Slack messages, create Jira tickets, update spreadsheets — means solving authentication for every single app. OAuth flows, token refresh, API quirks, rate limits. For one app, it’s annoying. For ten apps, it’s a full-time job.

The Zapier SDK (open beta, April 2026) solves this by giving your agent authenticated access to 9,000+ app integrations through one interface. Zapier handles auth, token refresh, retries, and API differences. Your agent handles the logic.

SDK vs MCP vs Zapier Agents

Zapier now has three ways to connect AI to apps. They serve different purposes:

Zapier SDKZapier MCPZapier Agents
ForCoding agents and developersChat agents (Claude, GPT)No-code users
AccessAny API call, in codeCurated menu of pre-built actionsVisual builder
AuthProgrammatic (client credentials)Browser-basedBrowser-based
Use whenYou need loops, conditionals, error handlingYou want quick tool access in chatYou want no-code automation

Most teams end up using SDK + MCP together. MCP for conversational interfaces, SDK for production code.

Setup

# Requires Node.js 20+
npm init -y
npm install @zapier/zapier-sdk
npm install -D @zapier/zapier-sdk-cli @types/node typescript

# Login (opens browser)
npx zapier-sdk login

# Check your connected apps
npx zapier-sdk list-connections --owner me

The CLI is useful for exploration. Use it to discover what actions an app supports:

# See all available actions for Slack
npx zapier-sdk list-actions slack

# See what inputs an action needs
npx zapier-sdk describe-action slack write channel_message

# Run an action directly
npx zapier-sdk run-action slack write channel_message \
  --connection-id YOUR_ID \
  --inputs '{"channel":"#general","text":"Hello from the SDK"}'

TypeScript SDK usage

The SDK is type-safe. Every app and action has generated types:

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

const zapier = createZapierSdk();

// Find the user's Slack connection
const { data: slackConn } = await zapier.findFirstConnection({
  appKey: "slack",
  owner: "me",
  isExpired: false,
});

// Bind it once, use everywhere
const slack = zapier.apps.slack({ connectionId: slackConn.id });

// Send a message
await slack.write.channel_message({
  inputs: {
    channel: "#deployments",
    text: "Deploy complete. All tests passing.",
  },
});

The pattern is consistent across all 9,000+ apps: zapier.apps.APP_KEY({ connectionId }).ACTION_TYPE.ACTION_NAME({ inputs }).

Action types:

  • search — find data (search users, find events)
  • write — create or update (send message, create ticket)
  • read — list data (list channels, get records)

Real example: AI agent with tool access

Here’s how you’d give an AI agent access to Slack and GitHub through the Zapier SDK:

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

const zapier = createZapierSdk();

// These become tools your agent can call
async function sendSlackMessage(channel: string, text: string) {
  const { data: conn } = await zapier.findFirstConnection({
    appKey: "slack", owner: "me", isExpired: false,
  });
  const slack = zapier.apps.slack({ connectionId: conn.id });
  return slack.write.channel_message({ inputs: { channel, text } });
}

async function createGithubIssue(repo: string, title: string, body: string) {
  const { data: conn } = await zapier.findFirstConnection({
    appKey: "github", owner: "me", isExpired: false,
  });
  const github = zapier.apps.github({ connectionId: conn.id });
  return github.write.create_issue({
    inputs: { repo, title, body },
  });
}

// Register these as tools in your agent framework
// Works with OpenAI Agents SDK, LangChain, CrewAI, etc.

This is the key advantage: your agent gets authenticated access to thousands of apps without you building a single OAuth flow.

Direct API calls with fetch

For actions that go beyond pre-built connectors, the SDK provides authenticated fetch:

const { data: conn } = await zapier.findFirstConnection({
  appKey: "github", owner: "me", isExpired: false,
});

// Raw API call — Zapier handles auth headers
const response = await zapier.fetch(conn.id, {
  url: "https://api.github.com/repos/owner/repo/pulls",
  method: "GET",
});

This gives you full API access with Zapier managing the credentials. Note: direct API calls are not yet covered by Zapier’s governance policies (pre-built actions are).

Governance and security

If your organization has restricted specific apps or actions in Zapier, those policies apply automatically to SDK traffic using pre-built actions. This matters for enterprise teams where AI agent security is a concern.

Current limitations (open beta):

  • Enterprise and Team plans are off by default (contact Zapier for opt-in)
  • Direct API calls via .fetch() bypass governance policies (fix coming)
  • Triggers API (real-time events) targeting May 2026
  • Agent approval flow (user reviews before agent acts) coming soon

SDK vs building it yourself

Zapier SDKDIY
Time to first integrationMinutesHours to days
OAuth implementationHandledYou build it
Token refreshAutomaticYou handle it
Number of apps9,000+One at a time
API quirksAbstractedYou debug them
CostFree (beta), paid laterFree (your time)
Vendor lock-inYes (Zapier)No

The trade-off is clear: speed and breadth vs independence. For most AI agent projects, the SDK is worth it for the auth layer alone.

Combining with agent frameworks

The Zapier SDK works with any agent framework:

  • OpenAI Agents SDK: Register Zapier actions as @function_tool tools
  • LangChain: Wrap as LangChain tools with @tool decorator
  • Claude Code: Use via MCP for conversational access
  • CrewAI: Register as crew tools for multi-agent workflows

The SDK handles the “connect to apps” problem. Your framework handles the “think and decide” problem. Together, they make agents that can actually do useful work.

Related: OpenAI Agents SDK Guide · How to Build an AI Agent · Best AI Agent Frameworks · What is MCP? · Agent Orchestration Patterns · AI Agent Security · Agent vs Workflow