Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Your video tool sends the finished video's link and title to the automation's private link.

  2. ClickRuntime downloads the video and uploads it to YouTube as private.

  3. An email with the video link goes to you from your Gmail.

  4. 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

RunsThe moment it happens
Upload finished videos as private and email you to approvejust nowSucceeded
Email · Ready to reviewReady to review: Acme Coffee autumn blend in 30 seconds. Uploaded as private: https://youtu.be/Gf4Hj5Kl6Qw

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
email_me_when_an_ai_generated_video_is_uploaded.pyexample
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?
Open the link in the email and change the video to public in YouTube Studio. You can also ask the automation to publish it when you reply with an agreed word.
What does the video tool need to send?
A link to the finished file and a title. A description is optional.
Who gets the email?
You, or anyone you list, such as a client who signs off videos.
What permissions does it need?
YouTube youtube.upload; Gmail gmail.send. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.