Skip to main content

Scenario

A viewer who watches more than 80% of your product video is a high-intent lead — they’ve invested 3+ minutes evaluating your solution. This job pulls viewer-level stats from Wistia, filters for viewers who completed 80%+ of any video, matches them to CRM data by email, then uses Mavera Generate to create personalized follow-up emails for each viewer based on which video they watched, how far they got, and their CRM context. The result is a batch of ready-to-send sales emails triggered by viewing behavior — the most intent-rich signal your marketing funnel produces.

Architecture

Code

Example Output

Error Handling

Email-based viewer matching depends on Wistia’s Turnstile email gate being enabled. Without it, viewers are anonymous. Enable Turnstile on high-intent videos (demos, pricing, case studies) to capture emails.
The example uses a static CRM lookup. In production, replace CRM_DATA with your CRM’s API (Salesforce, HubSpot, Pipedrive) to enrich viewer data with deal stage, company size, and activity history.

What’s Next

Wistia Integration

Back to Wistia integration overview

Wistia Embeds → Brand Voice Source

Build a brand voice profile from spoken content

Viewer-Level Persona Mapping

Map viewers to psychographic personas

Generate API

Full reference for POST /api/v1/generate