A free course on automation in n8n

Your first AI agent

You will build an AI agent in n8n by describing it, in plain words, to your AI assistant.

Romuald Członkowski, AiAdvisors. The course grew out of a workshop at AI Summit Poland 2026.

Hi, I am Romuald Członkowski. In this lesson I will show you how to build an AI agent in n8n by describing it, in plain words, to your AI assistant. The course grew out of a two-hour workshop at AI Summit Poland, and here you take it at your own pace.

A narrator reads the commentary for each slide and the lesson moves on by itself. When it is time for an exercise, it stops and waits for you. Pause is always within reach, and the K key hides and shows the commentary.

You have already been through this

A form, an e-mail, and a minute later your environment was ready. Nobody clicked it together by hand.

Before we start, one thing: you have just been through something. You filled in a form, clicked a link in an e-mail, and a moment later your environment was ready. Nobody did that by hand.

What happened after you clicked “Sign up”

Formsign-up page
E-mailconfirm address
Queueof sign-ups
n8n accountlogin and password
AI modelaccess inside n8n
Connectorn8n-mcp account
Workflow“Course start”
E-mailenvironment ready

A dozen or so workflows in n8n and one web page. An AI assistant built them, under my supervision.

Everything in the blue frame was done by an automation: the sign-up queue, your n8n account, access to the AI model, the connector account, a copy of the starter workflow “Course start”, and the e-mail at the end.

That is a dozen or so workflows and one web page. My AI assistant built them while I said what I wanted and checked the result. It was not a single prompt: several days of work and plenty of corrections. In this course you will build the smallest piece of such a system, with the same method.

Romuald Członkowski

Course author

Romuald Członkowski

Founder of AiAdvisors and creator of n8n-mcp. Certified n8n partner, expert adviser to the World Bank.

  • 23kstars on GitHub
  • 173kn8n-mcp installs
  • 2.2Mworkflows built

n8n-mcp is used by Deutsche Telekom, PayPal, MIT and NYU, among others

Jan Oberhauser
“I love what you have done. You have given a lot of people new possibilities. What you built with MCP is really amazing.”
Jan Oberhauserfounder and CEO of n8n

I run an agency called AiAdvisors. For this course something else matters more: I am the author of n8n-mcp, the connector through which assistants such as ChatGPT and Claude work inside n8n. You will use it in the exercises.

Two ways of working with AI

Desktop: Claude, ChatGPT, Codex

Sort these customer messages for me.

Done. Three are about sales, two are complaints…

And the ones that came in this morning?

You ask, the AI does it.You have to be there, or set up a schedule. Every run uses tokens.

Process: automation with AI inside

Arrivesmessage
Ruleinvoice in subject?
Accountingstraight away, no AI
AI judgesthe rest
Goesto a person

Starts by itself, also at night.A rule handles the simple cases. The AI only gets what has to be read.

Most of us use AI like the left side: we open a chat, ask, and get a result. These tools are becoming a desktop for work. There is one drawback: someone has to sit there. Scheduled tasks help, but every run uses tokens, even when there is nothing to do.

In a business process a message arrives at three in the morning and has to be on the right desk by the time people come in. AI has to be built into a process that starts by itself. And not everything needs AI: whatever you can describe with a rule, a rule handles.

In this course you will use AI to build an automation that has AI working inside it

The assistant buildsClaude, ChatGPT or Codex. Once, on your instruction.
builds
A model works insideIt reads every message and decides. Without you.

One example throughout: an inbox full of customer messages.

This is the thesis of the whole course. An assistant, that is Claude, ChatGPT or Codex, builds the workflow. It does that once, on your instruction. Inside the workflow another model does the work: it reads every message and decides, without you.

A workflow is a process written down step by step

Triggermessage arrived
Fetchthe message text
AI stepwhat is it about?
Pass onto the right person
TriggerDecides when the process starts: a message arrived, an hour passed, someone clicked a button.
StepsEach does one thing: fetches data, saves, sends. The result of one goes to the next.
AI stepReads text and decides. You cannot write that as a fixed rule.

The word “workflow” will come up all the time, so first a definition: it is a process written down step by step so that a computer can run it by itself. Something starts it, then come the steps, and the result of one step goes to the next.

