Skip to content

Every 30 minutes

Turn each new YouTube video into a blog post

Every new video on your channel becomes a WordPress article with the video embedded, and Telegram tells you when it is up.

Runs
Every 30 minutes
Apps
Telegram, WordPress
AI
Yes, uses the built-in AI allowance
Access
WordPress author+; bot token

Send this to your assistant

Create a ClickRuntime automation: when my YouTube channel posts a new video, write a blog post from its title and description, publish it to WordPress with the video embedded and tell me on 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 woodworking teacher publishes a tutorial on YouTube every week and has a WordPress site that sells courses. Search engines send far more visitors to written articles than to videos, but writing up each tutorial as a blog post is extra work the teacher never gets around to.

This automation does the write-up. Every 30 minutes it checks the channel's feed, and when a new video appears, AI writes an article from the title and description, the video is embedded at the top, and the post is published on WordPress. A Telegram message with the link lets the teacher know it is live.

What you get out of it

  • Each video works twice

    A written article brings in search visitors who would never find the video on YouTube. The same effort reaches two audiences.

  • Visitors land on your own site

    Readers arrive on your WordPress site, where your courses and newsletter sign-up are. That is worth more than a view on someone else's platform.

  • Video embedded in the post

    Every article includes the video, so readers can watch without leaving your site.

  • You know when it is live

    A Telegram message with the link arrives as soon as the post is published, so you can share it or make a quick edit.

How it works

What happens, step by step

  1. Every 30 minutes, ClickRuntime checks your YouTube channel's public feed for new videos.

  2. It skips any video it has already turned into a post.

  3. AI writes an article from the video's title and description, and the video is embedded at the top.

  4. The post is published on WordPress, and your Telegram bot sends you the link.

Before it runs live

  • Connect Telegram
  • Connect WordPress

What you get

RunsEvery 30 minutes
Turn each new YouTube video into a blog posttoday, 9:00Succeeded
Telegram · Blog botNew post from your video: How to Cut a Perfect Dovetail by Hand. blog.example.com/hand-cut-dovetail

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 WordPress 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.
youtube_video_turned_into_a_blog_post_with_telegram_notice.pyexample
import feedparser
from clickruntime import on_trigger, credentials, http, state, ai, report_fetched

CHANNEL_ID = "UCxxxxxxxxxxxxxxxxxxxxxx"
CHAT_ID = 123456789
SCHEMA = {"type": "object", "properties": {k: {"type": "string"} for k in ["title", "excerpt", "body_html"]}, "required": ["title", "excerpt", "body_html"]}
WP = "https://blog.example.com/wp-json/wp/v2"

def wp(method, path, **kw):
    r = http.request(method, f"{WP}/{path}", auth=(credentials.secret("WP_USER"), credentials.secret("WP_APP_PASSWORD")), **kw)
    r.raise_for_status()
    return r.json()
def telegram(method, **payload):
    return http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/{method}", json=payload).json()

@on_trigger
def run(event):
    seen = set(state.get("seen") or [])
    feed = feedparser.parse(http.get(f"https://www.youtube.com/feeds/videos.xml?channel_id={CHANNEL_ID}").content)
    new = [e for e in feed.entries if e.yt_videoid not in seen]
    report_fetched(len(new))
    if not new:
        return {"posts": 0}
    for e in new[:3]:
        art = ai.generate(f"Write a blog article (HTML body, H2 headings) from this video.\nTitle: {e.title}\nDescription: {e.get('summary', '')[:3000]}", json_schema=SCHEMA, max_output_tokens=1800).json
        embed = f'<!-- wp:embed {{"url":"{e.link}","type":"video","providerNameSlug":"youtube"}} --><figure class="wp-block-embed"><div class="wp-block-embed__wrapper">{e.link}</div></figure><!-- /wp:embed -->'
        post = wp("POST", "posts", json={"title": art["title"], "excerpt": art["excerpt"], "content": embed + art["body_html"], "status": "publish"})
        telegram("sendMessage", chat_id=CHAT_ID, text=f"New post from your video: {art['title']}\n{post['link']}")
        seen.add(e.yt_videoid)
    state.set("seen", list(seen)[-500:])
    return {"posts": min(3, len(new))}

FAQ

Common questions

Does it use the video transcript?
By default it uses the title and description. A detailed description gives a better article; a transcript service can be added for a fuller write-up.
Can it save drafts instead?
Yes. Set it to draft and the Telegram message links to the editor so you can review before publishing.
Which channel does it watch?
The YouTube channel ID you set. Every public YouTube channel has a feed it can read, with no YouTube login needed.
What permissions does it need?
WordPress author+; 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 each time it checks. Checks that find nothing new and stop right away aren't counted.
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 “Turn each new YouTube video into a blog post” from your assistant

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