Recruiting advertisers through the Instagram Ads sales team, I learned they talked every week with small businesses running lead generation ads, and those calls held priorities and stall points that never reached research or product. The signal existed. Nobody could search it.
The catch: the corpus was messy. Not every seller kept transcripts, notes were sparse and untagged, and every rep wrote in their own format. RAG doesn't fix bad data. It retrieves it faithfully.
Researcher and builder. I:
- built it during Meta AI week for my own research sessions, then scaled it to ads product partners with engineers
- wrote the codebook that defined context, output and quality
- ran expert reviews and first-use sessions with PMs and PMMs
- designed the evaluation: an LLM judge, calibrated by human audit
Not "bring sales data to product"
The obvious brief was a pipe from sales to product. I reframed it: how do we make advertiser pain visible without adding work for sales? That changed the design. The tool had to read notes the way reps already wrote them.
Sales data stayed out of the UXR and DS repository. Reps aren't neutral interviewers, so their notes would skew the weighting.
Every claim links to the conversation behind it, so readers check before they act.
Documentation guidelines drafted with sales leadership, written for someone carrying 40 accounts and a quota.
- What are advertisers telling sales that research and product never hear?
- What does each partner team need from an answer: quotes, decisions, or workflow steps?
- When can a generated answer be trusted, and how would a reader know?
- Retrieval, then generation: search over call notes, transcripts and CRM entries. The model answers only from what it retrieves, and cites it.
- A codebook before a prompt: I hand-evaluated early answers and wrote down every judgment I made, so the harness ran on rules, not my instincts.
- Expert review: researchers checked sourcing and interpretation; sales checked accuracy.
- First-use sessions: contextual inquiry with PMs and PMMs on onboarding and trust needs.
- Evaluation at scale: an LLM judge scored every answer; researchers audited the judge.
What counts as an advertiser signal, and how notes are tagged.
PMMs get advertiser quotes. PMs get decisions and metrics affected. Design gets workflow steps.
The rubric both the judge and humans scored against.
The model was never the hard part. The codebook was the product: the written judgment that told retrieval what counts, generation what shape to take, and the judge what good looks like. Human intent was the hardest thing to encode.
What a later codebook project sharpened
Building a Q&A bot over customer feedback for EvenUp's legal AI product showed me what I'd add to this tool in one more week:
- Map questions to valid evidence
- Spell out which data points can answer which kinds of question.
Here: a sales note can show where advertisers stall, not how many share the problem. - Reviewed answers to sample questions
- A set of sample questions, each with a reviewed answer: one acceptable, one not. The bot copies the shape, never the numbers.
Here: one standard to judge against, instead of ad hoc hand evals. - Rules the bot can't break
- A count and its base, a source per claim, exact quotes, "My read" before interpretation, and "the data doesn't say" when it doesn't.
Here: citations become a rule, not a feature. - A database for a growing repository
- New notes flow in on their own, and every answer is counted from the current data.
Here: sales calls happen weekly, so answers stay current with no manual uploads. - The codebook as a quality loop
- Weak answers get reviewed, and each fix becomes a versioned rule.
Here: response quality improves over time instead of drifting.
PrincipleIn an AI research tool, the codebook is where research judgment lives.
- Roadmap input in 2 months: the tool showed small businesses on lead generation ads stalling on audience targeting during campaign creation. AI targeting help for SMBs was prioritized on the AI roadmap.
- Fixes from first-use sessions: time-scoped queries, sample questions in onboarding, inline citations per claim, and a flag when sparse notes risk misreading.
What I didn't measure: whether readers actually opened the sources. That's the first metric I'd add.
- Reframing before building
- From a data pipe to visible advertiser pain, at no extra cost to sales
- Research judgment, operationalized
- A codebook that encodes context, output and quality
- Evaluation as a system
- An LLM judge for scale, humans to keep it honest
- Respecting the data's limits
- Kept biased sales signal apart from study data
- Building with AI, hands-on
- Prototyped it myself, then scaled it with engineers