This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.
Manufacturing Automation: Auto-Trigger Production Alerts and Purchase Orders with MRPeasy and n8n
Small and mid-sized manufacturers lose hours every week to manual stock checks, delayed reorder decisions and missed production alerts. When a critical component runs low, the gap between spotting the problem and acting on it can halt an entire production line. Connecting your ERP system to a workflow automation tool closes that gap in minutes — without custom code or expensive middleware.
This guide shows you exactly how to wire MRPeasy — a cloud ERP built for small manufacturers covering production planning, inventory and purchasing — together with n8n, an open-source workflow automation platform with 400+ integrations that you can self-host for free or run on n8n Cloud, to trigger alerts and purchase orders the moment stock conditions demand it.
Why Manual Monitoring Breaks Down at Scale
Even a 20-person manufacturing team typically manages hundreds of SKUs across raw materials, work-in-progress and finished goods. Manual reorder checks rely on someone remembering to look, interpreting the data correctly and then acting fast enough. Three failure points in a row is two too many.
Common pain points include:
- Delayed purchase orders because buyers only check stock once a day
- Silent production stoppages when a component hits zero with no alert fired
- Duplicate orders placed by two team members who each spotted the same shortage independently
- Missed lead times because the reorder point was set once and never updated as demand changed
Automation removes all four failure points by reacting to data, not to human memory.
How the MRPeasy + n8n Integration Works
MRPeasy exposes a REST API that lets you read inventory levels, production orders, bills of materials and supplier records. n8n can poll that API on a schedule, evaluate conditions with its built-in logic nodes, and then route actions to email, Slack, Microsoft Teams, or back into MRPeasy to create a purchase order automatically.
The core loop looks like this:
- Trigger: n8n Schedule node fires every 15–60 minutes
- Fetch: HTTP Request node calls the MRPeasy inventory API
- Filter: IF node checks whether
quantity_on_handis belowreorder_point - Branch A — Alert: Send a Slack or email message to the production manager
- Branch B — Order: POST a new purchase order back to MRPeasy via the purchasing API
- Log: Write a row to Google Sheets or Airtable for audit purposes
Step-by-Step: Building the Workflow in n8n
Step 1 — Generate a MRPeasy API Key
In MRPeasy, navigate to Settings → API and generate a new key. Copy the base URL for your region (EU or US). Store both values as n8n credentials under HTTP Header Auth so they never appear in plain text inside your workflow.
Step 2 — Create a Schedule Trigger
Open n8n and add a Schedule Trigger node. Set the interval to 30 minutes for most production environments. If your line moves fast, 15 minutes gives you tighter coverage. Avoid intervals shorter than 10 minutes to stay within MRPeasy's API rate limits.
Step 3 — Fetch Inventory Data
Add an HTTP Request node. Set the method to GET and the URL to:
https://app.mrpeasy.com/rest/v1/stock-items
Attach your stored API credentials. Under Query Parameters, add fields=id,name,quantity_on_hand,reorder_point,preferred_supplier_id to keep the payload lean.
Step 4 — Filter Below-Reorder Items
Add an IF node with the condition:
{{ $json.quantity_on_hand }} < {{ $json.reorder_point }}
The true branch carries only items that need action. The false branch can connect to a No Operation node or be left disconnected.
Step 5 — Send a Production Alert
On the true branch, add a Slack node (or Send Email if you prefer). Use an expression to build the message body:
- Channel:
#production-alerts - Message:
⚠️ Low stock: {{ $json.name }} — {{ $json.quantity_on_hand }} units remaining (reorder at {{ $json.reorder_point }})
This fires immediately for every item that crosses the threshold, so the production manager sees a named item, not a vague warning.
Step 6 — Auto-Create a Purchase Order in MRPeasy
Add a second HTTP Request node after the alert. Set the method to POST and the URL to:
https://app.mrpeasy.com/rest/v1/purchase-orders
In the JSON body, map fields dynamically:
supplier_id:{{ $json.preferred_supplier_id }}lines[0].stock_item_id:{{ $json.id }}lines[0].quantity: a fixed reorder quantity or a calculated multiple of the reorder point
MRPeasy will create the draft purchase order, ready for a buyer to review and confirm — or you can set it to auto-confirm if your suppliers allow blanket orders.
Step 7 — Log Every Action
Add a Google Sheets node at the end of both branches to append a row with a timestamp, item name, quantity, action taken and workflow run ID. This creates a full audit trail without any additional tooling.
Extending the Workflow
Once the base loop is running, you can layer on more logic without rewriting anything:
- Production order awareness: Cross-reference open production orders to avoid ordering components already allocated to in-progress jobs
- Lead-time escalation: If a supplier's average lead time exceeds 10 days, send a higher-priority alert and CC the operations director
- Webhook trigger: Replace the schedule with a MRPeasy webhook so the workflow fires the instant a stock movement is recorded, not on the next poll cycle
- Multi-warehouse support: Add a loop node to iterate across warehouse IDs and aggregate shortages before alerting
What You Need to Get Started
- A MRPeasy account (Starter plan or above unlocks API access)
- n8n — self-hosted on your own server or running on n8n Cloud
- A Slack workspace or email address for alert delivery
- Around 60–90 minutes to build, test and activate the workflow
No programming experience is required. n8n's visual canvas handles all the logic with point-and-click nodes, and MRPeasy's API documentation lists every available endpoint with example responses.
Results You Can Expect
Teams that implement this workflow typically report:
- Reorder response time cut from hours to under 30 minutes
- Zero missed reorder points during the first month of operation
- Buyer time redirected from stock checks to supplier negotiation and relationship management
- A complete digital paper trail for every purchase order created automatically
If you manage production inventory and want to stop chasing reorder points manually, you can get started via n8n — including 400+ integrations and a free self-hosting option — to build automated production alerts and purchase orders that run around the clock.