Skip to main contentSkip to navigation
[email protected]
Client AreaSupport
Hosting Mammoth
HostingMammothYour Data, Our Responsibility
Home
Solutions
Hosting Services
Store
Pricing
About
Blog
API
Contact

Stay Ahead of the Curve

Get the latest insights on cybersecurity, AI innovations, and enterprise data solutions delivered to your inbox.

Hosting Mammoth
HostingMammothEnterprise Solutions

Enterprise-grade data solutions. Hosting, recovery, cybersecurity, and AI-powered services for businesses worldwide.

[email protected]
Sun - Fri, 9:00am - 5:00pm

Services

  • Cloud Hosting
  • Data Recovery
  • Cybersecurity
  • Legal Support
  • MSP Services
  • Web Development
  • AI Services
  • Free Server Migration

Hosting

  • VPS Hosting (NVMe SSD)
  • VDS Hosting (NVMe)
  • Storage VPS (High SSD)
  • GPU Servers
  • Managed Services
  • Cloud Firewall
  • Load Balancer
  • One-Click Apps
  • n8n Hosting
  • Object Storage
  • FAQ

Company

  • Store
  • Pricing
  • About Us
  • Locations
  • Blog
  • Testimonials
  • Contact
  • Affiliate Program
  • White-Label
  • Terms of Service
  • Privacy Policy
  • Browser Cookies
  • SLA

Support

  • Client Area
  • Submit Ticket
  • Knowledge Base
  • Server Status
  • API Documentation

© 2026 Hosting Mammoth. All rights reserved.

Knowledge Base
Getting StartedAccount ManagementVPS HostingGPU ServersStorage VPSCloud FirewallLoad BalancerServer ManagementBilling & PaymentsSupport & TicketsAffiliate ProgramReseller ProgramMarketplace & Appsn8n HostingManaged ServicesServer MigrationAPI & DevelopersSecurityTroubleshootingGlossaryInstall Guides
  1. Home
  2. /
  3. Support
  4. /
  5. n8n Hosting
  6. /
  7. N8n Workflows
GUIDEn8n Hosting

Creating Your First n8n Workflow

5 min read

Workflows are the heart of n8n. Each workflow is a series of connected nodes that automate a process from start to finish. This guide walks you through creating your first real workflow, explaining key concepts along the way.

Workflow Anatomy

Every n8n workflow consists of:

  • Trigger node — The event that starts the workflow.
  • Action nodes — Steps that process data, call APIs, or interact with services.
  • Connections — Links between nodes that define the data flow.
  • Data — Information that passes between nodes as JSON objects.
  • Step-by-Step: Build a Contact Form Notification Workflow

    This example creates a workflow that receives a contact form submission via webhook, saves it to a spreadsheet, and sends a notification.

    Step 1 — Create a New Workflow

  • From the n8n home screen, click Create Workflow or the + button.
  • Name your workflow: "Contact Form to Sheet + Notification".
  • Step 2 — Add a Webhook Trigger

  • Click the + button on the canvas to add a node.
  • Search for Webhook and select it.
  • Configure the webhook:
  • - HTTP Method: POST - Path: contact-form (this creates a URL like https://n8n.example.com/webhook/contact-form)
  • Click Save.
  • The webhook node generates a URL that your contact form will send data to.

    Step 3 — Add a Google Sheets Node

  • Click the + button from the Webhook node's output connector.
  • Search for Google Sheets and select it.
  • Configure:
  • - Operation: Append Row - Credential: Select your Google credential (set this up in Credentials first). - Spreadsheet: Select or enter the target spreadsheet. - Sheet: Select the worksheet tab. - Columns: Map the incoming webhook data to spreadsheet columns.
  • Click Save.
  • Step 4 — Add a Slack Notification Node

  • Click + from the Google Sheets node's output.
  • Search for Slack and select it.
  • Configure:
  • - Operation: Send Message - Channel: Select the notification channel (e.g., #leads). - Message: Write the notification text using data from the webhook. For example:

    text
    New contact form submission!
    Name: {{ $json.name }}
    Email: {{ $json.email }}
    Message: {{ $json.message }}

  • Click Save.
  • Step 5 — Test the Workflow

  • Click Execute Workflow to put n8n in listening mode for the webhook.
  • Send a test request using cURL:
  • bash
    curl -X POST https://n8n.example.com/webhook/contact-form \
      -H "Content-Type: application/json" \
      -d '{"name": "Jane Doe", "email": "[email protected]", "message": "Hello, I am interested in your services."}'

  • Check that:
  • - The Webhook node received the data. - A new row appeared in your Google Sheet. - A Slack message was sent to the channel.

    Step 6 — Activate the Workflow

    Once tested successfully:

  • Toggle the workflow to Active using the switch in the top right.
  • The workflow now runs automatically whenever data is sent to the webhook URL.
  • Working with Data Between Nodes

    Data flows through your workflow as JSON objects. Each node receives data from the previous node and passes its output to the next.

    Accessing Data

    Use expressions to reference data from previous nodes:

    • {{ $json.fieldName }} — Access a field from the current node's input.
    • {{ $node["Node Name"].json.fieldName }} — Access a specific node's output.
    • {{ $input.item.json.fieldName }} — Access current item data.

    Transforming Data

    Use the Set node to reshape data:

  • Add a Set node between other nodes.
  • Define new fields using expressions.
  • Remove unwanted fields.
  • Use the Code node for complex transformations:

    javascript
    // Example: Format a date and combine names
    const items = $input.all();
    return items.map(item => ({
      json: {
        fullName: ${item.json.firstName} ${item.json.lastName},
        date: new Date().toISOString().split('T')[0],
        ...item.json
      }
    }));

    Common Trigger Types

    TriggerUse Case
    WebhookReceive data from external services or forms
    ScheduleRun workflows at specific times (cron-like)
    Email (IMAP)Trigger when a new email arrives
    DatabaseTrigger on new or changed database records
    App-specificMany apps have dedicated triggers (e.g., new Slack message, new GitHub issue)

    Error Handling

    n8n provides built-in error handling:

  • Error Trigger node — Create a separate workflow that runs when any workflow fails.
  • Try/Catch — Use the Error Trigger within a workflow to handle errors gracefully.
  • Retry on Fail — Configure nodes to retry automatically if they fail.
  • Workflow Organization Tips

  • Use sticky notes — Add notes to the canvas explaining workflow sections.
  • Name nodes descriptively — Rename nodes to describe their action (e.g., "Save to CRM" instead of "HTTP Request").
  • Group related workflows — Use folders or tags to organize by project or department.
  • Version your workflows — Export workflow JSON files as backups before major changes.
  • Deactivate unused workflows — Turn off workflows you no longer need to save resources.
  • What to Do Next

    • Popular n8n Integrations — Connect n8n to more services.
    • Getting Started with Your n8n Instance — Review instance setup.
    • What Is n8n? — Learn more about n8n concepts.
    • Monitoring Server Performance — Monitor resource usage.

    Was this article helpful?

    ← Back to n8n HostingBrowse all categories →

    Still have questions?

    Contact Support →Submit a Ticket