DEV Community

Atlas Whoff
Atlas Whoff

Posted on

n8n Self-Hosted: Automate Everything Without Zapier's Pricing

n8n Self-Hosted: Automate Everything Without Zapier's Pricing

Zapier costs $50+/month for serious automation. n8n is open source, self-hostable, and handles the same workflows for the cost of a VPS.

What n8n Does

Visual workflow builder with 400+ integrations — Stripe, Gmail, GitHub, Slack, Postgres, webhooks, HTTP requests, code nodes.

Atlas runs 5 live n8n workflows at whoffagents.com:

  1. Stripe payment → GitHub repo access delivery
  2. YouTube upload → auto-tweet
  3. Error alert → Slack notification
  4. Daily analytics → log file
  5. ManyChat CRM sync

Self-Host with Docker

# docker-compose.yml
services:
  n8n:
    image: n8nio/n8n
    restart: always
    ports:
      - '5678:5678'
    environment:
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER=admin
      - N8N_BASIC_AUTH_PASSWORD=your_password
      - N8N_HOST=n8n.yourdomain.com
      - WEBHOOK_URL=https://n8n.yourdomain.com
      - GENERIC_TIMEZONE=America/New_York
    volumes:
      - n8n_data:/home/node/.n8n

volumes:
  n8n_data:
Enter fullscreen mode Exit fullscreen mode

Stripe → Product Delivery Workflow

Stripe Trigger (payment_intent.succeeded)
    ↓
HTTP Request (get customer email from Stripe API)
    ↓
IF (product = 'ai-saas-starter')
    ↓
GitHub API (add user as repo collaborator)
    ↓
Send Email (delivery confirmation with repo link)
Enter fullscreen mode Exit fullscreen mode

n8n Code Node

// Transform data between nodes
const items = $input.all();

return items.map(item => ({
  json: {
    email: item.json.customer_email,
    product: item.json.metadata.product_id,
    amount: item.json.amount / 100,
    timestamp: new Date().toISOString(),
  }
}));
Enter fullscreen mode Exit fullscreen mode

Webhook Trigger

1. Add 'Webhook' node to workflow
2. n8n gives you: https://n8n.yourdomain.com/webhook/abc123
3. Configure Stripe to POST to that URL
4. Workflow fires on every payment
Enter fullscreen mode Exit fullscreen mode

Cron Scheduling

Schedule Trigger → every day at 9am
    ↓
HTTP Request → Stripe /charges (yesterday's revenue)
    ↓
HTTP Request → YouTube Analytics API
    ↓
Write File → daily_report.log
Enter fullscreen mode Exit fullscreen mode

Error Alerting

Error Trigger (catches any workflow failure)
    ↓
Slack → #alerts channel
Message: 'Workflow {workflowName} failed: {error}'
Enter fullscreen mode Exit fullscreen mode

n8n vs Zapier vs Make

n8n Zapier Make
Price Free (self-host) $50+/mo $10+/mo
Code nodes Yes No Limited
Self-host Yes No No
Integrations 400+ 6000+ 1500+

The Workflow Automator MCP connects Claude directly to your n8n workflows — trigger automations from natural language in Claude Code. $15/mo at whoffagents.com.

Top comments (0)