Until recently, automation stopped where somebody had to read a text and judge it. The AI step does exactly that.

n8n

A tool where you assemble a workflow from blocks

n8n: Course start
Startyou click a button
AI stepwrites a greeting
AI model
Execute workflow
  • Ready-made blocks for hundreds of systemsE-mail, spreadsheets, CRM, databases, AI models
  • Every step is visibleAnd the data that passed through it
  • Can run on your own serverSo the data stays in the company
  • No licence feesFor use inside your company

n8n is a tool in which you put such workflows together from blocks. Each block is one action, a line shows where the data flows, and the button at the bottom runs the whole thing. There are hundreds of ready-made blocks, and after a run you can see every step and the data that passed through it.

Two things matter for a company: you can run n8n on your own server, so the data stays with you, and for internal use there are no licence fees. Someone has to maintain it, but that is not a burden. I do not represent n8n; I simply use it heavily myself.

Exercise 0, about 10 minutes

Get to know n8n

  1. Canvas and nodesEach rectangle is one step, the lines show where data flows
  2. TriggerThe first node on the left: every run starts there
  3. Input, Parameters, OutputDouble-click a node: what goes in, its settings and what comes out
  4. “Execute workflow” and the “Executions” tabRun it, then see the history of all runs
Start
AI step
AI model

The n8n interface is English only. The exercises page has a glossary.

course.aiadvisors.pl/exercises

Before the assistant starts building, look around n8n yourself. This is exercise zero, “Get to know n8n”, and it takes about ten minutes. You open the workflow “Course start” and look at the canvas: every rectangle is a node, and the lines show where data flows. The first node on the left is the trigger. Double-click a node to see its input, its parameters and its output. Then click “Execute workflow” and look at the “Executions” tab, which is the history of all runs.

The n8n interface is English only, which is why the exercises page has a glossary. Your login details are in the e-mail about your ready environment.

Your turn. course.aiadvisors.pl/exercises The lesson pauses here. Open the exercises page from the link in the commentary, do exercise zero, and come back when you are done. Then press “Resume”.

How it all connects

Prepared for youn8n account, access to the AI model, n8n-mcp account, the “Course start” workflow
You doConnecting your assistant and the skills

You know how the process works, and you describe it in words. The assistant turns that into a workflow. It does this through the n8n-mcp connector: with it the assistant sees your n8n, gets tools, and gets hints on what to fix when something goes wrong. Without the connector you are left copying and pasting.

Your n8n account, access to the AI model, the connector account and the starter workflow are already prepared. Connecting your assistant and installing the skills is your part, and you follow the guide on the start page.

Set a strong model in your assistant

  • ClaudeSonnet or stronger
  • CodexSol
  • ChatGPTthe strongest in your plan

The same task, two models (exercise 3B)

Sonnet 2 minutes
24 steps. The workflow works.
Haiku over 6 minutes
60 steps, 4 failed runs. In the end it wrote “done”, and the table was empty.

That is why at the end we always look at the result in the table instead of taking its word for it.

An assistant that builds should have a strong model. I gave the same task to two models: one finished in two minutes, the other worked for over six, failed several times, and in the end announced success with an empty table.

A fast model quickly produces text, but not necessarily the right text. A stronger one is slower and usually gets it right the first time. Small models have their place too, just not here.

In this course: one workflow, extended in three steps

  1. 1Sorting messagesAI assigns a category, the case goes to the queue
  2. 2Priority and notificationUrgent cases go straight to the right person
  3. 3Draft replyAI writes, a human reads and sends

For the quick ones: a stronger model, an agent with a knowledge base, data from the text, your own rule, a daily report

At the end: Your own process. No coding and no mail setup.

The plan is simple: one workflow, extended three times. First sorting messages, then urgent cases and a notification, and finally a draft reply. All the instructions are on the exercises page.

You will connect the course model to the workflow. There are two: “luna” is fast and good for everyday steps, and “sol” is stronger. We start every exercise with “luna”.

A good process description answers six questions

  1. WHENWhen should it run?
  2. FROMWhere does it get the data?
  3. WHATWhat should it do with them?
  4. WHERE TOWhere should the result go?
  5. WHAT IFWhat if something does not fit?
  6. CHECKHow will we check that it works?

