Every 30 minutes
Post new articles from a feed to Teams and Telegram
Each new article in your feed is posted with a short summary to your Teams channel and your Telegram channel.
- Runs
- Every 30 minutes
- Apps
- Microsoft Teams, Telegram
- AI
- Yes, uses the built-in AI allowance
- Access
- Teams ChannelMessage.Send; Telegram bot added to the channel
Send this to your assistant
Create a ClickRuntime automation: when a new item appears in my blog's RSS feed, summarise it and post it to our Teams channel and our Telegram channel.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small company publishes articles on its blog, but staff learn about them in Teams and customers follow updates on a Telegram channel. Someone has to remember to share each new post in both places, write a line about it, and paste the link. When they are busy or away, posts go out unnoticed.
This automation checks your feed every 30 minutes. When a new article appears, AI writes a short summary and the post is shared in your Teams channel and your Telegram channel at the same time.
What you get out of it
Every article gets shared
Nothing depends on someone remembering. Posts published late on a Friday reach both audiences just like the rest.
Staff and customers hear together
Your team learns about new content at the same moment as your followers. Nobody is caught out when a customer mentions an article.
A summary, not just a link
A couple of sentences explain what the article is about. More people click when they know why it is worth reading.
One source, two channels
You publish once on your blog and the sharing follows. There is no copying the same text into two apps.
How it works
What happens, step by step
Every 30 minutes, ClickRuntime reads your feed and skips articles it has already shared.
AI writes a short summary of each new article.
The summary and link are posted to your Teams channel.
The same post is sent to your Telegram channel.
Before it runs live
- Connect Microsoft Teams
- Connect Telegram
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 Microsoft Teams and Telegram steps into one automation
Under the hood
The code that runs this automation
import feedparser
from clickruntime import on_trigger, credentials, http, state, ai, report_fetched
FEED = "https://blog.example.com/feed.xml"
TEAM_ID, CHANNEL_ID = "your-team-id", "your-channel-id"
TELEGRAM_CHAT = "@your_channel"
@on_trigger
def run(event):
seen = set(state.get("seen") or [])
items = [e for e in feedparser.parse(http.get(FEED).content).entries if e.link not in seen]
report_fetched(len(items))
if not items:
return {"summary": "Nothing new"}
graph = {"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"}
token = credentials.secret("TELEGRAM_BOT_TOKEN")
for e in items[:5]:
try:
blurb = ai.generate(f"{e.title}\n{e.get('summary', '')[:2000]}", system="Summarise in 2 sentences.", max_output_tokens=120).text.strip()
except ai.AIError:
blurb = e.title
http.post(f"https://graph.microsoft.com/v1.0/teams/{TEAM_ID}/channels/{CHANNEL_ID}/messages", headers=graph,
json={"body": {"contentType": "html", "content": f"<b>{e.title}</b><br>{blurb}<br><a href='{e.link}'>{e.link}</a>"}})
http.post(f"https://api.telegram.org/bot{token}/sendMessage", json={"chat_id": TELEGRAM_CHAT, "text": f"{e.title}\n\n{blurb}\n{e.link}"})
state.set("seen", (list(seen) + [e.link for e in items])[-300:])
return {"posted": min(len(items), 5)}FAQ
Common questions
Which feeds work?
Will old articles be posted when I start?
Can the summary be in another language?
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
Send birthday greetings on Telegram and Teams
On each person's birthday a greeting goes out on Telegram and is posted in your Teams channel, without you having to remember.
See how it worksPost daily signup numbers to Teams and Telegram
Every morning, yesterday's signup figures appear in your Teams channel and your Telegram chat, with a one-line comment on the trend.
See how it worksLabel new emails automatically
New mail is sorted into labels like Inquiry, Invoice and Newsletter within minutes of arriving.
See how it worksKeep exploring
Set up “Post new articles from a feed to Teams and Telegram” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.