All case studies

Manufacturing use case

From the order to the shelf, and back to the question

How a finished good is released to the floor, allowed to move only when people and quality are ready, packed so a retailer can receive it, and answered for after it is sold.

6 line stages + caren8n · Trigger.dev · ZapierLMS as a gate

1. At a glance

This is a design use case for a mid-size discrete manufacturer. The hours below are an illustrative model of coordination time. They are not results from a named client.

1Record of the unit, from order to care

6Stages on the line, then care after the sale

3Orchestrators, each with one job

LMSA gate on the line, not a side catalog

2. The situation

A mid-size plant makes a finished good that retailers expect to arrive labeled, documented, and traceable to a lot. The product itself is understood. The record of the product is not. Planning sits in the ERP. The floor keeps progress in a second place. Training sits in a learning system the station does not consult. After the sale, support answers from memory and from whichever system the agent thinks to open.

Time is not lost in one dramatic stoppage. It is lost in the handoffs. A work order waits in email. An operator runs a procedure that was revised last week. A carton leaves without the retail document set. A customer asks about a finish or a missing part, and someone searches three systems for the batch.

Today

Four places, no shared unit

Each team updates its own copy. Hand-offs wait in email.

This design

One identity, released step by step

The floor, the learning gate, and support read the same record.

3. What we change

We treat the life of the unit as one path with four duties: the people on it are current, the unit moves only when the previous step released it, it is retail-ready before it is called finished, and a question after the sale starts from that same record.

01

People are current

The learning system gates the routing before the first cut.

02

The unit moves by release

Each station advances only because the previous one finished.

03

Retail-ready before finished

The carton closes only when the document set exists.

04

Care starts from the record

After-sale answers begin with the same unit identity.

4. Where the hours go

Illustrative hours of coordination around one order. Production time on the machine is largely unchanged. The design removes waiting, re-keying, and searching.

29h today5.9h this design−80% coordination
Hours today, mostly waiting and re-keying Hours in this design
Plan
6h
1.5h
Train
4h
0.5h
Make
3h
0.5h
Inspect
8h
2h
Pack
5h
1h
Support
3h
0.4h

Illustrative design model for one order at a mid-size discrete plant. Unit: hours of coordination, not machine cycle time. Scale runs to 8 hours. Not measured client data.

5. Follow one unit

The same unit keeps one identity from the order through dispatch. Nothing on this path is a status someone types in after the fact. Read it top to bottom, or jump to a stage from the menu on the left.

Stage 01 · OrderERP · n8n

The order becomes work

A confirmed order is accepted only when the bill of materials, credit, and capacity agree.

  1. 1Sales order confirmedERP event
  2. 2Three checksBOM · credit · capacity
  3. 3Manufacturing orderRouting named by n8n
  4. 4Released to the floorFully specified job

Planning stops living in inboxes. When a sales order is confirmed, n8n reads the ERP event and runs three checks: the bill of materials is complete, the account is clear to ship, and the line has capacity inside the promised window. If all three pass, it creates the manufacturing order and names the routing. If one fails, the order stays in planning with a single reason a planner can act on. The floor never receives a job that is half specified.

Try it · the three checks

Manufacturing order created. The routing is named and the job reaches the floor fully specified.

What the record keeps

  • Which check passed or failed, and why
  • The routing and promised window attached to the order
  • One planner-facing reason when the order is held

Stage 02 · LearnLMS · Trigger.dev

Competence before the first cut

The learning system is a gate on the routing, not a catalog beside it.

  1. 1Routing opensStation one waiting
  2. 2LMS askedTrigger.dev job
  3. 3Module assignedIf sign-off is stale
  4. 4Station unlockedOnly on a pass

LMS here means the learning management system: procedures, certifications, and the short modules that follow a revision. Before station one can start, Trigger.dev asks the LMS whether every operator on that routing holds a current sign-off for the procedure in force. A revised work instruction assigns the module and keeps the station closed until the LMS returns a pass. People are not trained when there is time. They are current at the moment the unit needs them.

Try it · the learning gate

Station 1 unlocked. Every operator on the routing is signed off on the procedure revision in force.

What the record keeps

  • Each operator’s sign-off against the procedure revision in force
  • Modules assigned after a work-instruction change
  • The moment a station was closed and when it reopened

Stage 03 · MakeShop floor · n8n

The unit moves by scan

Each scan advances the routing and writes the genealogy as it goes.

  1. 1Station scanUnit identity read
  2. 2Release checkPrevious step done?
  3. 3Genealogy lineWho · machine · lot · time
  4. 4Next station opensUnit appears there

The unit carries an identity from the first scan. At each station, n8n records who touched it, on which machine, from which material lot, and at what time, then releases it to the next step. The following station sees the unit because the previous one finished, not because someone updated a sheet at the end of the shift. Traceability is a byproduct of movement. There is no separate genealogy project to catch up later.

Try it · scan the unit

  1. Cutting
  2. Welding
  3. Assembly
  4. Finishing

Scan the unit at the first station to start its record.

What the record keeps

  • Operator, machine, and material lot at every station
  • Timestamps for start, finish, and hand-off
  • A complete genealogy without end-of-shift data entry

