Skip to content

n8n Tutorial for Beginners (2026): First Workflow in 7 Steps

This n8n tutorial builds one real workflow in 7 steps: a form that saves every lead to Google Sheets and sends a thank-you from Gmail, then goes live on its Production URL. It takes about 30 minutes on n8n Cloud's free 14-day trial, built on n8n 2.44.4 in October 2026; the current stable release, 2.46.6, can shift a label slightly.

By Yotam DahanUpdated 16 min readAutomation and agents

The n8n workflow this tutorial builds: a Lead form trigger connected to Google Sheets and Gmail

This n8n tutorial takes you from an empty canvas to a live workflow without writing code. You build a contact form that saves every lead to Google Sheets, emails each person a thank-you from Gmail, and keeps running after you close the tab. n8n is a workflow automation tool: you connect building blocks called nodes, a trigger starts each run, and every node after it does one job.

Here is what you are about to build:

Your first n8n workflow
  1. Form

    A visitor leaves their name, email and message

  2. Google Sheets

    The lead is saved as a new row

  3. Gmail

    The lead gets a personal thank-you email

How to use n8n: five words to know first

Most beginner confusion in n8n comes from five terms:

Workflow

The whole automation on one canvas. You build it, test it, then publish it.

Node

One step, such as a form, a Google Sheets action or a Gmail action.

Trigger

The first node, which decides when a run starts. Here, a form submission.

Execution

One run of the whole workflow, however many nodes it has. Your plan counts these.

Expression

A placeholder in double curly braces that n8n fills with real data on every run.

Data travels between nodes as items. Each form submission is one item with fields such as name and email, and every node can read the fields of the nodes before it.

What you need for this n8n tutorial

  • An n8n account. The n8n Cloud trial gives you 14 days of Pro features, and n8n's pricing page says the Cloud trial needs no credit card.
  • A Google account with Gmail and Google Sheets.
  • A new Google Sheet called "Website leads", with these four headers in row 1: Date, Name, Email, Message.
  • About 30 minutes. You can stop after any step; n8n saves your work automatically.

Every setting name below comes from building this exact workflow in n8n 2.44.4 in October 2026. Newer versions (2.46.6 has been the stable release since November 4, 2026) can move or rename a label slightly, so look for the closest match if one differs.

The n8n Cloud trial, in numbers
14

days of Pro features

1,000

executions included

5

runs at the same time (concurrent executions)

180

seconds maximum per run

From the n8n pricing page and trial docs, checked November 6, 2026.

n8n Cloud or self-hosted: which to use for this tutorial

n8n also runs on your own computer or server for free, but for a first workflow the cloud is easier:

n8n Cloud trialSelf-hosted on your computer
SetupSign up in the browserInstall Docker, then run one command
Google sign-inOne click with "Sign in with Google"Create your own OAuth app in Google Cloud Console
Visitors can reach your formYesNo, only you can, until you host it on a server
CostFree for 14 days, then a paid planFree software, plus any server you rent
Good for this tutorialYesPartial

If you are still choosing between automation tools rather than between setups, n8n vs Zapier vs Make prices the same kind of workflow on all three.

Can n8n run locally?

Yes. n8n's current install method is a one-line script that sets everything up in Docker, a tool that runs software in a sealed package. Install Docker Desktop, start it, then on a Mac or Linux open Terminal and run:

Terminal
curl -fsSL https://get.n8n.io | sh

Then open http://localhost:5678, the default address; we ran our copy on port 5679, which is why the screenshots in this guide show localhost:5679.

On Windows, PowerShell and Command Prompt can't run this script: run it inside WSL (Windows Subsystem for Linux) with Docker Desktop's WSL 2 integration turned on. The older npx n8n shortcut from many videos stops working in n8n 3.0, according to n8n's one-line setup docs.

The first screen asks you to create an owner account. It is the admin login for your own copy of n8n, stored in that copy's database.

Set up owner account screen that self-hosted n8n shows on first start, asking for email, name and password
The first screen of a fresh self-hosted n8n (version 2.44), before any workflow exists.

