Skip to content

Every 10 minutes

Announce new Google Drive files in Discord

When someone drops a file into your Drive inbox folder, your Discord channel gets a message with its name, owner and link.

Runs
Every 10 minutes
Apps
Discord, Google Drive
AI
Optional
Access
Drive read; bot Send Messages

Send this to your assistant

Create a ClickRuntime automation: watch my Google Drive Inbox folder and post every new file to a Discord channel with its name, owner, link and a short AI summary.

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 small video team shares raw footage, scripts and client briefs through one Google Drive folder. People upload files and then forget to mention it, so an editor finds a new brief two days later or works from an old version.

A message in Discord for every new file means the people who need it know it exists the moment it lands, with a link straight to it.

What you get out of it

  • Nobody has to announce their upload

    The message is posted whether or not the uploader remembers to say anything. Files stop sitting unnoticed in the folder.

  • A quick idea of what the file is

    A short summary of text documents says what is inside. People can decide whether to open it now or later.

  • One click to the file

    Each message links directly to the file in Drive. There is no searching through folders to find the right one.

  • The channel doubles as a log

    Scrolling back shows what was shared, by whom and when. That helps when someone asks where a file went.

How it works

What happens, step by step

  1. Every 10 minutes, ClickRuntime checks your chosen Google Drive folder for files added since the last check.

  2. Files it has already announced are skipped.

  3. For text documents, AI writes a one-line summary when available.

  4. A message with the file name, owner, link and summary is posted to your Discord channel.

Before it runs live

  • Connect Discord
  • Connect Google Drive

What you get

RunsEvery 10 minutes
Announce new Google Drive files in Discordtoday, 9:00Succeeded
Discord · #shared-filesNew file Contoso spring campaign brief from Priya. > Brief for three 30-second spots launching in April.

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 Google Drive 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_drive_files_in_discord.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, state, ai, report_fetched

FOLDER_ID = "your-drive-folder-id"
CHANNEL_ID = "your-discord-channel-id"

@on_trigger
def run(event):
    drive = build("drive", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    since = state.get("since") or event.get("scheduled_time") or "2026-01-01T00:00:00Z"
    files = drive.files().list(q=f"'{FOLDER_ID}' in parents and createdTime > '{since}' and trashed = false",
                               fields="files(id,name,mimeType,createdTime,webViewLink,owners(displayName))", orderBy="createdTime").execute().get("files", [])
    report_fetched(len(files))
    if not files:
        return {"summary": "Nothing new"}
    for f in files:
        line = ""
        if f["mimeType"] == "application/vnd.google-apps.document":
            try:
                text = drive.files().export(fileId=f["id"], mimeType="text/plain").execute().decode()[:3000]
                line = "\n> " + ai.generate(f"Summarise in one sentence:\n{text}", max_output_tokens=60).text.strip()
            except ai.AIError:
                pass
        owner = (f.get("owners") or [{}])[0].get("displayName", "someone")
        http.post(f"https://discord.com/api/v10/channels/{CHANNEL_ID}/messages", headers={"Authorization": f"Bot {credentials.secret('DISCORD_BOT_TOKEN')}"},
                  json={"content": f"New file **{f['name']}** from {owner}\n{f['webViewLink']}{line}"})
    state.set("since", files[-1]["createdTime"])
    return {"summary": f"{len(files)} files announced"}

FAQ

Common questions

Does it watch subfolders too?
It watches the one folder you choose. Subfolders can be added by listing their IDs as well.
Which files get a summary?
Google Docs and plain text files, whose text can be read directly. Videos, images and other files get a message with name, owner and link only.
Does it work with a shared drive?
Yes, as long as the connected Google account can see the folder. The bot then posts the link, and Discord members still need Drive access to open it.
What permissions does it need?
Drive read; bot Send Messages. 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 Google Drive files in Discord” from your assistant

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