Stage 04 · InspectQuality · n8n · Trigger.dev

Inspection chooses the path

A pass continues. A fail keeps the same identity and returns to the step that must be repeated.

  1. 1Inspection resultPass or fail
  2. 2Branch chosenn8n routes the unit
  3. 3Rework or continueSame identity kept
  4. 4Dwell watchedTrigger.dev alerts once

Quality is a branch, not a holding area. A pass moves the unit toward packaging. A fail opens a rework route under the same unit identity, so the history of the fault stays attached to the thing that failed. Trigger.dev watches dwell. If a unit is still in inspection past the agreed window, quality is told once. The alert does not fire again every time a board is refreshed.

Try it · the inspection branch

  1. Make
  2. Inspect
  3. Pack

Pass. The unit moves toward packaging with its inspection on record.

What the record keeps

  • Inspection outcome and the inspector who recorded it
  • The rework route and the step that was repeated
  • Time spent in inspection, with one alert if it runs long

Stage 05 · PackTrigger.dev

Made ready for retail

The carton closes in the system only when the retail document set is complete.

  1. 1Unit reaches packingAssembly complete
  2. 2Document pack builtTrigger.dev, with retries
  3. 3Set verifiedBarcode · contents · certificate · ASN
  4. 4Carton closedn8n marks it packed

Assembly is not the finish. A retailer receives a labeled, documented unit. At packaging, Trigger.dev builds that set and retries if a file fails: the barcode payload, carton contents, certificate or compliance sheet, and the advance shipping notice. n8n will not mark the unit packed until the set exists. What leaves the building is what the retailer can receive, not what the line hopes is enough.

Try it · the retail pack

Carton stays open. 2 of 4 documents still missing. Trigger.dev retries the failed file rather than starting a new pack.

What the record keeps

  • Barcode payload and carton contents for this unit
  • Certificate or compliance sheet tied to the lot
  • Advance shipping notice ready before the carton closes

Stage 06 · ShipWarehouse · Zapier

Dispatch tells the outside

The warehouse records the ship. Zapier carries the notes that change when a retailer changes.

  1. 1Ship confirmedWarehouse system
  2. 2Stock updatedCommerce availability
  3. 3Partners toldZapier to portals
  4. 4Planner notifiedShort channel note

Stock, location, and the ship confirmation stay in the warehouse system. Zapier handles the outward conversations that should stay easy to retarget: available quantity to commerce, a short note in the planner’s channel, and the handoff into a retailer or distributor portal. Factory rules are not rebuilt inside those connectors. When a portal changes its form, the change stays at the edge.

What the record keeps

  • Ship confirmation, location, and carrier hand-off
  • Available quantity pushed to commerce
  • Retailer or distributor portal updates, kept at the edge

6 production stages, then care after the sale. Each stage releases the next.

6. Three orchestrators, one record

The plant does not need another system of record. It needs the systems it already has to hear one another, and it needs long work to finish even when a person has closed the screen. We split that duty on purpose.

Select a tool to see where it works on the path.

  1. Order
  2. Learn
  3. Make
  4. Inspect
  5. Pack
  6. Ship
  7. Care

Live plant path

n8n

  • Order checks
  • Routing & genealogy
  • Rework branches
  • Pack release rule

Overnight jobs, retailer portals, and anything that should be swapped without touching factory logic.

Wait, retry, overnight

Trigger.dev

  • LMS certification
  • Dwell alerts
  • Retail document pack
  • Lot complaint scan

The click-by-click path an operator is standing in. That stays in n8n, where the event is immediate.

The changing edge

Zapier

  • Planner channels
  • Commerce stock
  • Retailer portals
  • Quality ping

Quality rules, certifications, and lot history. Those stay with the systems that own them.

The systems that keep the facts

Orchestration is useless if the facts have no home. In this design the ERP, commonly Odoo in the work we already deliver, owns the order, the bill of materials, and the manufacturing order. The learning system owns certifications. The warehouse owns location and the ship. The service desk, where a client already lives in Salesforce, owns the case a person must handle. n8n and Trigger.dev write to those homes. They do not become a second ledger.

A scan, in order

The station posts a scan. n8n confirms the previous step released this unit, writes the genealogy line, and opens the next step. If the operator’s certification lapsed during the shift, the LMS gate fails closed and Trigger.dev has already queued the module.

A document, with a retry

Packaging asks Trigger.dev for the retail pack. The job builds each file, stores it, and reports done. If the certificate service times out, the job retries from the failed step rather than starting a second, conflicting pack.

The n8n workflows behind the path

These are the n8n workflows for the stages n8n owns: order release, the inspection branch, the pack release rule, and the after-sale lookup. Each one writes to the system that keeps the fact and hands longer work to Trigger.dev or the edge to Zapier.

A confirmed sales order becomes a manufacturing order only when the bill of materials, credit, and capacity all pass.

  1. Webhook from the ERP on confirm
  2. Three checks read from Odoo and the MES
  3. Release or hold with one planner-facing reason
Workflow 1 of 4
Open full screen
Loading the n8n canvas…

