Last Updated: November 8, 2026
Summary: To build an AI agent, pick one narrow job, choose a model, give it a small set of tools with tightly scoped permissions, write clear instructions, then test it against real examples before launch. You can build one on a no-code platform such as Zapier Agents in an afternoon, with a framework such as the OpenAI Agents SDK, Claude Agent SDK or Google's ADK, or directly on a model API. A simple customer support agent handling 5,000 conversations a month costs roughly $9 to $360 in model fees, depending on the model.
Most guides on how to build AI agents are vendor pitches or Python tutorials. Business teams need something in between: which build route fits their skills, what it costs to run and what can go wrong once an agent takes real actions.
This guide covers all of it, with every product name, feature and price checked against OpenAI, Anthropic and Google's own documentation in November 2026. It also flags two OpenAI shutdowns on November 30, 2026 that change which tools are worth starting on.

An AI agent pairs a model with tools and a loop. Photo: Numan Ali / Unsplash
Free download: The AI Stats Sheet 2026. 36 key AI numbers for business on four printable pages, with the source under every figure. Join 2,600+ business leaders who read AI Business Weekly and get it in your inbox right away.
In this guide
What Is an AI Agent?
An AI agent is software that uses a language model to plan its own steps and call tools to finish a task, rather than only answering a single prompt. Anthropic's documentation puts it plainly: an agent "completes a task by planning its own steps and calling tools." Every agent, however it is built, has the same four parts: a model, instructions, tools and a loop that keeps going until the job is done. For a fuller primer, see our explainer on what AI agents are.
Do You Actually Need an AI Agent?
Many business tasks do not need an agent. A fixed workflow, where the steps are known and a model fills in one or two, is cheaper, faster and easier to test.
Anthropic's engineering guide, Building effective agents, draws the line clearly. Workflows are "systems where LLMs and tools are orchestrated through predefined code paths," while agents are "systems where LLMs dynamically direct their own processes and tool usage." It advises "finding the simplest solution possible," noting that "agentic systems often trade latency and cost for better task performance."
A practical test: if you can draw the process as a flowchart that never changes, build a workflow. If the right next step depends on what the system finds along the way, as with a support ticket that may need a refund, a policy search or a human, an agent earns its extra cost.
What Are the Ways to Build an AI Agent?
There are four main routes to building an AI agent in 2026: no-code platforms, agent frameworks and SDKs, direct model APIs, and fully managed hosted agents. They trade code for control. Time estimates below are our rough guide for a simple first agent, not vendor figures.
Approach | Examples | Skill needed | Typical cost basis | Time to first agent | Best for |
|---|---|---|---|---|---|
No-code platform | Zapier Agents, ChatGPT Workspace Agents | None; comfortable with business apps | Monthly plan with an activity or usage allowance | Hours | Internal automations across SaaS tools |
Agent framework or SDK | OpenAI Agents SDK, Claude Agent SDK, Google ADK | Python or TypeScript developer | Free, open-source or bundled library; you pay per model token plus your own hosting | A day or two | Customer-facing agents and products you own |
Direct model API | OpenAI Responses API, Claude Messages API with tool use | Experienced developer | Per model token plus any per-call tool fees | Days | Maximum control, custom loops, tight cost tuning |
Managed hosted agent | OpenAI Agents API, Claude Managed Agents | Developer, less infrastructure work | Per token plus runtime or sandbox fees | A day or two | Long-running tasks without building your own sandbox |
No-code AI agent builders
No-code platforms let non-developers describe an agent in plain English and connect it to apps they already use. Zapier's Agents pricing page lists a free plan with 400 activities a month and a Pro plan at $33.33 a month billed annually ($400 a year) with 1,500 activities, where an activity is an action the agent takes, a web browse or a knowledge lookup. We compare the main options in our guide to AI agent platforms.
One warning before you start. OpenAI's visual Agent Builder is being retired: OpenAI's deprecations page says Agent Builder "is scheduled to shut down" on November 30, 2026, and points users to the Agents SDK or ChatGPT Workspace Agents instead. Do not start a new project on it.
Agent frameworks and SDKs
Agent frameworks handle the loop, tool calls and conversation memory so your developers write the business logic, not the plumbing. Three are worth knowing:
OpenAI Agents SDK. According to its official GitHub README, it is "a lightweight yet powerful framework for building multi-agent workflows," released under the MIT license and installed with
pip install openai-agents. It adds handoffs between agents, guardrails, sessions, human-in-the-loop controls and tracing, has a separate JavaScript and TypeScript version, and supports more than 100 non-OpenAI models.Claude Agent SDK. Anthropic's Agent SDK documentation says it gives developers "the same tools, agent loop, and context management that power Claude Code," in Python and TypeScript. Built-in tools read and edit files, run commands and search the web, alongside hooks, subagents, MCP connections and permission controls. It runs on a Claude API key, Amazon Bedrock, Google Cloud or Microsoft Foundry. If you know Claude Code, this is the same engine as a library.
Google Agent Development Kit (ADK). Google Cloud's ADK overview calls it "an open-source agent development framework" available in Python, TypeScript, Go and Java, with deployment to Google's Runtime, Cloud Run or Google Kubernetes Engine.
One licensing detail: Anthropic's docs say that, unless previously approved, products built on the Claude Agent SDK may not offer claude.ai login or rate limits, so customer-facing agents should run on API keys.
Direct model APIs
Building on the raw API means writing the agent loop yourself: send a request with tool definitions, let the model ask for a tool, run it, send the result back and repeat. Anthropic's tool use documentation shows the pattern: Claude replies with stop_reason: "tool_use", your code runs the operation and returns a tool_result. Adding strict: true to a tool definition ensures Claude's calls "always match your schema exactly," and server tools such as web search and code execution run on Anthropic's infrastructure.
On OpenAI's side, the agents guide points developers building from scratch to the Responses API. Anthropic's guide suggests developers "start by using LLM APIs directly" and, if they adopt a framework, "ensure you understand the underlying code."
Managed hosted agents
A fourth option is to let the model vendor host the whole agent, including the sandbox where it runs code. OpenAI's Agents API "runs the Codex harness and manages the underlying agent infrastructure," built for long-running tasks. Anthropic's Claude Managed Agents, in beta, offers a hosted harness with cloud or self-hosted sandboxes and scheduled runs. Anthropic notes Managed Agents is not eligible for Zero Data Retention or HIPAA, which rules it out for some regulated workloads.
How Do You Build an AI Agent Step by Step?
Building an AI agent follows the same seven steps whichever tool you choose. Define the job before you pick a tool.
Pick one narrow job. "Answer order-status questions and process returns under $50" is buildable. "Handle customer service" is not.
Define success and escalation. Decide what a correct answer looks like, which cases go to a human and what the agent must never do.
Choose a model. Start with a capable mid-tier model, get the agent working, then test whether a cheaper model holds up.
Give it the fewest tools possible. Each tool is a function such as "look up order" or "issue refund." Scope each one tightly, read-only where possible.
Write clear instructions. Describe the role, steps, tone and escalation rules. Give each tool a precise description, since the model uses it to decide when to call the tool.
Test against real examples. Build a set of 50 to 100 past conversations, including awkward ones, and check the agent's answers before launch. OpenAI's Evals platform shuts down on November 30, 2026, per its deprecations page, so do not build testing on it.
Launch small, then watch it. Release to a slice of traffic, keep humans approving high-risk actions and log every tool call.
Which AI Model Should Your Agent Use?
For most business agents, a mid-tier model such as Claude Sonnet 5.5 or GPT-6.1 Sol is the right starting point, with a budget model for simple, high-volume routing.
Model | Vendor's description | Input / output per 1M tokens |
|---|---|---|
Claude Opus 5.5 | "For long-running agentic coding and knowledge work" | $4 / $20 |
Claude Sonnet 5.5 | "The best combination of speed and intelligence" | $2 / $10 |
Claude Haiku 5.5 | For high-volume tasks such as classification, extraction and routing | From $0.10 / from $0.50 |
GPT-6 Astra | "Our most capable model for the most demanding work" | $10 / $50 |
GPT-6.1 Sol | Close to Astra-level performance at a lower price | $2 / $10 |
GPT-6.1 Terra | "A fast, efficient model" for visual reasoning and computer use | $1 / $5 |
GPT-6 Luna | "Our most efficient model for focused, high-volume tasks" | $0.10 / $0.50 |
Sources: Anthropic's models overview and OpenAI's models page, checked November 8, 2026. Anthropic's guidance is to "start with Claude Opus 5.5 for most workloads" if unsure. Claude Haiku 5.5's lower rates apply to prompts up to 100,000 tokens.
Sameer's take: I use Claude every day to run AI Business Weekly. It is my favourite AI tool, and I have never hit its usage limits.
How Much Does It Cost to Build an AI Agent?
The running cost of an AI agent is mostly model tokens, and for a simple support agent that can be under $10 or several hundred dollars a month for the same traffic. The model moves the bill far more than the framework.
Here is a worked example from the vendors' published per-token prices. A support agent handles 5,000 conversations a month. Each conversation takes four model calls of about 3,000 input tokens (instructions, tool definitions, history and policy text) and 300 output tokens: 12,000 input and 1,200 output tokens in total.
Model | Cost per conversation | Monthly cost (5,000 conversations) |
|---|---|---|
Claude Haiku 5.5 | $0.0018 | $9 |
GPT-6 Luna | $0.0018 | $9 |
GPT-6.1 Terra | $0.018 | $90 |
Claude Sonnet 5.5 | $0.036 | $180 |
GPT-6.1 Sol | $0.036 | $180 |
Claude Opus 5.5 | $0.072 | $360 |
Prompt caching cuts this further. On Anthropic's pricing page, cached input for Claude Sonnet 5.5 costs $0.10 per million tokens against $2 standard. If 8,000 of the 12,000 input tokens per conversation are repeated instructions and tool definitions served from a warm cache, the Sonnet 5.5 bill falls to about $104 a month, plus occasional cache-write charges.
Budget for the extras:
Tool fees. Web search costs $10 per 1,000 searches on both the Claude API and the OpenAI API. OpenAI's file search costs $2.50 per 1,000 calls plus $0.10 per GB per day of storage after the first free GB.
Hosting. Claude Managed Agents charges $0.08 per session-hour of runtime on top of tokens. OpenAI's hosted containers start at $0.03 per 20-minute session for 1 GB.
People. Build time, testing and ongoing review are real costs no price sheet shows. To hire the work out, see our guide to the AI automation agency model.
For every rate in one place, see our Claude API pricing and OpenAI API pricing guides.
Free download: The AI Stats Sheet 2026. 36 key AI numbers for business on four printable pages, with the source under every figure. Join 2,600+ business leaders who read AI Business Weekly and get it in your inbox right away.
What Are the Risks of AI Agents, and How Do You Guard Against Them?
The core risk with an AI agent is that it takes a harmful action because someone tricked it or because it had more access than it needed. The OWASP GenAI Security Project ranks "Excessive Agency" third in its 2026 Top 10 for LLM Applications.

