Every 30 minutes
Share approved YouTube video summaries in Discord
New videos from channels you follow are summarised, you approve them in Slack, and approved summaries are posted to your Discord.
- Runs
- Every 30 minutes
- Apps
- Discord, Slack
- AI
- Yes, uses the built-in AI allowance
- Access
- Slack chat:write; Discord Send Messages
Send this to your assistant
Create a ClickRuntime automation: when these YouTube channels post a new video, summarise it, ask me in Slack whether to share it, and post the approved ones to our Discord.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A community lead runs a Discord server about a technical topic and likes to share the best new videos from a dozen YouTube channels, each with a short summary so members know whether to watch. Finding new uploads, watching enough to summarise, and writing it up takes an hour or more a week, and only a few videos are worth sharing.
This automation spots new uploads, writes a summary, and sends it to you in Slack for a quick yes or no. Only the videos you approve are posted to Discord, so the community gets a curated feed without you doing the legwork.
What you get out of it
Curation without the busywork
You only make the final call on each video. Finding uploads and writing the summary are done for you.
Members know what a video covers
Each post includes a short summary, so people can decide whether to spend twenty minutes on it. That makes shared links far more useful.
You stay the editor
Nothing is posted to Discord until you approve it in Slack. Off-topic or low-quality videos never reach the community.
New uploads are never missed
Channels are checked every half hour and each video is considered once. You see everything new from the channels you trust.
How it works
What happens, step by step
Every 30 minutes, ClickRuntime checks the YouTube channels you follow for new videos.
AI writes a short summary of each new video from its title and description.
The summary is posted to Slack, where you approve it by adding a checkmark reaction.
Approved videos are posted to your Discord channel with their summary and link.
Before it runs live
- Connect Discord
- Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
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 Google Sheets
- Combine it with other Discord and Slack steps into one automation
Under the hood
The code that runs this automation
import feedparser
from slack_sdk import WebClient
from clickruntime import on_trigger, credentials, http, ai, state, report_fetched
CHANNELS = ["UCxxxxxxxxxxxxxxxxxxxxxx"]
SLACK_CHANNEL, DISCORD_CHANNEL_ID = "C0123456789", "your-discord-channel-id"
@on_trigger
def run(event):
seen, pending = state.get("seen") or [], state.get("pending") or {}
new = [e for c in CHANNELS for e in feedparser.parse(http.get(
f"https://www.youtube.com/feeds/videos.xml?channel_id={c}").text).entries if e.yt_videoid not in seen]
report_fetched(len(new) + len(pending))
if not new and not pending:
return {"new": 0}
slack = WebClient(token=credentials.connection("slack", "work"))
for e in new:
summary = ai.generate(f"{e.title}\n{e.get('summary', '')[:2000]}", system="Summarise this video in 2 sentences.",
max_output_tokens=120).text.strip()
msg = slack.chat_postMessage(channel=SLACK_CHANNEL, text=f"{e.title}\n{summary}\n{e.link}\nReact with :white_check_mark: to share.")
pending[msg["ts"]] = f"**{e.title}**\n{summary}\n{e.link}"
seen.append(e.yt_videoid)
for ts, text in list(pending.items()):
reactions = slack.reactions_get(channel=SLACK_CHANNEL, timestamp=ts)["message"].get("reactions", [])
if any(r["name"] == "white_check_mark" for r in reactions):
http.post(f"https://discord.com/api/v10/channels/{DISCORD_CHANNEL_ID}/messages",
headers={"Authorization": f"Bot {credentials.secret('DISCORD_BOT_TOKEN')}"}, json={"content": text[:2000]})
del pending[ts]
state.set("seen", seen[-500:])
state.set("pending", dict(list(pending.items())[-50:]))
return {"new": len(new), "waiting": len(pending)}FAQ
Common questions
How do I approve a video?
What is the summary based on?
What happens to videos I do not approve?
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
Post a daily digest of top Reddit posts to Slack and Discord
Each morning the best new posts on your topics are summarised into one short digest and posted to both Slack and Discord.
See how it worksSend your app's error alerts to Slack and Discord
Whenever your app reports an error to your trigger link, the alert appears in #alerts in Slack and in your Discord ops channel, without repeats.
See how it worksPost subscription changes to Slack and Discord
When a subscription is created or cancelled, the details are posted to both your Slack and your Discord.
See how it worksKeep exploring
Set up “Share approved YouTube video summaries in Discord” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.