
Workflow automation with n8n: a getting started guide
Getting started with n8n: cloud or self-hosting, triggers and nodes, a first workflow, error handling and what to settle before you run it in production.
In short: n8n is a workflow automation tool that lets you connect applications through a visual editor and automate processes, for example from a form submission to a CRM entry. You can use n8n as a cloud service or host it yourself, which is attractive for companies with strict data protection requirements. To begin, a simple flow with a trigger, two or three steps and proper error handling is enough.
What n8n is and what it is good for
n8n comes from Berlin and is published under a "fair-code" licence, the Sustainable Use License. The source code is open to read, and you may self-host n8n freely for internal purposes. The main restriction is reselling n8n as a commercial service to third parties.
A workflow consists of nodes that run in sequence. The first node is a trigger: an incoming webhook, a schedule, a new email or an event in a connected application. Actions follow, such as fetching data, transforming it, filtering it and sending it to another system. Ready-made nodes exist for many common services. Anything else you can reach through the HTTP Request node, as long as the target system has an API.
n8n is strongest with workflows that involve branches, loops and custom logic. In the Code node you can write JavaScript or Python when needed. That places n8n between simple tools like Zapier and a fully custom integration. We discuss when each makes sense in no-code vs. custom development.
Cloud or self-hosted
n8n Cloud is the quickest to set up, with updates, backups and availability handled by the vendor. Self-hosting pays off when data should not leave your infrastructure, when you connect internal systems without public access, or when you run a large number of executions.
Docker is enough to try it out:
docker volume create n8n_data
docker run -it --rm --name n8n -p 5678:5678 \
-v n8n_data:/home/node/.n8n \
docker.n8n.io/n8nio/n8n
The editor is then available at http://localhost:5678. Production needs more: PostgreSQL instead of the default SQLite database, HTTPS through a reverse proxy, a fixed encryption key for stored credentials, regular backups and a plan for updates. Under heavy load, queue mode with Redis distributes executions across several workers.
Your first workflow: contact form to CRM
A typical first project is processing contact requests:
- A Webhook node receives the data from your website form.
- A node checks required fields and cleans the input, for example lowercasing email addresses.
- A CRM node looks up whether the contact exists and creates it if not.
- Another node notifies the sales team by email or in Slack or Microsoft Teams.
Test each step on its own. After every node, n8n shows the data it produced, and you can pin test data so you do not have to submit a new form each time. Our post on building intelligent workflows with n8n and AI APIs shows how to extend flows like this with AI, for example to classify a request automatically or draft a reply.
Error handling and operations
A workflow that fails silently is worse than none, because everyone relies on it. Create a dedicated error workflow with the Error Trigger node and set it in your workflows' settings. It notifies you as soon as an execution fails, with the workflow name and the error message.
More ground rules from practice:
- Store secrets only as credentials, never in plain text inside nodes.
- Enable retries on calls to external APIs, since timeouts happen.
- Build workflows so that a duplicate call does not create a duplicate record.
- Keep separate test and production environments for important flows.
- Export workflows as JSON and keep them under version control so changes stay traceable.
Frequently asked questions (FAQ)
Can n8n be used in a GDPR-compliant way?
Yes, if you set it up accordingly. Self-hosted on a server in Germany or the EU, you keep control of the data. Also check the services your workflows call, because data flows there as well.
Do I need programming skills for n8n?
Not for simple flows. As soon as you need to transform data, connect APIs without a ready-made node or handle edge cases, basic JavaScript and comfort with JSON help a lot.
Which processes are good to start with?
Frequent, rule-based tasks involving few systems: moving enquiries into the CRM, filing invoices, sending reports. You will find more examples in AI automation for SMEs.
Conclusion
n8n is a good entry point into automation if you start small and pay attention to error handling and clean operations from the beginning. One reliable workflow builds more trust in the team than ten half-finished ones. If you want to run n8n in production or build more complex flows with AI, talk to us about workflow and AI automation.
Related posts
- AI Agents for Business: A Practical Introduction
How AI agents differ from chatbots and classic automation, where they help small and mid-sized companies, and how to introduce a first agent safely.
- Building custom AI chatbots: from GPT prototype to production
What makes an AI chatbot production-ready: grounding with RAG, guardrails, human hand-off, test sets, monitoring and GDPR for business use.
- LLM integration for enterprise: architecture and best practices
How to integrate language models into business software safely: architecture, RAG, structured outputs, data protection, cost control and quality assurance.
- AI automation for SMEs: how to find the hours you lose
How small businesses use a simple time audit to find the processes worth automating with AI, and how to measure the time they actually get back.