The moment it happens
Upload 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.
- Runs
- The moment it happens
- Apps
- Gmail, YouTube
- AI
- Not needed
- Access
- YouTube youtube.upload; Gmail gmail.send
Send this to your assistant
Create a ClickRuntime automation: when my video tool sends a finished video, upload it to YouTube as private with the title it sends, and email me the link from my Gmail so I can review it before it goes public.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A brand produces short videos with an AI video tool. The results are usually good, but not always: a wrong product name, an odd frame, music that does not fit. Publishing automatically is too risky, and downloading each file to check it is slow.
Uploading each video as private and emailing the link gives a quick review step: watch it on YouTube, and make it public only if it is right.
What you get out of it
A human check before publishing
Nothing goes public until someone has watched it.
Review in the real player
You see the video exactly as viewers will, on YouTube, not as a downloaded file.
The upload is already done
Approving is one click in YouTube Studio; there is no file to handle.
Works with any video tool
Anything that can send a link when a render finishes can use it.
How it works
What happens, step by step
Your video tool sends the finished video's link and title to the automation's private link.
ClickRuntime downloads the video and uploads it to YouTube as private.
An email with the video link goes to you from your Gmail.
You watch it and make it public in YouTube when you are happy with it.
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
- 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
- Add an AI step, for example to summarize, sort or draft a reply
- 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
import io
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from googleapiclient.http import MediaIoBaseUpload
from clickruntime import on_event, http, credentials, state
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()
@on_event
def handle(event):
job = event.json or {}
if state.get(f"done:{event.event_id}"):
return {"duplicate": True}
media = MediaIoBaseUpload(io.BytesIO(http.get(job["video_url"], timeout=120).content), mimetype="video/mp4", resumable=True)
video = api("youtube", "v3").videos().insert(part="snippet,status", media_body=media, body={
"snippet": {"title": job["title"][:100], "description": job.get("description", "")},
"status": {"privacyStatus": "private"}}).execute()
link = f"https://youtu.be/{video['id']}"
send_gmail("you@example.com", f"Ready to review: {job['title']}",
f"A new video is uploaded as private:\n{link}\n\nMake it public in YouTube Studio when you're happy with it.")
state.set(f"done:{event.event_id}", video["id"])
return {"video": video["id"]}FAQ
Common questions
How do I approve a video?
What does the video tool need to send?
Who gets the email?
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
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.
See how it worksGet 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 worksPost new orders and sign-ups to Slack
When something happens in your shop, app or form, the details land in the right channel straight away.
See how it worksKeep exploring
Set up “Upload finished videos as private and email you to approve” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.