---
name: "research-agent"
description: "Build an account research agent with hallucination guardrails: collect and save source text (annual report or 10-K, podcast and interview transcripts, careers and hiring pages) with URL and date, extract claims that each carry an exact quote and source, verify every quote and number with a script, write a brief from verified claims only, label inferences separately, and keep an audit trail. Use before personalised outreach, call prep or account planning."
---

# Research agent

## Goal
Briefs that a rep can trust and a customer would recognise as accurate: every statement traceable to a saved source and a quote. Part of GTM engineering. Fed by: signal-detection-engine, icp-scoring-model. Feeds: multi-channel-orchestrator, inbound-lead-router (account context).

## When to use
- Reps personalise with facts they cannot show.
- An agent writes research that sounds right and sometimes is not.
- You want openers based on what a company said in public.

## Inputs
- Target company and domain, and the question you want answered.
- Source types you may use: annual reports and filings (for example a 10-K for US public companies), podcast and interview transcripts, careers and hiring pages, press releases, the company's own blog.
- Where to save source text.

## Data model
`sources/<file>.txt`: the saved text. Keep a `sources.csv` with `file, url, fetched_on, type`.
`claims.jsonl`: `claim_id, claim, source_file, quote`
`claim_report.csv`: `claim_id, status, notes`
`brief.md`: verified claims with footnotes, plus an Inferences section.

## Step 1. Collect and save sources
For each source, fetch the text and save it to `sources/` with the URL and the fetch date. For filings, use the official database. For podcasts, use the published transcript or a transcription you generate and mark as generated. For hiring pages, save the full job posts that matter. Do not use content behind a login, and follow robots rules and site terms. Pages change, so the saved copy is your evidence.

## Step 2. Extract claims with quotes
For each fact you want to use, write one JSON line: the claim in your words, the source file, and an exact quote from the saved text that supports it. A claim without a quote is not a claim. Typical claim types:
- Priorities and risks the company names in its own filing.
- Initiatives, products and markets in the business section.
- Direct quotes from leaders in interviews, with speaker and date.
- Hiring patterns: number of open roles in a function, tools named in job posts, seniority.
Numbers must be copied from the quote.

## Step 3. Verify
Run `scripts/claim_check.py verify claims.jsonl sources/`. The script fails a claim when the source file is missing, the quote is empty, the quote is not found in the source (ignoring case and spacing), or a number in the claim does not appear in the quote. Fix or delete every failure. Never "fix" a failure by loosening the quote.

## Step 4. Write the brief
Use verified claims only. Structure: what they say they are focused on, what they are hiring for, language they use, and open questions. Footnote every statement with the source and date. Put your own reasoning in a section called Inferences, with the evidence for each. Inferences are never used as facts in outreach.

## Step 5. Add guardrails to the agent's prompt
- Use only the saved sources. If the answer is not in them, say so.
- Copy quotes exactly. Never alter wording inside quotation marks.
- No invented names, numbers, dates, customers or titles.
- Say "not found in the sources" instead of guessing.
- Mark inferences as inferences.
- Do not claim anything about internal problems, only about what they said.

## Step 6. Human check and log
A person reads the brief, spot-checks two claims against the source, and approves before use. Keep the sources and claims with the brief so it can be audited. Track the failure rate by source type and by model or prompt version.

## Tool options
A search engine or the official filing database for discovery. A fetch or browser tool that saves text. A language model for extraction. A script for verification. Storage in a folder, a repository or a warehouse table. Use whatever your agent can use, but keep the verification step as code, not as another model's opinion.

## Output
`claim_report.csv` and `brief.md`.

## Success metrics
- Share of claims that pass verification on the first attempt (this should rise as prompts improve).
- Share of briefs approved by a person without edits to facts.
- Reply rate on openers built on verified claims versus generic openers (use experiment-harness).
- Time per brief.

## Guardrails
- No outreach text that states anything unverified.
- No scraping behind logins or against site terms.
- Personal data about individuals stays minimal. Stick to public professional statements.
- Keep an audit trail: source text, claim, quote and check result.
- Do not present inferences as fact, in the brief or the email.
