Fixed rules first, a model only where judgement is needed
Most back-office steps need no AI: copy a won deal from HubSpot into Xero, open a task when a form arrives, remind a customer before an appointment, post a daily summary to Slack. Fixed rules are predictable, cheap to run and easy to test, and you can explain exactly why each run did what it did.
A model earns a place where the input is unstructured, such as sorting free-text emails or pulling fields from a PDF. Even then it is one step inside a fixed flow, with its output checked before the next step uses it. When the path itself must change case by case, you are looking at an agent; see AI agent development. The glossary entry on workflow automation covers the basics.
Choosing between n8n, Make, Zapier and custom code
| Option | Good fit | Watch for |
|---|---|---|
| Zapier | Straightforward app-to-app steps, a very wide connector catalogue, flows business users can read | Pricing that grows with the number of tasks run, and long multi-branch flows that become hard to follow |
| Make | Visual scenarios with routers, iterators and data mapping between many apps | Large scenarios that are hard to review, and usage-based pricing at high volume |
| n8n | Teams that want to self-host for data residency, mix visual steps with JavaScript or Python, and keep workflows as files | If you self-host, you own upgrades, backups, security patches and uptime |
| Custom code | High volume, complex logic, updates across several systems, anything customers depend on | Needs developers to change it, and a proper deployment and monitoring setup |
Many teams run more than one: Zapier for simple notifications, n8n or code for the flows that move money or customer data. Our comparison of n8n, Make and Zapier goes deeper on hosting and pricing models.
Triggers: how a run starts
- Webhooks push an event the moment it happens. Verify the sender's signature, reply quickly and queue the work, because many senders retry when a reply is slow, which creates duplicates.
- Polling checks a system every few minutes for new records. Keep a cursor, such as the last modified time seen, so records are neither missed nor fetched twice.
- Schedules run batches, such as a nightly sync. Add a check that alerts when a scheduled run did not happen, since a silent skip looks like a quiet day.
- Manual triggers, such as a button in the CRM, suit steps a person should start deliberately.
Events do not always arrive in order. An “order updated” event can land before “order created”, so a well-built flow fetches the current record rather than trusting the event's contents. The webhook glossary entry explains the mechanism.
Retries and idempotency
Failures come in two kinds. Temporary ones, such as timeouts, rate limits and server errors, should be retried with a growing delay and a limit. Permanent ones, such as a rejected tax code or a missing customer, will fail the same way every time, so they go straight to a person.
Retries create a second risk: doing the same thing twice. Idempotency means running a step again has no extra effect. In practice:
- Use the source event's ID as an idempotency key and record each key once it has been processed.
- Create or update by an external reference, so a repeated “new invoice” event finds the invoice it already made.
- Design multi-step flows so a rerun resumes at the failed step instead of repeating the ones that succeeded.
Test every automation by sending it the same event twice. If anything is created twice, it is not ready.
Error queues and alerts someone reads
Take a hypothetical wholesaler whose Shopify orders flow into its accounting system. One afternoon the accounting system starts rejecting orders because of a new tax rate. Without an error queue, those orders sit in a run history nobody opens, and the gap appears at month end. With one, each failed run lands in a list with its input, the error and a button to replay it after the fix.
- Send alerts to a channel with a named owner, not to everyone.
- Group repeated failures, so one outage sends one alert, not four hundred.
- Send a short daily summary of runs, failures and items waiting, so silence means health rather than a broken alert.
Exceptions that need a decision, not a replay, deserve their own design; our article on handling automation exceptions covers queues, owners and playbooks.
Ownership, credentials and documentation
Every automation needs an owner who answers for it, and a short record your team can read without opening the tool:
- What it does and why, in one paragraph.
- Its trigger, the systems it reads and writes, and the account it runs as.
- What to do when it fails, and who to call.
- When it was last reviewed, and by whom.
Run automations under a service account with the narrowest permissions each system allows. A person's login breaks when they leave and gives the flow all of their access. Keep credentials in the platform's credential store or a secrets manager, and export workflow definitions, which n8n and Make can save as files, into version control so changes can be compared and reversed.
When to move from no-code automation to code
No-code platforms are often the right start. Signs you have outgrown one:
- Usage-based pricing has become a significant cost as volume grows.
- The logic needs automated tests, code review and a history of every change.
- A flow must update several systems together or not at all.
- A security review or data residency rule asks where data is processed and stored, and the answer is unclear.
- Customers now depend on the flow, so a failure is a product outage.
Move one flow at a time, starting with the riskiest. Run the new version beside the old one on the same events and compare results before switching over; simple notifications can stay where they are. If the no-code platform also runs your product, our no-code service covers that path.