Inferensys

Prompt

Review Item Stakeholder Identification Prompt for Routing

A practical prompt playbook for using Review Item Stakeholder Identification Prompt for Routing in production AI workflows.
Developer doing prompt engineering on laptop, prompt variations visible on screen, casual coding session.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the job, ideal user, required context, and constraints for the Review Item Stakeholder Identification Prompt.

This prompt is designed for enterprise product teams and platform engineers who need to programmatically determine the correct set of human reviewers, approvers, and informed parties for a given work item before it enters a review queue. The core job-to-be-done is translating an organization's implicit routing policy—often a complex mix of role-based access, compliance requirements, and domain expertise—into a structured stakeholder map that an application can use to notify the right people. You should use this prompt when a review item's content, risk level, or regulatory context dictates a multi-party review that cannot be resolved by a single static routing rule in application code.

The ideal user is a developer or AI architect building a human-in-the-loop triage system. They have access to the review item's full content, a defined organizational chart or role taxonomy, and a set of routing policies (e.g., 'all P0 items require a VP of Engineering and a Security Lead'). The prompt requires these inputs to be assembled into a [CONTEXT] block. It is not a replacement for a policy engine; it is a reasoning layer that interprets policy against the specifics of a case. Do not use this prompt for simple, single-owner routing that can be handled by a database lookup, or in environments where the organizational structure and policy are too fluid to be documented reliably as input context.

Before integrating this prompt, ensure you have a mechanism to validate its output against a known-good authority matrix. The primary failure mode is not a malformed JSON output, but a stakeholder map that omits a required approver for a high-risk action or, conversely, over-includes individuals, causing notification fatigue. Implement an evaluation harness that checks for missing critical roles defined in your policy and flags items where the number of identified stakeholders exceeds a reasonable threshold. The next step after reading this playbook is to adapt the prompt template with your specific role taxonomy and policy language, then run it against a golden dataset of 20-30 historical review items with known correct stakeholder assignments.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Stakeholder Identification Prompt works, where it fails, and the operational risks to manage before routing review items in production.

01

Good Fit: Structured Enterprise Routing

Use when: Review items require multi-party signoff with clear role definitions (e.g., Legal, Security, Product). The prompt maps item characteristics to a known stakeholder matrix. Guardrail: Maintain a canonical stakeholder registry that the prompt references; do not rely on the model to invent department names or authority levels from scratch.

02

Bad Fit: Ad-Hoc or Political Routing

Avoid when: Stakeholder selection depends on unwritten organizational politics, personal relationships, or shifting team dynamics that are not documented. The model will default to plausible but incorrect assignments. Guardrail: Route items with undocumented stakeholder logic to a human triage queue with a note that the routing policy is undefined.

03

Required Inputs

What you need: A review item with clear content and type, plus a defined stakeholder matrix (roles, authority levels, required vs. informed). Without the matrix, the model guesses. Guardrail: Validate that the stakeholder matrix input is non-empty and contains at least one required approver role before calling the prompt. Fail closed if the matrix is missing.

04

Operational Risk: Over-Inclusion

What to watch: The model adds unnecessary reviewers to appear thorough, causing notification fatigue and slowing down approvals. Guardrail: Implement a post-processing check that flags any stakeholder list exceeding a configurable maximum (e.g., 7 total parties) for human review before routing.

05

Operational Risk: Missing Required Approvers

What to watch: The model omits a legally or contractually required approver (e.g., Data Protection Officer for PII-related items) because the item's content didn't trigger the association. Guardrail: Run a separate compliance gate check prompt on the review item to identify mandatory approvers by regulation, then cross-reference with the stakeholder identification output. Escalate mismatches.

06

Operational Risk: Stale Stakeholder Data

What to watch: The stakeholder matrix changes (people leave, roles shift) but the prompt still references old assignments, routing items to inactive reviewers. Guardrail: Version your stakeholder matrix alongside the prompt and run a periodic sync job that validates all mapped individuals are still active in the directory. Alert on delivery failures to unknown recipients.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template that identifies required approvers, informed parties, and authority levels for a given review item, ready to be wired into a routing system.

This prompt template is the core instruction set for transforming a raw review item into a structured stakeholder map. It is designed to be copied directly into your prompt management system, with square-bracket placeholders that your application must populate at runtime. The template forces the model to reason about organizational roles, authority levels, and the minimum necessary distribution list, rather than simply returning a generic list of department heads.

text
You are an organizational routing specialist. Your task is to analyze a review item and produce a precise stakeholder map identifying every person or role that must approve, be informed, or provide input before this item can be resolved.

