Workflow Automation with n8n: 10 Practical Examples

Slack alert on new order, auto email classification, daily database report — 10 automations you build with drag and drop.
What Is n8n?
n8n is an open-source workflow automation platform that lets you connect different applications and services without writing code. The difference between n8n and Zapier or Make: you host it on your own server, your data never passes through a third party, and you do not pay per operation.
n8n supports over 400 ready-made integrations — from databases and email to Slack, WhatsApp, and AI systems. Every workflow consists of nodes connected to each other, each node performing a specific task.
Why Self-Hosted n8n?
| Comparison | n8n (Self-Hosted) | Zapier | Make |
|---|---|---|---|
| Monthly Cost | 0 (open source) | 29-599 USD | 9-299 USD |
| Operation Limit | Unlimited | 750-50,000/month | 1,000-300,000/month |
| Data Location | Your server | USA | Europe |
| Customization | Full (custom code) | Limited | Medium |
| Built-in AI | Yes (native AI nodes) | Add-ons | Add-ons |
Installation on a Saudi Server
Requirements
- Cloud server: 2 vCPU, 4 GB RAM minimum
- Docker and Docker Compose
- Ubuntu 22.04 or 24.04
Docker Installation
mkdir -p /opt/n8n && cd /opt/n8n
cat > docker-compose.yml << 'EOF'
version: '3.8'
services:
n8n:
image: n8nio/n8n:latest
restart: always
ports:
- "5678:5678"
environment:
- N8N_HOST=n8n.yourdomain.com
- N8N_PORT=5678
- N8N_PROTOCOL=https
- WEBHOOK_URL=https://n8n.yourdomain.com/
- N8N_ENCRYPTION_KEY=your-secret-key-here
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_DATABASE=n8n
- DB_POSTGRESDB_USER=n8n
- DB_POSTGRESDB_PASSWORD=secure-password
volumes:
- n8n_data:/home/node/.n8n
depends_on:
- postgres
postgres:
image: postgres:16
restart: always
environment:
- POSTGRES_DB=n8n
- POSTGRES_USER=n8n
- POSTGRES_PASSWORD=secure-password
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
n8n_data:
postgres_data:
EOF
docker compose up -d
10 Practical Workflow Automation Examples
1. Instant Notification on New Client Registration
Scenario: A client registers in your system, you want to notify the team immediately.
Nodes:
- Webhook — receives POST from your system on registration
- IF — checks client type (business or individual)
- Slack — sends notification to sales channel
- Email — sends welcome email to the client
2. Daily Database Backup with Alert
Nodes:
- Cron — runs daily at 2 AM
- Execute Command — runs pg_dump
- S3/MinIO — uploads backup to storage
- IF — checks operation success
- Slack/Email — notification with result (success or failure)
3. Website Uptime Monitoring
Nodes:
- Cron — every 5 minutes
- HTTP Request — checks the website
- IF — checks response code (200 = running)
- SMS/WhatsApp — instant notification if site is down
- Google Sheets — logs downtime
4. Automatic Invoice Processing
Scenario: Invoice arrives via email, data is extracted and added to the system.
Nodes:
- Email Trigger — monitors inbox
- IF — filters messages with PDF attachments
- AI Agent — extracts invoice data (number, amount, date)
- HTTP Request — sends data to accounting system
- Slack — notification about new invoice
5. Automatic Social Media Publishing
Nodes:
- Webhook/RSS — when a new blog post is published
- AI Agent — generates summary appropriate for each platform
- Twitter — posts tweet
- LinkedIn — publishes post
- Telegram — sends to company channel
6. Automatic Support Ticket Responses
Nodes:
- Webhook — receives new ticket
- AI Agent — analyzes and classifies ticket (technical/billing/general)
- IF/Switch — routes based on classification
- AI Agent — generates suggested initial response
- Email — sends response to client (or saves as draft)
7. CRM Data Synchronization
Nodes:
- Cron — every hour
- HTTP Request — fetches new clients from CRM
- Function — processes data and normalizes format
- Google Sheets / Airtable — updates the list
- Email — daily report of changes
8. Customer Review Sentiment Analysis
Nodes:
- Cron — daily
- HTTP Request — collects new reviews
- AI Agent — analyzes sentiment (positive/negative/neutral)
- IF — negative reviews sent to team immediately
- Google Sheets — stores all results
- Slack — daily summary
9. Automatic PDF Report Generation
Nodes:
- Cron — weekly
- HTTP Request — collects data from API
- Function — calculates statistics
- HTML to PDF — generates report
- Email — sends report to management
- Google Drive — saves a copy
10. Competitor Price Monitoring
Nodes:
- Cron — daily
- HTTP Request — visits competitor pricing pages
- HTML Extract — extracts prices
- Function — compares with your prices
- IF — if competitor price changed by more than 10%
- Slack — instant notification
Performance Tips
- PostgreSQL database instead of SQLite for production environments
- Parallel execution limit — set
EXECUTIONS_PROCESS=mainif memory is limited - Prune old executions — enable
EXECUTIONS_DATA_PRUNE=true - Backup — save the
/home/node/.n8ndirectory daily
Getting Started
n8n on a Saudi server from CLOUD (cloud.net.sa) gives you unlimited automation at a fixed cost. The Growth plan (2 vCPU, 4 GB RAM) is sufficient for most use cases. The template is ready for one-click installation — choose a VPS plan and add the n8n template at checkout.
Get Started
Ready to run AI on your own server? Explore AI hosting solutions or configure your server with the specs you need.


