Skip to content

Every 15 minutes

Announce new blog posts on Discord and Telegram

Each article you publish is posted to your Discord server and Telegram channel with its title, link and a short teaser.

Runs
Every 15 minutes
Apps
Discord, Telegram
AI
Optional
Access
Discord send messages; bot admin in Telegram channel

Send this to your assistant

Create a ClickRuntime automation: when a new post appears on my blog, send its title, link and a short AI teaser to my Discord channel and my Telegram channel.

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 writer publishes two articles a week and has readers in both a Discord community and a Telegram channel. Sharing each post means writing two announcements by hand, and when she is busy, posts go out late or not at all, so readers miss them.

Watching the blog feed and posting every new article to both places means each post reaches the community within minutes of going live, with a teaser that gives people a reason to click.

What you get out of it

  • Readers hear about every post

    Each article is announced in both places as soon as it is published. Nothing is missed because of a busy week.

  • A teaser that earns the click

    A short teaser says what the article is about, which gets more readers than a bare link. If AI is not available, the post's own summary is used.

  • One announcement, two audiences

    Discord and Telegram get the same post at the same time. You do not have to write and format it twice.

  • Each article is posted once

    Posts already announced are remembered and skipped. Editing an old article does not announce it again.

How it works

What happens, step by step

  1. Every 15 minutes, ClickRuntime checks your blog's feed for new posts.

  2. Posts it has already announced are skipped.

  3. AI writes a one or two sentence teaser for each new post. If AI is not available, the post's own summary is used.

  4. The title, link and teaser are posted to your Discord channel and your Telegram channel.

Before it runs live

  • Connect Discord
  • Connect Telegram

What you get

RunsEvery 15 minutes
Announce new blog posts on Discord and Telegramtoday, 9:00Succeeded
Telegram · Blog channelHow Northwind cut onboarding time in half. A look at the three checklists that replaced a 40-page manual. https://blog.example.com/onboarding

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 Discord and Telegram 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.
announce_new_blog_posts_to_discord_and_telegram.pyexample
import feedparser
from clickruntime import on_trigger, credentials, http, state, ai, report_fetched

FEED_URL = "https://yourblog.example.com/feed"
DISCORD_CHANNEL = "your-discord-channel-id"
TELEGRAM_CHAT = "@yourchannel"

@on_trigger
def run(event):
    seen = set(state.get("seen") or [])
    new = [e for e in feedparser.parse(http.get(FEED_URL).text).entries if e.get("id", e.link) not in seen]
    report_fetched(len(new))
    if not new:
        return {"summary": "Nothing new"}
    for e in reversed(new):
        teaser = e.get("summary", "")[:200]
        try:
            teaser = ai.generate(f"Write a 1-2 sentence teaser for this article.\n{e.title}\n{teaser[:1500]}", max_output_tokens=80).text.strip()
        except ai.AIError:
            pass
        text = f"{e.title}\n{teaser}\n{e.link}"
        http.post(f"https://discord.com/api/v10/channels/{DISCORD_CHANNEL}/messages",
                  headers={"Authorization": f"Bot {credentials.secret('DISCORD_BOT_TOKEN')}"}, json={"content": text})
        http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage",
                  json={"chat_id": TELEGRAM_CHAT, "text": text})
        seen.add(e.get("id", e.link))
    state.set("seen", sorted(seen)[-500:])
    return {"summary": f"{len(new)} posts announced"}

FAQ

Common questions

Does my blog need an RSS feed?
Yes, an RSS or Atom feed. Most blogging platforms, including WordPress, Ghost and Substack, publish one automatically.
How long is the teaser?
One or two sentences, written from the article's summary. It is kept short so it reads well on both Discord and Telegram.
What will the Telegram bot need?
It must be an administrator of your Telegram channel with permission to post messages. Discord needs a bot with Send Messages in the chosen channel.
What permissions does it need?
Discord send messages; bot admin in Telegram channel. Nothing else in your accounts is used.
Does it need AI?
No, but you can ask for an AI step (for example a summary). It then uses ClickRuntime's built-in 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 “Announce new blog posts on Discord and Telegram” from your assistant

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