Skip to main content

Scenario

Your agent receives a customer email mentioning a company you don’t know much about. You need firmographics and recent priorities to write an informed response — and you want to cite where the information came from.

Pattern

Three calls:
  1. /validate — confirm the company exists in BETA, get the canonical entity key.
  2. /enrich — pull firmographics + headline insight + sources used.
  3. Render with citations — surface meta.sources[] and sources_cited count to your reader.

Implementation

Why this pattern

  • /validate first filters unknown / ambiguous inputs before paying for /enrich. Avoids 404s and saves a billable call.
  • include: ['intelligence'] pulls the synthesized SWOT + priorities + competitors, not just firmographics.
  • Returning sources_used + article_count makes the response auditable. Surface this in your UI.

What to do with confidence

See Citation Contract → Drop-in patterns for the full trust pattern.