Skip to main content

Scenario

Product managers write PRDs in Notion — feature descriptions, user stories, success metrics, and launch plans. Before committing engineering resources, you want synthetic validation: How would different user personas rate their interest? What objections would they raise? This job pulls PRD pages, creates user personas, and runs a Focus Group where each persona evaluates the proposed feature. Flow: Notion GET /blocks/{page_id}/children (PRD pages) → Extract requirements → Mavera POST /api/v1/personasPOST /api/v1/focus-groups → Interest ratings per persona

Code

Example Output

Error Handling

Long PRDs may exceed the Focus Group context limit. The code truncates to 3000 chars. For detailed PRDs, summarize with Mave first, then pass the summary as context.
5 personas × 5 questions × 2 responses = 50 responses. This may take 2+ minutes. The polling loop allows up to 150 seconds. Increase for larger configurations.
PRD databases vary widely in schema. The code assumes a Status select and Name/Title title property. Inspect with GET /databases/{id} to verify your schema.