Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Tasks & Project Management

Tasks & Project Management

Coordinate client onboarding sagas via webhook, Data Tables and Gmail

Runs on each onboarding webhook request to create missing offer, invoice, kickoff and document steps, track their state in Data Tables, and send welcome emails through Gmail.

What it does

## 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.

The steps

  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 steps in total.

Similar automations