## INPUT
Review Item: [REVIEW_ITEM]
Item Type: [ITEM_TYPE]
Department of Origin: [ORIGIN_DEPARTMENT]
Regulatory Context: [REGULATORY_CONTEXT]

## ORGANIZATIONAL CONTEXT
[ORG_CHART_SUMMARY]
[APPROVAL_POLICIES]

## OUTPUT SCHEMA
Return a valid JSON object with this exact structure:
{
  "item_id": "string",
  "stakeholders": [
    {
      "role_or_name": "string",
      "stakeholder_type": "required_approver | informed_party | optional_reviewer",
      "authority_level": "final_approver | conditional_approver | advisory_only",
      "approval_sequence": number,
      "rationale": "string explaining why this stakeholder is included",
      "condition": "string describing the condition for involvement, or null if unconditional"
    }
  ],
  "missing_stakeholder_risks": ["string describing any role that might be needed but wasn't identified in the org context"],
  "routing_instructions": "string summarizing the approval sequence and any parallel vs. serial routing requirements"
}

## CONSTRAINTS
1. Include only stakeholders with a direct, defensible connection to this item. Do not pad the list with generic department heads.
2. If the item type or regulatory context triggers a specific policy, cite that policy in the rationale.
3. The approval_sequence must start at 1 for the first required approver and increment. Use 0 for informed parties who do not approve.
4. If you are uncertain about a stakeholder's necessity, list them in missing_stakeholder_risks instead of the main stakeholders array.
5. Do not fabricate names. Use role titles unless a specific name is provided in the input.

## EXAMPLES
[FEW_SHOT_EXAMPLES]

## RISK LEVEL
[RISK_LEVEL]

To adapt this template for your environment, replace the placeholders with data from your application context. [ORG_CHART_SUMMARY] should be a concise, machine-readable description of relevant reporting structures and approval authorities, not a raw directory dump. [APPROVAL_POLICIES] should encode your organization's rules, such as 'all PII-related items require Data Protection Officer approval.' The [FEW_SHOT_EXAMPLES] placeholder is critical for teaching the model the difference between a required approver and an informed party in your specific domain. Start with two examples: one low-risk item with a single approver, and one cross-functional item requiring sequenced approval. Validate the output against the schema before routing. If the missing_stakeholder_risks array is non-empty, route the item to a queue coordinator for manual review before sending notifications.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the Review Item Stakeholder Identification Prompt. Each placeholder must be populated before the prompt is sent. Validation notes describe how to programmatically check that the input is well-formed before incurring inference cost.

PlaceholderPurposeExampleValidation Notes

[REVIEW_ITEM_TITLE]

Short, human-readable label for the item being routed

Q3 Budget Reallocation Request

Non-empty string. Length between 5 and 120 characters. Reject if only whitespace or generic placeholder text is present.

[REVIEW_ITEM_DESCRIPTION]

Full description of the item, including what action is proposed and why

Request to move $50k from Marketing to Engineering for Q4 infra spend. Justification attached.

Non-empty string. Minimum 20 characters. Reject if description is a duplicate of the title or contains only a URL without context.

[REVIEW_ITEM_TYPE]

Category of the review item used to determine the default stakeholder policy

BudgetChange

Must match one of the allowed enum values defined in the organization's review policy config. Reject unknown types.

[ORGANIZATIONAL_CHART]

Current org structure with roles, reporting lines, and department assignments

CTO -> VP Eng -> Dir Platform -> Sr. Engineer

Valid JSON or structured text. Must contain at least one department and one role. Parse check: confirm the structure is traversable for reporting-line lookups.

[STAKEHOLDER_POLICY]

Policy rules that map item types, risk levels, and departments to required approver roles

BudgetChange > $10k requires: Finance Director (approver), Dept Head (informed)

Valid JSON or structured policy document. Schema check: each rule must specify a role, an authority level (approver, informed, veto), and a trigger condition. Reject if no rules match the provided [REVIEW_ITEM_TYPE].

[RISK_CLASSIFICATION]

Pre-assigned risk level for the review item, used to escalate stakeholder requirements

High

Must be one of Low, Medium, High, Critical. If null, the prompt should treat it as Medium. Reject values outside the allowed set.

[EXISTING_APPROVERS]

List of individuals or roles already assigned as approvers, if any, to prevent duplication

Array of strings or null. If provided, each entry must match a valid email or role ID from the org chart. Duplicate detection should run before prompt assembly.

[MAX_STAKEHOLDER_COUNT]

