Book a 20-min call

n8n Tutorial: Build Your First Workflow (2026)

A step by step n8n tutorial for beginners: set up n8n, build a webhook to Slack and Google Sheets workflow with logic and an AI step, test it, publish it and make it reliable.

Harish Malhi - founder of GoodspeedHarish MalhiFounder of GoodspeedUpdated10 min read

Summarise with AI

To build your first n8n workflow, start an n8n Cloud trial or run n8n locally with Docker, add a trigger node, connect an action node, map the data between them, test it, then publish it. This tutorial builds one complete workflow, a form enquiry that is cleaned up, checked against a budget threshold, sent to Slack and logged in Google Sheets, and it takes under an hour.

n8n is a visual workflow automation tool for technical and non-technical teams. You build on a canvas of connected nodes instead of writing scripts, and you can drop into code when a step needs it.

What n8n is, and when to use it

n8n is a workflow automation tool. A trigger node starts the workflow, and every node after it does one job: fetch data, reshape it, make a decision or send it to another app. It sits in the same space as Zapier and Make, but it gives you more control over data, branching and custom code, and its pricing is based on workflow executions rather than the number of steps inside them.

One licensing point is worth knowing before you commit. n8n describes its licence as fair-code, not open source. The source code is available and the self-hosted Community edition is free to run for your own business, but the licence restricts things like hosting n8n as a service for clients to build their own workflows. If that could apply to you, read n8n's licence FAQ first.

Step 1: Get n8n running

You have two routes, and both are fine for a first workflow.

  • n8n Cloud. n8n hosts it, so you are in the editor in minutes with nothing to install. There is a 14 day free trial with Pro features, and paid plans are priced by monthly workflow executions. Check the pricing page for the current figures.
  • Self-hosted Community edition. Free, and you control the environment. n8n recommends self-hosting for people comfortable managing servers, because mistakes can mean data loss, security problems or downtime.

To try the self-hosted route locally you need Docker installed. Replace the timezone with your own, for example Europe/London, so that schedule-based workflows run at the right local time:

docker volume create n8n_data

docker run -it --rm --name n8n -p 5678:5678 -e GENERIC_TIMEZONE="Europe/London" -e TZ="Europe/London" -v n8n_data:/home/node/.n8n n8nio/n8n

Open http://localhost:5678, create your owner account and you are in. The volume keeps your workflows and credentials when the container restarts. For anything beyond a local test, n8n's documentation recommends Docker Compose with a database such as PostgreSQL.

Step 2: Create a workflow

Create a blank workflow, then rename it something you will recognise later, such as "Website enquiry to Slack". You will see an empty canvas with an option to add your first step. Every workflow is a chain of nodes read from left to right, and each node passes its output to the next as a list of items.

Step 3: Add a trigger

A trigger decides when the workflow runs. The common choices are:

  • Manual trigger, which you fire yourself while building.
  • Schedule Trigger, for jobs like a report every morning at 8am.
  • Webhook, which gives your workflow a URL that other tools can call, such as a website form.
  • App triggers, such as a new row in a sheet or a new deal in your CRM.

For this tutorial, add a Webhook node. Set the HTTP method to POST and the path to enquiry. n8n gives every webhook two URLs: a test URL that only works while you click "Listen for test event" in the editor, and a production URL that only works once the workflow is published. Use the test URL while you build.

With the node listening, send it a sample enquiry from a terminal. Swap in your own n8n address:

curl -X POST "http://localhost:5678/webhook-test/enquiry" -H "Content-Type: application/json" -d '{"name":"Sam Lee","email":"sam@example.com","budget":8000,"message":"We need a new marketing site"}'

The node now shows the data it received. Your fields sit under body, so the email address is at $json.body.email. Use the pin option on the output so n8n remembers this sample, which means you do not have to send a new request every time you test a later node.

Step 4: Clean the data and map it

Raw data is rarely in the shape the next app wants. Add an Edit Fields (Set) node after the trigger and create the fields you actually need. Drag a value from the input panel into a field and n8n switches that field to an expression, written in double curly brackets, which it replaces with the real value on every run.

  • name set to {{ $json.body.name }}
  • email set to {{ $json.body.email }}
  • budget set to {{ $json.body.budget }} as a number
  • summary set to New enquiry from {{ $json.body.name }} ({{ $json.body.email }})

The preview under each field shows the finished text, so you can check it before moving on. This data mapping is the core skill in n8n: nearly every problem is either the wrong field name or the wrong data type.

Step 5: Add logic

Real workflows branch. Add an IF node after Edit Fields and set one condition: the number budget is greater than or equal to 5000. The node has two outputs, true and false, so you can send big enquiries to one place and small ones to another.

These three nodes cover most branching:

  • IF splits the path in two.
  • Switch splits it into more than two, for example by region or product.
  • Filter drops items that do not match, so nothing runs after it for them.

