Skip to content
crm-hygienev0.1.0Operations

A weekly CRM clean-up list you approve

Every Monday it scans your CRM for duplicates, missing fields, missing owners, stale records and messy names, then gives you a report and a batch of safe field fixes. Nothing changes until you approve, and it never merges records.

Agent
CRM Hygiene
Runs
Weekly
Approval
Approval optional
Typical run
4 credits x 4 a month
Available on
SoloTeamScaleAgency
Needs access to
crm records (list)contacts (enrich)
  • crm-hygiene-report

    CRM hygiene report

    Scan size, health score (not given under 50 records; marked as a sample when truncated), issue counts by kind, duplicate groups with a suggested survivor, missing-field and owner lists, stale records, names left for review, enrichment suggestions, what changed since the last run, fields checked and gaps.

  • crm-fix-batch

    CRM fix batch

    Safe field fixes (record, field, before, after, rule), at most the batch size you set, held for approval. Approving records your review; Piolet does not write to the CRM in this version.

Outputs are recorded in the run history and can be routed to the approvals inbox.

This is the form you fill in when you enable the agent. It is generated from the agent's settings schema, so what you see here is exactly what the agent accepts.

Record types
recordTypes / multi-select

Which record types to check.

  • contacts
  • companies

Default: contacts, companies

Required contact fields
requiredContactFields / multi-select

Fields every contact must have. A missing owner is reported as its own issue kind.

  • email
  • first_name
  • last_name
  • company_name
  • owner_id
  • phone
  • job_title
  • lifecycle_stage

Default: email, first_name, last_name, company_name, owner_id

Required company fields
requiredCompanyFields / multi-select

Fields every company must have.

  • name
  • domain
  • owner_id

Default: name, domain, owner_id

Allowed lifecycle stages
allowedLifecycleStages / list

If not empty, any lifecycle stage outside this list is an issue. Empty: only a missing stage is an issue.

Default: none

Stale days
staleDays / integer

A record with no change for this many days is reported as stale.

Default: 365. Range: 30 to 730

Max records scanned
maxRecordsScanned / integer

Most records read in one run, per record type.

Default: 20000. Range: 100 to 20000

Max records to classify
maxRecordsToClassify / integer

Most flagged records sent to the model in one run.

Default: 400. Range: 50 to 800

Fix kinds
fixKinds / multi-select

Which kinds of field fix may be proposed.

  • trim_whitespace
  • lowercase_email
  • lowercase_domain
  • fix_name_case

Default: trim_whitespace, lowercase_email, lowercase_domain, fix_name_case

Max fixes per batch
maxFixesPerBatch / integer

Most field fixes in one approval batch.

Default: 50. Range: 1 to 200

Enrich missing fields
enrichMissingFields / boolean

Look up missing contact fields with enrichment and list the results as suggestions. May use paid lookups.

Default: off

Min records
minRecords / integer

Below this many records the report gives no health score.

Default: 50. Range: 10 to 500

Ignore record ids
ignoreRecordIds / list

Record ids that are never checked.

Default: none

CRM Hygiene

A CRM decays quietly. Forms create twins, imports bring stray spaces and capitals, people leave and their records sit unowned. Someone exports the CRM every few weeks and hunts through it by hand. This agent reads every record, every Monday.

What it does

It reads your contacts and companies from HubSpot, Pipedrive or Salesforce and runs the rules in code: duplicate groups (same email, same domain, or the same name at the same company), missing required fields, records with no owner or an inactive owner, missing or disallowed lifecycle stages, records unchanged for a year, invalid emails, and safe formatting fixes (stray spaces, upper-case emails, mixed-case domains, shouting or lower-case person names). A light model then judges the probable duplicate pairs and spots junk records. It never decides what is an issue and never writes a fix.

Inputs

  • Your CRM (HubSpot, Pipedrive or Salesforce), up to 20,000 records per type.
  • Optional enrichment suggestions for missing contact fields (off by default; may use paid lookups).
  • Your settings: required fields, allowed lifecycle stages, the stale window, the fix kinds you allow, the batch size.

Outputs

One hygiene report (no approval needed) and, when there are fixes, one fix batch held for approval. Duplicate groups name a suggested survivor; you merge in your CRM. Piolet never merges, deletes, changes an owner or a lifecycle stage.

Approval

The fix batch waits in your approvals inbox. Each fix keeps the old value. In this version approving the batch records your review and gives you the before and after list to apply in your CRM; Piolet does not write to your CRM yet.

Worked example

600 records. Five pairs share an email, twelve contacts have no company, three have no owner, four have not changed since 2024, and nine have a stray space, an upper-case email or a surname in capitals. The report lists 33 issues, a health score of 94, and a batch of 9 safe fixes. Next Monday's report says how the counts moved.