Build your own AI agent
Design an agent that does a real job: its goal, its tools, its limits, and how a person stays in charge.
Agent vs automation vs chatbot
A chatbot answers. An automation follows fixed steps you designed (when X, do Y). An agent is given a goal and tools, and decides the steps itself, looping until it's done or needs help. Use the simplest one that does the job: many 'agent' ideas are better as a reliable automation with one AI step.
The parts of an agent
- Goal and instructions: what done looks like, the rules, the tone, and when to stop and ask.
- Model: the LLM doing the thinking.
- Tools: the actions it may take (search the web, read a sheet, draft an email, create a calendar event). Often connected through MCP or an automation platform.
- Knowledge: documents it can look up (your FAQ, price list, policies).
- Memory: what it keeps between runs, if anything.
- Guardrails: what it may never do, spending limits, and which actions need a person's approval.
Where you can build one
No-code: custom assistants in ChatGPT, Claude projects with connectors, Gemini Gems, Zapier Agents, Make AI Agents, or n8n's AI agent node. Code: agent SDKs from OpenAI, Anthropic and others, or the Vercel AI SDK, when you need full control inside your own app.
Design it on one page first
- Job: 'Answer booking questions for a barbershop and offer the next three open times.'
- Inputs: the customer's message, the calendar, the price list.
- Allowed actions: read calendar, draft a reply. Not allowed: book, cancel or charge without approval.
- Hand-off: when to pass to a human (complaints, refunds, anything it's unsure about).
- Success: 20 real past messages it should handle; run them as your eval before going live.
Keep a person in charge
Start with the agent drafting and a person approving. Log every action it takes. Give it the fewest permissions that work, never your main passwords. Watch for prompt injection in anything it reads. Only remove approvals for low-risk, reversible actions after it has run correctly many times.
Key terms
- AI agent
- An AI that can use tools and take several steps toward a goal, not just answer.
- Automation / workflow
- Steps that run by themselves: when this happens, do that.
- Connector
- A permissioned link that lets an AI assistant read or act in another app.
- MCP (Model Context Protocol)
- An open standard for plugging AI apps into tools and data. 'USB-C for AI.'
- Human in the loop
- A person approves important steps before they happen.
- Least privilege
- Give each person, app or AI only the access its job needs.
- Prompt injection
- Instructions hidden in content (an email, a web page) that try to hijack an AI.
- Eval
- A set of real examples with expected answers, run to measure an AI feature's quality.
- Knowledge base
- Documents an AI agent can look up, like your FAQ, policies or price list.
Try it
Design and test a draft-only agent
- Pick one repetitive job (answering FAQs, triaging requests, preparing a weekly summary).
- Write the one-page design: job, inputs, allowed actions, hand-off, success.
- Build it as a custom assistant or project with only read access and drafting.
- Run 10 real examples through it and note where it needed a human.
Ask an AI tutor about this guide
Copy a prompt into ChatGPT, Claude or Gemini to go deeper. Check what it tells you against the guide.
- Explain it like I'm 12
- Quiz me (5 questions, one at a time)
- Show me a real example for my situation
- What do beginners get wrong?
Knowledge check
Five questions. Get 4 right to earn the Agent Designer badge. You can retake it as often as you like.
Question 1 of 5
Finished the AI at work guides? Take the AI at work track test for ten mixed questions.
My notes
Write what clicked, what confused you, and what you want to try. Saved in this browser only.
Learn it live
Digital Builders University runs small live workshops where you build something real with an instructor beside you, starting with Vibe Coding 101.
See workshopsPractise it
- Build Challenge: AI FAQ helper on a website (Pro, 4 hours)
Official sites
- OpenAI: Agents guide (opens in a new tab)
- Anthropic: Building effective agents (opens in a new tab)
- n8n AI agents (opens in a new tab)
Last reviewed November 25, 2026. AI tools change fast; check each tool’s own site for current features, plans and prices.
