Manual lead processing from CRM to Telegram and email consumes 3–4 hours a day for a manager, and manual data transfer leads to 20% errors and lead loss. n8n — an open-source self-hosted platform — solves this: you build workflows that automatically transfer data between services without constant supervision. Over 6 years, we have deployed 30+ projects on n8n, integrating with AmoCRM, Bitrix24, SendGrid, Telegram, PostgreSQL, and other systems. Today we will set up automation for your business from scratch or improve an existing one.
How n8n simplifies service integration
A workflow in n8n is assembled like a constructor: trigger (Webhook, Cron, DB event) → actions (HTTP, email, Slack, CRM) → transformations (code, conditions, loops). Unlike Zapier, data stays on your server — critical for financial and medical data. The code node allows complex logic like XML parsing or commission calculations. When processing large volumes, n8n runs 2–3 times faster than cloud alternatives because data doesn't leave your server — this cuts operational costs by up to 70%.
| Criteria | n8n | Zapier | Make (Integromat) |
|---|---|---|---|
| Self-hosted | ✅ Yes (open-source) | ❌ Cloud only | ❌ Cloud only |
| Operation limit | ❌ No | ✅ Yes (per plan) | ✅ Yes (per plan) |
| Code node | ✅ JavaScript/Python | ❌ Only Zapier Code (JS) | ✅ but less flexible |
| Confidentiality | ✅ Full control | ❌ Data at provider | ❌ Data at provider |
Why choose self-hosted n8n?
Self-hosted n8n gives independence from third-party services. You decide when to update, what memory limit to set, and which data to log. For enterprises, this is often the only option due to compliance. We help with installation on Docker, Nginx reverse proxy setup, SSL, and monitoring via Prometheus. Typical automation scenarios:
- New user in DB → welcome email + task in CRM + Slack notification
- Incoming webhook → data processing → Google Sheets write + SMS sending
- Cron job: daily report from PostgreSQL → formatting → email send
- New order in WooCommerce → invoice in 1C → manager notification
How are errors tested and caught?
Each node is configured with the 'Continue On Fail' option; on error, a separate Error Workflow triggers. For example, when an email sending via SendGrid fails, the workflow logs the event to DB and sends an alert to Slack. This architecture guarantees no event loss. We test error handling on every project, including connection drops and API timeouts.
Typical mistakes when setting up n8n
- 'Continue On Fail' not set — workflow stops on error, data lost.
- No Error Workflow — you won't know about a failure in time.
- Ignoring API rate limits — exceeding leads to blocking.
- Storing credentials in nodes — use environment variables for security.
- No monitoring — you miss a stopped workflow for a long time.
We check these points on every project.
How we design and implement workflows
Workflow architecture
A workflow consists of nodes: Trigger (Webhook, Cron, Database polling), Action (HTTP Request, Send Email, Slack, DB operations), Transform (Code, Set, Merge), and Logic (If, Switch, Loop). Each node is configured via UI or JSON.
Example: onboarding automation
[Trigger: Webhook POST /signup] | [Node: Validate email] ──error──► [Node: Slack #errors] | [Node: PostgreSQL INSERT user] | [Node: Split in Batches] | ┌───┴────────────────────────┐ ▼ ▼ [Node: SendGrid [Node: HubSpot Welcome Email] Create Contact] | | └────────────┬───────────────┘ ▼ [Node: Slack #new-users notify] Code Node (JavaScript):
const items = $input.all(); return items.map(item => { const user = item.json; const registrationDate = new Date(user.created_at); return { json: { ...user, displayName: `${user.first_name} ${user.last_name}`.trim() || user.email, isWeekendRegistration: [0, 6].includes(registrationDate.getDay()), utmSource: user.utm_source || 'organic', welcomeEmailSubject: user.plan === 'pro' ? `Welcome to Pro, ${user.first_name}!` : `Welcome, ${user.first_name}!` } }; }); HTTP Request Node (JSON):
{ "method": "POST", "url": "https://api.sendgrid.com/v3/mail/send", "authentication": "headerAuth", "headers": { "Authorization": "Bearer {{ $env.SENDGRID_API_KEY }}" }, "body": { "personalizations": [ { "to": [{ "email": "={{ $json.email }}" }], "dynamic_template_data": { "name": "={{ $json.displayName }}", "plan": "={{ $json.plan }}" } } ], "from": { "email": "[email protected]" }, "template_id": "d-abc123" } } Error handling
Enable 'Continue On Fail' in each node + a separate Error Workflow branch for alerts. Example:
[Main workflow] | ────┼──── error handler branch ────► | | [Node: Continue on fail = true] [Node: Slack alert] | [Node: Log to DB] This ensures no event is lost. We test error handling in every project.
What’s included in the work and timelines
| Stage | Duration | Result |
|---|---|---|
| Analysis | 1–2 days | Process diagram and trigger selection |
| Design | 1–2 days | Agreed workflow logic |
| Implementation | 2–5 days | Configured nodes and code |
| Testing | 1–2 days | Edge case report |
| Deployment | 1 day | Documentation and team training |
| Warranty | 30 days | Post-launch support |
A simple workflow (3–5 nodes) takes 1 day. A complex workflow with conditions, transformations, and error handling takes 3–5 days. The cost is calculated individually for your project.
Order workflow setup — contact us for pre-project analysis. Get a consultation on integrating n8n into your infrastructure. We guarantee stable operation and post-launch support.







