Skip to content

feat(crm): enrich_contact tool — auto-fill email/phone via Dropcontact #52

Description

@BluegReeno

Context

Contacts created from LinkedIn searches often lack email and phone. The partial unique index on `(workspace_slug, email) WHERE email IS NOT NULL` (B4, #22) now supports dedup by email — but only when email is known at ingestion time.

An enrichment tool would let the agent fill in missing contact data on demand.

Proposed tool: `enrich_contact`

Input
```json
{
"workspace_slug": "blue-green",
"contact_id": "",
"provider": "dropcontact" // default, only supported provider v1
}
```

Behaviour

  1. Fetch contact from `halcrm_contacts` (name + company domain from linked `halcrm_companies`)
  2. Call Dropcontact API with `first_name`, `last_name`, `company` (+ optional `website`)
  3. On match: upsert `email` + `phone` back into `halcrm_contacts`
  4. Return enriched fields + confidence score

Why Dropcontact

  • RGPD-compliant (data sourced from public B2B registries, not scraped personal data)
  • French B2B coverage is strong (target market: BET, architects, promoteurs)
  • Pay-per-enrichment (no monthly seat fee) — fits POC budget

Out of scope v1

  • Batch enrichment (run on all contacts with email IS NULL)
  • PhantomBuster / Hunter.io / Clearbit — Dropcontact is sufficient for BtoB FR
  • Webhook / async enrichment — synchronous call is fine for POC

Implementation notes

Priority

Backlog — useful before first real client onboarding. Not blocking Loop 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions