Skip to content

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.

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 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

  1. Every Monday morning, ClickRuntime fetches last week's figures from your reporting source.

  2. AI writes a short summary of what changed and what needs attention.

  3. The summary is posted to your Discord channel.

  4. The same summary is posted to your Microsoft Teams channel.

Before it runs live

  • Connect Discord
  • Connect Microsoft Teams

What you get

RunsWeekly
Post a weekly report summary to Discord and Microsoft Teamstoday, 9:00Succeeded
Discord · #reportsWeekly report: ad spend $4,120 (+8%), signups 312 (-3%). The Contoso retargeting campaign spent $640 with no conversions; worth pausing.

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

  • 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

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.
report_and_alert_broadcast_to_discord_and_teams.pyexample
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?
From any source with an HTTPS API or export link, such as your ads account, analytics, or an internal reporting endpoint. The summary is written from whatever figures that source returns.
Can it also send urgent alerts, not just weekly reports?
Yes. A second version can receive alerts the moment they happen, for example from a monitoring tool, and post them to both channels straight away.
Do I need admin rights in Discord and Teams?
You need to be able to add a webhook to the Discord channel and a workflow or connector to the Teams channel. Most channel owners can do both.
What permissions does it need?
Discord Send Messages; Teams ChannelMessage.Send. 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 runs (weekly). Checks that find nothing to do 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 “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.