The moment it happens
Save a YouTube video's summary and social posts to Drive
Send a YouTube link and a Google Doc with a summary and ready-to-use social posts appears in your Drive folder.
- Runs
- The moment it happens
- Apps
- Google Drive, YouTube
- AI
- Yes, uses the built-in AI allowance
- Access
- YouTube read (download of captions needs owner OAuth); Drive write
Send this to your assistant
Create a ClickRuntime automation: when I send a YouTube link, fetch the video's details and captions, write a summary and three social posts with AI, and save them as a Google Doc in my Video Notes folder.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A marketing team turns every company webinar into blog posts, LinkedIn updates and a newsletter item. Someone rewatches each recording and takes notes, which takes longer than the webinar itself.
Getting a summary and draft posts in a Drive doc as soon as the video is up gives the team a head start on every piece of follow-up content.
What you get out of it
Content from every video
Each webinar or talk produces a summary and posts the team can edit, not a blank page.
Saved where the team works
The doc lands in a shared Drive folder alongside the rest of your marketing files.
Hours of rewatching saved
The team reads a page instead of sitting through the recording again.
Consistent format
Every doc has the same sections, so the team knows where to look.
How it works
What happens, step by step
You send a YouTube link to the automation's private link.
ClickRuntime fetches the video's title, description and captions where available.
AI writes a summary and three social posts based on the video.
A new Google Doc with the summary and posts is created in your Video Notes folder in Drive.
Before it runs live
- Connect Google Drive
- Connect YouTube
- Paste your automation's link into the other app's webhook settings
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
- Act only on the items that match your own rules, and skip the rest
- 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 Google Drive and YouTube steps into one automation
Under the hood
The code that runs this automation
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
import re
from googleapiclient.http import MediaInMemoryUpload
from clickruntime import on_event, credentials, ai
def api(name, version):
return build(name, version, credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
FOLDER_ID = "video-notes-folder-id"
@on_event
def handle(event):
url = (event.json or {})["url"]
vid = re.search(r"(?:v=|youtu\.be/)([\w-]{11})", url).group(1)
yt = api("youtube", "v3")
s = yt.videos().list(part="snippet", id=vid).execute()["items"][0]["snippet"]
text = s["description"]
tracks = yt.captions().list(part="snippet", videoId=vid).execute().get("items", [])
if tracks:
text = yt.captions().download(id=tracks[0]["id"], tfmt="srt").execute().decode()[:24000]
notes = ai.generate(f"Title: {s['title']}\n\n{text}", system="Write a one-paragraph summary, 5 key points, "
"then three social posts (LinkedIn, X, newsletter).", max_output_tokens=1200).text
doc = api("drive", "v3").files().create(body={"name": f"Notes: {s['title']}", "parents": [FOLDER_ID],
"mimeType": "application/vnd.google-apps.document"}, media_body=MediaInMemoryUpload(f"{url}\n\n{notes}".encode(), mimetype="text/plain"),
fields="id,webViewLink").execute()
return {"doc": doc["webViewLink"]}FAQ
Common questions
Can it read captions on any video?
How do I send it a link?
Can it write other formats?
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
Publish rendered videos from Drive to YouTube
Videos your editing or AI video tool saves to Drive are uploaded to YouTube with a title and description, then moved to a Published folder.
See how it worksUpload Drive videos to YouTube with AI titles, descriptions and tags
Drop a video into a Drive folder and it goes to YouTube with a search-friendly title, description and tags, and you get the link by email.
See how it worksPublish one video a day from a Drive folder
One video from your Drive queue folder is published at the same time every day, and you get an email confirming it.
See how it worksKeep exploring
Set up “Save a YouTube video's summary and social posts to Drive” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.