The coach is a dedicated LLM analysis step running on Vertex AI that ingests the Blue Team detector's structured findings and converts commercial link anomalies into concrete, verbatim text replacements to make promotional placements read naturally.

sequenceDiagram
    autonumber
    actor Pipeline as User / Pipeline
    participant Detector as Blue Team Detector
    participant Coach as Outreach Coach
    participant Validator as Substring Validator
    participant Editor as Article Editor

    Pipeline->>Detector: Run check on draft text
    Detector-->>Pipeline: Flagged links and sentences
    Pipeline->>Coach: Send draft and detection reasons
    Coach->>Coach: Generate advice and target edits
    Coach->>Validator: Validate edit proposals
    Validator->>Validator: Verify original text exists verbatim
    Validator-->>Editor: Cleaned, verifiable text swaps
    Editor-->>Pipeline: Display actionable editorial advice