Upper bound on the total number of stakeholders returned to prevent over-inclusion

8

Integer between 3 and 20. Reject values outside this range. Used as a hard constraint in the output schema validation step.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the stakeholder identification prompt into a review routing application with validation, retries, and human-in-the-loop checks.

This prompt is designed to sit inside a review routing pipeline, not as a standalone chat interaction. The application should invoke it immediately after a review item is created and before it enters any team queue. The model receives the item payload, organizational context, and routing policy, and returns a structured stakeholder map. The application then uses that map to determine queue placement, notification targets, and approval sequencing. Because this prompt influences who sees what and when, treat its output as a routing suggestion that requires deterministic validation before any notification is sent.

Wire the prompt into a service function that accepts a review item object and a routing policy configuration. The function should: (1) assemble the prompt with the item's title, description, source system, risk classification, and affected resources; (2) inject the organization's role taxonomy and approval policy from a configuration store, never from the prompt itself; (3) call the model with a low temperature (0.0–0.2) and a structured output schema that enforces the stakeholders array with role, name_or_group, authority_level, rationale, and is_required fields; (4) validate the response against a known role allowlist and reject any hallucinated roles; (5) cross-check that every resource owner and policy-defined required approver appears in the output, flagging missing entries for human review; (6) log the full prompt, response, and validation result for auditability. If validation fails, retry once with an error-augmented prompt that lists the specific missing or invalid roles. If the retry also fails, route the item to a manual triage queue with the validation errors attached.

Model choice matters here. Use a model with strong instruction-following and structured output support, such as GPT-4o, Claude 3.5 Sonnet, or Gemini 1.5 Pro. Avoid smaller or older models that are more likely to hallucinate role names or miss required approvers. If your organization's role taxonomy is large or changes frequently, consider providing it as a compact JSON object inside the prompt rather than relying on the model's parametric knowledge. For high-stakes workflows—such as security incident review or compliance violation routing—always require a human to confirm the stakeholder map before notifications are dispatched. The application should surface the model's output alongside the validation results, highlighting any over-included reviewers (people who don't need to see this item) and any missing required approvers. This turns the prompt from a black-box router into a reviewable, auditable decision-support tool.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the exact fields, types, and validation rules for the stakeholder identification output. Use this contract to parse and validate the model response before routing.

Field or ElementType or FormatRequiredValidation Rule

stakeholder_map

array of objects

Array length must be >= 1. Reject if empty.

stakeholder_map[].role

string

Must match enum: [required_approver, informed_party, optional_reviewer]. Reject unknown values.

stakeholder_map[].identifier

string

Must be a non-empty string. Prefer email, team slug, or role ID. Reject generic labels like 'someone'.

stakeholder_map[].authority_level

string

Must match enum: [blocking, advisory, informational]. Reject if missing or invalid.

stakeholder_map[].justification

string

Must be a non-empty string with a concrete reason for inclusion. Reject if justification is generic or circular.

routing_decision

object

Must contain 'primary_queue' and 'fallback_queue' fields. Reject if missing.

routing_decision.primary_queue

string

Must be a non-empty string matching a known queue name. Reject if null or empty.

routing_decision.fallback_queue

string or null

If provided, must be a non-empty string. Null is allowed when no fallback is needed.

PRACTICAL GUARDRAILS

Common Failure Modes

Stakeholder identification prompts fail in predictable ways. These are the most common production failure modes and how to guard against them before they reach a reviewer.

01

Missing Required Approvers

What to watch: The prompt omits a legally or contractually required approver (e.g., Data Protection Officer for PII-related actions, Security for infrastructure changes). This happens when the prompt relies on role titles that don't map cleanly to organizational authority. Guardrail: Maintain a hardcoded mapping of action types to required roles outside the prompt. Validate the model's output against this mapping and re-prompt with the missing role explicitly injected into [REQUIRED_APPROVERS] before routing.

02

Over-Inclusion of Unnecessary Reviewers

What to watch: The model adds every possible stakeholder to reduce its own perceived risk, causing notification fatigue and slowing down the review queue. This is common when the prompt lacks explicit exclusion criteria. Guardrail: Include a [MAX_STAKEHOLDERS] constraint and an explicit instruction to exclude roles that are merely informed unless their input is decision-blocking. Post-process the output to flag and remove any stakeholder without a concrete decision right.

03

Authority Level Misclassification

