Lesson 1 · Module 2: Your First Working AI Automation
Triggers, nodes and data flow: reading a no-code workflow in n8n
- Find the trigger
- Name each node
- Follow the data
Why this matters
A customer who asks for a booking at eleven at night should not have to wait until Monday for a reply. A workflow can answer at any hour, but you can only trust or fix one if you can read it: what starts it, what each step does, and what information moves between the steps. The same reading skill covers booking, lead sorting, invoices and sales reports. You will build these in a visual tool where you connect boxes into a workflow that runs by itself, but first you learn to read them.
Key ideas
- Every run starts at a trigger. A trigger is the event that starts a workflow, such as a form submission, a new message or a set clock time. Every other node waits for it.
- Each node does one job. Action nodes do work such as saving a row, logic nodes decide, and data nodes reshape information. Later, an From the lesson: How an AI agent works: model, instructions, tools and memoryA model that decides its next step, using instructions, tools and memory.Review that lesson can sit inside one of these boxes.
- Items carry the data. An item is one record, such as one booking, and each node passes a list of items on. A data node that keeps only two fields turns items like this:
| Item received | Item passed on |
|---|---|
| name: Ana, service: haircut, date: Sat | name: Ana, date: Sat |
- Double braces read a field. Inside a box,
{{ $json.name }}stands for the name in the current item, so each customer gets a reply with their own name. The field name must match what the form sends, letter for letter.
Try it before you watch
Your form sends a field called booking_date, but the email node reads date. What does the customer get, and what do you change?
Show answerHide answer
The email still sends, but with no date in it, because the node finds nothing under the name date and shows no error. Change the email node to read booking_date, the exact name the form sends. It shows that a workflow can run cleanly and still do the wrong thing.
Words to know
- Trigger: the event that starts a workflow run, such as a form being submitted.
- Node: one box on the canvas that does one job, such as saving a row or sending an email.
- Connection: the line drawn from one node's output to the next node's input, showing the order of work.
- Item: one record moving through a workflow, such as one booking with a name, a service and a date.
- Field: one named piece of information inside an item, such as
nameordate.
What to watch for
- Where the workflow starts, and which lines leave the trigger box.
- Which path each item takes at an IF node, and what decides it.
- The field names on the lines and inside the double braces, and whether they match what the form sends.
Learn it with your tutor on the live board
Key points from the video
A Saturday night booking
- Customer asks at night
- Shop is closed
- Reply within seconds
layout: side
direction: LR
components:
cust: {kind: user, label: Customer}
chat: {kind: client, label: Website chat}
wf: {kind: service, label: n8n workflow}
list: {kind: database, label: Booking list}
mail: {kind: email, label: Reply email}
links: [cust->chat, chat->wf, wf->list, wf->mail, mail->cust]
steps:
- at: "Picture a Saturday night"
show: [cust]
- at: "can I book a haircut"
show: [chat]
- at: "Your shop is closed"
note: "Shop closed"
- at: "A workflow fixes that"
show: all
- at: "We will use n8n"
highlight: wf
- at: "watches for the message"
flow: ["chat>wf: new message", "wf>list: save booking"]
- at: "sends a reply within seconds"
flow: ["wf>mail: reply", "mail>cust: confirmed"]
- at: "This lesson teaches you"
note: "Reading a workflow" Three things you will learn
- Find the trigger
- Name each node
- Follow the data
layout: wide
parts:
wf: {chip: Workflow, sub: "Three things to read"}
steps:
- at: "By the end of this lesson"
note: "Three things"
- at: "find the trigger"
spokes: {of: wf, items: [Trigger, Nodes, Data flow]}
- at: "name each node"
note: "Name each node"
- at: "follow the data"
note: "Follow the data"
- at: "You do not need to write code"
note: "No code needed"
- at: "If you can read a recipe"
note: "Read a recipe" Boxes and lines
- Nodes are the boxes
- Connections are the lines
- Read left to right
layout: wide
parts:
wf: {chip: Canvas, sub: "One page of boxes"}
steps:
- at: "So what does a workflow actually look like"
note: "A workflow"
- at: "place nodes"
spokes: {of: wf, items: [Nodes, Connections]}
- at: "does one job"
note: "One job each"
- at: "Connections are the lines"
note: "Connections"
- at: "Read the canvas from left to right"
note: "Left to right"
- at: "the order in which work happens"
note: "Order of work" Every run starts with a trigger
- A trigger starts the run
- Examples: a form, a message, a clock
- Each run starts at one trigger
layout: wide
parts:
trig: {chip: Trigger, sub: "Starts the run"}
steps:
- at: "Every run of a workflow starts at a trigger"
highlight: trig
- at: "the event that starts it"
note: "The event"
- at: "a form is submitted"
spokes: {of: trig, items: [Form submitted, New message, Daily at 8]}
- at: "the workflow runs once"
note: "Runs once per event"
- at: "Every other node waits"
highlight: none
- at: "you cannot understand the workflow"
note: "Find the trigger first" Three kinds of node
- Action nodes do a job
- Logic nodes decide
- Data nodes reshape information
layout: wide
parts:
node: {chip: Node, sub: "Does one thing"}
steps:
- at: "nodes come in three families"
note: "Three families"
- at: "Action nodes do a job"
spokes: {of: node, items: [Action, Logic, Data]}
- at: "Logic nodes make decisions"
note: "Decide"
- at: "checks a condition"
note: "IF: true or false"
- at: "Data nodes change the shape"
note: "Reshape"
- at: "Most workflows you build"
highlight: node Items carry the data
- Items carry the data
- Each node passes a list on
- Read the output
# The trigger hands over two bookings as items
bookings = [
{"name": "Ana", "service": "haircut", "date": "Sat"},
{"name": "Ben", "service": "massage", "date": "Mon"},
]
def save_node(items):
for item in items:
item["saved"] = True
return items
def email_node(items):
for item in items:
print("Reply to", item["name"], "for", item["service"])
return items
out = email_node(save_node(bookings))
print(len(out), "items went through") Reading a booking flow
- Trigger: the booking form
- Save the row, then send the email
- Data: name, service, date
layout: side
direction: LR
components:
cust: {kind: user, label: Customer}
form: {kind: client, label: Booking form}
wf: {kind: service, label: n8n workflow}
list: {kind: database, label: Booking list}
mail: {kind: email, label: Confirmation}
links: [cust->form, form->wf, wf->list, wf->mail, mail->cust]
steps:
- at: "Now let's read a whole booking flow"
show: all
- at: "fills in the booking form"
flow: ["cust>form: book", "form>wf: name, service, date"]
- at: "saves the booking as a row"
flow: ["wf>list: row"]
- at: "sends the confirmation email"
flow: ["wf>mail: confirm", "mail>cust: answer"]
- at: "what travels along the lines"
note: "Data travels on the lines"
- at: "from box to box"
highlight: wf
- at: "That is the data flow"
note: "Data flow"
- at: "When you can say what each box receives"
highlight: none Fields in double braces
- Double braces mark a field
- n8n swaps in the value
- Spelling of field names counts
layout: wide
parts:
mail: {window: "reply.txt", code: ["Hi {{ $json.name }},", "Your booking is {{ $json.date }}."]}
steps:
- at: "Inside a box you often need"
note: "A field from the data"
- at: "refer to it with double curly braces"
type: mail
- at: "Here the reply email says Hi"
note: "Hi, name, date"
- at: "n8n looks up each field"
note: "Swapped in at run time"
- at: "so Ana gets a message"
note: "Ana, her own name"
- at: "You do not have to type the value"
note: "No typing"
- at: "spelling counts"
note: "Spell fields exactly" A lead with two paths
- Budget decides the path
- Over five hundred: call today
- Five hundred or less: nurture list
layout: side
direction: TB
components:
lead: {kind: user, label: Lead}
form: {kind: client, label: Lead form}
wf: {kind: service, label: "IF budget over 500"}
hot: {kind: email, label: Call-today email}
cold: {kind: storage, label: Nurture list}
links: [lead->form, form->wf, wf->hot, wf->cold]
steps:
- at: "a second worked example"
show: [lead, form]
- at: "A lead is a person who might buy"
note: "A lead"
- at: "This form asks for a budget"
note: "Budget"
- at: "The IF node checks it"
show: [wf]
- at: "gets a call today"
show: [hot]
- at: "the nurture list"
show: [cold]
- at: "Follow the first lead"
flow: ["lead>form: budget 800", "form>wf", "wf>hot: call today"]
- at: "Follow the second"
flow: ["lead>form: budget 200", "form>wf", "wf>cold: nurture"]
- at: "the IF node is what splits them"
highlight: wf The mistake of never testing
- Name the fields exactly
- Test with one item
- Read each node's output
layout: wide
parts:
mail: {chip: Email node, sub: "Reads phone"}
steps:
- at: "The most common mistake"
highlight: mail
- at: "the form never sent a phone field"
spokes: {of: mail, items: ["Phone: empty", "Check names", "Test one item", "Read output"]}
- at: "with no error at all"
note: "No error shown"
- at: "Name the fields exactly"
note: "Exact names"
- at: "test with one item first"
note: "One item first"
- at: "open each node's output"
note: "Open each output"
- at: "does the right thing"
note: "Right, not just no error" Three ideas, one picture
- Trigger starts it
- Nodes do one job
- Lines carry items
layout: side
direction: LR
components:
cust: {kind: user, label: Customer}
form: {kind: client, label: Booking form}
wf: {kind: service, label: n8n workflow}
list: {kind: database, label: Booking list}
mail: {kind: email, label: Confirmation}
links: [cust->form, form->wf, wf->list, wf->mail, mail->cust]
steps:
- at: "Let's put the three ideas together"
show: [form, wf]
- at: "First, the trigger"
highlight: form
- at: "Second, the nodes"
highlight: wf
- at: "Third, the data"
show: all
flow: ["form>wf: name, service, date", "wf>list: row"]
- at: "Read any workflow that way"
highlight: none
- at: "explain it to a client"
flow: ["wf>mail: confirm", "mail>cust: answer"] Your first reading exercise
- Pick one real task from a business you know
- Name its trigger and nodes
- Open n8n and look around
npx n8n Transcript
A Saturday night booking. Picture a Saturday night. A customer opens your website at eleven and asks, can I book a haircut for Monday? Your shop is closed, so the message waits until Monday morning, and by then the customer has booked somewhere else. A workflow fixes that. We will use n8n, pronounced n-eight-n, a tool where you draw each step as a box and connect the boxes with lines. Once it is running, it watches for the message, saves the booking and sends a reply within seconds, every night of the year. This lesson teaches you to read such a workflow, the same skill you need for answering messages, booking appointments, qualifying leads, sending invoices and reporting sales.
Three things you will learn. By the end of this lesson you can do three things. First, find the trigger, the event that starts the workflow. Second, name each node and say what it does. Third, follow the data from one box to the next. You do not need to write code for any of it. If you can read a recipe, with its starting ingredient, its steps and what changes in the pot, you can read a workflow.
Boxes and lines. So what does a workflow actually look like? It is a canvas, a large empty page, and on it you place nodes. Nodes are the boxes, and a node does one job, such as reading a form, saving a row or sending an email. Connections are the lines you draw from one node's output to the next node's input. Read the canvas from left to right, the way you read a page of text, and the lines tell you the order in which work happens.
Every run starts with a trigger. Every run of a workflow starts at a trigger, and finding the trigger is the first thing to do when you read one. Each run starts at one trigger: the trigger is the event that starts it. A form is submitted, a new message arrives, or the clock reaches eight in the morning. When the trigger fires, the workflow runs once, with that event's data as its first input. Beginners usually build with one trigger, but a workflow can have more than one, and each trigger starts its own run. Every other node waits for a trigger, so if you cannot find the trigger, you cannot understand the workflow.
Three kinds of node. Apart from the trigger, nodes come in three families. Action nodes do a job, such as saving a row to a spreadsheet, sending an email or booking a slot in a calendar. Logic nodes make decisions. The IF node is the most common: it checks a condition and sends each item down a true path or a false path. Data nodes change the shape of the information, for example renaming a field or picking out only the name and date. Most workflows you build will use all three.
Items carry the data. Now the most important idea: data. Information moves between nodes as items, and an item is one record, like one booking with a name, a service and a date. Each node receives the list from the node before it, does its job, and passes a list on. Here is the same flow in a few lines of Python, which you can follow even if you never write it. The trigger hands over two bookings. The save node adds a saved mark to each. The email node prints a reply for each item. Read the output. It says two items went through.
Reading a booking flow. Now let's read a whole booking flow from left to right. The customer fills in the booking form, and that submission is the trigger. Next, two actions: save the row, then send the email. The workflow saves the booking as a row in your list, and then it sends the confirmation email, so the customer gets the answer. Notice what travels along the lines: the name, the service and the date, from box to box. That is the data flow. When you can say what each box receives and what it passes on, you have read the workflow.
Fields in double braces. Inside a box you often need one piece of information from the data, like the customer's name. You refer to it with double curly braces. Here the reply email says Hi, then the name field, then your booking date. When the workflow runs, n8n looks up each field in the current item and swaps in its value, so Ana gets a message with her own name in it. You do not have to type the value. You only have to name the field correctly, and spelling counts.
A lead with two paths. Here is a second worked example, and it is about qualifying leads. A lead is a person who might buy, and qualifying means sorting the promising ones from the rest. This form asks for a budget. The IF node checks it: a budget over five hundred gets a call today, and a budget of five hundred or less goes to the nurture list. Follow the first lead, with a budget of eight hundred, down the call-today path. Follow the second, with a budget of two hundred, down the nurture path. Both leads start at the same form, and the IF node is what splits them.
The mistake of never testing. The most common mistake is trusting a workflow you have never run. Say your email node asks for a phone field, but the form never sent a phone field. The email still runs, and the reply is missing the number, with no error at all. Name the fields exactly as the form sends them, test with one item first, and open each node's output to check what it received. A workflow that runs without errors is not the same as a workflow that does the right thing.
Three ideas, one picture. Let's put the three ideas together on one picture. First, the trigger: the form submission starts the run, and nothing happens until it does. Second, the nodes: each box does one job, action, logic or data. Third, the data: lines carry items, records with names, services and dates, and each node passes a list on. Read any workflow that way, trigger first, then nodes in order, then the data, and you can explain it to a client.
Your first reading exercise. Before the next lesson, try this. Pick one real task from a business you know, such as a shop or a client, like answering a booking message or sending an invoice. On paper, name its trigger, list each node in order, and write down the fields that travel along the lines. If you want to see the tool, install n8n with the command on screen. This command needs Node.js installed first, so if you do not have it, start a free n8n Cloud trial instead. Once it runs, n8n opens its editor in your browser at localhost, which means your own computer, through a numbered door called port five six seven eight. Just look around for now, without building anything yet.
Explore the animations
The animations from the video, exact and live: play them, pause, drag the slider or jump to a step at your own pace.
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Answer every question, then check. 70% passes; you can retry as often as you like.
Lesson summary
- Reading
- Video watched
- Quiz passed (70%)