Step 1: Create your first workflow

  1. Log in to n8n. You land on the Overview page.
  2. Select the create button at the top right and choose a new workflow. An empty canvas opens.
  3. Rename it by selecting the name at the top. Call it "Website leads".

You never need to save by hand. n8n saves every change within a few seconds, and nothing goes live until you publish.

Step 2: Add the n8n Form Trigger

  1. Select Add first step, search for "form" and choose the n8n Form trigger. n8n adds it as a node called "On form submission".
  2. Authentication: leave it on None. Basic Auth or n8n User Auth would make visitors log in before they see the form.
  3. Form Title: type "Get a quote". It appears as the heading of your form. Add a one-line Form Description under it if you like.
  4. Form Elements: add three. Each has a Label and an Element Type; if Custom Field Name and Required Field aren't shown, add them with Add Attributes. Name (name, Text Input, Required Field on), Email (email, Email, Required Field on) and Message (message, Textarea).
  5. Respond When: choose Form Is Submitted, so visitors see a thank-you right away instead of waiting for Sheets and Gmail.
  6. Options: add Form Path and type get-a-quote for a readable address, add Ignore Bots and turn it on, then add Append n8n Attribution and turn it off.
  7. Rename the node "Lead form" by selecting its name at the top of the panel. You will refer to it by name in Step 5.
n8n Form Trigger node settings with Test URL, Authentication None, Form Title Get a quote and the Name form element
The Lead form node from this tutorial in n8n 2.44 (October 2026): the Test URL sits at the top, then the settings from steps 2 to 4.

Step 3: Send yourself a test lead

Select Execute workflow on the canvas (or Execute step inside the Lead form node). n8n starts listening and opens the form on its Test URL; fill it in with your own details and submit.

Back in the editor, open the Lead form node. The output shows your name, email and message, plus two fields n8n adds for you: submittedAt, the date and time of the submission, and formMode, which says test here and production once real visitors use it.

Step 4: Save the lead with the n8n Google Sheets node

  1. Select the + after Lead form, search for "Google Sheets" and choose Append row in sheet.
  2. Connect your account: create a new credential and select Sign in with Google.
  3. Pick the file: choose "Website leads" under Document and the first sheet under Sheet.
  4. Map the columns: set Mapping Column Mode to Map Each Column Manually, then drag submittedAt, name, email and message from the input panel on the left into Date, Name, Email and Message.
  5. Select Execute step and check your sheet. A new row should be there.
n8n Google Sheets Append row in sheet node with Map Each Column Manually and Date, Name, Email and Message mapped to form fields
Append row in sheet with the four columns mapped. The Document field stays empty until you sign in with Google, which is why it shows a warning here.

Step 5: Send the thank-you email with Gmail

  1. Select the + after the Google Sheets node, search for "Gmail" and choose Send a message.
  2. Connect your account with Sign in with Google, as before.
  3. To: the lead's address. Because the previous node is now Google Sheets, point to the form node by name: {{ $('Lead form').item.json.email }}. If you type it rather than drag it, switch the field to Expression mode first.
  4. Subject and Message: set Email Type to Text, paste the first line below into Subject and the rest into Message, then change the details.
  5. Options: add Append n8n attribution and turn it off. Add BCC with your own address if you want a copy of every email, and Sender Name so the lead sees your business name.
Code
Thanks {{ $('Lead form').item.json.name }}, we got your message

Hi {{ $('Lead form').item.json.name }},

Thanks for getting in touch. We read every message and will reply within one working day.

[YOUR NAME]
n8n Gmail Send a message node using the expression $('Lead form').item.json.email in the To field and the lead's name in the subject
The Gmail node with the expressions from this step. Each field marked fx is an expression that reads the Lead form node by name.

How n8n expressions work

An expression is anything inside {{ }}. When you drag a field in, n8n writes one for you, such as {{ $json.email }}. $json always means "the node right before this one", which is why it stops finding the email once Google Sheets sits in between.

$('Lead form') names the node to read from instead, so it keeps working however many steps you add later. This is also why Step 2 had you rename the node: if you rename it again, update the expressions too.