What to watch: The prompt labels a stakeholder as 'Approver' when they only have 'Informed' authority, or vice versa. This leads to blocked workflows or unauthorized actions proceeding without proper sign-off. Guardrail: Require the prompt to cite a specific policy, runbook, or system-of-record field that justifies the authority level. If no evidence is found, default to 'Informed' and escalate the ambiguity to a human queue manager.

04

Stale Organizational Knowledge

What to watch: The prompt relies on outdated team structures, departed employees, or reorganized departments embedded in its training data or static context. It confidently routes to people who no longer hold the role. Guardrail: Always provide a fresh [ORG_CHART] or [TEAM_DIRECTORY] as part of the prompt context. Run a pre-validation check that all output stakeholders exist in the current directory. If a match fails, flag the item for manual routing.

05

Ambiguous Stakeholder Identification

What to watch: The prompt returns vague roles like 'the security team' or 'a legal reviewer' instead of specific individuals or on-call rotations. This forces the human operator to resolve the ambiguity, defeating the purpose of automated routing. Guardrail: Constrain the output schema to require a specific name, email, or escalation policy ID. Use a [RESOLUTION_RULE] that states: if a specific person cannot be identified, the item must be routed to the team's designated triage lead instead of a generic alias.

06

Ignoring Cross-Functional Dependencies

What to watch: The prompt identifies stakeholders within a single vertical but misses cross-functional dependencies (e.g., a pricing change requiring both Product and Finance approval). This creates a false sense of completeness. Guardrail: Include a [DEPENDENCY_MAP] or a checklist of cross-functional areas that must be considered for each action category. Use an eval step that checks whether all required functional areas from the map are represented in the output stakeholder list.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to evaluate the quality of the stakeholder map before routing it to a human review queue. Each criterion should be tested with a combination of automated checks and periodic human spot checks.

CriterionPass StandardFailure SignalTest Method

Required Approver Completeness

All roles with blocking authority per [POLICY_DOC] are listed as required approvers

A required approver from the policy is missing from the output

Schema check: diff [POLICY_DOC] role list against output required_approvers list; flag missing roles

Informed Party Accuracy

Informed parties match the communication plan in [PROJECT_PLAN] without over-inclusion

An informed party is listed who has no stake in the decision, or a documented stakeholder is omitted

Parse check: compare output informed_parties against [PROJECT_PLAN] stakeholder register; flag additions and omissions

Authority Level Assignment

Each stakeholder has a single authority level from the allowed enum: blocker, approver, reviewer, observer

A stakeholder is assigned an invalid authority level or multiple conflicting levels

Schema validation: check authority_level field against allowed enum; fail on invalid values or multiple assignments

Routing Justification Quality

Each routing decision includes a specific, non-generic justification grounded in [POLICY_DOC] or [PROJECT_PLAN]

Justification is missing, uses a generic template, or cites no source

LLM-as-judge check: verify each justification contains a source reference and a specific reason; flag generic strings

Over-Inclusion Prevention

No unnecessary reviewers are added beyond those required by policy or project plan

Output includes a stakeholder not found in any source document with no explicit rationale

Diff check: compare output stakeholder list against union of [POLICY_DOC] and [PROJECT_PLAN] names; flag extras

Stakeholder Contact Mapping

Each stakeholder is mapped to a valid contact identifier from [DIRECTORY]

A stakeholder is listed with a null, malformed, or missing contact identifier

Schema and lookup check: validate contact_id format and confirm presence in [DIRECTORY]; fail on null or not found

Conflict of Interest Flagging

Any reviewer who is also a requestor or has a documented conflict is flagged with a warning

A known conflict from [CONFLICT_REGISTER] is not surfaced in the output

Cross-reference check: compare output stakeholder list against [CONFLICT_REGISTER]; flag any undocumented conflicts

Output Schema Compliance

Output strictly matches the [OUTPUT_SCHEMA] with all required fields present and correctly typed

Output is missing a required field, contains extra fields, or has type mismatches

Schema validation: validate entire output object against [OUTPUT_SCHEMA]; fail on any violation

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base stakeholder identification prompt and a simple JSON schema. Use a single model call with the full review item, organizational context, and a list of candidate roles. Accept free-text role descriptions and authority levels without strict enum validation.

code
Identify all stakeholders who must review, approve, or be informed about this item.

Review Item: [REVIEW_ITEM]
Org Context: [ORG_CONTEXT]

Return JSON with stakeholders array containing name, role, authority (approver|informed), and rationale.

Watch for

  • Missing required approvers when the org context is sparse
  • Over-inclusion of every possible role instead of relevant stakeholders
  • Inconsistent authority level labels across runs
  • No distinction between required and optional participants
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.