Demonstration workflows rendered with n8n's own canvas. Click the canvas to pan and zoom, open Node details for what each step does, or view the code to import it into n8n. Credentials and endpoints are placeholders.

10 nodes

Order checks before release

n8n workflow JSON

Order checks before release

Paste this into an n8n editor to import the workflow. Credentials and endpoints are placeholders.

{
  "nodes": [
    {
      "name": "Sales order confirmed",
      "notes": "Odoo calls this webhook the moment a sales order is confirmed.",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        300
      ],
      "parameters": {
        "httpMethod": "POST",
        "path": "erp/sales-order-confirmed"
      }
    },
    {
      "name": "Get bill of materials",
      "notes": "Reads the bill of materials so every component is known before release.",
      "type": "n8n-nodes-base.odoo",
      "typeVersion": 1,
      "position": [
        220,
        300
      ],
      "parameters": {
        "resource": "custom",
        "customResource": "mrp.bom",
        "operation": "getAll"
      }
    },
    {
      "name": "Get account credit",
      "notes": "Reads the customer's credit position from the contact record.",
      "type": "n8n-nodes-base.odoo",
      "typeVersion": 1,
      "position": [
        440,
        300
      ],
      "parameters": {
        "resource": "contact",
        "operation": "get"
      }
    },
    {
      "name": "Check line capacity",
      "notes": "Asks the MES whether the line has room inside the promised window.",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        660,
        300
      ],
      "parameters": {
        "method": "GET",
        "url": "https://mes.example.com/api/capacity"
      }
    },
    {
      "name": "Evaluate three checks",
      "notes": "Combines materials, credit, and capacity into one pass or fail with a reason.",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        880,
        300
      ],
      "parameters": {
        "jsCode": "// BOM complete, credit clear, capacity inside the promised window\nreturn items;"
      }
    },
    {
      "name": "All three pass?",
      "notes": "True releases the order; false holds it.",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        1100,
        300
      ],
      "parameters": {}
    },
    {
      "name": "Create manufacturing order",
      "notes": "Creates the manufacturing order in Odoo, linked to the sales order.",
      "type": "n8n-nodes-base.odoo",
      "typeVersion": 1,
      "position": [
        1340,
        180
      ],
      "parameters": {
        "resource": "custom",
        "customResource": "mrp.production",
        "operation": "create"
      }
    },
    {
      "name": "Tell planner: released",
      "notes": "Posts the release to the planning channel.",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [
        1560,
        180
      ],
      "parameters": {
        "resource": "message",
        "operation": "post"
      }
    },
    {
      "name": "Hold with one reason",
      "notes": "Keeps the single reason the order cannot start yet.",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1340,
        420
      ],
      "parameters": {}
    },
    {
      "name": "Tell planner: held",
      "notes": "Tells the planner what is blocking the order.",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [
        1560,
        420
      ],
      "parameters": {
        "resource": "message",
        "operation": "post"
      }
    }
  ],
  "connections": {
    "Sales order confirmed": {
      "main": [
        [
          {
            "node": "Get bill of materials",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get bill of materials": {
      "main": [
        [
          {
            "node": "Get account credit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get account credit": {
      "main": [
        [
          {
            "node": "Check line capacity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check line capacity": {
      "main": [
        [
          {
            "node": "Evaluate three checks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Evaluate three checks": {
      "main": [
        [
          {
            "node": "All three pass?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "All three pass?": {
      "main": [
        [
          {
            "node": "Create manufacturing order",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Hold with one reason",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create manufacturing order": {
      "main": [
        [
          {
            "node": "Tell planner: released",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Hold with one reason": {
      "main": [
        [
          {
            "node": "Tell planner: held",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

7. The question after the sale

The unit has left. The record has not. A customer writes about a finish, a spare, a care instruction, or a fault. The reply should begin from the batch, the manual, and the warranty, and it should reach a person only when the question is no longer routine.

Try it · pick a customer message

Lane 1

A routine question: care, a spare, order status

An assistant grounded on the manual, the warranty, and the order answers in the conversation. If the message names an order or a lot, n8n reads the genealogy and includes what the plant actually recorded.

Told: No one, unless the customer asks for a person.

Lane 2

A fault that may belong to the unit

The conversation opens a service case with the lot, the station history, and the words the customer sent. The agent does not retype what the line already stored.

Told: The service owner, inside the desk the team already uses.

Lane 3

The same lot, more than once

Overnight, Trigger.dev groups new complaints by lot. A cluster is a quality signal, not a stack of unrelated tickets.

Told: Zapier tells the quality lead once, with the lot and the count.

Why the factory and the desk share a unit

Support is the last stage of the same path. The identity created at the first scan is the identity the assistant looks up. That is what makes an after-sale answer specific: this lot, this procedure, this carton, this warranty. When several customers describe the same lot, quality sees a pattern while the units are still young in the market.

What we would put in front of a client is three moments: a walkthrough of one unit with the learning gate closed and then opened, a packed carton whose document set can be opened from the unit record, and one after-sale question answered from that record. The tools are demonstrated by those moments.