İçeriğe geç
YENİPazar yeri ve ekibin: geliştirdiğini sat; planlar ve değişiklikler sen görmeden önce test edilsin. Yeniliklere bak

Kütüphane / Potansiyel Müşteri Yaratma ve Zenginleştirme

Potansiyel Müşteri Yaratma ve Zenginleştirme

Postgres anahtar talepleri ve HTTP API'leri ile webhook potansiyel müşterilerini idempotent şekilde al

Idempotency-Key ile potansiyel müşteri POST isteklerini kabul eder, anahtarı Postgres'te talep eder, yeni potansiyel müşterileri zenginleştirip puanlar, CRM'e gönderir ve ekibe bildirir; yinelenen istekleri önceki yanıtla döndürür veya reddeder.

Ne yapar

## Idempotent Lead Management ### How it works A single POST with a client-supplied Idempotency-Key is guaranteed to process the lead at most once, even under retries, timeouts or concurrent duplicates. 1. Webhook validates + fingerprints the payload, then atomically claims the key in Postgres. 2. New key → continues to enrichment → score → CRM → notify. 3. Completed key → stored response is replayed as-is. 4. Key in flight → returns 409 so the client retries shortly. 5. Key reused with different payload → rejected with 422. Only a freshly claimed key reaches the external APIs. The same Idempotency-Key is forwarded where useful. ### Node budget - 4 Code nodes - 3 HTTP Request (API) nodes - 2 Wait nodes ### Setup - Add Postgres credentials to the three Postgres nodes. - Replace the three provider URLs in CONFIG (Code - Validate & Fingerprint). - Review leaseSeconds, timeouts, allowedSources, maxScoreThreshold. - Test with curl: two identical POSTs with the same Idempotency-Key must return the same body (second has Idempotent-Replayed: true). - Set allowSimulation=false in production.

Adımlar

  1. Webhook - Lead Submission
  2. Postgres - Ensure Idempotency Store
  3. Code - Validate & Fingerprint
  4. Postgres - Claim Idempotency Key
  5. Code - Route Request
  6. IF - Execute Processing?
  7. HTTP Request - Enrichment API
  8. Wait - After Enrichment
  9. Code - Score Lead
  10. HTTP Request - CRM API
  11. Wait - After CRM
  12. HTTP Request - Notification API
  13. Code - Classify & Finalize
  14. Postgres - Store Result

Toplam 15 adım.

Benzer otomasyonlar