Documentation Index
Fetch the complete documentation index at: https://docs.mavera.io/llms.txt
Use this file to discover all available pages before exploring further.
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
Visitor identity requires Turnstile
Visitor identity requires Turnstile
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.
CRM matching
CRM matching
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.Privacy and consent
Privacy and consent
Sending emails triggered by video viewing behavior may require GDPR/CCPA consent. Ensure your Turnstile email gate includes a consent checkbox and your CRM flags opted-in contacts. Never email viewers who haven’t opted in.
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