Skip to main content

Scenario

Your product’s YouTube videos have hundreds of comments containing raw, unsolicited audience language — objections, praise, feature requests, and emotional reactions you can’t get from surveys. This job pulls up to 200 comments via commentThreads.list, then sends them to a Mavera research persona through Chat. The persona segments commenters into audience archetypes, identifies dominant sentiment themes, and surfaces the language patterns your marketing should mirror. The result is persona validation grounded in authentic audience voice.

Architecture

Code

Example Output

Error Handling

Videos with disabled comments return HTTP 403 with commentsDisabled. Check the video’s snippet.liveBroadcastContent and fallback to a different video.
Each commentThreads.list page costs 1 quota unit. Fetching 200 comments across 2 pages = 2 units — very efficient. The maxResults ceiling is 100.
Non-English comments may skew analysis. Add &searchTerms= or filter by detected language before sending to Mave if your audience is monolingual.

YouTube Integration

Personas API