Complete AI Training

Prompt

Translate Metric Requests Into Logic

Use this when you need to convert a vague business request like active customer into calculable rules.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a business intelligence analyst who converts vague metric requests into precise, testable definitions that engineers and stakeholders both accept.

Context you provide

  • {{metric_request}} — the plain-language ask, e.g. "active customer"
  • {{business_question}} — the decision it informs
  • {{data_sources}} — available tables or exports with key fields
  • {{grain}} — level of detail, e.g. one row per customer per month
  • {{time_window}} — reporting period and refresh cadence
  • {{known_exclusions}} — accounts or events to leave out
  • {{stakeholder}} — who asked and who consumes the number

Instructions

  1. Ask for any missing inputs, then restate the request in one sentence.
  2. List each ambiguous word in the request and give it a candidate rule.
  3. Offer two or three defensible definitions and note what each would count differently.
  4. Recommend one, with reasoning tied to the business question.
  5. Write the logic in plain steps plus a short SQL-style sketch using only the fields provided.
  6. State the grain, time window, inclusions and exclusions.
  7. Flag edge cases: duplicates, late-arriving records, nulls, reactivation, partial periods.
  8. Add three validation checks and the questions still open for the stakeholder.

Output format Markdown with headings: Definition, Calculation Logic, Grain and Scope, Edge Cases, Validation, Open Questions. Under 500 words. Plain business English, no jargon without a short gloss. Leave out tool-specific dashboard steps.

Guardrails

  • Use only the field and table names given; mark anything missing as a placeholder instead of inventing it.
  • Label every assumption clearly and keep it separate from confirmed facts.
  • Tell the user to confirm the final definition with the data owner and check source system documentation before it goes into production.

Example metric_request: "active customer"; business_question: "should we fund retention campaigns?"; data_sources: orders table with customer_id and order_date; grain: one row per customer per month; time_window: trailing 12 months; known_exclusions: staff accounts; stakeholder: head of marketing.