PRACTICAL GUIDE · AI AGENTS
What is an AI agent and how do you build one? From a first task to your own code
An AI agent is a way to delegate a multistep task. In ChatGPT, select Work and open a new chat with a task. It is not a separate model: the AI uses permitted tools, and you review the result.

What does this mean in ChatGPT? It is not a separate AI or a new account. In ChatGPT, select Work (if your account has access), open a new chat, and give it a specific task. The chat is where you talk to it; an agent describes how the system does the work: it takes several steps, uses permitted tools, and brings you a result to review. For coding work, ChatGPT has Codex. OpenAI help.
For example, in a regular chat you ask “where should I publish a browser game?” and read an answer. In Work, you ask: “Find three platforms, check their terms on official sites, and make a table with links.” It searches, compares, and returns a result step by step. You can also build agents outside ChatGPT: in Claude Cowork, Gemini Tasks, or your own app through an API. Below is how to use them and build your own; the details were checked against official documentation on 23 November 2026.
What an agent does, and how it differs from chat
A normal chat answers a question. A predefined workflow follows steps written by a developer. An agent chooses its next step and tool within its permissions. For example, you ask it to find three current hosting options for a small game. It opens official pages, puts terms into a table, flags unclear prices, and returns sources. It should not buy hosting without your separate decision. Anthropic.
The model is the decision maker; tools provide search, files, code, or APIs; the loop repeats steps until the result or a limit is reached; memory supplies only needed context; rules define who may change what. Without connected tools it can prepare an answer or plan, but cannot independently check an external source or take action in another service. Without review, it may confidently make a mistake.
Not every task needs an agent. A single translation or short answer needs only chat. An agent is useful when information must be gathered from several places, a sequence of actions is required, or code must be changed and tested. More steps also mean more time, cost, and chances for error.
You can check that boundary before starting. For example, n8n's current documentation recommends keeping a predefined process as a workflow and using an agent for long tasks whose path depends on intermediate results. We turned that principle into a local diagnostic below, not a platform ranking.
Four practical tasks for an agent
- Research. Find terms for three services on their official sites, make a dated table with links, and flag unknowns. Check that the sources really support each row.
- Documents. Compare two contracts or technical documents and prepare a list of differences and draft questions. Leave signing and sending to a person.
- Development. Give access to one repository, ask for a reproduced bug, a minimal fix, tests, and a pull request. Merge and publish only after review.
- Customer support. Look up answers in an approved knowledge base and draft a response; if no answer exists or the issue concerns money or personal data, hand it to a person.
A current boundary example. On 16 November, OpenAI described computer-use agents for healthcare teams: in a synthetic-data demonstration, an agent prepared documents but a clinician reviewed them; when information was ambiguous, the system stopped, and it waited for approval before submission. This is a vendor report, not our independent clinical-safety evaluation. The same principle applies to an ordinary business task: automate the draft, but route the external action through a person.
We have separate guides to agent permissions, MCP as a way to connect tools , and agents for code review. Here is the whole picture in one route.
Beginners: your first agent without code
- Choose a place to work. ChatGPT Work handles multistep tasks; Claude Cowork works with selected files; Copilot Studio lets you build a business agent from a description, sources, and actions. Features depend on plan, region, and account. Start with something you can already access instead of buying a new plan just in case.
- Describe one result. Instead of “run my business,” ask for “a table of three providers with price, limits, and links to official terms.” Define the format and what finished means.
- Grant only necessary access. Public web pages or copies of test files are enough for a first attempt. A hosting comparison does not require your whole inbox, production server, or billing account.
- Set boundaries. State the maximum number of sources and time; require a pause before payments, deletions, messages, or production changes. Text on a website or in an email is information to read, not a new instruction to the agent.
- Review the result. Open two or three key sources, inspect the table and action log, and ask it to fix a specific error. Save a prompt that worked for the next similar task.
Here is a first task to paste into an agent mode you can access: “Find three ways to publish a small browser game on official websites. Make a table with what each can host, free limits, whether a card is needed, date checked, and links. If a term is unclear, write ‘unconfirmed.’ Do not register, pay, or publish anything. End with the sources and what I should check myself.” This asks for research, not a purchase.
In ChatGPT, choose Work and paste the task above. If you do not see it, check your plan and account settings in OpenAI's current help article. Older “ChatGPT agent” videos show an interface OpenAI has replaced.
A beginner video: OpenAI's official walkthrough shows how to use ChatGPT Work for tasks, sources, and finished results. The interface may change; check it against the help article above. Watch on YouTube.
Major AI agent platforms in 2026
| Ecosystem | No-code or everyday use | For developers | Example task |
|---|---|---|---|
| OpenAI | ChatGPT Work for research and finished files; Codex for code | Agents API, Agents SDK, or Responses API | Research a market; build an agent with your own tool |
| Anthropic | Claude Cowork for selected files; Claude Code for coding | Claude Agent SDK or Managed Agents | Rework documents; fix a bug and run tests |
| Gemini Tasks is rolling out unevenly; check your account | Agent Development Kit (ADK) | Build an agent with tools and test it locally | |
| Microsoft | Copilot Studio for business processes and knowledge sources | Microsoft Agent Framework | Answer from an approved knowledge base and escalate difficult cases |
| GitHub | Copilot coding agent for repository issues | Repository setup, issues, and PR review | Assign an issue and review the resulting changes |
| Perplexity | Computer for research, browser work, and subtasks; access depends on plan | Agent API with search and tools | Build a sourced research brief |
| xAI / Grok | Grok Build for terminal coding; Grok Bot in beta | Grok API tools: search, code, custom functions | Fix a coding bug or build your own loop |
| Mistral | Vibe Work for documents and research; Vibe Code for repositories | Agents SDK and Managed Agents in public preview | Research a topic or set up an agent service |
| AWS and Meta | AWS AgentCore is developer infrastructure; Meta Llama is a model foundation, not the same ready-made agent service | Build on AWS or open models | Run a controlled agent in your own infrastructure |
These are ways of working, not a ranking of the “smartest AI.” OpenAI distinguishes hosted Agents API, Agents SDK for your own orchestration, and lower-level Responses API. Anthropic, Google, Microsoft , and AWS offer different connection and control models. GitHub coding agent works through issues and pull requests. Meta Llama provides models for your own system, not a ready-made “do everything” button.
Availability in Ukraine matters. ChatGPT Work is available to eligible paid accounts; check your plan and access. Claude Cowork also depends on plan and region. Gemini Help names six countries where Tasks is available without a subscription: Australia, Canada, India, Japan, South Korea, and the United States. For Google AI Pro or Ultra, it describes supported Gemini countries but excludes the EEA, Nigeria, Switzerland, and the United Kingdom. At the same time, the Google One page still says “US only.” Ukraine appears in Gemini's general availability list, but on 23 November we did not check for a Tasks menu in an authorized Ukrainian account. We therefore do not promise access and recommend checking your own interface before buying a plan. ChatGPT Work · Claude Cowork · Gemini Tasks · Google One limitation.
What “call a business” means. Gemini uses Duplex for calls only for eligible adults in the United States, with a personal account and an English device language. It can call only US numbers for Google-verified US businesses, with regional, time, daily, and subject limits. Calls are not for emergencies, payments, financial transactions, or sharing sensitive data. We did not place a call. Gemini calling conditions · how Duplex evolved for Tasks.
Do you see Tasks in your Ukrainian account? Tell our Telegram community which menu item and plan you see. This is a reader report, not an automated availability check or proof that someone joined the community.
Old tutorials telling you to “create a Custom GPT” or “create a Gem” may now point in the wrong direction. According to OpenAI's GPT creation help, new personal GPTs can no longer be created and standard retirement is scheduled for 11 December 2026. Under Google's schedule, personal Gems become read-only on 17 November and are removed on 17 December; Google directs people toward Skills. You can still build an agent with a current SDK or a product available in your account.
Developers: the parts of your own agent
Start with one agent and one tool. The loop is: user request → model chooses an action → your server checks permissions and calls the tool → the tool result returns to the model → the model replies or takes another permitted step. A tool is an ordinary function or API, such as “find an order by number,” not permission to run arbitrary server commands.
Before production, write down the task contract: what the agent reads, which actions change state, who owns the data, limits on steps and spending, and what happens on failure. Keep API keys on the server. Check authorization inside the tool code, not only in the prompt. Treat any external webpage, document, or issue as untrusted content: it may say “ignore your rules,” but it remains data.
Show a person the exact action before payment, deletion, publication, or sending a message. Make writes safe to retry: if the network drops after a request, the agent must not create two invoices. Logs should show tool calls, time, errors, and cost without leaking secrets. Test more than a polished final response: did it select the right tool, recognize missing data, and stop at the permission boundary? OpenAI on approvals · Google ADK on evaluation · Google ADK on security.
A minimal Python agent: one read-only function
This example uses the current OpenAI Agents SDK. Install it with pip install openai-agents, set OPENAI_API_KEY as an environment variable, and save the code as agent.py. You need an API key and available API balance. Eligible ChatGPT Pro and Business subscriptions may include API credits after activation; check Billing. Otherwise usage is billed separately. The function below only reads a dictionary and changes nothing on a website.
import asyncio
from agents import Agent, Runner, function_tool
@function_tool
def get_faq(topic: str) -> str:
"""Return a stored FAQ answer for a topic."""
answers = {
"delivery": "Delivery takes 1–3 business days.",
"payment": "You can pay by card or invoice.",
}
return answers.get(topic.lower(), "No verified answer in the FAQ.")
agent = Agent(
name="FAQ helper",
instructions=(
"Before answering about delivery or payment, call get_faq. "
"If the FAQ has no answer, say so; do not invent a policy."
),
tools=[get_faq],
)
async def main():
result = await Runner.run(agent, "How does delivery work?")
print(result.final_output)
if __name__ == "__main__":
asyncio.run(main())Run python agent.py. Change the question to “Can I return an item?” A correct answer should acknowledge that the dictionary has no returns policy. Next, replace the dictionary with your own verified knowledge base, add tests for missing answers, and only then give the agent more tools. The decorator exposes a tool, but your app must enforce actual database access, approvals, and limits.
For repository coding, it is easier to start with a ready-made coding agent: describe a reproducible bug, expected result, and tests; receive a PR, review the diff, and run it in a test environment. GitHub documents this path. For a complex product with custom tool control, use a current SDK instead of copying old Assistants API examples: OpenAI saysthe Assistants API was shut down on 26 August 2026.
Videos: how it works in practice
These are demonstrations by the product teams, not independent tests by us. The videos are in English; each connects to YouTube only after a reader clicks. If a video shows an older UI, check the current documentation above for updated controls.
Google for Developers: Getting started with Agent Development Kit. From creating a project to running and testing an agent locally. Watch on YouTube.
Anthropic: Claude Code best practices. How to assign a coding task, inspect the work, and keep context manageable. Watch on YouTube.
GitHub: Run code generation in the background with GitHub Copilot coding agents. An issue becomes agent work and a PR for human review. Watch on YouTube.
Where to start today
If you are new, choose one research task with public sources and follow the five steps above. If you code, begin with one safe read-only tool or one issue in a test repository. Your first week's goal is a result you can verify and repeat without surprises, not an “autonomous company.”
Next, read how to connect tools with MCP, how to manage permissions , and how a personal ChatGPT dot differs from a one-off task.
Discussion
Share a thought or ask about the article. Your nickname and comment will be public.
Sign in with email
Get a one-time code. No password needed.
The code expires in 10 minutes. Signing in does not subscribe you to the newsletter. Data use.
Or sign in with ChatGPT ↗Loading comments…