Build Your First AI Agent in n8n
What you’ll be able to do: After this course you can tell an AI agent from a chatbot and an automation, then build one in n8n: an agent with a system prompt, a chat model, memory and a Google Sheets tool that brainstorms social media ideas and saves them to a sheet itself, and a booking assistant with three tools that checks a Google Calendar, books the appointment and logs it. Then you make it safe to leave running: an Error alerts workflow that emails you and retries when a step fails, a Guardian policy so emails to clients wait for a person while team emails go out alone, and least privilege, approvals and an audit trail set up for any agent.
- Who it’s for
- Office, operations and marketing people who have built a first n8n workflow and want it to think, not just run. No coding; the agent modules use an OpenAI API key for the do-it-for-real part.
- Time needed
- About 2.5 hours of hands-on practice: 13 modules of 7 to 15 minutes each.
- Cost
- Free. No credit card, no trial, and no sign-up needed to start.
- Level
- Beginner to Advanced
- Prerequisites
- None for the practice: a web browser on a desktop or laptop. To repeat the modules in your own tools: an n8n account, an OpenAI API key, a Google account and a Guardian account.
- Format
- Self-paced and online. Each module runs in a practice copy of the real tool that checks every step, then a checklist walks you through doing it for real.
- Tools you practice in
- ChatGPT, n8n and Guardian.
Why this course
A workflow does the same steps every time. An AI agent reads the situation, decides the steps and uses tools to act, which is what makes it useful for messy office work and what makes it risky. Most n8n agent tutorials stop when the demo works. This course starts there and spends half its time on the part that matters at work: what happens when it fails, and what it must never do alone.
The modules follow made-up small businesses: a pet grooming business chasing six unpaid invoices three ways, a marketing team whose agent saves its own ideas to Google Sheets, Maple Street Dog Grooming's booking assistant with calendar and sheet tools, Maple Lane Florist's supplier price check that fails one morning, and Harbor Line Bookkeeping's invoice reminders that must wait for a person before they reach a client. Every screen is a practice copy of real n8n (and Guardian) that checks each step, so nothing touches your accounts and you can start without signing up.
What you’ll build
- Module 1: Oak Hill Pet Grooming (made up) has six open invoices. Four are more than 14 days late, and one of those customers, Ben, already paid $60 of his $120. That one detail separates the three kinds of help.
- Module 2: A working n8n workflow for BrightPath Marketing: a chat box you can type to, an AI agent with a system prompt that knows the brand, a model to think with, memory so it remembers the conversation, and a Google Sheets tool so it can save its work.
- Module 3: A chat agent that, given a name, a dog, a service and a time, checks the calendar, books the hour and adds a row to the Grooming bookings sheet (columns Customer and Booking), then confirms in one friendly message.
- Module 4: An error workflow called Error alerts: an Error Trigger followed by a Gmail email that names the workflow, the step that broke, the error message and a link to the failed run.
- Module 5: You help Maya Chen, who runs Harbor Line Bookkeeping, a made-up firm whose n8n agent drafts about 60 invoice reminders a month.
- Module 11: An n8n workflow with a chat trigger, an AI Agent with a system prompt for Fernway Logistics (a made-up distribution company), an OpenAI chat model, memory and a Google Sheets tool, plus an Onboarding Tracker sheet with five columns: New hire, Item, Status, Owner and Follow-up.
- Module 12: An n8n workflow with a chat trigger, an AI Agent with a system prompt for Harborview Insurance Group (a made-up independent agency), an OpenAI chat model, memory and a Google Sheets tool, plus a Certificate Request Log sheet with five columns: Date, Client, Certificate holder, Request and Check.
- Module 1 · ChatGPT · Beginner · ~7 min
AI Agent vs Chatbot vs Automation
You’ll be able to: Chase six unpaid invoices three ways, with a chatbot, an automation and an AI agent, and see what an agent does that the other two cannot: read the list, decide the steps and flag the one that needs a person.
- Module 2 · n8n · Intermediate · ~12 min
AI Social Media Idea Agent
You’ll be able to: Wire the five parts of an n8n agent (trigger, AI Agent node, system prompt, chat model, memory and a Google Sheets tool), ask it for social media ideas and watch it save each one as a row in the sheet.
- Module 3 · n8n · Advanced · ~11 min
Book Appointments from Chat, Automatically, using n8n
You’ll be able to: Give a booking agent clear rules in its system message and three tools (get calendar availability, create the event, append a row to a sheet), then book an appointment by chat and see it land in the calendar and the log.
- Module 4 · n8n · Intermediate · ~10 min
Get Alerted When an Automation Fails, and Let It Retry by Itself, using n8n
You’ll be able to: Publish an Error alerts workflow that emails the owner whenever a workflow fails, then make a daily supplier price check retry on its own and point to the alerts for everything else.
- Module 5 · Guardian · Intermediate · ~14 min
Guardian: Make Your n8n AI Agent Ask Before It Emails a Customer
You’ll be able to: Write three lines as a Guardian policy (team emails go out alone, client emails wait for a person, deletes are never allowed), test it with both kinds of email, and install the Guardian node and Approval Inbox in n8n.
- Module 6 · Stepthrough · Beginner · ~8 min
Safe AI Agents: Least Privilege, Approvals and Audit Trails
You’ll be able to: Set up the four things that keep an agent safe in any tool: least privilege, a person in the loop for risky actions, a policy engine that checks every action, and an audit trail.
- Module 7 · n8n · Intermediate · ~12 min
AI Campaign Calendar Agent
You’ll be able to: Marketing: an agent that turns one campaign theme into a two-week email and content calendar in Google Sheets for the team to review.
- Module 8 · n8n · Intermediate · ~12 min
AI Deal Follow-Up Agent
You’ll be able to: Sales: an agent that writes a follow-up for each open deal and saves it to Google Sheets for the rep to check and send.
- Module 9 · n8n · Intermediate · ~12 min
AI Expense Categorizer Agent
You’ll be able to: Finance: an agent that sorts expenses into your categories with a short note for each and saves them for review before anything is posted.
- Module 10 · n8n · Intermediate · ~12 min
AI Vendor Follow-Up Agent
You’ll be able to: Operations: an agent that writes follow-ups for late and pending purchase orders and logs each one with a due date.
- Module 11 · n8n · Intermediate · ~12 min
Get Every New Hire Ready for Day One: Track Onboarding with an n8n AI Agent
You’ll be able to: HR: an agent that turns scattered onboarding updates into one row per item with status, owner and next step, and never logs bank or ID details.
- Module 12 · n8n · Intermediate · ~12 min
Handle Certificate of Insurance Requests Without Promising Coverage, with an n8n AI Agent
You’ll be able to: Insurance: an agent that logs certificate of insurance requests in the client's words and sends anything that may need an endorsement to a person, without promising coverage.
- Module 13 · n8n · Advanced · ~15 min
Speed-to-Lead Agent: Answer Every Web Lead in 60 Seconds
You’ll be able to: Build a workflow that scores every web lead from 1 to 10, emails a personal first reply in about a minute and pings Slack only for the hot ones.
Prerequisites
- For the practice: a web browser. Each module runs in a copy of the real tool’s screens, so you need no account and no sign-up to start module 1.
- To do it for real: an n8n account, an OpenAI API key, a Google account and a Guardian account. Each module says which one it uses.
Time to complete
About 2.5 hours of hands-on practice across 13 modules (690 steps in all). Modules take 7 to 15 minutes each, so you can do one in a sitting and come back for the next.
Take it with you
- n8n for Beginners: Your First Automations · Never built an n8n workflow? Start here: triggers, actions, a form to a sheet and your first AI step.
- AI Automation with n8n: From First Workflow to AI Agents · The full n8n course: HTTP Request, If and Switch, a chatbot from your docs and this agent.
- AI Agents 101 · Agents in other tools: Airia, ElevenLabs voice agents and more.
Questions about this course
Is there a free course to build an AI agent with n8n?
Yes. Build Your First AI Agent in n8n on Stepthrough is free: 13 hands-on modules, about 2.5 hours in all, on practice copies of real n8n and Guardian screens that check every step. No coding, no credit card and no sign-up needed to start, and a free certificate of completion for each module.
How do I build an AI agent in n8n?
Five parts: a trigger (When chat message received), the AI Agent node, a system prompt that says what the agent does and its rules, a chat model such as OpenAI, memory so it remembers the conversation, and one or more tools it can call. Module 2 wires all five and has the agent save social media ideas to a Google Sheet; module 3 adds Google Calendar and Sheets tools so a booking agent can check availability, book and log the appointment.
What is the difference between an AI agent, a chatbot and an automation?
A chatbot answers and leaves the rest to you. An automation does the same fixed steps every time. An AI agent reads the situation, decides the steps and uses tools to act, and flags what needs a person. Module 1 chases the same six unpaid invoices all three ways so you can see the difference in seven minutes, with nothing to set up.
Do I need to know n8n before this course?
It helps to have built one workflow. If n8n is new to you, take n8n for Beginners first (linked on this page), which covers triggers, actions, a form to a sheet and a first AI step. The practice here needs no account; to build the agents for real you need an n8n account, an OpenAI API key and a Google account.
Is it safe to let an n8n AI agent send emails or book appointments?
Only with guardrails, which is why half this course is about them. Module 4 makes sure you hear about failures and the workflow retries itself. Module 5 uses Guardian to make client emails wait for a person's approval while team emails go out alone and deletes are never allowed. Module 6 sets least privilege, approvals, a policy check on every action and an audit trail, which work in any tool.
How long does the n8n AI agent course take?
about 2.5 hours of hands-on practice across 13 modules of 7 to 15 minutes each. Modules 1 and 6 are mostly reading; the agent builds take 10 to 14 minutes each. It is self-paced and free.