A classified listing can be worth saving before its contact details are available. If a later capture finds the phone number, the CRM should be able to connect it to the listing already stored. Treating that second save as either a duplicate to discard or a completely new lead would lose part of the relationship.
Capture CRM is a Chrome extension and Next.js dashboard for a Spanish flooring-materials company. Its documented workflow collects professional listings from Wallapop and Milanuncios, associates them with contacts and records later interactions.
I kept listings, platform profiles, people and interactions as separate records. One person can have several ads and a platform profile, while the history of calls or conversations belongs to the contact. That structure lets information arrive in pieces.
The second capture can complete the first
A CSV import may create an ad with a URL and description but no phone number. Its contactId is empty. Later, the extension can capture that same URL with a name or number.
The save route handles that state by finding or creating a contact, linking the existing ad and filling empty listing fields. Stored values are preserved. If the ad already has a contact, the route returns that relationship.
These are illustrations of implemented states, rather than customer records:
| First import | Later capture | Save result |
|---|---|---|
| Listing URL, no contact | Same URL with contact details | Enrich the listing and link a contact |
| Listing already linked | Same URL again | Return the existing relationship |
| New listing | Phone or existing profile match | Try to reuse the corresponding contact |
The effect is specific: a repeat capture can add information to an earlier record. It need not create another contact just because the same ad was encountered again.
The phone normalizer removes spaces and common formatting, strips +34 or 0034, then accepts nine digits beginning with 6, 7, 8 or 9. That helps the same Spanish number match across formats. It cannot establish that a number belongs to only one person or has never changed owner.
Show what is already known while browsing
The extension also asks which visible listing URLs the CRM knows and displays the linked contact status beside them. An operator can see the existing relationship while browsing, rather than opening every listing in the dashboard. The workflow includes states for calling, messaging, a conversation and a shop visit.
Infinite scrolling adds cards after the first page load. A MutationObserver, the browser's mechanism for watching page changes, triggers processing for those new cards. Platform-specific selectors identify where each site's listing data appears.
Requests go through the extension's background worker:
classified page -> content-script message
-> extension background worker
-> CRM API -> relationship/status responseThe content script reads the page. The worker calls the CRM on its different web origin, then returns the result through an asynchronous message channel kept open for the reply. Extension requests use the configured API key; the dashboard uses its own signed-in session.
A useful relationship model still needs stronger save guarantees
The capture, enrichment and status paths are implemented. Saving currently involves several checks followed by inserts, rather than one atomic upsert. Two concurrent saves can race between those steps. Profile matching can also use a URL suffix, which needs collision tests across platforms.
Those are the next checks before I would call the matching and save behavior reliable under concurrent use. The prototype already demonstrates how later information can complete a listing and expose its contact status. No capture-volume, sales-conversion or production-reliability result has been measured.
Project sources & checks
capture-crm-wallapop-milanuncios: src/lib/schema.ts, phone.ts, src/app/api/extension/save/route.ts and extension/background/service-worker.ts.
CLAUDE.md describes the background-worker message flow, dashboard sessions, extension API-key access and status annotations.
Implementation inspected; no capture-volume, sales-conversion or production-reliability metric was established.