Skip to content

The moment it happens

Upload finished Shorts to YouTube and hear about it on Telegram

When your video tool finishes a Short, it goes up to YouTube with an AI-written title and Telegram tells you it is live.

Runs
The moment it happens
Apps
Telegram, YouTube
AI
Yes, uses the built-in AI allowance
Access
youtube.upload; bot token

Send this to your assistant

Create a ClickRuntime automation: when my video tool sends a finished video link, write a title, description and hashtags with AI, upload it to my YouTube channel as a Short, and send the link to my Telegram.

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 faceless channel publishes several Shorts a day, made by an AI video tool from a list of topics. The tool hands back a file link, and then someone has to download it, write a title, upload it and check it went through. That last step is the bottleneck.

Uploading each finished video automatically, with a quick Telegram message when it is live, takes the person out of the loop until there is something to check.

What you get out of it

  • No upload bottleneck

    Videos go live as soon as they are rendered, not when someone gets to them.

  • Titles and hashtags included

    AI writes a title, description and hashtags from the topic, ready for Shorts.

  • Know it worked

    A Telegram message with the link confirms each upload, so you can watch it from your phone.

  • Works with your video tool

    Any tool that can send a link when a render finishes can feed it.

How it works

What happens, step by step

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

  2. AI writes a title, description and hashtags from the topic.

  3. The video is downloaded and uploaded to your YouTube channel.

  4. You get a Telegram message with the title and the link to the live Short.

Before it runs live

  • Connect Telegram
  • Connect YouTube
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Upload finished Shorts to YouTube and hear about it on Telegramjust nowSucceeded
Telegram · Uploads✅ Live: 3 packing tricks airlines don't tell you https://youtube.com/shorts/Zx8Cv7Bn6Mq

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
  • 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 Telegram 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.
upload_generated_shorts_to_youtube_with_telegram_updates.pyexample
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, ai, state

def api(name, version):
    return build(name, version, credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)

CHAT_ID = "123456789"

def tg(method, **params):
    r = http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/{method}", json=params)
    return r.raise_for_status() or r.json()["result"]

@on_event
def handle(event):
    job = event.json or {}
    if state.get(f"done:{event.event_id}"):
        return {"duplicate": True}
    meta = ai.generate(f"Topic: {job.get('topic', '')}\nScript: {job.get('script', '')[:2000]}",
                       system="Write a YouTube Shorts title (max 70 chars) and a 2-line description ending with 3 hashtags including #Shorts.",
                       json_schema={"type": "object", "properties": {"title": {"type": "string"}, "description": {"type": "string"}}}, max_output_tokens=200).json
    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": meta["title"], "description": meta["description"]}, "status": {"privacyStatus": "public"}}).execute()
    tg("sendMessage", chat_id=CHAT_ID, text=f"✅ Live: {meta['title']}\nhttps://youtube.com/shorts/{video['id']}")
    state.set(f"done:{event.event_id}", video["id"])
    return {"video": video["id"]}

FAQ

Common questions

What does my video tool need to send?
A link to the finished video file and the topic or script it was made from.
How does YouTube know it is a Short?
Vertical videos under three minutes are treated as Shorts. The automation also adds #Shorts to the description.
How many can it upload a day?
YouTube's default quota allows around six uploads a day per project. You can ask Google for more.
What permissions does it need?
youtube.upload; bot token. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly 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 Shorts to YouTube and hear about it on Telegram” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.