When a node returns a list, such as 50 rows from a sheet, later nodes run once per item by default. Use the Loop Over Items node only when you need to process items in batches, for example to stay under an API rate limit.

Step 6: Send the result somewhere

On the true output of the IF node, add a Slack node and choose the action to send a message. The first time you add a node for an app, n8n asks you to create a credential, which connects your account once and is stored separately from the workflow so you can reuse it. Map the message text to {{ $json.summary }} and add the budget.

Then add a Google Sheets node, choose the action to append a row, and map the same fields. Connect it to both the true and false outputs of the IF node, so every enquiry is logged whether or not it triggers a Slack alert. You now have a workflow that notifies you about the enquiries worth chasing and keeps a record of all of them.

Step 7: Add an AI step (optional)

n8n has AI nodes for common jobs. Add an AI Agent or a Basic LLM Chain node, attach a chat model with its own credential, and give it a narrow instruction, such as: "Summarise this enquiry in one sentence and label it sales, support or other." Pass the result to Slack and to the sheet.

Keep AI steps small and checkable. Ask for a short, structured answer rather than free text, and check the output on a handful of real examples before you trust it. Check your data policy too, because anything you pass to a model leaves your own systems. n8n also has an Assistant that can draft a workflow from a prompt, which is useful as a first draft as long as you read every node it creates.

Step 8: Test, then publish

Run the whole workflow with Execute workflow and click through each node to see exactly what came in and what went out. Failed nodes are marked in red, and the error message usually names the field or credential at fault. Test the false path too, by pinning a sample with a budget under 5000.

When it works, publish it so the production webhook URL goes live. In n8n 2.0 and later, released in December 2025, the old Active toggle was replaced by Publish: your edits save as you work and only go live when you publish, so you can change a running workflow without breaking it. If you are on a 1.x version you will still see the Active toggle. Remember to point your real form at the production URL, not the test one.

Make it reliable before it touches live systems

A workflow that works once is not yet a workflow you can leave alone. Four habits make the difference:

  • Add an error workflow. Create a second workflow that starts with an Error Trigger and posts to Slack or email, then select it in the first workflow's settings. You hear about failures before a customer does.
  • Retry flaky steps. Most nodes have a Retry On Fail setting, which helps with temporary API errors.
  • Protect webhooks. Add authentication on the Webhook node so only your form can trigger it.
  • Check the Executions list. It records every run with the data at each step, which is the fastest way to debug something that went wrong yesterday.

Common beginner mistakes

  • Skipping the test step: always inspect node output before publishing
  • Hard-coding values instead of mapping them from earlier nodes
  • Building one giant workflow instead of a few small, reliable ones that call each other
  • Forgetting error handling on workflows that touch live systems
  • Testing against the production URL, or publishing while still pointing at the test URL
  • Passing customer data to an AI model without checking where it goes

Where to go next

Rebuild this workflow with your own tools, then look at n8n's template library and its Academy courses for patterns you can adapt. Our guides to n8n templates, the Google Sheets integration and n8n pricing go deeper on each part. Once you are comfortable, the real value is in production workflows that run your business reliably. We build and maintain these for teams: for a US software company we run a monthly automation retainer that includes a two-way HubSpot sync built on n8n, and for a consulting marketplace we automated six manual operations, saving the team over 40 hours a week. If you would rather skip the learning curve, our n8n automation team designs, builds and hosts automations for teams that need them working today.

Your first n8n workflow, done

That is the whole loop: trigger, mapping, logic, action, test, publish and monitor. Build a few small workflows and the patterns click fast. When you are ready to automate something business-critical, or want it built right the first time, talk to our n8n team.

Frequently asked questions

Is n8n hard to learn?
No. If you can describe a process in steps, you can build it in n8n. The node-based canvas is visual, and most beginners ship a useful workflow on day one.
Do I need to code to use n8n?
No. You can build most workflows with no code. Optional code and expression nodes are there when you need them, which is why developers like it too.
Is n8n good for beginners compared to Zapier?
n8n has a slightly steeper start than Zapier but far more power and lower cost at scale. If you want to grow into complex automations, it is worth learning.
How long does it take to learn n8n?
You can build your first workflow in under an hour. Reaching confidence with branching, data mapping and APIs usually takes a few days of real projects.

About the Author

Harish Malhi is the founder of Goodspeed. He left Google in 2019 to build his own product, and started Goodspeed to give other founders the same head start. Today the studio designs and builds websites and the whole digital experience around them for funded tech companies, at the moments that matter: a raise, a launch, a press cycle. Goodspeed is a Framer Enterprise Partner, was Bubble’s Agency of the Year in 2024-2025, and has shipped 300+ products, including launch pages for an NVIDIA-backed AI lab and a Webby-nominated site for a Boeing-backed aviation company. It holds a 5.0 rating from 47 reviews on Clutch.

Ready to see your go-live date?

Book a 30-minute call. We’ll scope it with you and give you a date.

Browse all articles