It does not have to be one instruction. You can talk to the assistant and build in small steps. Here we practise the one-instruction version.

This is the heart of it. The assistant will build what you describe, so the whole skill is a good description. You do not need to program: it is enough to describe the business intent.

It does not have to be a single instruction. For bigger workflows you talk to the assistant and build step by step. In this course we practise the one-instruction version, because it teaches you to think about the whole process at once.

Two rules for working with an assistant

  • Plan first, then buildThe assistant shows what it intends to do. You read it and reply “ok”.
  • Let it test the result and show it to youIt runs the workflow and shows the contents of the table.

AI is a clever hammer. You have to know what to hit.

First a plan: the assistant shows how it understood the instruction, and you read it before it builds anything. Then a test: the assistant runs the workflow itself and shows the result. The second rule made a big difference for me.

The example for the exercises

The inbox of Green Office

Inbox: 10 messages
  1. M-001Karen MayfieldQuote request for office chairs
  2. M-002Paul ZieglerCracked desktop, order 4471
  3. M-003Irene CroweDuplicate of invoice FV/2026/09/118
  4. M-004TopRank TeamYour website is losing customers! Free SEO audit
  5. M-005Robert SykesQuote for a tender, deadline tomorrow 12:00
  6. M-006Dorothy LeesPayment demand for an invoice we already paid
  7. M-007Mike BarkerMissing screws in the kit
  8. M-008Natalie WolfeEnquiry about a job in customer service
  9. M-009Greg NewmanInvoice says 12 armchairs, 10 arrived
  10. M-010Elliediscount?

Who handles what

  • salesMaria
  • complaintTom
  • accountingAnna
  • otherOffice

The company is made up. The workflow fetches the messages from course.aiadvisors.pl/api/inbox

The example is made up: a company called Green Office and ten messages from customers. Among them are enquiries, complaints, invoices and some spam. Four people, each handling something different.

The inbox is an address on the course server, not real mail, so nobody has to configure anything. In a company you would have Gmail or Outlook there.

The workflow from exercise 1

Startyou click a button
Fetchmessages from the inbox
AI judgescategory
model: luna
Ownerby category
Savein the “queue” table
idsubjectcategoryowner
M-001Quote request for office chairssalesMaria
M-002Cracked desktop, order 4471complaintTom
M-003Duplicate of invoice FV/2026/09/118accountingAnna

The “queue” is a table in n8n: a list of cases to handle. One message is one row. Your assistant may arrange the blocks a little differently. What counts is the result in the table.

This is what the result of the first exercise should look like. The workflow fetches the messages, the AI assigns a category, a plain rule picks the owner, and everything lands in the “queue” table, which is a list of cases to handle. The model in the AI step is “luna”.

Your assistant may arrange the blocks a little differently. That is normal. What counts is the result in the table.

1

Sorting messages

  • The instruction is ready: you copy it and paste it to your assistant
  • The assistant shows a plan. You read it and reply “ok”
  • At the end: three rows in the “queue” table
course.aiadvisors.pl/exercises

Copy the ready-made instruction from the exercises page and paste it to your assistant. For me the build took about five minutes. In this kind of work you spend a lot of time waiting for the model to finish.

Your turn. course.aiadvisors.pl/exercises The lesson pauses here. Open the exercises page from the link in the commentary, do the first exercise, and come back when you are done. Then press “Resume”.

Checking the result

CategoryHow manyMessages
sales3M-001, M-005, M-010
complaint2M-002, M-007
accounting3M-003, M-006, M-009
other2M-004, M-008

The first run fetches only three messages as a trial. After I removed the limit, my run sent four to sales instead of three.

That is not an algorithm, it is a model, so results differ. You fix it with the description in the AI step, without rebuilding the workflow.

Message M-009

“Invoice says 12 armchairs, 10 arrived”

accountingorcomplaint

Did the AI choose differently from you? The rule was not described precisely enough. You fix the description, not the workflow.

This message is disputed on purpose. In my run the model treated it as a complaint, and I had meant accounting. The lesson: you always check the AI result, and when it differs from what we wanted, we ask the assistant to improve the rule’s description.

