Weekly
Email yourself an analysis of your YouTube comments
Every week you get an email on what viewers are saying in your comments, with the main themes, questions and ideas for new videos.
- Runs
- Weekly
- Apps
- Gmail, YouTube
- AI
- Yes, uses the built-in AI allowance
- Access
- YouTube API key (public comments); Gmail gmail.send
Send this to your assistant
Create a ClickRuntime automation: every Friday, read the new comments on my channel's recent videos, have AI pull out the themes, top questions and five video ideas, and email the report to me and my editor from my Gmail.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A cooking channel gets hundreds of comments a week asking for substitutions, recipe variations and new dishes. The creator and their editor plan videos on Monday and want to know what viewers have been asking for, without scrolling through every comment.
A weekly email that turns comments into themes and ideas gives the planning meeting a list that came straight from the audience.
What you get out of it
Plan from what viewers ask
Recurring requests become video ideas with a ready audience.
Shared with the team
The report goes to everyone who plans the channel, from your own Gmail.
Only new comments
Comments already covered are skipped, so each week's report is fresh.
Catch problems early
A cluster of complaints about audio or pacing shows up as a theme you can fix in the next edit.
How it works
What happens, step by step
Every Friday, ClickRuntime finds your channel's recent videos and collects their comments.
It skips comments it has already analysed.
AI groups the new comments into themes, top questions and video ideas.
The report is emailed from your Gmail to you and anyone else you listed.
Before it runs live
- Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
- Connect YouTube
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Change what the AI looks for, or how it writes the result
- Add another app, for example also send it to Slack
- Combine it with other Gmail and YouTube steps into one automation
Under the hood
The code that runs this automation
import base64
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, http, credentials, ai, state
YT = "https://www.googleapis.com/youtube/v3"
def yt(path, **params):
return http.get(f"{YT}/{path}", params={**params, "key": credentials.secret("YOUTUBE_API_KEY")}).json().get("items", [])
def api(name, version):
return build(name, version, credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
def send_gmail(to, subject, text):
raw = base64.urlsafe_b64encode(f"To: {to}\r\nSubject: {subject}\r\nContent-Type: text/plain; charset=utf-8\r\n\r\n{text}".encode()).decode()
api("gmail", "v1").users().messages().send(userId="me", body={"raw": raw}).execute()
UPLOADS = "UUxxxxxxxxxxxxxxxxxxxxxx"
@on_trigger
def run(event):
seen, comments = set(state.get("seen") or []), []
for v in yt("playlistItems", part="contentDetails", playlistId=UPLOADS, maxResults=10):
for c in yt("commentThreads", part="snippet", videoId=v["contentDetails"]["videoId"], maxResults=100, order="time"):
if c["id"] not in seen:
comments.append(c["snippet"]["topLevelComment"]["snippet"]["textOriginal"][:400])
seen.add(c["id"])
if not comments:
return {"comments": 0}
report = ai.generate("\n".join(comments[:400]), system="Analyse these YouTube comments: main themes with short quotes, "
"top questions, complaints, and 5 video ideas. Plain text.", max_output_tokens=900).text
send_gmail("you@example.com, editor@example.com", f"Comment report: {len(comments)} new comments", report)
state.set("seen", sorted(seen)[-5000:])
return {"comments": len(comments)}FAQ
Common questions
How many comments can it read?
Does it include the actual comments?
Can it analyse one specific video?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get a weekly email on your YouTube channel's numbers
Every week you get an email with your latest videos, their views and likes, and what changed since last time.
See how it worksUpload finished videos as private and email you to approve
Each finished video is uploaded to YouTube as private and you get an email with the link, ready to approve and make public.
See how it worksGet a daily news digest in Slack
Each morning your team gets a short summary of what's new on the sites and blogs you follow.
See how it worksKeep exploring
Set up “Email yourself an analysis of your YouTube comments” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.