n8n Workflow Builder: A Complete Hands-On Tutorial
This tutorial walks through building an actual workflow inside the n8n editor, rather than just explaining concepts. By the end, you will have a working automation you can adapt for your own use case.
What we are building
A simple but genuinely useful workflow: when a webhook receives a new lead (name, email, message), the workflow checks whether the message contains an urgent keyword, then sends a differently worded WhatsApp notification depending on the result.
Step 1: Add a Webhook trigger node
Every new workflow starts with a trigger. Add a Webhook node, set it to accept POST requests, and n8n will generate a unique test URL. Anything sent to that URL becomes the workflow's input data.
Step 2: Add an IF node to branch the logic
Add an IF node after the trigger and set a condition checking whether the incoming message contains a word like "urgent" or "asap". This creates two paths: one for urgent leads, one for everything else.
Step 3: Add action nodes on each branch
On the urgent branch, add a node that sends an immediate WhatsApp or Slack alert. On the standard branch, add a node that simply logs the lead to a CRM or spreadsheet for regular follow-up.
Step 4: Test with real-looking data
Use the "Execute Workflow" feature with sample input matching what your real trigger will send. Check each node's output panel to confirm data is flowing and transforming as expected before relying on it.
Step 5: Activate and monitor
Once tested, activate the workflow so the webhook goes live. n8n keeps an execution log, which is the first place to check if something behaves unexpectedly later.
Where to take this next
This same pattern (trigger, branch, act, log) underlies most real-world automations. For guidance on making workflows resilient to real failures, see the common n8n automation mistakes article, or go deeper with the full n8n training course.