{"success":true,"name":"brimind-dig-unknown-user","description":"We are about to deal with a person we know nothing (or too little) about — a stranger who writes in with « مرحبا » / « bonjour » / « salam », a user folder in clients/users/ with no name and no business, a number the owner pastes, someone about to get a call, a relance or an offer with no idea who they are. Use BEFORE the first answer, call or offer to any such person, every time, whoever acts (So","category":"unitary","path":"unitary/brimind-dig-unknown-user/SKILL.md","file":"SKILL.md","content":"---\nname: brimind-dig-unknown-user\ndescription: We are about to deal with a person we know nothing (or too little) about — a stranger who writes in with « مرحبا » / « bonjour » / « salam », a user folder in clients/users/ with no name and no business, a number the owner pastes, someone about to get a call, a relance or an offer with no idea who they are. Use BEFORE the first answer, call or offer to any such person, every time, whoever acts (SoloBro, Farah, Omar), so we lead them to one product chosen from who they are, never a generic catalogue line.\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/skills/brimind-dig-unknown-user`. Paths are relative to `[PRIVATE_HOST]:[PATH]`; run commands there via `ssh [PRIVATE_HOST] 'cd ~/unitary && ...'`. Owner send rules from skill i7-remote-ops still apply.\n\n\n# Dig about a user we know nothing about → one direction\n\nOwner, 2026-10-13, on « مرحبا » from +[PHONE] that got a generic « what do\nyou do? » reply after one OR-joined search: *\"if we don't have any kind of detail\nabout the client, make Omar do a deep search about that phone number on the\ninternet, for what kind of organisation or company it is related to, to know what\ndirection we will respond to him, and what subject/product we will lead him to\"* —\nthen: *\"not only this phone number, each time\"*, and on 2026-10-14: *\"not only\nsender, it's dig about a user.\"*\n\n## Who gets dug — four ways in, one brief\n\n| Way in | How it fires | Cap |\n|---|---|---|\n| **Every message received**, on any rail (WhatsApp 1/2, SMS, Telegram, email), from a stranger **or a client on record** | `brimind-inbound-enrich.timer`, every 2 min: a **new search session on that number** (the worker opens `tel-<number>` for Omar), at most once per 24 h per number so a burst of messages is one search; it starts from the earlier brief | 25 / day |\n| A **user folder** `clients/users/<id>/` with a number and no name | the same timer, after the live arrivals, most recently seen first | 10 / day with the DB (`INBOUND_ENRICH_BACKFILL_CAP`) |\n| A **client-DB number with no details** (`clients` collection, `name: null`) | the same timer, after the user folders, most recently updated first | same 10 / day |\n| **Anyone, now**: the owner pastes a number, a call / relance / offer is about to go to someone unknown | `node agents/tools/inbound-enrich.mjs dig <num\\|email\\|@user> --why \"before the call\"` | none |\n\nNever the owner's family, our own lines, a team member (`access: team`), a WhatsApp\nLID filed as a phone, or the owner's personal threads (Telegram and WhatsApp line 1,\n`telegram/lib/personal.js`; line 2 is the business line). Backfill and `dig`: once per\n30 days per number (`--force` redoes it).\n\nThe brief lands in `agents/opportunity-searcher/inbound-briefs/<key>.md`, and once\naccepted its summary (who + Direction) is written to\n`clients/users/<id>/memories/omar-brief.md` and as a note on the client's DB document,\nso **every agent that acts for that person reads it first** (`client get`, their folder).\n\n## Omar — the deep search (every key its own query)\n\nNever one query with OR between keys: `\"[PHONE]\" OR \"Slah Neifar\"` returns nothing\nwhere each alone may hit. Log **one line per key** under `## Sources vérifiées`.\n\n1. **The number, every spelling**, each its own search: `+[PHONE]`, `+[PHONE]`,\n   `[PHONE]`, `[PHONE]`, `25 47 00 08`, `[PHONE]`, `[PHONE]` (the letter\n   lists them for you). Facebook search on the number too.\n2. **The display name**, split into a real name, every Latin spelling and the Arabic\n   one (Slah / Salah / Slaheddine / صلاح الدين; Neifar / Nifar / Naifar / النيفر), alone,\n   with the city, with a business word (société, gérant, SARL, مؤسسة).\n3. **Social**: Facebook people + pages, Instagram, LinkedIn, TikTok (browser-opener's\n   saved profile only), the same handle on every network.\n4. **Directories and Maps**: pagesjaunes.com.tn, registre-entreprises.tn (RNE), Google\n   Maps places carrying the number or the name. A directory that is down is logged « down », not « 0 ».\n5. **The profile on the rail**: WhatsApp `/check` (business account, category, about,\n   photo → reverse image search), Telegram name/@handle, the email's domain → its site.\n6. **Our own records**: `client get <number>`, `waves/data`, `sms/data/sent.jsonl`, dealflow,\n   leads — did we write first, with which offer? That offer IS the direction.\n7. **Their words**: the message itself (a sector word, a city, « site », « prix », a photo).\n\n`Statut : thin` is allowed only after ≥8 keys, Facebook, a directory or Maps, the rail\nprofile and our records among them. Thin is a result; a padded fact is a fault.\n\n## The Direction — every brief ends on it, thin included\n\n```\n## Direction\n- Produit : <ONE product from agents/BRIMIND.md>\n- Pourquoi : <the fact that points to it, or \"hypothèse\">\n- Première réponse : <the next line to send, in their language and register>\n- Confiance : haute | moyenne | basse\n```\n\nHow to choose the product (from agents/BRIMIND.md, the catalogue there wins):\n\n| What the search found | Lead with |\n|---|---|\n| A business with no site (Facebook/Instagram only, Maps without a link) | Sites web & e-commerce (vitrine or boutique) |\n| A site that is slow, broken, old, not mobile | Audit de site / Correction de bugs |\n| A shop selling by DM / phone | Boutique en ligne + Paiement en ligne (ClicToPay) |\n| Bookings by phone (salon, clinic, hotel, restaurant, school registrations) | Site with online booking / registration |\n| A private school, institute, university (the main lane) | Site + inscriptions en ligne, then AI assistant |\n| Many WhatsApp questions from their own clients | WhatsApp & messagerie / AI assistant |\n| A company with invoices, field teams, stock | Applications sur mesure / Facturation en ligne |\n| We wrote to them first (wave, SMS, relance) | The offer of that send, with its own link |\n| Nothing at all (thin) | Sites web & e-commerce, as a hypothèse, Confiance basse |\n\n**Première réponse** rules: one short message, one question, built on the finding\n(« شفت صفحتكم في فيسبوك … عندكم موقع؟ »). With nothing found: a warm hello plus ONE\nquestion that sorts them (« شنوة نشاطك وفي أي ولاية؟ ») and the references link. Never\ngreet them by a name we only guessed from a display name. Never a price that is not in\nBRIMIND.md, never the whole catalogue.\n\n## SoloBro / Farah — before answering, calling or offering\n\n```bash\nnode agents/tools/inbound-enrich.mjs brief <number|email|@handle> --wait 300\n```\n\n- Holds up to 5 min while Omar's brief is pending. A bare « hello » waits for it; a\n  question that cannot wait (a price, an urgent need) is answered at once and the\n  Direction shapes the next message.\n- `no brief for …` and you still know nothing about them → `inbound-enrich.mjs dig <who>`\n  first, then `brief <who> --wait 900` before the call or the offer.\n- Lead with **Produit** and send **Première réponse** in your own words, through\n  `agents/reply.mjs` as usual (client guard, Tunisia send window).\n- `Confiance : basse` → ask, do not pitch. `haute` → name the fact and the product.\n- They answered and it contradicts the brief → follow them, and `client save` what they said.\n\n## Check\n\n- `node agents/tools/inbound-enrich.mjs status` → briefs still pending.\n- `node agents/tools/inbound-enrich.mjs sweep --dry-run --verbose` → which strangers and\n  which user folders would be dug now, and why the others are not.\n- A reply, call or offer to someone we knew nothing about without their brief, or a\n  brief closed thin after one search, is the failure this skill exists for: flag it to Nader.\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}