n8n or Cloudflare Workers? What we automate where, and why polling belongs in a cron

n8n is a visual automation tool, Cloudflare Workers run your own code on a schedule or on request. Where they overlap, a comparison table, and the rules we use to keep n8n inside its execution budget.

Published · 4 min read · Flowsmith editorialAcademy toolsn8nCloudflare

On the left a dark board of connected rounded nodes, on the right a compact block with a small clock face without numbers; a thin blue line links the two.
Illustration drawn for this article. No text in the image, so it works in every language.
In short
  • n8n is a visual automation tool: boxes on a canvas, hundreds of ready-made integrations (mail, Drive, accounting, CRM). Great for business flows a person should be able to read.
  • Cloudflare Workers run your own small programs on request or on a schedule (Cron Triggers). Great for APIs, webhooks and anything that runs often.
  • Our rule: regular checks and polling go to server crons, n8n gets called only when there is real work. That keeps n8n well inside its monthly execution budget.
  • Most good systems use both: a Worker as the doorman, n8n as the clerk who does the paperwork.

Where to start (direct links): n8n · Cloudflare — sign up · Cloudflare Workers — docs

Two ways to automate: a visual workflow and a small piece of code on a schedule
  • n8n: a visual workflow of connected steps
  • every run counts towards the monthly execution plan
  • Worker: a small program
  • Cron Trigger: runs it on a schedule

When people ask which automation tool to pick, they usually expect one name. In our stack the honest answer is two, with a clear border between them. We run close to a hundred workflows on n8n and a growing set of Workers on Cloudflare. This article explains where each one shines, where they overlap, and the budgeting rule that decided the border for us.

What n8n is good at

  • Connecting services. Read a mailbox, file an attachment to Google Drive, create a record in the accounting system, post a message. Each step is a ready node with authentication handled.
  • Readable business logic. A colleague can open the canvas and follow what happens to an invoice or an enquiry, box by box.
  • AI steps in the middle. Classify an e-mail, draft a reply, extract fields from a PDF, then continue with ordinary steps.
  • Execution history. Every run is logged with its data, which makes debugging a failed flow straightforward.

The cost model is the catch: on n8n Cloud you pay for executions, and every run of a workflow is one, whether it did anything or not.

What Workers are good at

  • Running often and fast. A Worker answers in milliseconds and the free plan includes 100,000 requests a day (as of 1 December 2026).
  • Schedules. Cron Triggers run a Worker every minute, hour or night. The free plan includes five per account.
  • Being an API. Forms, webhooks from other services, small endpoints your website or an AI agent calls.
  • Living next to your data. A Worker reads and writes D1 databases and R2 storage directly, as described in Cloudflare for a small business.

The price is that a Worker is code. With an AI agent writing and testing it, that is far less of a barrier than it used to be, but it is less visual than a canvas.

Side by side

Aspectn8nCloudflare Workers
How you buildVisual canvas, nodesCode (JavaScript/TypeScript), deployed from Git
IntegrationsHundreds ready to useWhatever you call over HTTP yourself
Best forMulti-step business flows, AI steps, filing, draftingAPIs, webhooks, frequent checks, schedules
Cost driverExecutions per monthRequests and CPU time (large free allowance)
SpeedSeconds per run is normalMilliseconds
Who can read itAnyone who opens the canvasDevelopers, or an AI agent explaining it
Data storageThrough integrationsD1, R2, KV directly

In depth: the budget rule that drew the border

Our n8n plan has a hard ceiling of 50,000 executions a month, and our target is to stay around 40,000 so there is headroom for real spikes. When we looked at where executions went, a large share was flows that woke up on a timer, checked something and found nothing to do.

The arithmetic is simple. A flow that runs every 15 minutes is 96 runs a day, almost 3,000 a month, for one check. Ten such checks would eat most of the budget before a single invoice is filed. So the rule became:

  1. Scheduled checks and polling run as server crons (Cloudflare Cron Triggers), not as n8n schedules.
  2. The cron does the cheap part: is there a new message, did a value change, is a backup older than it should be.
  3. Only when there is real work does it call the n8n flow, through its webhook, with the data the flow needs.

One example from our own operation: the contact-form pipeline used to poll every 15 minutes. It now gets a ping from a server cron only when a submission is waiting. Same result for the customer, a fraction of the executions. A small watchdog also reports unusual spikes in n8n usage, so a misbehaving flow shows up the same day, not on the invoice.

Where they overlap, and how we decide

  • Webhooks. Both can receive them. If the handling is short and frequent, a Worker. If it starts a business process with several systems, n8n, possibly behind a Worker that filters noise.
  • Simple API calls. Both can do them. If it runs more than a few times an hour, a Worker.
  • AI steps. Both can call a model. n8n wins when a person should see and adjust the flow; a Worker wins inside an API that must answer quickly.

A decision checklist

  • Does it run on a timer more than a few times a day? → Worker cron, call n8n on demand.
  • Does it connect three or more business services? → n8n.
  • Must it answer a website or an agent in under a second? → Worker.
  • Should a non-developer colleague be able to follow it? → n8n.

Where to go next

If n8n is new to you, our comparison n8n vs Zapier and n8n Cloud or self-hosted cover the choice of plan. In the Academy, your first automation builds a flow end to end, and models, limits and cost explains how to think about running costs before they surprise you.

Frequently asked questions

Is n8n or Cloudflare Workers better for automation?

They solve different parts. n8n is best for flows that connect many services with ready-made integrations and that a person should be able to read on a canvas. Workers are best for code that must run often, fast and cheaply: APIs, webhooks, scheduled checks.

Why move polling out of n8n?

Because every run of a flow counts as an execution against the plan. A check every 15 minutes is almost 3,000 executions a month for one flow, usually with nothing to do. A Worker cron does the cheap check and calls n8n only when there is real work.

Can a beginner write a Cloudflare Worker?

With an AI agent, yes. A Worker is a small JavaScript file; Claude can write it, test it and deploy it. n8n is still easier to read for people who prefer a visual canvas.

Do you use both together?

Yes. A typical pattern is a Worker that receives a webhook or runs on a schedule, checks whether anything changed, and then triggers an n8n flow that does the multi-step business work.

Written from our own production systems by the Flowsmith editorial team, with AI assistance.

Want this running in your company?

Flowsmith designs and operates automations like this for small and mid-sized teams — with a person approving anything that leaves the building.

More from the blog