New Age AI Logo
    New Age AI
    ← All resources
    Automation

    n8n Workflow: Build Your First One Step by Step

    Build your first n8n workflow with copy-paste test data: a webhook, a check and a reply. Includes common fixes and 5 ideas for what to build next.

    By New Age AI Team

    A webhook trigger connected to a decision and two workflow outputs with success and error symbols

    You do not need to understand everything about automation to build a working n8n workflow. You need one trigger, one decision and one result, plus sample data to test with. This guide gives you all three. By the end you will have a small workflow that checks a new sales lead and replies with either a clean summary or a clear error. You will also know how to test it, fix the usual problems, and decide what to build next.

    Quick answer (as of October 2026): An n8n workflow is a chain of steps, called nodes. It starts with a trigger and then runs actions. To build your first one, add a Webhook node as the trigger, check the data with an If node, shape the reply with an Edit Fields node, test it with sample data, then publish it. Plan on roughly 30 to 60 minutes the first time (our estimate).

    Scope: n8n Cloud or self-hosted. Menu names follow n8n's documentation, checked in October 2026. Your version may use slightly different labels.

    What You Will Build

    The first workflow at a glance
    StepExpected result
    TriggerA web form (or a test command) sends a new lead
    CheckDoes the lead have an email address?
    Result, good leadLead from Asha Rao (asha@example.com): Interested in a demo
    Result, bad leadMissing email: lead not saved

    It is small on purpose. Once this pattern works, the same trigger, check and result shape sits behind most simple automations.

    Before You Start

    • An n8n account on Cloud, or a self-hosted n8n you can open in a browser.
    • A way to send a test request. The terminal command curl works, or you can use an HTTP Request node in a second workflow.
    • The two sample leads below. No other apps or accounts are needed.

    Plain-English glossary:

    • Trigger: the event that starts the workflow.
    • Node: one step in the workflow.
    • Execution: one complete run, which n8n logs for you.
    Good lead (copy this):
    {
      "name": "Asha Rao",
      "email": "asha@example.com",
      "message": "Interested in a demo"
    }

    Bad lead: the same data with "email": "".

    Build It in 6 Steps

    1. Create a workflow. From the n8n Overview page, create a new workflow and name it "First lead check".
    2. Add the trigger. Select the add-node button, search for Webhook, and add it. Set HTTP Method to POST. n8n generates a random Path by default, which is fine for a test. Set Respond to When Last Node Finishes, which returns the output of the last node that ran (Webhook node docs).
    1. Listen, then send the good lead. Select Listen for Test Event, and keep the tab open. In a terminal, run this, replacing the URL with your Test URL:
    Send the good lead to your Test URL
    curl -X POST "YOUR_TEST_URL" -H "Content-Type: application/json" -d '{"name":"Asha Rao","email":"asha@example.com","message":"Interested in a demo"}'

    The data appears in the node's output panel. n8n usually places posted JSON under body, so the email sits in the email field inside body. Confirm the field names in your own output before moving on.

    1. Add an If node. Connect an If node after the Webhook. Add a condition on the email field with the operator is not empty. The If node also offers operators such as "exists" and "is empty" (If node docs). Drag the email field from the input panel into the condition instead of typing it.
    2. Add two Edit Fields nodes. Connect one Edit Fields (Set) node to the true output and one to the false output. In each, use Manual Mapping and add a field named reply. For the true branch, use an expression such as Lead from {{ $json["body"]["name"] }} ({{ $json["body"]["email"] }}): {{ $json["body"]["message"] }}. For the false branch, use the fixed text Missing email: lead not saved. Turn on Keep Only Set Fields in each, so the output contains only reply (Edit Fields docs).
    3. Save, but do not publish yet. Test first.

    Takeaway: a trigger, one decision and two outputs are enough for a real workflow.

    Test It Before You Trust It

    1. Select Listen for Test Event again and run the curl command with the good lead. The true branch should run, with reply set to Lead from Asha Rao (asha@example.com): Interested in a demo.
    2. Listen again and send the bad lead. The false branch should run, with reply set to Missing email: lead not saved.
    3. If something looks wrong, use Execute step on a single node to check its output without running everything.
    4. Use fake data only.

    Expected result: the curl response shows the reply text of whichever branch ran.

    If It Fails: Quick Fixes

    Troubleshooting your first workflow
    What you seeLikely causeFix
    Nothing shows in the editorThe Test URL only works while the node is listening, for 120 seconds after you select Listen for Test EventSelect Listen for Test Event again, then send the request
    "Method not accepted"The node accepts only one HTTP method by defaultUse POST in curl, or turn on Allow Multiple HTTP Methods in Settings
    "Path and method already in use"n8n allows one webhook per path and methodUnpublish the other workflow or change the path
    The wrong branch runsThe email field name differs from what you usedCheck the output panel for the real field name, such as the email field inside body
    Reply is emptyThe expression points at a field that does not existDrag the field from the input panel instead of typing it

    These causes come from n8n's Webhook troubleshooting page.

    Go Live: Test URL vs Production URL

    Test URL and Production URL
    Test URLProduction URL
    When it worksOnly while the node listensAfter you publish the workflow, until you unpublish it
    Where you see dataIn the editorIn the workflow's Executions tab

    To go live, publish the workflow. Older n8n docs and tutorials call this turning the Active toggle on, so use whichever control your version shows. Send one request to the Production URL, then open Executions to confirm it ran.

    Pre-launch checklist:

    • Both sample leads gave the expected result in test mode.
    • The workflow uses fake data, with no real customer details.
    • You know where to look when it fails (the Executions tab).
    • You added one node at a time and tested it, rather than building everything at once.

    5 Good Workflows to Build Next

    Pick one you would do by hand at least weekly, where a mistake is easy to spot.

    Five workflows to try next
    IdeaTriggerActionWhy it is a good first project
    Form alertWebhook from a formSend a message to the teamSame pattern as this guide
    Form to spreadsheetWebhook from a formAdd a row to a sheetReplaces copy-and-paste
    Weekly summarySchedule TriggerSend a short reportShows how scheduling works
    Overdue reminderSchedule TriggerMessage the owner of an overdue itemNeeds one clear rule
    Request sortingWebhook or email triggerRoute by category with an If nodeExtends your first If node

    Want the Slack version of the first idea? Follow our guide to building a Slack bot. To add an AI step later, see our guide to an AI chatbot for business.

    Not sure which process to automate first? The free AI Workflow Map helps you list and prioritize them. Download Now.

    When Not to Automate This

    • Low volume. If you get a handful of leads a month, a manual check may be faster than building and maintaining a workflow.
    • An unclear process. If you cannot write the steps down, you are not ready to automate them.
    • Sensitive decisions. Do not let a workflow alone decide things like refunds, hiring or eligibility.

    Want a Second Pair of Eyes?

    New Age AI's free AI Strategy Call is a 60-minute consultation with an AI expert, a tech stack audit of your current workflows, 3 automation ideas tailored to your business, and an action plan PDF sent after the call. Book Strategy Call, or see how we describe our services.

    Final Thoughts

    Your first n8n workflow does not need to be impressive. It needs to run, be testable, and do one useful thing. Build the example, break it with the bad lead, fix it, and publish it. Then pick a real task from your own work and repeat the steps.

    Related reading: How to Build a Slack Bot, AI Chatbot for Business, How to Choose an AI Automation Agency, Workflow Automation Software: What to Buy vs. What to Build.

    This article is general information, not legal, financial, or security advice. Tools, features, and pricing change often; check each vendor's official documentation before you build or buy.

    Quick answers

    Frequently asked questions

    Want to map the right workflow first?

    Talk through the repetitive work in your business and identify the automation opportunities worth prioritizing.

    Book a strategy call