Skip to main content

Scenario

Your HubSpot portal has contacts across lifecycle stages — subscriber, lead, MQL, SQL, customer, evangelist. Each stage represents a distinct mindset. You create a Mavera persona per stage so every generated or tested piece of content speaks to the right funnel position.

Architecture

Code

Example Output

Error Handling

The code retries on 429 with 1s backoff. For large portals, add exponential backoff or paginate with after cursor.
Not all portals use all 6 stages. Custom stages need the internal name. Check with GET /crm/v3/properties/contacts/lifecyclestage.

HubSpot Integration

Personas API