Skip to main content

Scenario

Your HubSpot contacts have custom properties — persona field, buying committee role, company size tier. Before launching a campaign, you want synthetic feedback from each segment: Will the messaging resonate with economic buyers differently than end users? You extract segments, map each to a Mavera persona, then run a Focus Group with segment-specific questions.

Architecture

Code

Example Output

Error Handling

If hs_persona doesn’t exist, Search returns 400. List properties with GET /crm/v3/properties/contacts.
Large groups (4+ personas × 4 questions) may take 60–90s. The loop allows ~100s. Increase attempts for larger configs.

HubSpot Integration

Focus Groups API