Kütüphane / E-ticaret ve Ödemeler
E-ticaret ve Ödemeler
Webhook ile sipariş durumunu takip et ve Gmail ile Data Tables kullanarak müşterilere e-posta gönder
Siparişlerin olaylarını webhook ile alır, durum geçmişini tekrar oynatma korumasıyla bir Data Table'a kaydeder ve durum değiştiğinde Gmail üzerinden müşterilere e-posta gönderir.
Ne yapar
## Track orders and serve safe customer status lookups ### How it works 1. Uses separate server-side tokens for the create-only order intake lane and the internal status-update lane; request bodies cannot choose their own authority. 2. Requires explicit source event ids, derives deterministic keys, rejects weak lookup secrets, and checks full Status History before evaluation so accepted or held replays do not write again. 3. Creates one order, records accepted or held status evidence, and persists notification intent before Gmail is attempted. A valid re-entry into an already-notified status still updates the Order and History, but does not insert another pending notification or send Gmail again. 4. Accepts exactly one status object per request, rejects batch-shaped payloads, holds strictly older events, and applies an explicit allowed-edge matrix without guessing. 5. Serves a read-only customer lookup that requires tenant, order, and per-order verifier inputs and returns only order id, visible status, update time, and a safe message. 6. Sweeps for notifications left pending for at least two hours and emails a controlled operations inbox. ### Setup steps - [ ] Create Orders, Status History, and Notifications Data Tables, then re-select them in every table node. - [ ] Set separate ORDER_INTAKE_TOKEN and ORDER_STATUS_TOKEN n8n Variables. - [ ] Connect Gmail and replace ops@example.com with your controlled operations inbox. - [ ] Review the status vocabulary, allowed transitions, notification text, stale threshold, and schedule. - [ ] Test wrong tokens, weak verifiers, status arrays, replay, older and blocked transitions, lookup, Gmail failure, and stale rows while inactive. ### Customization Connect your commerce or fulfilment adapters and adjust approved status wording while preserving tenant-scoped keys, separate authority, persist-before-send ordering, safe lookup projection, and explicit residual handling.
Adımlar
- Order Intake Webhook
- Validate Intake Token
- Intake Token Authorized?
- Respond Intake Unauthorized
- Normalize Order Intake
- Find Intake Order Row
- Build Intake Actions
- Status Update Webhook
- Validate Status Token
- Status Token Authorized?
- Normalize Status Update
- Find Status Order Rows
- Build Status Actions
- Filter Intake Sendable Notifications
Toplam 59 adım.
Benzer otomasyonlar
E-ticaret ve ÖdemelerPrevent duplicate webhook processing with Data Tables idempotency guard10 adımGörevler ve Proje YönetimiMüşteri onboarding süreçlerini webhook, Data Tables ve Gmail ile koordine et54 adımE-posta OtomasyonuSend lead notifications and acknowledgements via webhook, Gmail and Data Tables15 adımSohbet Botları ve Mesajlaşma BotlarıWhatsApp müşteri sohbetlerini OpenAI ajanı ve Data Tables ile yönetin34 adım