CRM

Nightly Salesforce duplicate scan with field-conflict report

Each night it scans Salesforce Leads and Contacts for duplicate clusters, builds a field-by-field conflict table for each cluster.

CategoryCRM
Enginesim
Difficultyadvanced
Triggerschedule
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNightly schedule fires
  • ActionQuery Salesforce Leads and ContactsSalesforce
  • LogicCluster duplicates and diff conflicting fields
  • ActionPersist clusters and conflicts to PostgresPostgreSQLPostgres
  • OutputSend conflict-resolution digest to SlackSlack

What it does

Runs a scheduled sweep over Salesforce to find clusters of duplicate Leads and Contacts, then produces a per-cluster table showing exactly which fields disagree (different phone, title, company) so a RevOps owner can approve merges with full context.

When to use it

Use this when your Salesforce org is too messy for blind auto-merge and you need a human to adjudicate conflicting field values. Ideal for nightly hygiene where you want a digest of what to merge rather than silent changes to records reps depend on.

How it works

  1. 1A nightly schedule starts the run.
  2. 2Query Salesforce for Leads and Contacts, blocking candidates by email domain and last name to keep comparisons cheap.
  3. 3Cluster records that match on email or fuzzy name+company.
  4. 4For each cluster, diff every field and flag the ones where values conflict, picking a suggested survivor by most-recent activity.
  5. 5Write the clusters and conflict tables to Postgres for an audit trail.
  6. 6Send a Slack digest with each proposed merge, the winning record, and the conflicting fields highlighted.

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
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    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.