Библиотека / Задачи и управление проектами
Задачи и управление проектами
Координировать онбординг клиентов через 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.
Шаги
- Client Onboarding Webhook
- UTC Reconcile Sweep
- Validate Intake Token
- Intake Authorized?
- Build Unauthorized Response
- Respond Unauthorized
- Normalize Onboarding
- Find Existing Onboarding Rows
- Build Claim Decision
- Claim Insert Needed?
- Emit Claim Row
- Insert Onboarding Claim Row
- Find Existing Step Rows
- Build Missing Step Intent Summary
Всего шагов: 54.
Похожие автоматизации
Автоматизация эл. почтыSend lead notifications and acknowledgements via webhook, Gmail and Data TablesШагов: 15Чат-боты и боты для мессенджеровОбработка клиентских чатов WhatsApp с помощью агента OpenAI и Data TablesШагов: 34Электронная коммерция и платежиОтслеживание статуса заказа через webhook и рассылка клиентам через Gmail и Data TablesШагов: 59Электронная коммерция и платежиPrevent duplicate webhook processing with Data Tables idempotency guardШагов: 10