Collect YouTube comments, label each one as positive, neutral, or negative with AI, and store everything in Google Sheets for easy review. Built for marketing and social teams who want fast insights on audience mood without reading every comment by hand.
The run starts manually. It reads a list of video URLs from a second sheet, checks if the next fetch time is due, then uses the YouTube Data API to pull comment threads with pagination. The flow splits the API response so each comment is handled on its own. An OpenAI model assigns a sentiment, then fields like commentId, author, likes, replies, sentiment, and published time are formatted and saved. Rows are appended or updated in the results sheet using commentId as the match key. The workflow also updates the last fetched time and sets the next fetch time five minutes ahead to prevent over fetching.
Set up two sheets with the listed columns and connect Google Sheets, YouTube Data API, and OpenAI credentials. Expect faster reporting, fewer mistakes, and a clear view of audience reaction across many videos. Ideal for channel managers, social analysts, and campaign teams who need quick feedback at scale. You can later add a schedule to run it automatically.