DATA OPS

Consent-and-PII Gate Before Salesforce Lead Writeback

Webhook-triggered guard that screens enriched leads for missing consent flags and invalid PII before upserting to Salesforce.

CategoryData Ops
Enginesim
Difficultyintermediate
Triggerwebhook
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerWebhook receives enriched lead batchHTTP webhook
  • LogicValidate consent flags, PII formats, required fields
  • ActionWrite failing records to Postgres quarantine with reasonsPostgreSQLPostgres
  • ActionUpsert passing records to SalesforceSalesforce
  • OutputPost written-vs-held digest to SlackSlack

What it does

When an enrichment job emits new or updated leads, this workflow acts as a compliance and quality gate before they touch your CRM. It verifies each record carries a valid consent flag and well-formed contact PII, upserts only the clean ones to Salesforce, and parks the rest in a quarantine table with the exact rule that failed.

When to use it

Use it when leads arrive from a reverse-ETL or enrichment pipeline and you cannot risk writing unconsented or malformed contacts into Salesforce — where bad records trigger compliance exposure and pollute sales workflows downstream.

How it works

  1. 1A webhook fires when the enrichment pipeline emits a batch of lead records.
  2. 2A validation step checks consent flags, email and phone formats, and required fields per row.
  3. 3Records failing any rule are written to a Postgres quarantine table with a failure reason.
  4. 4Passing records are upserted to Salesforce.
  5. 5A Slack digest reports how many leads were written versus held and why.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect SalesforceAccounts, opportunities, cases.
  2. 2
    Connect PostgresAny Postgres URL — query, write, migrate.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Connect HTTP webhookTrigger any URL on agent actions.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.