Weekly
Post a weekly report summary to Discord and Microsoft Teams
Every Monday, a short summary of last week's numbers is posted to both your Discord server and your Teams channel.
- Runs
- Weekly
- Apps
- Discord, Microsoft Teams
- AI
- Yes, uses the built-in AI allowance
- Access
- Discord Send Messages; Teams ChannelMessage.Send
Send this to your assistant
Create a ClickRuntime automation: every Monday at 9, fetch last week's report from our reporting endpoint, summarise it and post the summary to our Discord #reports channel and our Teams Reports channel.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A company's staff talk in Microsoft Teams, while its contractors, community or partner agencies are in Discord. Weekly numbers such as ad spend, site traffic or error counts get posted in one place and the other group never sees them, or someone copies them across by hand.
Posting the same summary to both at the same time keeps everyone working from the same numbers. AI turns the raw report into a few readable lines, so people read it instead of scrolling past a table.
What you get out of it
Both groups see the same thing
Staff in Teams and contractors in Discord get an identical summary at the same moment. Nobody is working from last week's figures.
Numbers people actually read
A few lines that say what went up, what went down and what needs attention get read. A raw export of figures usually does not.
No weekly copy and paste
Nobody has to remember to post the report on Monday morning or repost it in a second app. It happens on schedule even during holidays.
Problems surface sooner
Wasted ad spend or a rise in errors is pointed out in the summary. Spotting it on Monday rather than at month end limits how much it costs.
How it works
What happens, step by step
Every Monday morning, ClickRuntime fetches last week's figures from your reporting source.
AI writes a short summary of what changed and what needs attention.
The summary is posted to your Discord channel.
The same summary is posted to your Microsoft Teams channel.
Before it runs live
- Connect Discord
- Connect Microsoft Teams
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
- Run it at a different time, more or less often, or only on weekdays
- 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 Microsoft Teams steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, ai, log
REPORT_URL = "https://reports.example.com/api/weekly"
TEAM_ID, CHANNEL_ID = "your-team-id", "your-channel-id"
@on_trigger
def run(event):
data = http.get(REPORT_URL, headers={"Authorization": f"Bearer {credentials.secret('REPORT_API_KEY')}"}).json()
try:
summary = ai.generate(f"Summarise last week's figures in 4 short lines; flag anything wasteful or unusual:\n{data}",
max_output_tokens=300).text.strip()
except ai.AIError as e:
log.warning("AI unavailable, posting raw totals", {"code": e.code})
summary = "\n".join(f"{k}: {v}" for k, v in data.get("totals", {}).items())
text = f"Weekly report\n{summary}"
http.post(credentials.secret("DISCORD_WEBHOOK_URL"), json={"content": text})
http.post(f"https://graph.microsoft.com/v1.0/teams/{TEAM_ID}/channels/{CHANNEL_ID}/messages",
headers={"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"},
json={"body": {"content": text.replace(chr(10), "<br>"), "contentType": "html"}})
return {"posted": 2}FAQ
Common questions
Where does the report data come from?
Can it also send urgent alerts, not just weekly reports?
Do I need admin rights in Discord and Teams?
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
Announce new blog posts in Discord and Teams
Each new post in your RSS feed is announced in your Discord server and your Teams channel, with an optional short summary.
See how it worksPost new bookings to Discord and Teams
Each time someone books a meeting through your form, the details are posted to your Discord server and your Teams channel.
See how it worksGet a daily news digest in Slack
Each morning your team gets a short summary of what's new on the sites and blogs you follow.
See how it worksKeep exploring
Set up “Post a weekly report summary to Discord and Microsoft Teams” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.