Tight permissions and human approval keep an agent from taking actions it should not. Photo: Allison Saeng / Unsplash+
OWASP's AI Agent Security Cheat Sheet lists the main risks and controls:
Risk | What it looks like | Guardrail |
|---|---|---|
Prompt injection | Hidden instructions in an email, web page or document hijack the agent | Treat all external data as untrusted; separate instructions from data |
Tool abuse | The agent uses an overly broad tool to reach data it should not see | Least privilege: the minimum tools, scoped read-only where possible |
Excessive autonomy | The agent issues a refund or deletes a record with no check | Human approval for high-impact or irreversible actions |
Data exposure | Sensitive data leaks through outputs, tool calls or logs | Redact sensitive data and log every decision and tool call |
Denial of wallet | A runaway loop burns through API budget | Token, cost, retry and tool-chain limits |
The OpenAI Agents SDK has guardrails and human-in-the-loop features, and the Claude Agent SDK has permissions and hooks that run custom code before or after tool calls. Anthropic's engineering guide adds one more rule: run "extensive testing in sandboxed environments, along with the appropriate guardrails" before an agent touches live systems.
Frequently Asked Questions
Can I build an AI agent without coding?
Yes. No-code platforms such as Zapier Agents and ChatGPT Workspace Agents let you describe an agent in plain English and connect it to business apps. Zapier lists a free plan with 400 activities a month.
What is the best framework to build AI agents?
The OpenAI Agents SDK, Claude Agent SDK and Google ADK are the main vendor frameworks in 2026. Pick the one that matches your model and your team's language; ADK also supports Go and Java.
How much does it cost to build an AI agent?
The main running cost is model tokens. A support agent handling 5,000 conversations a month costs about $9 on Claude Haiku 5.5 or GPT-6 Luna, $180 on Claude Sonnet 5.5 or GPT-6.1 Sol, and $360 on Claude Opus 5.5, before tool fees and hosting.
How long does it take to build an AI agent?
A simple no-code agent can run within hours, and a developer can have a basic SDK-based agent working in a day or two. Testing and a staged launch take longer.
Is OpenAI's Agent Builder still available?
Only until November 30, 2026. OpenAI's deprecations page says Agent Builder is scheduled to shut down that day and recommends the Agents SDK or ChatGPT Workspace Agents instead.
The Bottom Line
Learning how to build AI agents starts with the job, not the tool. Pick one narrow task, then the lightest route that does it: no-code for internal automations, an SDK for products you own, the raw API for full control.
Start on a mid-tier model, give the agent as few tools as possible, keep a human approving anything irreversible and test on real examples before launch. Then test whether a cheaper model can handle the routine work.
Related Articles
What Are AI Agents?: how agents work and where businesses use them.
AI Agent Platforms: the main tools for building and running agents compared.
AI Agent vs Agentic AI: the difference between the two terms.
AI Agents Statistics: the key numbers on AI agent adoption.
Claude Computer Use: how Claude can operate a computer.
What Is Claude Code?: Anthropic's coding agent explained.
Written by Sameer Khan with AI assistance, fact-checked against the sources linked above.
