{"slug":"oip-system-leads","title":"OIP system: LEADS","body":"## LEADS\n\nA generated article for one OIP shelf. It lists every operation in this API/CLI/MCP/device/model/core subsystem, links each leaf article, and gives the ledger path for proof.\n\nThis page is the operating article for one build subsystem. It is generated from live directory rows. If a task belongs to this subsystem, scan the operations below, open the matching capability article, run only the exact object named there, and verify by receipt.\n\nKind: `core`. Capabilities: `13`. Machine system map: [/api/dispatch?map=LEADS&format=markdown](https://miscsubjects.com/api/dispatch?map=LEADS&format=markdown). Root: [/a/oip](https://miscsubjects.com/a/oip).\n\n## Operations\n\n### LEADS_DISCOVER\nFind businesses likely to buy peptides wholesale or want white-label, by type and city. Free source (OpenStreetMap), no API key. Writes new rows to the leads table.\nUse when: start a new outreach batch for a place.\nArguments: `$1 = segment (medspa | clinic | wellness | gym | supplement), $2 = city, $3 = max results (default 40).`.\nHuman article: [/a/oip-capability-leads-discover](https://miscsubjects.com/a/oip-capability-leads-discover). Machine doc: [?key=LEADS_DISCOVER&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_DISCOVER&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_DISCOVER](https://miscsubjects.com/api/invocations?object_id=LEADS_DISCOVER).\n\n### LEADS_ENRICH\nVisit one lead's website and pull the best contact email. Sets the lead to enriched or no_email.\nUse when: after discovery, to get an email to reach out to.\nArguments: `$1 = lead id.`.\nHuman article: [/a/oip-capability-leads-enrich](https://miscsubjects.com/a/oip-capability-leads-enrich). Machine doc: [?key=LEADS_ENRICH&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_ENRICH&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_ENRICH](https://miscsubjects.com/api/invocations?object_id=LEADS_ENRICH).\n\n### LEADS_DRAFT\nWrite a wholesale + white-label outreach email for one lead. Saves the draft on the lead. DOES NOT SEND.\nUse when: after enrich, to prepare the message for Cyrus to approve.\nArguments: `$1 = lead id, $2 = which company it comes from (default miscsubjects).`.\nHuman article: [/a/oip-capability-leads-draft](https://miscsubjects.com/a/oip-capability-leads-draft). Machine doc: [?key=LEADS_DRAFT&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_DRAFT&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_DRAFT](https://miscsubjects.com/api/invocations?object_id=LEADS_DRAFT).\n\n### LEADS_LIST\nList leads and a count by status (new, enriched, drafted, no_email, sent).\nUse when: see the outreach pipeline.\nArguments: `$1 = status filter (optional; blank = all).`.\nHuman article: [/a/oip-capability-leads-list](https://miscsubjects.com/a/oip-capability-leads-list). Machine doc: [?key=LEADS_LIST&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_LIST&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_LIST](https://miscsubjects.com/api/invocations?object_id=LEADS_LIST).\n\n### LEADS_ENRICH_BATCH\nEnrich the next batch of un-enriched leads in one call (finds emails + context). Bounded so it never fails; call repeatedly to work through the queue.\nUse when: after discovery, to fill in emails and context for many leads.\nArguments: `$1 = how many to do this call (default 8, max 10).`.\nHuman article: [/a/oip-capability-leads-enrich-batch](https://miscsubjects.com/a/oip-capability-leads-enrich-batch). Machine doc: [?key=LEADS_ENRICH_BATCH&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_ENRICH_BATCH&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_ENRICH_BATCH](https://miscsubjects.com/api/invocations?object_id=LEADS_ENRICH_BATCH).\n\n### LEADS_RUN_CITY\nOne call = discover a segment in a city, then enrich a batch. The fastest way to grow the pipeline.\nUse when: add a new city/segment to the pipeline.\nArguments: `$1 = segment (medspa|clinic|wellness|gym|supplement|chiro|massage|weightloss|longevity), $2 = city, $3 = discover limit (default 40), $4 = enrich count (default 8).`.\nHuman article: [/a/oip-capability-leads-run-city](https://miscsubjects.com/a/oip-capability-leads-run-city). Machine doc: [?key=LEADS_RUN_CITY&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_RUN_CITY&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_RUN_CITY](https://miscsubjects.com/api/invocations?object_id=LEADS_RUN_CITY).\n\n### LEADS_DRAFT_AI\nGrok writes the outreach email for a lead, grounded in the OUTREACH_DOSSIER (brand, team, offer, article+store links) and the lead's real site context. Saves the draft. DOES NOT SEND.\nUse when: draft a real, personalized email instead of the plain template.\nArguments: `$1 = lead id, $2 = brand (default LeoResearch).`.\nHuman article: [/a/oip-capability-leads-draft-ai](https://miscsubjects.com/a/oip-capability-leads-draft-ai). Machine doc: [?key=LEADS_DRAFT_AI&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_DRAFT_AI&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_DRAFT_AI](https://miscsubjects.com/api/invocations?object_id=LEADS_DRAFT_AI).\n\n### LEADS_SEND\nSend ONE lead's already-drafted email via miscsubjects email. Only works if the lead is 'drafted' and has an email.\nUse when: Cyrus approved sending and wants one specific lead emailed.\nArguments: `$1 = lead id, $2 = from local-part (default wholesale -> wholesale@miscsubjects.com).`.\nHuman article: [/a/oip-capability-leads-send](https://miscsubjects.com/a/oip-capability-leads-send). Machine doc: [?key=LEADS_SEND&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_SEND&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_SEND](https://miscsubjects.com/api/invocations?object_id=LEADS_SEND).\n\n### LEADS_SEND_BATCH\nSend a batch of drafted leads. HARD-GATED — refuses unless the first arg is the exact word CONFIRM. Cap 25.\nUse when: Cyrus explicitly authorizes a send run. Without CONFIRM it only reports how many are ready.\nArguments: `$1 = CONFIRM (literal), $2 = how many (max 25).`.\nHuman article: [/a/oip-capability-leads-send-batch](https://miscsubjects.com/a/oip-capability-leads-send-batch). Machine doc: [?key=LEADS_SEND_BATCH&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_SEND_BATCH&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_SEND_BATCH](https://miscsubjects.com/api/invocations?object_id=LEADS_SEND_BATCH).\n\n### LEADS_DISCOVER_AI\nSCRAPER 2 — Grok live web search finds real businesses (with verified official websites) that OpenStreetMap does not have. Inserts them as new leads, source=grok-live-search.\nUse when: grow the pipeline in a city where LEADS_DISCOVER (OSM) returned few results, or to reach richer segments (longevity, weightloss, chiro).\nArguments: `$1 = segment (medspa|clinic|wellness|gym|supplement|chiro|massage|weightloss|longevity), $2 = city, $3 = count (default 20, cap 30).`.\nHuman article: [/a/oip-capability-leads-discover-ai](https://miscsubjects.com/a/oip-capability-leads-discover-ai). Machine doc: [?key=LEADS_DISCOVER_AI&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_DISCOVER_AI&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_DISCOVER_AI](https://miscsubjects.com/api/invocations?object_id=LEADS_DISCOVER_AI).\n\n### LEADS_FIND_SITES\nRescue websiteless leads — one Grok live-search call finds official websites for a batch of leads that have name+city but no site. Found leads stay status=new so LEADS_ENRICH_BATCH picks them up.\nUse when: when leads sit in status=new with no website (OSM often lacks the website tag) — they are unreachable until this runs.\nArguments: `$1 = batch size (default 8, cap 10).`.\nHuman article: [/a/oip-capability-leads-find-sites](https://miscsubjects.com/a/oip-capability-leads-find-sites). Machine doc: [?key=LEADS_FIND_SITES&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_FIND_SITES&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_FIND_SITES](https://miscsubjects.com/api/invocations?object_id=LEADS_FIND_SITES).\n\n### LEADS_REENRICH\nSecond pass over status=no_email leads with the deep crawler (mailto links, Cloudflare-obfuscated emails, JSON-LD, /contact-us + /about pages — none of which the v1 crawler read).\nUse when: rescue contactable emails from the no_email pool without any new discovery.\nArguments: `$1 = batch size (default 6, cap 8).`.\nHuman article: [/a/oip-capability-leads-reenrich](https://miscsubjects.com/a/oip-capability-leads-reenrich). Machine doc: [?key=LEADS_REENRICH&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_REENRICH&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_REENRICH](https://miscsubjects.com/api/invocations?object_id=LEADS_REENRICH).\n\n### LEADS_SWEEP\nMulti-city sweep — one segment across up to 3 cities (OSM discover per city) plus one enrich batch, in a single call.\nUse when: fastest way to open several new cities at once.\nArguments: `$1 = segment, $2 = comma-separated cities (max 3), $3 = per-city discover limit (default 40).`.\nHuman article: [/a/oip-capability-leads-sweep](https://miscsubjects.com/a/oip-capability-leads-sweep). Machine doc: [?key=LEADS_SWEEP&format=markdown](https://miscsubjects.com/api/dispatch?key=LEADS_SWEEP&format=markdown). Invocation history: [/api/invocations?object_id=LEADS_SWEEP](https://miscsubjects.com/api/invocations?object_id=LEADS_SWEEP).\n","register":"oip_protocol","tags":["oip","object-invocation-protocol","protocol-specification","machine-native-json","system"],"style":{"accent":"#16324f","measure":860},"claims":[{"id":"oip-c1","tier":"system","text":"The OIP article layer is generated from live directory rows, so it documents the objects that actually run the reference implementation.","who_claims":"system/oip_articles","source_ids":["oip-s3","oip-s4"]},{"id":"oip-c2","tier":"system","text":"The OIP operating path is caller to directory object to dispatch runner to invocation ledger to receipt.","who_claims":"system/oip_articles","source_ids":["oip-s1"]},{"id":"oip-c3","tier":"system","text":"Every executable capability in the reference implementation is reachable as an OIP object with a human article, a machine document, invocation history, and receipt path.","who_claims":"system/oip_articles","source_ids":["oip-s2","oip-s3"]},{"id":"oip-c4","tier":"system","text":"Tap & Go is the copy primitive: one drop carries credential, protocol, tree, search, execute, and receipt instructions without a separate token-map-bundle assembly step.","who_claims":"system/oip_articles","source_ids":["oip-s2"]},{"id":"oip-c5","tier":"system","text":"OIP receipts are the proof object for actions: they record request, response, actor, links, replay, repair, and lineage.","who_claims":"system/oip_articles","source_ids":["oip-s2","oip-s5"]}],"sources":[{"id":"oip-s1","type":"protocol","title":"BUILD_SPEC object invocation path","url":"https://miscsubjects.com/api/file/docs/BUILD_SPEC.md","summary":"Defines directory rows, dispatch, ledger, and the escalation path for changing the build.","quote":"Run anything: POST https://miscsubjects.com/api/dispatch {key, body}","claim_ids":["oip-c2"],"link_status":"ok","hash":"oipbuildspec0001"},{"id":"oip-s2","type":"protocol","title":"Object Invocation Protocol spec","url":"https://miscsubjects.com/api/file/docs/OIP.md","summary":"Defines OIP surfaces, invariant loop, receipt/replay/repair, and invocation envelopes.","quote":"identify, explain, invoke, ledger, yield","claim_ids":["oip-c3","oip-c4","oip-c5"],"link_status":"ok","hash":"oipspec00000002"},{"id":"oip-s3","type":"protocol","title":"Live OIP capability tree","url":"https://miscsubjects.com/api/dispatch?map=1&format=markdown","summary":"Public recursive capability tree.","quote":"root > shelf > system article > capability article > receipt","claim_ids":["oip-c1","oip-c3"],"link_status":"ok","hash":"oipmap0000000002"},{"id":"oip-s4","type":"protocol","title":"Directory row documentation","url":"https://miscsubjects.com/api/dispatch?key=OIP_TREE&format=markdown","summary":"Capability articles are generated from live rows.","quote":"Machine Contract","claim_ids":["oip-c1"],"link_status":"ok","hash":"oiprow0000000003"},{"id":"oip-s5","type":"protocol","title":"Invocation ledger","url":"https://miscsubjects.com/api/invocations","summary":"Append-only invocation records and receipt links.","quote":"invocations","claim_ids":["oip-c5"],"link_status":"ok","hash":"oipinvocations0005"}],"prov":{"model":"system/oip_articles","action":"generate"}}