Перейти к содержанию
НОВОЕПознакомьтесь с Alaaddin — вашим ИИ-джинном с голосом. trig8n запускается 1 января 2027. Что нового

Библиотека / Задачи и управление проектами

Задачи и управление проектами

Координировать онбординг клиентов через webhook, Data Tables и Gmail

Запускается по каждому webhook-запросу онбординга: создаёт недостающие шаги (оффер, счёт, kickoff и документы), отслеживает их статус в Data Tables и отправляет приветственные письма через Gmail.

Что делает

## Coordinate client onboarding as a durable saga ### How it works 1. Authenticates and validates one onboarding request, then deterministically claims or joins a parent saga in an exact owner and run scope. 2. Writes only missing intents for offer, invoice, kickoff, signed document, welcome-email record, and internal-checklist record. 3. Reads offer, invoice, booking, and document result tables and classifies every exact-key match instead of trusting the first row returned. 4. Blocks unsafe retries, persists changed step decisions, and rolls the parent into a complete, human-required, blocked, or unresolved state. 5. Runs a fail-stop UTC reconciliation snapshot every 30 minutes to adopt late evidence, repair stale parents, preserve cancellations, and raise age-based alerts. 6. Persists alert intent before Gmail and consumes the throttle receipt only after provider identifiers are validated. ### Setup steps - [ ] Create and re-select the three onboarding tables and four child-result tables. - [ ] Set ONBOARDING_INTAKE_TOKEN and review the server-owned tag and child-version variables. - [ ] Connect Gmail and replace ops@example.com in the reconcile alert node. - [ ] Ensure Offer and Booking adapters persist exact onboarding_id and smoke_tag fields. - [ ] Test invalid, first-delivery, replay, late-evidence, conflict, cancellation, and alert paths while inactive. ### Customization Adapt child adapters, service mappings, wait thresholds, reconciliation cadence, and operator inbox without making the parent resend ambiguous external work.

Шаги

  1. Client Onboarding Webhook
  2. UTC Reconcile Sweep
  3. Validate Intake Token
  4. Intake Authorized?
  5. Build Unauthorized Response
  6. Respond Unauthorized
  7. Normalize Onboarding
  8. Find Existing Onboarding Rows
  9. Build Claim Decision
  10. Claim Insert Needed?
  11. Emit Claim Row
  12. Insert Onboarding Claim Row
  13. Find Existing Step Rows
  14. Build Missing Step Intent Summary

Всего шагов: 54.

Похожие автоматизации