Automate Order and Onboarding Workflows Without Replacing Systems
Keep your ERP, CRM and HR tools as the systems of record and add a thin integration layer beside them. Here is how to hook in, what the layer does, and how to make it safe to run unattended.
2026-12-04 · By Filip Lauc
You can automate most order and onboarding workflows without replacing the systems that run them. The trick is to leave your ERP, CRM, shop and HR tools as the systems of record, and add a thin layer next to them that listens for events, moves data between them and hands exceptions to a person. Automating order and onboarding workflows without replacing existing systems is mostly an integration problem, not a rebuild. Done well, nobody retypes orders or chases signup paperwork, and nothing people rely on changes underneath them.
Automating order and onboarding workflows without replacing existing systems: the short version
Keep every existing system as the owner of its own data, connect to it through the best integration point it offers, and put the workflow logic in a small separate service that translates between systems, retries safely and routes anything unusual to a human queue instead of guessing.
That sentence hides three decisions. First, which system owns which record: orders belong to the ERP or shop, customers to the CRM, employees to the HR system. The automation layer reads and writes through them and never becomes a competing copy of the truth. Second, where the logic lives: scattered across a zap, an ERP script and a spreadsheet macro, nobody can tell why an order got stuck. Third, what happens when something does not fit: handle the common case completely and be explicit about the rest.
This is the same idea Microsoft's architecture guidance calls the Strangler Fig pattern: change a system gradually in a way that "allows the existing application to continue functioning". The difference is that for most small and mid-sized businesses, the goal is not to retire the old system at all. You are wrapping it, not strangling it.
Pick the integration point each system actually offers
Use the cleanest hook a system gives you, in this order: a documented API with webhooks, then a database or change feed you are allowed to read, then structured exports and email, and only as a last resort automation that clicks through the user interface.
APIs and webhooks. Most modern shops, CRMs and HR platforms push an event when something happens and accept writes through an API. This is the best case: near real time and supported by the vendor.
Database or change data capture. Older on-premise systems often have no usable API, but their data sits in a SQL database. Microsoft's guidance notes that even when logic is buried in stored procedures, "the database itself can send messages to new services without changing the application code", for example through triggers or change data capture. Read access is usually fine. Writing straight into another product's tables is how you void a support contract, so writes should still go through whatever official import the system has.
Exports, files and email. Many orders still arrive as emailed PDFs, and many supplier systems only produce a nightly CSV. Both are legitimate integration points. Parse them into a structured record, validate it, and treat anything the parser is not sure about as an exception, not as data.
UI automation. Scripts that click through screens work until someone moves a button. Use them as a temporary bridge only.
We wrote up the failure modes of that first connection in what breaks first when you connect a manual business workflow to an API, and they are worth reading before you choose a hook.
Put a thin translation layer in the middle
The middle layer translates each system's data model into one clean model of your process, runs the workflow steps and records what it did. It should not hold business data of its own beyond what it needs to track progress, and it should never become a hidden system of record.
Domain-driven design has a name for the translation part: an anti-corruption layer, which "translates communication between the two systems" so that you "keep one system unchanged without compromising the design" of the other. In practice that means your ERP can keep calling a customer a "debtor" with a six-digit account code while your workflow code works with a plain customer object. When the ERP changes, you fix one mapping, not every step.
The same guidance lists the honest costs: the layer "adds latency", "adds an extra service that you must manage and maintain", and needs its own monitoring. It also warns against putting business rules into the translation itself. We keep those apart: mapping code in one place, workflow steps in another.
Whether that layer is n8n, Zapier or a small Node.js service is a separate question. Tools suit linear flows with a few steps; once you need stateful retries, branching on data from three systems or an audit trail, custom code is usually cheaper to live with. Our Odoo and headless storefront write-up shows the same principle on the shop side: the new piece is allowed to be modern precisely because the ERP stays in charge.
What an automated order workflow looks like
A typical automated order flow captures the order from any channel, normalises it into one format, validates it against stock and customer data, writes it into the ERP through its official interface, and then pushes status updates back to the customer, all with a named owner for every exception.
Concretely, the steps are usually:
- Capture. A shop webhook, a parsed email or PDF, or a supplier file row becomes a raw order event, stored with its original payload.
- Normalise. The translation layer maps it to your order model: customer, lines, prices, delivery address, requested date.
- Validate. Known customer, real product codes, agreed prices. Failures go to a review queue with the reason attached.
- Write to the system of record. The order is created in the ERP or shop backend through its API or import, never by editing tables directly.
- Notify and follow. The customer gets a confirmation, the warehouse a task, and status changes flow back from the ERP as events.
Step 4 must happen exactly once, even though networks fail mid-request and webhook providers resend events. More on that below.
What an automated onboarding workflow looks like
Onboarding automation starts from one trigger, usually a signed contract, a paid first invoice or a new hire added in the HR system, and fans out into accounts, documents, access and a welcome sequence across several tools, while tracking which steps are done and which are waiting on a person.
For customers, the trigger is often a deal marked won in the CRM: the workflow creates the billing record, provisions a product account, sends the welcome documents and opens a checklist for steps that need a human, such as a kick-off call. For employees, a new hire in the HR system triggers accounts, equipment requests and a first-week schedule.
Unlike orders, onboarding runs over days, with steps waiting on a signature or an ID check. The workflow must remember where each person is, survive restarts, and show a status view ops can read without opening five tools. That view often replaces the "where are we with this client?" message thread.
Make it safe to run unattended
An automation is only finished when it can fail without anyone noticing too late. That takes four things: idempotent writes, a reliable way to record outgoing events, regular reconciliation against the source systems, and alerts that reach a person with enough context to act.
Idempotency. Every write should carry a key so that a retry cannot create a second order or a second invoice. Stripe's documentation explains the idea clearly: with an idempotency key "you can safely repeat the request without risk of creating a second object or performing the update twice". Build the same check into your own layer where a provider lacks one.
Reliable events. If your layer updates its own state and then sends a message, a crash in between loses the message. The transactional outbox pattern fixes this by storing the outgoing message in the same database transaction as the change and publishing it afterwards. Its trade-off is that a message may be published more than once, which is one more reason consumers must be idempotent.
Reconciliation. Do not assume every event arrives. Shopify's own guidance says plainly that webhook delivery isn't always guaranteed, that events can arrive out of order, and recommends reconciliation jobs that periodically fetch recent changes. A nightly job that compares orders in the shop with orders in the ERP catches what the real-time path missed.
Monitoring people can act on. "Workflow failed" is noise; "order from customer X failed because product code Y is unknown, original email attached" gets fixed quickly. If the review queue keeps growing, the automation is pushing work back onto people.
Before committing budget, put numbers on it. Our cost per executed task model is the way we decide whether a process is worth automating at all, or whether another ops hire is cheaper for now.
Key Takeaways
- • Keep the ERP, CRM, shop and HR system as the owners of their data; the automation layer connects them and owns only workflow state.
- • Use the best integration point each system offers: APIs and webhooks first, database or change feeds next, files and email after that, UI automation only as a bridge.
- • Keep translation (mapping between data models) separate from workflow logic so a change in one system means one fix.
- • Make every write idempotent, reconcile against the source systems regularly, and route exceptions to a human queue with context.
- • Order flows run in seconds and must happen exactly once; onboarding flows run over days and need visible, durable state.
Frequently Asked Questions
Should I use n8n or Zapier, or build a custom integration?
Use n8n or Zapier when the flow is linear, has a few steps and failures are cheap to fix by hand. Move to custom code when you need retries that remember state, branching on data from several systems, idempotent writes, or an audit trail. Many teams start with a tool and replace the busiest flow with code once it carries real volume.
How do I automate order intake from emails and PDFs?
Collect the emails in one mailbox, extract the attachment, and parse it into a structured order with a template or a language model, then validate it against your customer and product data before it touches the ERP. Anything the parser is unsure about should go to a review queue with the original document attached. Keep the raw file with every order so mistakes can be traced.
What should a small business automate first?
Start with work that is frequent, repetitive and rule-based, such as retyping orders or creating the same accounts for every new client. Avoid rare, judgement-heavy work first. A good first project shows measurable hours saved within a month.
How do I monitor automated business workflows?
Track three things: how many runs succeed, how many land in the exception queue, and how old the oldest open exception is. Send alerts with enough context for a person to fix the problem without digging through logs. Add a periodic reconciliation job that compares the source and target systems, because missed events do not raise errors on their own.
If you want a second opinion on where your own order or onboarding process could be automated around the tools you already pay for, Jaspero builds these integration layers as part of our process automation work, usually starting with one workflow and a clear cost case before anything else.
Sources
Written by
Filip Lauc
CEO, Jaspero
Filip Lauc is the CEO of Jaspero, a software development agency based in Osijek, Croatia. A full-stack JavaScript developer with over a decade of experience across Angular, Svelte, and Node.js, he leads Jaspero's work as a long-term embedded engineering partner for clients like GlycanAge, where his team has served as the dedicated engineering team for six years.
Let's Build Together
Your vision,
our expertise.
From AI integration to full-stack development, we turn ambitious ideas into products that perform.