N NoBullshit.wiki 中文

Mother & baby store marketing & events planner - event invite-list screening tool - import the member CSV and grade everyone by "baby age x class-topic window" into three tiers (must-call / can-call / courtesy-call), with same-topic attendees from the last six months excluded first and past phone-refusers sent to a cooldown list; exports a printable outreach assignment sheet split by sales associate

Works with:Claude / GPT-4 classCategories:Mother & Baby StoreLevel:Advanced Updated

You are a coding agent building an internal tool for
a mother & baby store. Build a single-file HTML tool
(no backend, no external dependencies, opens on
double-click) for the marketing & events planner to
screen the call list before a mom class.

The real problem it solves: with thousands of
members, calling everyone is harassment and calling
randomly is waste - and calling the wrong person
(wrong age band, recent attendee, past refuser)
damages the member relationship worse than not
calling at all.

1. Data import
- CSV import (drag-drop or file picker); fields:
  phone, baby birth date (or age in months), last
  purchase date, 90-day spend, event attendance
  history (topic + date), phone-outreach flag
  (normal / refused)
- Rows with missing fields are not dropped; they
  are marked "incomplete info," placed in the
  "don't call" tier, and counted separately in
  the results
- One phone number spanning multiple rows (twins /
  second child) stays as one row per birth date;
  no dedup-merging

2. Screening logic (the core; execute strictly by
rule)
1) Pick the class topic (dropdown): newborn care /
  introducing solids / toilet training / autumn
  stomach-flu care / roseola management / early
  learning / speech development - each topic
  carries a built-in age window (e.g. solids:
  months 4-8), with all window values living in a
  config block at the top of the code that the
  planner can edit
2) Exclusion rules, in priority order:
   a. outreach flag = refused -> cooldown list;
      no topic gets them called
   b. attended the same-topic class within six
      months -> excluded (re-inviting recent
      attendees is the single most common source
      of harassment complaints)
   c. age outside the window -> excluded
   d. incomplete info (no birth date and no age)
      -> excluded but counted separately
3) Everyone left gets scored and sorted into
   three tiers:
   - Must-call: age in the middle half of the
     window AND purchased within 90 days
   - Can-call: age in the window but near an
     edge, OR no purchase in 90 days (active
     earlier)
   - Courtesy: age in the window, last purchase
     180+ days ago - the call is framed as a
     check-in, not an invite; different script,
     flagged on the assignment sheet

3. Output
- Three on-page tables: must-call / can-call /
  courtesy (phones displayed masked except on
  export)
- One-click export to printable HTML or CSV,
  sliced by associate (slice count configurable,
  default 4), each slice sorted by tier, with the
  class topic, the RSVP deadline, and the
  courtesy-call script hint in the header
- A summary bar: total members / how many each
  exclusion removed / tier counts - the excluded
  counts must be shown, because the planner has
  to explain to the store manager why so few
  people get called

4. Boundaries and prohibitions
- All computation happens locally in the browser;
  no network, no uploads
- Age-window defaults come only from the config
  block; the code must not carry a second hidden
  rule set
- Exported phone numbers are for printing the
  assignment sheets only; the page offers no
  "save list" feature whatsoever
- UI text in plain language; the words "smart"
  or "AI-recommended" are banned - this is a
  rules-based filter and every rule is shown to
  its user

Start with a one-sentence-per-section page
structure, then the complete single-file code,
then a usage walkthrough (from CSV export to
printed assignment sheets).

Why it is written this way

Screening runs excludes-first, score-second because of a trap the naive version always falls into. Typical invite tools lead with an activity score, ranking "highest-spending moms" first - but someone outside the age window finds a solids-class call intrusive no matter how much she spends, and a recent attendee called again won't greet your staff next visit. Exclusions first (refused > recent attendee > out of window); only survivors compete on priority. The ordering inside the exclusions is deliberate too: a past refuser touched by any topic is harm, so it sits on top.

The courtesy tier is the highest-value detail in this tool. Members whose age matches but whose purchases stopped 180 days ago get discarded by activity scoring - yet for exactly these people, "there's a class that fits your baby" is the only natural excuse to open the conversation again, far more dignified than "we've missed you." Singling them out and forcing a script switch (invite becomes check-in) lets one list do double duty - filling the class and waking dormant members - without annoying anyone.

The excluded counts must appear in the summary bar because the planner needs an audit face. After screening, the callable list is often just two or three hundred people, and the store manager's first reaction is "why so few - where's the list?" With "87 refused, 124 recent attendees, 2,900 outside the window" on screen, smallness is justified line by line. A list that shrinks with each run is the filter doing its job, not the membership bleeding - and without numbers that explanation cannot be made.

Phones masked on the page, unmasked only in the export, and no save feature - a pragmatic security line for an internal tool: printed assignment sheets in human hands are enough. Leave a fully copyable list living in a browser tab and the next place it shows up may be someone's group chat. And the age windows live in a top-of-file config block rather than scattered through the code because stores genuinely differ on topic windows (solids starting at month 4 vs month 6); the planner must be able to change them and see exactly what was changed.

Variables

Variable Description
Age window The baby-age band per class topic, in the code's top config block - defaults reflect common practice; each store tunes them to its own curriculum
Slice count How many assignment sheets to split into - default 4; set to the number of people actually making calls that day, or uneven slices mean someone can't finish before the RSVP deadline

invite listmember screeningsingle-file tool