- Answer
Building a custom n8n workflow: webhook, code, and what it costs to run
If your process has outgrown app-to-app automations, n8n’s Webhook node starts a workflow on events from your own apps and services. A Code node then runs your own JavaScript or Python as a step. Plans are priced by monthly workflow executions, not by complexity.
The steps that make a workflow custom
- Add the Webhook node as your trigger. It creates a webhook URL that receives data from apps and services when an event occurs, then starts the workflow with that data. That’s useful for a service with no dedicated app trigger node.
- Add a Code node. Your custom JavaScript or Python runs as a step in the workflow.
- Publish the workflow. A workflow that starts with a trigger node or Webhook node must be published to run automatically. Unpublished, you run it manually. Publishing also registers the node’s production URL.
What it costs to run
All plans include unlimited users and workflows and every integration. An execution is a single run of your entire workflow, however many steps it has or however much data it processes. So extra steps or code don’t raise the count.
As of November 19, 2026, the pricing page lists these options.
- Starter: 20€ a month, billed annually, with 2.5K workflow executions and unlimited steps.
- Pro: 50€ a month, billed annually, with 10K workflow executions and unlimited steps.
- Community Edition: a standard, self-hosted version on GitHub. n8n’s documentation lists it as free, with almost the complete feature set.
Cloud or self-hosted: what changes for your code
If you self-host n8n, you can import built-in and external npm modules in the Code node. On n8n Cloud, you can’t import external npm modules.
So a code step that relies on an external npm package rules out Cloud.
Our take
We’d settle the code question before the hosting question. List what your Code node has to import. If that includes an external npm package, the choice is made: you self-host. If it doesn’t, we’d count the events your systems send in a month and hold that against the Starter and Pro quotas.
About VelocityStack
VelocityStack builds automation flows, AI agents and integrations for small and growing teams. We build custom workflows around how your business runs: the triggers from your own systems, the code steps, the connections to your CRM and tools, and the hosted or self-hosted setup. You approve a fixed quote before work starts, and you get a documented handover.
See how we build automation workflows or book a 20-minute call.
Sources
- Webhookdocs.n8n.io
- Using the Code nodedocs.n8n.io
- Pricingn8n.io
- Create and run workflowsdocs.n8n.io
- Choose how to use n8ndocs.n8n.io
Found an error? Tell us.