Skip to content

On a schedule

Post upcoming deadlines from a sheet to Teams

Each morning your Teams channel lists every item in your tracker due in the next two days, with the person responsible.

Runs
On a schedule
Apps
Google Sheets, Microsoft Teams
AI
Not needed
Access
Sheets read; ChannelMessage.Send

Send this to your assistant

Create a ClickRuntime automation: every weekday at 8:30am, post to our Teams channel every row in my Reviews sheet due in the next 2 days, with the assignee.

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 compliance team at a mid-sized accounting firm tracks contract reviews, policy renewals and audit tasks in a shared Google Sheet. The sheet is accurate, but people only look at it when reminded, and the reminder usually comes from a manager the day something is already late.

A short list of what is due soon, posted where the team talks every day, makes the sheet work without anyone chasing. Compliance teams, project coordinators, editors and office managers use it to keep deadlines visible without moving their tracker to a new tool.

What you get out of it

  • Deadlines are seen before they are missed

    Two days' notice gives the owner time to finish or ask for help. Fewer items slip quietly past their date.

  • No one has to chase

    Managers no longer send individual reminders each morning. The channel post does it, and it is the same for everyone, so it never feels personal.

  • Keep the tracker you already use

    The team continues working in the Google Sheet they know. There is no migration to a task tool and no new place to update.

  • Clear ownership

    Each item is listed with the person responsible. Anyone can see at a glance who is handling what, which helps when someone is out of office.

How it works

What happens, step by step

  1. Every weekday morning, ClickRuntime reads the rows in your Reviews sheet.

  2. It keeps the open items with a due date between today and two days from now.

  3. It posts one message to your Teams channel listing each item, its due date and who it is assigned to.

Before it runs live

  • Connect your Google Sheets account and pick the spreadsheets it may use
  • Connect Microsoft Teams

What you get

RunsOn a schedule
Post upcoming deadlines from a sheet to Teamstoday, 9:00Succeeded
Teams · ComplianceDue in the next 2 days: Northwind supplier contract review, due Wed 21 Oct, legal team. Contoso data policy renewal, due Thu 22 Oct, IT lead.

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
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Google Sheets 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.
deadline_reminders_from_a_sheet_posted_to_teams.pyexample
from datetime import date, timedelta
from dateutil import parser
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http

SHEET_ID, TEAM_ID, CHANNEL_ID = "your-spreadsheet-id", "your-team-id", "your-channel-id"

@on_trigger
def run(event):
    sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    head, *rows = sheets.spreadsheets().values().get(spreadsheetId=SHEET_ID, range="Reviews!A1:Z").execute()["values"]
    today, due = date.today(), []
    for row in rows:
        r = dict(zip(head, row))
        try:
            d = parser.parse(r.get("Due date", ""), dayfirst=True).date()
        except (ValueError, OverflowError):
            continue
        if today <= d <= today + timedelta(days=2) and r.get("Status", "").lower() not in ("done", "complete"):
            due.append(f"<li><b>{r.get('Item', '')}</b>: due {d:%a %d %b}, {r.get('Assignee', 'unassigned')}</li>")
    if due:
        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": {"contentType": "html", "content": "Due in the next 2 days:<ul>" + "".join(due) + "</ul>"}}).raise_for_status()
    return {"due": len(due)}

FAQ

Common questions

What date format should the sheet use?
Any normal date in a dedicated due date column works, such as 2026-10-21 or 21/10/2026. Rows with an empty or unreadable date are skipped rather than causing an error.
Are finished items left out?
Yes, if the sheet has a status column. Rows marked Done or Complete are not posted, so the list only shows work still open.
Does it post on days when nothing is due?
No. If nothing falls in the next two days, no message is sent, so the channel only hears from it when there is something to act on.
What permissions does it need?
Sheets read; ChannelMessage.Send. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (on a schedule). 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 upcoming deadlines from a sheet to Teams” from your assistant

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