# Claude + Zapier SDK Just Changed AI Agents Forever! (Tutorial)

- Channel: [Nick Puru \| AI Automation](https://www.youtube.com/channel/UC4FK5DEcMLB3CyJcbJfZEJA)
- Published: 2026-05-23
- Source video: [Watch on YouTube](https://youtube.com/watch?v=9qumURhXktg)
- Read on ReadTube: https://www.read.tube/p/videos/9qumURhXktg
- Language: Original (source language)

## Summary

**Model-Swappable Agent Stuns Workflow**

The video shows how to build an AI inbox triage agent that keeps its tools and logic separate from its model, so the brain can be swapped without rewriting the system. Using Claude Code, Zapier SDK, and OpenRouter, the creator connects Gmail and Slack, generates a compact TypeScript agent, and then switches the same workflow between Claude, Gemini, and MiniMax with a single line change.

The core argument is that an AI agent should be built from three independent parts: the brain, the hands, and the loop. The hands are provided by Zapier SDK, which connects the agent to real apps like Gmail and Slack; the brain is any model routed through OpenRouter; and the loop is a small TypeScript file that lets the model inspect results, choose actions, and continue reasoning. The creator says this structure avoids lock-in to any one model vendor and reduces the risk of breaking changes, billing shifts, or account bans disrupting business operations.

The tutorial walks through the setup in Claude Code. First, the needed apps are connected in Zapier, then the Zapier SDK is authenticated and verified, and then an OpenRouter API key is added through environment variables. Claude Code is prompted to generate an inbox triage agent in a single file called agent.ts, with Gmail and Slack wired in through the proxy pattern and with the environment loaded at the top of the file.

- The agent reads unread Gmail messages.
- It reasons over them and sends a Slack DM summary.
- It can swap models by changing one line.
- Claude is used for more complex reasoning and coding tasks.
- GPT is positioned as a balanced default.
- Gemini is treated as a fast, cheap workhorse.
- MiniMax is presented as a low-cost alternative for many tasks.

After the first run succeeds, the agent summarizes unread email and posts the result to Slack. The creator then demonstrates changing the model from Claude to Gemini and then to MiniMax, showing that the same code and tools remain intact while only the model changes. The conclusion is that the real value of an agent is its architecture, not the model itself: once the hands and loop are fixed, the brain becomes a replaceable setting instead of a dependency on one provider.
