The moment it happens
Send a YouTube link to Telegram and get a summary back
Share a YouTube link with your Telegram bot and it replies with a short summary and the key points.
- Runs
- The moment it happens
- Apps
- Telegram, YouTube
- AI
- Yes, uses the built-in AI allowance
- Access
- API key; bot token
Send this to your assistant
Create a ClickRuntime automation: when I send a YouTube link to my Telegram bot, summarise the video with AI and reply with a short summary and the five key points.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A busy consultant gets sent YouTube links all day: a client's webinar, a talk a colleague recommends, a product demo. Most are forty minutes long. They want to know what is in a video before deciding whether to watch it, ideally from their phone.
Forwarding the link to a Telegram bot and getting the gist back in seconds makes it easy to triage videos on the go.
What you get out of it
Decide before you watch
A short summary shows whether a long video is worth your time.
Works from your phone
Share the link from the YouTube app to Telegram; the reply arrives in the same chat.
Key points you can forward
The bullet points are easy to pass on to a colleague who asked for your view.
No new app to install
It runs in Telegram, which you already use.
How it works
What happens, step by step
You send a YouTube link to your Telegram bot.
ClickRuntime pulls out the video ID and fetches the video's title and description.
AI writes a short summary and lists the key points.
The summary is sent back to you in the same Telegram chat.
Before it runs live
- Connect Telegram
- 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 Telegram and YouTube steps into one automation
Under the hood
The code that runs this automation
import re
from clickruntime import on_event, http, credentials, ai
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 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):
msg = (event.json or {}).get("message") or {}
found = re.search(r"(?:v=|youtu\.be/|shorts/)([\w-]{11})", msg.get("text", ""))
if not found:
return {"replied": False}
items = yt("videos", part="snippet", id=found.group(1))
if not items:
tg("sendMessage", chat_id=msg["chat"]["id"], text="I couldn't find that video.")
return {"replied": True}
s = items[0]["snippet"]
summary = ai.generate(f"Title: {s['title']}\nChannel: {s['channelTitle']}\n\n{s['description'][:6000]}",
system="Summarise this YouTube video in 2 sentences, then list 5 key points.", max_output_tokens=400).text
tg("sendMessage", chat_id=msg["chat"]["id"], text=f"{s['title']}\n\n{summary}")
return {"replied": True, "video": found.group(1)}FAQ
Common questions
Does it work on any public video?
Can I ask follow-up questions?
Who can use the bot?
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
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.
See how it worksPublish videos from a Drive folder with AI titles and a Telegram ping
Drop a video into a Drive folder and it goes to YouTube with an AI-written title and description, with a Telegram message when it is live.
See how it worksGet a morning news digest from feeds and YouTube in Telegram
Each morning Telegram brings you a short AI digest of new videos and headlines on the topics you follow.
See how it worksKeep exploring
Set up “Send a YouTube link to Telegram and get a summary back” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.