Skip to content
Starfield Labs

Articles

15 AI agent examples you can build (and how each one works)

Fifteen agents, the tools each needs, and the guardrails that keep them safe.

By Starfield LabsPublished

Cover art with a friendly robot face beside the headline 15 AI agent examples you can build.

An AI agent is a model that uses tools in a loop to finish a task: it plans a step, acts, checks the result and continues until it's done. Below are 15 practical examples, grouped by what they do, with the tools each one needs and the safety check it should have. Every one of them is small enough to build at a hackathon.

What do all these agents have in common?

Each example below has three parts:

  • A goal a person gives it, in plain words.
  • Tools it can call: search, a code runner, an API, a database.
  • A stop rule: when the goal is met, when it hits a step limit, or when it needs a person to approve something.

Coding agents

1. Bug-fixing agent. Reads an issue, finds the relevant code in the repository, writes a fix, runs the tests and opens the change for review. Tools: repository search, file editing, a test runner. Guardrail: a person reviews every change before it's merged.

2. Test-writing agent. Reads a function, lists its edge cases and writes tests for them, then runs them. Tools: file reading, a test runner. Guardrail: it can only add test files, not change the code under test.

3. Repo onboarding agent. Reads a codebase and writes a getting-started guide: how to install, how it's structured, where to start. Tools: file listing and reading. Guardrail: read-only access.

Safe test environments. Coding agents should run in a sandbox: a container or virtual machine with no access to secrets or production systems, so a bad command can't do real damage.

Research and writing agents

4. Research assistant. Takes a question, searches the web, reads the best sources and writes a short brief with links. Tools: web search, page reading. Guardrail: every claim links to a source the agent actually read.

5. Meeting prep agent. Before a call, pulls recent emails, notes and public information about the other person into one page. Tools: email and notes search, web search. Guardrail: read-only; no messages sent.

6. Competitive tracker. Checks a list of competitor pages each week and summarises what changed. Tools: page fetching, a diff of last week's version. Guardrail: flags uncertainty instead of guessing.

Customer and operations agents

7. Support inbox agent. Reads incoming tickets, tags them by topic and urgency, searches the help centre and drafts replies. Tools: ticket system, help-centre search. Guardrail: drafts only; a person sends.

8. Booking agent. Finds a free slot that suits everyone and prepares a calendar invite. Tools: calendar read and write. Guardrail: asks before sending invites.

9. Expense agent. Reads receipts from photos, fills in an expense sheet and flags anything unusual. Tools: image reading, a spreadsheet. Guardrail: a person approves each claim.

Voice agents

10. Phone booking assistant. Answers calls, understands what the caller wants and books an appointment. Tools: speech-to-text, text-to-speech, a calendar. Guardrail: hands over to a person when it isn't sure.

11. Voice notes organiser. Transcribes voice notes, pulls out tasks and files them in the right project. Tools: speech-to-text, a task manager. Guardrail: shows the tasks before saving them.

Voice agents are a good fit for JavaScript and Node.js: most realtime voice APIs offer Node libraries, and a small Node server can stream audio between the caller and the model.

Data agents

12. Spreadsheet analyst. Upload a CSV, ask a question in plain words, and get an answer with a chart. Tools: a Python code runner. Guardrail: shows the code it ran, so you can check the method.

13. Database question-answerer. Turns a question into a database query, runs it and explains the result. Tools: a read-only database connection. Guardrail: read-only access and a row limit.

14. Report builder. Every Monday, collects numbers from a few sources and writes a one-page summary. Tools: APIs or databases, a document writer. Guardrail: lists where each number came from.

Personal agents

15. Personal knowledge agent. Searches across your notes, documents and bookmarks to answer a question, with links back to the sources. Tools: search over your own files (often through an MCP server). Guardrail: stays on your device or your own account.

How do you choose which agent to build?

If you want to… Start with
Learn the basics in an afternoon 4 (research assistant) or 12 (spreadsheet analyst)
Impress hackathon judges with a live demo 10 (phone booking assistant) or 1 (bug-fixing agent)
Build something you'll use every day 5 (meeting prep) or 15 (personal knowledge agent)
Work with real business data 7 (support inbox) or 13 (database question-answerer)

Where to go next

Ready to build one? Follow how to build an AI agent for the code, and how to build an MCP server to give your agent new tools. Sign up at starfieldlabs.ai to hear first about our events. For the kinds of agent and where each fits, read AI agents: types, uses and limits.

Keep reading

All articles