# What is an AI agent?

> An AI agent decides what to do and uses tools to do it, like adding rows to a sheet. A plain definition, a real n8n build, and how to keep it safe.

Source: https://ynteractive.com/content/glossary/ai-agent · Updated 2026-10-01 · Free from Stepthrough (https://ynteractive.com)

[AI agents](https://ynteractive.com/content/glossary#topic-ai-agents) · [AI glossary](https://ynteractive.com/content/glossary)

Quick answer

An AI agent is an AI system that works toward a goal by deciding which steps to take and using connected tools to take them, such as adding a row to a spreadsheet or creating an email draft, rather than only replying with text. You set the goal, the tools and the limits.

Last updated October 1, 2026

[Take the free module →](https://ynteractive.com/courses/intro-to-ai-automation/7)Module 7 of the free [Intro to AI Automation](https://ynteractive.com/courses/intro-to-ai-automation) course, about 12 minutes. No account needed.

Updated October 1, 2026 · By [Robert Breen](https://ynteractive.com/content/about/robert-breen)

## Why it matters for a small business

Agents earn their keep where the input varies and the right action depends on reading it: a batch of expenses to categorize, a list of late purchase orders to chase, a receipt photo to log. The agent reads, decides and writes the result where your team will see it, with no copy and paste in between.

Because an agent acts, its mistakes travel further. A bad chatbot answer is a bad paragraph; a bad agent action is a wrong row in the books or a message to a customer. Good agents get narrow jobs, only the tools they need, and permissions that keep a person in the loop, like creating drafts instead of sending.

## In a real lesson: How to Create an AI Agent in n8n That Saves Ideas to Google Sheets

The [n8n AI agent lesson](https://ynteractive.com/content/n8n-ai-agent-tutorial-google-sheets) assembles one piece by piece for BrightPath Marketing, a made-up marketing agency. The **AI Agent** node is introduced as the piece that can plan and then carry out actions with the tools you give it. It gets a **System Message** naming the agency, its audience and voice, and the five things to return for each idea: Platform, Post Topic, Hook, Short Description and Suggested Call to Action. Then come an **OpenAI Chat Model** set to **gpt-5-mini**, **Simple Memory**, and a **Google Sheets Tool** pointed at a sheet called **Social Media Ideas**.

In the test you ask for 3 post ideas about how small businesses can use ChatGPT to improve their advertising, and it replies with three. Then you send **Yes, save those ideas to the sheet**. Nobody tells it which node to run; the agent works out that saving means the Sheets tool and writes one row per idea.

That choice is what makes it an agent. The system message says when to use the tool, memory tells it which ideas "those" means, and the tool does the writing.

[Try this lesson free](https://ynteractive.com/modules/n8n-ai-agent) or [read the step-by-step guide](https://ynteractive.com/content/n8n-ai-agent-tutorial-google-sheets).

## Common confusions

### AI agent vs automation

A plain [automation](https://ynteractive.com/content/glossary/automation) runs the same fixed steps every time. An agent chooses its steps based on what it reads, within the tools you give it. Many useful workflows combine both.

### AI agent vs chatbot

A [chatbot](https://ynteractive.com/content/glossary) replies. An agent can also act through tools, and decides when to.

### "Autonomous" vs supervised

Most useful small-business agents aren't left fully on their own. In the [email responder lesson](https://ynteractive.com/content/ai-email-responder-gmail-drafts-n8n), the agent's only tool creates Gmail drafts, so a person still reads and sends every reply.

## Tips

- Start with one job and one tool, then add more once it works.
- Say in the system message exactly when each tool should be used.
- Prefer safe actions (append a row, create a draft) over ones you can't undo (send, delete).

## Related terms

[AI Agent node](https://ynteractive.com/content/glossary#ai-agent-node) · [Tool calling](https://ynteractive.com/content/glossary#tool-calling) · [Agent memory](https://ynteractive.com/content/glossary#agent-memory) · [Chatbot](https://ynteractive.com/content/glossary) · [Human in the loop](https://ynteractive.com/content/glossary/human-in-the-loop) · [System prompt (system message)](https://ynteractive.com/content/glossary#system-prompt)

## More AI agents terms

[AI agent permissions](https://ynteractive.com/content/glossary#agent-permissions) · [AI agent vs assistant](https://ynteractive.com/content/glossary) · [AI video agent](https://ynteractive.com/content/glossary) · [Always-on agent](https://ynteractive.com/content/glossary)

## Where you use it: free lessons

- [How to Create an AI Agent in n8n That Saves Ideas to Google Sheets](https://ynteractive.com/content/n8n-ai-agent-tutorial-google-sheets) (n8n, 12 min)
- [n8n AI Email Responder: Draft Gmail Replies Automatically](https://ynteractive.com/content/ai-email-responder-gmail-drafts-n8n) (n8n, 12 min)
- [How to Do OCR in n8n: Read Receipt Photos into Google Sheets with AI](https://ynteractive.com/content/ai-receipt-extractor-n8n-google-sheets) (n8n, 12 min)
- [Get On-Brand Social Posts Every Time using a ChatGPT Custom GPT](https://ynteractive.com/content/custom-gpt-social-media-assistant) (ChatGPT, 8 min)

## Watch it in a free lesson: How to Use n8n to Build AI Agents: A Support Agent That Answers from Your Docs

### A Support Agent That Answers from Your Own Docs: video walkthrough

Full walkthrough · 2:23 · with captions

Turn an n8n chat agent into a support agent that answers only from your policies in a Google Doc, refuses what it should, and hands off to a person by email. The whole lesson narrated step by step, recorded in Stepthrough’s simulated practice environment.

[Watch it with chapters and the full transcript](https://ynteractive.com/content/support-agent-answers-from-your-docs-n8n#watch)

From the free lesson [How to Use n8n to Build AI Agents: A Support Agent That Answers from Your Docs](https://ynteractive.com/content/support-agent-answers-from-your-docs-n8n)

## More free tutorials

[n8n Jump Start](https://ynteractive.com/content/paths/n8n-jump-start)

## Prompt templates that use it

Service call follow-up message prompt

## Visual guides

AI agent in a few slides, with the same guide written out as text.

- [AI Agent vs Automation vs Chatbot: One Job, Three Ways](https://ynteractive.com/content/visual/ai-agent-vs-automation-vs-chatbot-one-job-three-ways): A visual guide to the difference between a chatbot, an automation and an AI agent, shown by chasing six unpaid invoices three ways in one free lesson.
- [Flova: Plan a Promo Video Before You Spend a Credit](https://ynteractive.com/content/visual/flova-plan-a-promo-video-before-you-spend-credits): A visual guide to Flova’s AI video agent: paste your exact script, get the storyboard and credit estimate first, then make and fix one reference image.
- [Jotform AI Agent: Answer Client Questions in 4 Steps](https://ynteractive.com/content/jotform-ai-agent-client-questions): A visual guide to a Jotform AI Agent that answers routine client questions: create it, teach it one answer, test it in Test Mode and copy the embed code.

[All visual guides](https://ynteractive.com/content/visual)

## Frequently asked questions

**Do I need to code to build an AI agent?**

No. In n8n you connect nodes on a canvas: a trigger, the AI Agent, a chat model, memory and tools. The instructions are written in plain English.

**What is the difference between an AI agent and a Custom GPT?**

A Custom GPT is a configured chat assistant that someone opens and types into. An n8n agent can be started by a chat, a form or an email, and it can write to your tools.

[All AI glossary terms, A to Z](https://ynteractive.com/content/glossary) · [Free prompt templates](https://ynteractive.com/content/prompts)
