Module 1 • Lesson 550 mins

Match Prompt Structure to PM Task Type and Decompose Hybrid Pipelines

Architect prompts for Precision vs. Generative tasks, and decompose hybrid workflows into independent 2-step pipelines instead of one monolithic prompt.

Prompt architecture for Precision vs. Generative tasks
Decompose hybrid workflows into independent 2-step pipelines

Match Prompt Structure to PM Task Type and Decompose Hybrid Pipelines

The previous lesson covered selecting examples. This lesson tackles a bigger question: what the overall prompt structure should look like, depending on the nature of the task.

Running Example: The Product Manager of FreelanceFlow needs AI to score PM candidate resumes against a hiring rubric, and to read transcripts from 10 customer interviews to write an Executive Product Opportunity Brief for Leadership.

TIẾP CẬN CŨ / LỖI THỜI
One Template for Every Task
Same structure regardless of task type → Either too rigid or too vague
CHUẨN AI PM / HIỆN ĐẠI
Match Structure to Task Type
Precision locks schemas, Generative locks tone, hybrid tasks split into pipelines

1. Enforce Hard Rules and Strict Formats for Precision Tasks

There is no universal prompt template for all PM tasks. When executing Precision tasks (resume scoring, financial metric extraction, classification), prompt architecture must follow strict engineering standards:

  • Eliminate Title Personas: Do not open with "You are a seasoned HR director...", as this persona promotes leniency and subjective storytelling.
  • Define Unambiguous Rubrics: Provide clear binary or tiered thresholds for acceptance/rejection.
  • Constrain Output Enums: Specify a closed set of allowed values (preventing the model from inventing creative labels).
  • Suppress Reasoning Output Unless Auditing: If downstream code parses the output, explicitly forbid conversational commentary outside the required schema.

Example: Scoring PM resumes for FreelanceFlow:

## Task
Evaluate the Product Manager resume against the 3 criteria below. Score each on a 1-5 scale (1: No evidence, 5: Exceptional with verified metrics).
 
## Rubric
1. Product Analytics: Proven experience with tracking plans and funnel analysis (Mandatory).
2. AI/LLM Execution: Track record of authoring PRDs or deploying production AI features.
3. Stakeholder Communication: Clear evidence of cross-functional alignment.
 
## Output format
Return valid JSON matching this schema:
{
  "scores": { "analytics": number, "ai_execution": number, "communication": number },
  "total_score": number,
  "passed_gate": boolean
}

2. Encode Tone and Behavioral Boundaries for Generative Tasks

In contrast to Precision tasks, Generative jobs (drafting LinkedIn launch posts, writing incident announcements, answering stakeholder inquiries) do not have a single objective ground truth. Quality is dictated by Tone & Voice, Target Audience Alignment, and Brand Safety Guardrails.

Prompt architecture for Generative tasks should focus on:

  • Functional Persona: Clarify the spokesperson role and strategic perspective.
  • Target Audience: State reader expectations, knowledge depth, and core pain points.
  • Negative Constraints: Explicitly forbid hollow buzzwords or unsafe promises (e.g., ban terms like "game-changing", "revolutionary", "seamless").
Comparison DimensionPrecision TasksGenerative Tasks
Core ObjectiveGround truth accuracy, determinism, schema adherenceTone, persuasiveness, reader resonance
Persona StrategyRemove entirely or compress to 1 rule lineUse functional personas to lock voice and stance
Output FormatJSON, Enums, Structured TablesMarkdown prose, paragraphs, executive bullets
Few-Shot RoleGround edge cases and null handlingDemonstrate style, cadence, and boundary handling

Exercise 2.2: Classify the following 3 PM tasks into Precision or Generative, then draft the corresponding prompt structure:

  1. Extracting all unresolved questions from a 5-page Sprint Review transcript.
  2. Drafting a Push Notification for a "Budget Limit Exceeded Warning" targeted at freelancers onboarded within the last 7 days.
  3. Categorizing 100 NPS survey responses into 4 buckets: [UI/UX], [Pricing], [Bug], [Feature Request].

3. Decompose Hybrid Tasks into a 2-Step Pipeline Instead of a Monolithic Prompt

In real-world product workflows, many responsibilities are hybrid: they demand rigorous data extraction combined with persuasive narrative synthesis. A classic example is: "Read transcripts from 10 customer interviews and write an Executive Product Opportunity Brief for Leadership."

Shoving both goals into a single prompt forces an attention conflict: the model struggles between strictly adhering to verbatim data points (Precision) while simultaneously generalizing and writing engaging prose (Generative). The outcome is often mediocre - inaccurate metrics wrapped in dry, robotic writing.

Engineering Solution: Always decompose hybrid tasks into an independent 2-step pipeline:

Two-Step Pipeline ArchitectureATTENTION SEPARATION
Raw Input
10 Raw User Interview Transcripts
~15,000 Tokens
Prompt 1 (Precision Task): Extract Pain Points & Metrics into JSON
Intermediate State
Structured & Cleaned Data Table
85% Token Compression
Prompt 2 (Generative Task): Synthesize into Executive Brief in Brand Voice
Final Artifact
Polished Executive Decision Brief
100% Compliant

Step 1 (Precision Prompt): Extract all pain points, recurrence counts, and verbatim quotes into a clean structured table. Step 2 (Generative Prompt): Ingest the Step 1 data table to draft the Executive Summary, leveraging a functional leadership persona and strategic framing.

TASK ARCHITECTUREFew-Shot & 2-Step Pipelines

Prompt Architectures by Task Archetype: Precision, Generative, & 2-Step Pipelines

Few-Shot Selection Strategy

Compare 10 redundant examples vs. 3 high-variance archetype examples.

1. STRAIGHT CASE (80%)

Standard Happy Path

Input: "Bấm nút Visa thì app bị đứng hình"

Output: [Thanh toán] - App treo khi thanh toán Visa

Teaches standard contract: [Category] - [Concise description].

2. EDGE CASE

Ambiguous / Incomplete Inputs

Input: "Ê app tệ vậy, lúc nào cũng lag chán ghê"

Output: [Hiệu năng] - Giật lag (Thiếu log)

Teaches graceful annotation when input lacks technical specifics.

3. MISCONCEPTION CASE

Preventing Category Hallucination

Input: "Nhập voucher lỗi xong reload mất hết giỏ"

Output: [Giỏ hàng] - Mất giỏ sau lỗi voucher

Instructs model to prioritize severe root failure over surface keyword.

Architecture Principle: 3 high-variance Few-Shot examples (Straight, Edge, Misconception) achieve 98% edge coverage with minimal token waste. Decomposing hybrid tasks into 2-step pipelines eliminates attention conflicts between precision extraction and generative synthesis.