n8n for Beginners: Automate Anything Without Code
Published May 2026n8n is Zapier, but free and self-hosted. Connect your apps, build workflows, and automate repetitive tasks. This guide gets you from zero to your first workflow in 10 minutes.
What Is n8n?
n8n (pronounced "n-eight-n") is a workflow automation tool. It has 400+ built-in integrations for apps like Gmail, Slack, Notion, Google Sheets, and AI APIs. You build workflows visually by connecting nodes — no coding required.
Being self-hosted means your data never leaves your server. No third-party sees your emails, files, or API keys.
Installation
The easiest way is Docker:
docker run -it --rm \ --name n8n \ -p 5678:5678 \ -v ~/.n8n:/home/node/.n8n \ n8nio/n8n
Or install via npm:
npm install -g n8n n8n start
Open http://your-vps-ip:5678. Set up a username and password immediately.
Key Concepts
- Workflow: A sequence of connected nodes that perform a task
- Node: A single step (e.g., "Send Email", "Filter Data", "HTTP Request")
- Trigger: What starts the workflow (time, webhook, app event)
- Credentials: Stored API keys and passwords, encrypted on your server
- Execution: One run of a workflow
Your First Workflow: Daily Weather Email
Let's build something useful. Every morning at 8 AM, get an email with the weather.
Step 1: Add a Schedule Trigger
- Click "Add first step"
- Search for "Schedule Trigger"
- Set it to
0 8 * * *(8:00 AM daily)
Step 2: Fetch Weather Data
- Add an HTTP Request node
- Method: GET
- URL:
https://api.open-meteo.com/v1/forecast?latitude=27.7&longitude=85.3¤t_weather=true - (Change coordinates to your location)
Step 3: Format the Message
- Add a "Set" node
- Create a field called
message - Value:
Today's temperature: {{ $json.current_weather.temperature }}°C
Step 4: Send Email
- Add an Email (SMTP) node
- Connect your Gmail or any SMTP server
- Set "Text" to
{{ $json.message }}
Step 5: Save and Test
- Click "Save"
- Click "Test Workflow"
- Check your inbox
Troubleshooting
- "Connection refused" — Check firewall rules; port 5678 must be open or use SSH tunnel
- "Invalid credentials" — Re-add your API key in the Credentials section
- Workflow runs but no email — Check spam folder; Gmail may block SMTP from new servers
5 Workflows to Build Next
- Content pipeline: RSS feed → AI summary → Publish to blog
- Lead alert: New form submission → Send Telegram message → Add to Google Sheet
- Social auto-post: New blog post → Post to Twitter/X and LinkedIn
- Backup: Daily database dump → Upload to Google Drive
- Price tracker: Scrape product page → If price drops, send email
n8n vs Zapier vs Make
| Feature | n8n | Zapier | Make |
|---|---|---|---|
| Self-hosted | Yes | No | No |
| Free tier | Unlimited (self-host) | 100 tasks/mo | 1,000 ops/mo |
| Code nodes | JavaScript/Python | Python (paid) | Limited |
| Integrations | 400+ | 5,000+ | 1,000+ |
| Ease of use | Medium | Easy | Medium |
Security Tips
- Change the default port or restrict access via firewall
- Use a strong password or SSO
- Store credentials in n8n's built-in vault, not in workflow JSON
- Enable workflow execution logging but rotate logs regularly
n8n is the single most valuable tool on my VPS. Once you build your first workflow, you will find automation opportunities everywhere.