2

Priority and notification

The queue holds ten cases and they all look the same. The workflow has to point out the urgent ones.

Start
Fetch
AI judgescategory and priority
Owner
Savequeue
Urgent?yes or no
Notifythe right person
What we addThe AI also judges the priority: urgent or normal.
Where toThe person who handles an urgent case gets a notification about it.
Your taskYou replace the two yellow brackets with your own words. The rest of the sentence stays.

The queue holds ten cases and they all look the same. A cracked desktop before the office opens cannot wait like a job enquiry.

You write what “urgent” means. I wrote: a case that has to be handled within two days. I also asked for a separate table for the cases where the AI is unsure, so that I could review them later.

Your turn. course.aiadvisors.pl/exercises The lesson pauses here. Open the exercises page from the link in the commentary, do the second exercise, and come back when you are done. Then press “Resume”.

Three urgent cases

MessageWhy, and to whom
M-002Cracked desktop, office opening on Monday. Tom
M-005Tender, quote due tomorrow 12:00. Maria
M-006Payment demand, order on hold. Anna

Did you get more or fewer? Compare the rule you wrote.

Most people get three urgent cases. One person got four, even though they wrote the same rule as I did. A model is not deterministic, and you have to allow for that in your tests.

3

Draft reply

We know what is urgent and who gets it. That person still has to reply to the customer.

Start
Fetch
AI judgescategory and priority
Owner
AI writesdraft reply
Savequeue
Urgent?
Notify
What we addThe AI writes a draft reply for sales and complaints.
Where toThe draft waits in the queue. A human reads it and sends it.
Your taskThe sentences are ready. The decisions in the yellow brackets are yours.

Here I saw a mistake happen. I asked for playful drafts, and instead of changing the workflow the assistant built a separate branch. I asked why it did that and told it to fix it. That is what working with AI really looks like: you have to look at what was built.

The draft for the tender quote said: “without a specification it is easy to mistake a desk for a spaceship”. That is why the draft waits in the queue and a human sends it. Automatic sending only makes sense after long testing with the team.

Your turn. course.aiadvisors.pl/exercises The lesson pauses here. Open the exercises page from the link in the commentary, do the third exercise, and come back when you are done. Then press “Resume”.

For the quick ones: the same workflow can do more

  1. 3AA stronger modelThe assistant switches the model from “luna” to “sol”. You compare the drafts
  2. 3BAgent with a knowledge baseReplies based on company rules: deadlines, discounts, complaints
  3. AData from the textNumber, amount and deadline in separate columns
  4. BYour own ruleOne sentence changes how the automation behaves
  5. CDaily reportOne summary of the whole inbox

Now the exercises for the quick ones, and you can do each of them on its own. Changing to a stronger model is one sentence to the assistant or one field in n8n: from “luna” to “sol”. Then we swap the plain AI step for an agent with a knowledge base, which is eight company rules in a table.

The stronger “sol” works in the AI Agent node as long as the option “Use Responses API” is on. The drafts start quoting the rules from the base, for example eight percent off for 40 chairs. But for a quote needed “tomorrow by twelve” my agent promised 24 hours: the rule was followed, and common sense was missing.

Your turn. course.aiadvisors.pl/exercises The lesson pauses here. Open the exercises page from the link in the commentary, do whichever extra exercises interest you, and come back when you are done. Then press “Resume”.

You

Describe your own process to the assistant

  • The template is on the exercises page, in the “Your own process” tab
  • The assistant builds nothing. It asks questions and proposes a plan
  • Answer the assistant’s questions, ideally out loud
course.aiadvisors.pl/exercises

The last exercise is your own process. The template is on the exercises page. The assistant alone is enough, you do not need n8n. The easiest way is to turn on the microphone and answer its questions out loud. The assistant builds nothing: it asks about whatever is missing and proposes a plan.

Your turn. course.aiadvisors.pl/exercises The lesson pauses here. Open the exercises page from the link in the commentary, do the exercise “Your own process”, and come back when you are done. Then press “Resume”.

Where to start in a company

