Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / E-commerce & Payments

E-commerce & Payments

Create Low-Stock Purchase Orders with Airtable and Brevo

Every night, this finds low-stock products in Airtable, calculates reorder quantities, creates purchase records and emails suppliers through Brevo.

What it does

### 📦 Automated Purchase Order Creation – n8n Workflow This n8n automation checks products with low stock every night, calculates smart reorder quantities, avoids duplicate POs, and creates fresh purchase orders automatically. ✅ Steps: 1. Run Every Midnight – Scheduled daily trigger. 2. Get Products with Low Stock – Fetch products below reorder threshold from Airtable. 3. Get Supplier Details – Fetch related supplier info. 4. Calculate Dynamic Reorder Quantity – Uses average daily sales × lead time × safety margin. 5. Search Existing POs – Checks if there are active pending/sent orders. 6. Remove Duplicate Product Orders – Filters out products already covered by existing POs. 7. Create Purchase Records – Generates new purchase order records in Airtable with supplier email, product name, reorder quantity, etc. ⚙ Fully automated daily process — keeps your stock healthy and your suppliers notified.

The steps

  1. Get Products with low stock
  2. Get supplier Details for those low stock products
  3. Calculate Dynamic Re-order Quantity
  4. Run Every Mid Night
  5. Create purchase records in table
  6. Search records
  7. Remove Duplicate Product Orders
  8. Schedule Trigger
  9. Get Purchase Orders which are pending
  10. Group products with suppliers
  11. Get the record id's of PO
  12. Update the PO status to sent
  13. Send PO to suppliers via Email

Similar automations