What is a PRF?
A PRF is an AI-generated document that:- Identifies key themes - Main topics and discussion points
- Extracts insights - Actionable takeaways and quotable moments
- Structures content - Organizes information for easy repurposing
- Highlights virality - Flags content with social media potential
- Provides context - Summarizes guest expertise and episode narrative
How PRF generation works
Automatic generation
PRF generation starts automatically when you upload a transcript:AI agent activated
The PRF agent analyzes the transcript using the configured AI model (default: Claude 3.5 Sonnet).
RAG search performed
The agent searches Pinecone for relevant brand guidelines, past PRF examples, and content templates.
src/pages/EpisodeDetailPage.tsx:218-255
Agentic mode with RAG
YBH Pulse Content uses agentic AI for PRF generation:Agentic AI means the system:
- Uses semantic search to find relevant context
- Applies brand voice guidelines automatically
- Tracks status updates in real-time
- Verifies facts against the transcript
- Analyzing transcript - Reading conversation structure
- Retrieving context - Searching brand guidelines and examples
- Generating PRF - Creating structured analysis
- Verifying facts - Cross-checking claims against transcript
src/pages/EpisodeDetailPage.tsx:223-238
PRF structure
A typical PRF document includes:Executive summary
A 2-3 paragraph overview of the episode:- Guest background and expertise
- Main topics covered
- Key insights or controversial takes
Core themes
Major discussion themes with supporting quotes:Viral moments
Sections flagged for high social media potential:- Contrarian statements
- Surprising statistics
- Memorable analogies
- Quotable one-liners
Content opportunities
Suggested content formats:- Infographic ideas (data points, frameworks, comparisons)
- Quote cards (pull quotes with context)
- Video clips (timestamped segments)
- LinkedIn posts (angles and hooks)
Editing the PRF
PRFs are fully editable using the TipTap rich text editor:Editor features
- Rich formatting - Bold, italic, headings, lists
- Structure - Headings, subheadings, bullet points
- Highlights - Mark key sections for easy reference
- Comments - Add inline notes (team collaboration)
- Version history - Sanity tracks all changes
src/pages/EpisodeDetailPage.tsx:470-474
When to edit the PRF
Before generating hooks
Before generating hooks
Edit the PRF to:
- Add missing insights the AI overlooked
- Remove off-topic sections
- Strengthen viral moments with better framing
- Ensure brand voice consistency
After generating hooks
After generating hooks
You can still edit the PRF, but changes won’t affect existing hooks unless you regenerate them.
Regenerating the PRF
To regenerate the PRF with updated settings or a different model:Click 'Generate PRF' button
The button appears at the top of the tab (even if a PRF already exists).
Regenerating the PRF does not automatically regenerate hooks or posts. You’ll need to regenerate those separately if you want them to reflect the new PRF.
src/pages/EpisodeDetailPage.tsx:218-255
PRF approval workflow
Approve the PRF when it’s ready for downstream content generation:Approval process
- Review content - Read through the PRF for accuracy and completeness
- Make edits - Fix any issues or add missing insights
- Click ‘Approve’ - Green checkmark appears with timestamp
- Generate downstream - Hooks and posts can now be generated
Approval bar states
- Unapproved (yellow warning icon): “This PRF hasn’t been approved yet.”
- Approved (green checkmark): “Approved on [timestamp] by [user]”
src/pages/EpisodeDetailPage.tsx:565-577
Approval is a tracking mechanism, not a lock. You can still edit approved PRFs—the approval status simply helps teams coordinate.
Revoking approval
If you make significant edits after approval:- Click “Revoke Approval” in the approval bar
- Make your edits
- Re-approve when ready
src/pages/EpisodeDetailPage.tsx:571-577
Customizing PRF generation
Control how PRFs are generated through Settings:AI model selection
Choose your preferred model:- Claude 3.5 Sonnet (default) - Best balance of quality and speed
- GPT-4 Turbo - Alternative with different writing style
- Claude 3 Opus - Highest quality, slower
PRF agent prompt
Customize the PRF generation prompt:- Go to Settings > Agents
- Select PRF Agent
- Edit the System Prompt
- Use preset fields like
{episodeNumber}and{guestName} - Save changes
src/pages/EpisodeDetailPage.tsx:130-141
What happens after PRF generation?
Once the PRF is created:
File reference:
src/pages/EpisodeDetailPage.tsx:241-254
Fact verification
The PRF agent includes automatic fact-checking:What gets verified
- Statistics and numbers - Cross-checked against transcript
- Direct quotes - Verified for accuracy
- Claims and assertions - Confirmed the guest actually said it
Verification process
The agent:- Extracts fact-checkable items from generated PRF
- Searches the transcript for supporting evidence
- Flags unverified or misattributed content
- Includes confidence scores
src/services/ai.ts:27-49
Troubleshooting
PRF generation fails
PRF generation fails
Possible causes:
- Transcript too short (< 500 words)
- AI model API error
- Network timeout
PRF quality is poor
PRF quality is poor
Possible causes:
- Transcript has major transcription errors
- Episode lacks clear structure or themes
- Default prompt doesn’t match content style
- Clean up transcript before regenerating
- Customize the PRF agent prompt in Settings
- Manually edit the PRF to strengthen weak sections
PRF doesn't match brand voice
PRF doesn't match brand voice
Possible causes:
- Default prompt uses generic language
- RAG search didn’t find relevant brand examples
- Customize the PRF agent system prompt with YBH brand voice examples
- Add brand voice guidelines to Pinecone vector database
- Manually edit the PRF to match brand tone
Next steps
Hooks generation
Generate viral hooks from your PRF
Social posts
Create LinkedIn and Instagram content
Visual suggestions
Generate infographics and quote cards
Episode overview
Return to episode workflow overview