With an internal process. Anything that reaches a customer needs far more testing.

  • DocumentsData from invoices, orders and contracts goes into a table or a system
  • Incoming mailCategory, priority, the right personyou did this in the course
  • Connecting systemsData moves from one system to another. To begin with, even without AI

You can add an AI agent to any of these processes later.

I would start with an internal process. When a colleague from the next department gets a strange e-mail, the cost of a mistake is small. When a customer gets it, the cost is big.

Good first processes are documents (for example orders that someone retypes into a system today), incoming mail, and a simple connection between two systems. You can add an AI agent later.

In small steps

  • One process, then the nextInstead of a big project up front
  • Before going live, test on real dataThe higher the risk, the more examples: from dozens to thousands
  • The people who know the processes automate themAn adviser helps with the first two and teaches the team to build the rest

If a first automation can be built in two hours, a small process can be rolled out in a week instead of spending a month defining a big project. Before going live you need tests on real data. For one of our clients we check the bot’s answers on thousands of examples before we switch the next type of case to automatic.

Who automates is changing too. At another client a warehouse manager, after a few weeks of joint consultations, built a label-scanning app for his team himself.

Your practice environment lasts 14 days and is then deleted

Where to get your own n8n

  • n8n CloudReady in a few minutes, no server. You need a paid Starter plan or higher, because the connector uses the API.Partner link: n8n.partnerlinks.io/n8n-mcpIt is a partner link: n8n shares a commission with me. You pay the same.
  • Your own serverNo licence fees, and the data stays with you. Your assistant will walk you through the installation: it already has the “n8n-self-hosting” skill.“Help me set up n8n on my server”Someone then has to maintain and update that instance.

Your practice environment lasts fourteen days and is then deleted. To keep building you need your own n8n. There are two ways.

The first is n8n Cloud: the account is ready in a few minutes and you need no server. You need a paid Starter plan or higher, because the connector uses the API. The link on the slide is a partner link: n8n shares a commission with me, and you pay the same. The second way is your own server: no licence fees, and the data stays with you. Your assistant will walk you through the installation, because among its skills is one for setting up n8n on a server. Link: n8n.partnerlinks.io/n8n-mcp

Moving in three steps

  1. Download the workflow from the course environmentOpen the workflow, the three-dot menu, “Download”. You get a JSON file. Do this before your 14 days end: after that the course environment disappears.
  2. Point the connector at your new n8nn8n-mcp.com, the “Instances” tab, “Add Instance”: the address and API key of your new n8n. Once the new instance is active, the old one switches off.
  3. Give the file to your assistantSay: “Recreate this workflow in my new instance.” The assistant will upload it, create the tables and ask for an AI model key.

Credentials and tables do not travel with the file. On the new instance you provide your own AI model key, and the downloaded file stays as a backup.

Moving takes three steps. First download the workflow from the course environment as a file. Do it before your fourteen days end, because after that the environment disappears. Then in n8n-mcp.com add a new instance: you give its address and API key. From that moment the assistant works on your n8n.

Finally give the downloaded file to the assistant and ask it to recreate the workflow in the new instance. It will upload it, create the tables and ask for a model key. Credentials and tables do not travel with the file, so you provide your own model key.

✓

The last step: a survey

  • It is the last tab on the exercises page: “Course survey”
  • A few questions about what worked and what did not
  • That is how the next version of the course gets better
course.aiadvisors.pl/exercises

One step is left: the survey. It is the last tab on the exercises page, “Course survey”. A few questions about what worked and what did not. Your answers make the next version of the course better.

Your turn. course.aiadvisors.pl/exercises The lesson pauses here. Open the exercises page from the link in the commentary, fill in the survey, and come back when you are done. Then press “Resume”.

Have a process you want to automate?

  • E-mail it to meromuald@aiadvisors.pl
  • Or take a look at n8n-mcpThe connector this course is built on: n8n-mcp.com
  • Let’s connect on LinkedInScan the code with your phone: linkedin.com/in/czlonkowski
    QR code to Romuald Członkowski’s LinkedIn profile

n8n-mcp.com

Thank you for going through this lesson. If you have a process you want to automate, write to me at romuald@aiadvisors.pl. You can also have a look at n8n-mcp.com, the connector this course is built on.

AiAdvisors
← → navigate · K commentary · F full screen