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
- 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 steps in total.
Similar automations
Email AutomationSend staged client onboarding emails from open Clio matters over SMTP15 stepsCRM & Sales PipelineOnboard new clients from form intake using Claude, Supabase, Gmail and Slack19 stepsTasks & Project ManagementAutomate Employee Onboarding with Slack, Jira and Google Drive32 stepsMonitoring, Ops & IncidentsCoordinate outage incidents across Slack, email and Postgres from monitoring alerts50 steps