brainax

How to make an AI agent

Short answer: you don't need code. Start with a brief, a short task in five parts: goal, data, report format, when to ask you, and what never to do. Then pack that brief into your own mini-agent: a Gem in Gemini (free for everyone since March 2025), a custom GPT in ChatGPT or a project in Claude. If it should run by itself on an event, build an "if → then" chain in Zapier or n8n. And if you want it in your pocket, connect a Telegram bot. Below is each step with an example and the safety rules that matter most.

Free course on this topicAI Agents for Life: free courseStart the course →

Step 1: write a brief, not a wish

An agent can't read minds. Anything missing from the task, it guesses, and it often guesses wrong. "Find me a flat" is a riddle. A brief is: up to $600 a month, no more than 20 minutes from campus, cat allowed, 5 options as a table, don't message landlords yourself. Same agent, same model, completely different result.

Three things make a brief work:

More in the lesson: the brief: how to give an agent a task

Step 2: pack it into your own agent

A good brief is a pain to paste every time, so all three big assistants let you pack it. OpenAI launched GPTs in November 2023. Google opened Gems in Gemini to everyone for free in March 2025. Anthropic released Skills for Claude in October 2025.

Any agent of your own has four parts: instructions (your brief), knowledge (files it relies on), tools (search, images, tables) and tests (three requests to check it works). The steps are the same everywhere:

1. Create a Gem at gemini.google.com, a GPT at chatgpt.com/create, or start a project in Claude.

2. Paste your brief into the instructions.

3. Add files, but only ones you wouldn't mind showing.

4. Turn on only the tools you need.

5. Run three tests, one of them tricky, and fix the instructions where the agent slipped.

When is it worth it? The rule of three: the third time you write the same brief, pack it.

More in the lesson: skills: your own agent in 10 minutes

Step 3: make it run by itself with an automation

A schedule runs an agent by the clock; an automation runs it on an event. The formula is "if… then…": if an email with a receipt arrives, the AI pulls out the date, amount and shop, and adds a row to your spending sheet. Three blocks: a trigger, an AI step and an action, plus a stop rule such as "if the amount is over $100, stop and ask me".

These chains are built with a mouse in Zapier (cloud, more than 9,000 apps) or n8n (open source, can run on your own computer). Both have a free way to start and an approval pause before important steps like sending an email.

Anthropic's guide to agents draws a useful line: a workflow has fixed steps and is predictable and cheaper; an agent decides its own steps and is more flexible but can wander off. Start with the simplest solution. For receipts, reminders and moving data, a workflow is enough.

More in the lesson: if → then: autopilot without code

Step 4: put your agent in Telegram

The best agent is the one close at hand. A Telegram bot is free to create: find @BotFather (check the blue checkmark), send /newbot, pick a name and a username ending in "bot". BotFather gives you a token.

The token is the key to the whole bot. Never put it in a screenshot, a chat, a public repo or the AI brief; it belongs only in the Zapier or n8n connection settings. If it leaks, issue a new one with /token. Then add a filter on your own chat ID so the bot answers only you, otherwise strangers can burn your AI limit. The chain: Telegram trigger → chat ID filter → AI step with your brief → reply.

More in the lesson: your own Telegram bot

Safety rules before you go live

More in the lessons: skills, if → then

FAQ

Can I make an AI agent for free?

Yes, to start. Gems in Gemini are free for everyone, Telegram doesn't charge for bots, and Zapier and n8n both have a free way to start. You pay later only if you need more runs or features.

Do I need to code to build an AI agent?

No. A custom GPT, a Gem or a Claude project is set up by pasting your brief into the instructions, and Zapier or n8n chains are built with a mouse. Coding helps for bigger projects, but everyday agents don't need it.

What's the difference between an AI agent and an automation?

An automation, or workflow, follows steps set in advance: email → AI → spreadsheet. An agent decides which steps to take and in what order. Workflows are more predictable and cheaper, so start there and use an agent only when the task really needs flexibility.

Build your first agent this week

The free Brainax course "AI Agents for Life" has 22 short lessons, from the five-part brief to memory, skills, automations and a Telegram bot, with a risk-free "Build an agent" trainer. Start the lesson

Free course on this topicAI Agents for Life: free courseStart the course →