n8n Automation Complete Guide: Build No-Code AI Workflows That Save 10+ Hours/Week
From simple notifications to complex AI pipelines — practical n8n workflows for lead qualification, trading alerts, CRM automation, and AI-powered reporting with real examples.
Why n8n Over Zapier or Make?
Three reasons:
- Self-hostable — your data never leaves your server
- Free and open-source — no per-task pricing that kills your budget
- Code when needed — unlike Zapier, you can write JavaScript in nodes
n8n is what I use for all my automation projects. Let me show you the workflows that actually generate value.
Setup: n8n on VPS (5 minutes)
****`bash
Docker installation (fastest)
docker run -it --rm --name n8n -p 5678:5678 -v ~/.n8n:/home/node/.n8n docker.n8n.io/n8nio/n8n
OR with docker-compose for production:
****`
****`yaml
docker-compose.yml
version: '3.8'
services:
n8n:
image: docker.n8n.io/n8nio/n8n
restart: always
ports:
- "5678:5678"
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=admin
- N8N_BASIC_AUTH_PASSWORD=yourpassword
- WEBHOOK_URL=https://n8n.yourdomain.com
- N8N_ENCRYPTION_KEY=your-secret-key
volumes:
- n8n_data:/home/node/.n8n
volumes:
n8n_data:
****`
Access at http://localhost:5678 → Start automating.
Workflow 1: Trading Alert → Telegram (10 nodes)
This is the most common workflow I build for traders:
Flow:
**** TradingView Alert (webhook) → Parse JSON → Get current price (Binance API) → Check risk conditions → Format message → Send Telegram → Log to Supabase ****
Implementation:
Node 1 — Webhook (receives TradingView alert):
****json { "symbol": "XAUUSD", "action": "buy", "price": "{{close}}", "reason": "Order Block H1 + FVG" } ****
Node 2 — HTTP Request (get live price from Binance):
**** Method: GET URL: https://api.binance.com/api/v3/ticker/price?symbol={{$json.symbol}}USDT ****
Node 3 — Code (calculate R:R):
****`javascript
const entry = parseFloat($input.all()[0].json.price);
const sl = entry * 0.995; // 0.5% SL
const tp1 = entry * 1.010; // 1% TP1
const tp2 = entry * 1.020; // 2% TP2
return [{
json: {
symbol: $input.all()[0].json.symbol,
action: $input.all()[0].json.action,
entry: entry.toFixed(2),
sl: sl.toFixed(2),
tp1: tp1.toFixed(2),
tp2: tp2.toFixed(2),
rr: "1:2 / 1:4",
time: new Date().toISOString()
}
}];
****`
Node 4 — Telegram (send formatted alert):
****`
📊 {{$json.action.toUpperCase()}} Signal — {{$json.symbol}}
⏰ {{$json.time}}
💰 Entry : {{$json.entry}}
🛑 Stop Loss : {{$json.sl}}
✅ TP1 : {{$json.tp1}}
🎯 TP2 : {{$json.tp2}}
📊 R:R : {{$json.rr}}
⚠️ Max 0.5% risk per trade
****`
Workflow 2: Lead Qualification with AI (GPT-4)
This workflow processes incoming leads automatically:
Flow:
**** New form submission (Typeform/website) → Enrich with Clearbit (get company info) → Send to GPT-4 for qualification → If qualified: create CRM task + send Slack → If not: send auto-reply → Log everything in Airtable ****
The AI qualification node:
****`javascript
// In n8n's Code node or OpenAI node
const lead = $input.first().json;
const prompt = `
You are a lead qualification specialist.
Analyze this lead and score them 1-10:
Name: ${lead.name}
Company: ${lead.company}
Budget: ${lead.budget}
Project: ${lead.project_description}
Timeline: ${lead.timeline}
Scoring criteria:
- Budget > $2000: +3 points
- Clear project scope: +3 points
- Timeline < 3 months: +2 points
- Previous trading experience: +2 points
Return JSON: { score: number, tier: "hot|warm|cold", reason: "..." }
`;
// This runs in the OpenAI node
return prompt;
****`
Result: Instead of reading every lead manually, you get an instant score. Hot leads (8+) get immediate Slack notification. Cold leads get an automated "not a fit" email. You only spend time on warm/hot leads.
Workflow 3: Daily Business Report
Every morning at 8 AM, this workflow sends me a full business report:
**** Schedule (every day 8:00 AM) → Get Supabase data (new orders, contacts, messages) → Get GitHub commits from yesterday → Get portfolio views (Vercel analytics API) → Format with GPT-4 into narrative report → Send via email (Gmail) + Telegram summary ****
The magic is in the GPT-4 node:
****`
System: You are a business analyst summarizing daily metrics.
User:
Yesterday's data:
- New contacts: {{$node.supabase.json.contacts}}
- New orders: {{$node.supabase.json.orders}}
- GitHub commits: {{$node.github.json.commits}}
- Portfolio views: {{$node.vercel.json.views}}
Write a 5-bullet point summary highlighting:
- Key wins
- Any concerning trends
- Recommended focus for today
Keep it under 200 words. Use emojis.
****`
Workflow 4: Social Media Content Queue
For traders who want to maintain a Twitter/LinkedIn presence:
**** Schedule (every day 09:00) → Get top crypto news (CryptoCompare API) → Summarize with GPT-4 into tweet thread → Add trading insight based on chart patterns → Queue in Buffer/Later for posting → Optional: post immediately to Telegram channel ****
Workflow 5: Client Onboarding Automation
When a new client pays (Stripe webhook):
**** Stripe webhook (payment.succeeded) → Create Supabase record → Send welcome email (Gmail/Resend) → Create Notion page with project brief → Send Telegram notification to you → Create task in Linear/ClickUp → Schedule 7-day follow-up ****
This saves 30 minutes of manual work per client.
Tips for Production n8n
1. Error handling: Add "Error Trigger" workflow to get notified when any workflow fails.
2. Credentials: Store all API keys in n8n's credential manager, never in node configurations.
3. Testing: Use "Execute workflow" with test data before activating.
4. Rate limits: Add "Wait" nodes (1-2 seconds) between API calls to avoid rate limiting.
ROI Calculation
After implementing these 5 workflows:
- Trading alerts: save 2h/week of monitoring
- Lead qualification: save 3h/week of reading leads
- Daily report: save 1h/week of data gathering
- Social media: save 3h/week of content creation
- Client onboarding: save 1h per client (avg 4/month = 4h/week)
Total: 13 hours/week saved. At $50/hour rate, that's $650/week in recovered time.
Want These Workflows Built For You?
I build custom n8n automations tailored to your business. Most projects delivered in 3-7 days.