Библиотека / Электронная коммерция и платежи
Электронная коммерция и платежи
Маршрутизация заказов из webhook магазина поставщику, в службу доставки, CRM и ERP с проверкой остатков
Запускается на каждый webhook заказа магазина. Проверяет подпись, затем остатки у поставщика, после чего создает заказ на закупку, этикетку для доставки, обновляет CRM и ERP и отправляет письмо клиенту.
Что делает
## Process store orders from webhook to supplier, shipping, CRM and ERP with stock checks Who it is for. Online stores and trading companies that still update supplier, shipping, CRM and ERP by hand after every order. What it does - Verifies the store webhook signature on the raw body, normalises the order and de-duplicates by order id. - Checks stock with the supplier. In stock: purchase order, shipping label with tracking, customer email, CRM upsert, ERP inventory update. - Out of stock: BACKORDER tag, customer email with the lead time, alert to operations. - A scheduled branch syncs ERP inventory to the CRM every six hours and posts a low stock digest. - Retries on every API call; bad signatures dropped and alerted; duplicates acknowledged and not re-run. Setup 1. Set base and the store signing secret in Config, or swap each HTTP Request node for your store, supplier, carrier, CRM and ERP nodes. 2. Register the Webhook URL as the store's order created webhook. 3. Activate; the six hourly schedule runs the inventory sync. All external systems are reached through HTTP Request nodes against base in the Config node, so the whole flow imports and runs against any REST backend; swap any of them for the native n8n node of your system. Built and tested on sample data by Finamatik: https://finamatik.com/work/order-to-fulfilment Requirements. n8n 1.100 or later; for the AI steps, a model endpoint at base/llm/complete or the OpenAI or Anthropic node in its place; your own systems reachable over HTTPS. How to customise. Every rule lives in one Code or Config node and is named for what it decides; change the thresholds there, not in the branches.
Шаги
- Webhook: store order paid (Shopify / WooCommerce / Salla)
- Config
- Verify HMAC, normalise, idempotency
- First delivery?
- Supplier API: stock check
- In stock?
- Supplier API: place PO
- Shipping API: create label + tracking
- Customer: shipping email
- CRM: upsert customer + order
- ERP: inventory sync
- CRM: tag BACKORDER
- Customer: backorder email
- Ops alert (Slack)
Всего шагов: 24.
Похожие автоматизации
Финансы, счета и бухгалтерияReconcile bank payments to invoices and ERP using Postgres and ClaudeШагов: 33Чат-боты и боты для мессенджеровЧат с данными продаж Odoo через OpenAIШагов: 22ИИ-агенты и ассистентыЧат с продажными возможностями Odoo через агента OpenAIШагов: 15Финансы, счета и бухгалтерияМаршрутизация заявок на расходы из форм, ERP и Slack согласующим по порогу суммыШагов: 30