Step 6: Test the whole workflow

  1. Select Execute workflow again and submit the form with a second test lead, using an email address you can check.
  2. Check the sheet: a new row with all four columns filled.
  3. Check that inbox: the thank-you email, with the right first name in the subject.

If something is missing, open each node on the canvas. The step with a red warning shows the error, and its output panel shows exactly what data it received.

Step 7: Publish the workflow and share the form

Publishing tells n8n to keep the trigger listening on its own, around the clock, with no editor open.

  1. Copy the Production URL: open Lead form and switch the URL view at the top of the node from Test URL to Production URL.
  2. Select Publish in the canvas header, or press Shift + P, then confirm with Publish in the window that opens. To take the form offline later, open the arrow next to Publish and choose to unpublish.
  3. Open the Production URL in a private browser window to see exactly what visitors get.
  4. Share it: put the link behind a "Get a quote" button on your website or in your social bio.
The finished Get a quote form from this n8n tutorial, live on its Production URL with Name, Email and Message fields
The form from Step 2 after publishing, with n8n attribution turned off. On n8n Cloud the address starts with your own workspace URL instead of localhost.

Real submissions don't appear on the canvas. You find each one in the workflow's Executions tab, and your edits stay in draft until you publish again.

You can also prefill fields by adding them to the link, for example ?email= followed by the address; this works on the Production URL only, as the n8n Form Trigger docs note.

Get an email when a live run fails

Once the form is live, nobody is watching the canvas, so a broken Gmail connection could lose leads for days. Create a second workflow that starts with the Error Trigger node, add a Gmail Send a message node that emails you the failed workflow's name and error, and save it. Then open the Website leads workflow's Settings and choose it under Error workflow. It fires only for published runs, not tests, and error workflows don't count toward your executions (Error Trigger docs).

n8n test vs production URL

Nearly every "my n8n form isn't working" question comes down to this table:

Test URLProduction URL
Address contains/form-test//form/
Works whenYou select Execute workflow or Execute stepThe workflow is published
Who should use itOnly you, while buildingYour visitors
Where results showLive on the canvasIn the Executions tab
Counts toward your planNoYes, one execution per submission

The counting rule comes from n8n's execution docs: runs started from the editor while you build are free, published runs count. This workflow uses one execution per lead, so the trial's 1,000 executions cover 1,000 real submissions, and our n8n pricing guide shows which paid plan fits your volume.

Inside the node you switch between the two addresses with the toggle at the top:

n8n Form Trigger node switched to Production URL, showing the form address with /form/get-a-quote
The same node with Production URL selected. Note /form/ instead of /form-test/ in the address.

Optional: let n8n Assistant build it for you

n8n Cloud includes n8n Assistant, an AI helper in preview that creates and edits workflows from a description. It runs on a monthly allowance of Assistant credits, and the trial includes some. Once you have built this workflow by hand, try describing the next one instead:

Ask n8n Assistant to build a lead workflow
Build a workflow that starts with an n8n Form trigger titled "[FORM TITLE]" with three required fields: name (text), email (email) and message (textarea).
Append each submission as a new row to the Google Sheet "[SHEET NAME]" with the columns Date, Name, Email and Message.
Then send the person a thank-you email from Gmail that uses their first name and says we will reply within [TIME].
Turn off the n8n attribution on the form and in the email.

Check every node it creates before you publish, exactly as you did by hand.

n8n form trigger not working? Common problems and fixes

Two messages cause most beginner confusion, and both are about which URL you opened. This is what n8n shows when you open the Test URL without selecting Execute workflow first:

n8n form trigger not working on the Test URL: the page says Form Trigger isn't listening yet
The Test URL only answers after you select Execute workflow or Execute step in the editor.

And this is what visitors get on the Production URL of a workflow that isn't published yet:

n8n production URL not working: the Problem loading form page shown for an unpublished workflow
The same page appears if you unpublish or delete the workflow later, so a dead form link on your site usually means this.
What you seeWhy it happensFix
"Form Trigger isn't listening yet"You opened the Test URL without starting a test runSelect Execute workflow, then open the link again
"Problem loading form"The workflow behind the Production URL isn't publishedSelect Publish, or share the right link
Visitors see an old versionVisitors get the published version, not your draftPublish again after you edit
A column stays empty in the sheetThe row 1 header is spelled differently, or the field isn't mappedFix the header, then check the mapping
The email goes to the wrong address or noneThe expression points at the wrong nodeReference the form node by name, as in Step 5
Emails end with "This email was sent automatically with n8n"That attribution is on by defaultTurn off Append n8n attribution
A link checker or curl gets "401 Unauthorized"Ignore Bots answers known bots with 401 and starts no runTest in a normal browser instead
Self-hosted: Gmail fails with 401 and "unauthorized_client"The Gmail API isn't enabled in your Google Cloud projectEnable it under APIs & Services, then Library
Self-hosted: Google Sheets won't connectSheets also needs the Google Drive APIEnable both APIs in the same project

0 of 6 done

Once this runs, the natural upgrade is an AI step that drafts a personal reply for you to approve, which our n8n AI agent tutorial covers. And if this build showed you that n8n isn't the right tool for you, our guide to n8n alternatives sorts the other options by your reason for leaving.

Quick check0 of 3 correct

Your form works when you test it, but submissions from your website never arrive. What is the most likely cause?

You added a Google Sheets node between the form and Gmail. Why does $json.email in the Gmail node now come up empty?

Do your test runs in the editor count toward your n8n plan's execution limit?

What to do next

Publish this workflow today and send yourself a real submission from your phone. Then build the five follow-ups in the free bonus below one at a time (an approval step, a duplicate check, AI sorting, a three-day follow-up and a Monday digest), testing after each change. To keep learning n8n itself, our guide to the best n8n courses starts with n8n Academy's four free courses, and the best AI agent courses are the step after that, when you want agents that choose their own next step. If you want a guided path from here, our AI automation course will take this further than one form: an AI that drafts the reply to each lead, a follow-up email when nobody answers, and posts that go out on a schedule, built with Claude Code and the other automation tools we use with clients, not n8n alone. It is still being filmed and has no launch date yet, so for now it is a pre-order in early access.

If you want an automation course with a lesson list today, module 7 of our Claude Code course is already filmed: three lessons on sending invoices from your inbox to your accountant, email and calendar on autopilot, and client documents such as quotes and contracts. Both are our own courses, sold in early access, so we earn money if you join; n8n's free courses and the worksheet cost nothing.

5 workflows to build next in n8n, node by node

Five follow-up builds for your lead workflow, from an approval step to a weekly digest, each with the exact nodes, settings and a test to run.

Enter your email and the full section opens right here.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Frequently asked questions

What is n8n used for?

n8n connects the apps a business already uses and moves data between them without manual work: saving form leads, sending follow-up emails, syncing a CRM, posting to Slack or running an AI step. It has hundreds of built-in integrations plus an HTTP Request node for any app with an API.

Which n8n plan does this workflow need after the trial?

It uses one execution per lead, so n8n Cloud Starter, with 2,500 executions a month, covers up to 2,500 form submissions for €24 a month or €20 billed annually (checked November 6, 2026). US buyers pay the same numbers in dollars. Self-hosting the free Community Edition removes the plan limit, but then you run the server yourself.

Is n8n hard to learn if I don't code?

The basics are not: you connect nodes and drag fields from one step to the next. Expressions and the way data moves between nodes take a few workflows to feel natural, which is why one small real build teaches more than an hour of videos.

What is the best way to learn n8n?

Build one small workflow that solves a real task, then change one node at a time and test after each change. Read a node's page in the official docs only when you need it, and borrow ideas from n8n's public workflow templates once the basics click.

Can I use n8n without Google?

Yes. n8n has built-in data tables for storing rows and a Send Email node that works with any email account that offers SMTP, so you can swap out Google Sheets and Gmail.

Can an n8n form have more than one page?

Yes. Add an n8n Form node later in the workflow for each extra page; the Form Trigger itself suggests it with the note 'Build multi-step forms by adding a form page later in your workflow'. A Form node set to Form Ending can also show your own closing title and message.

Keep reading