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.
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
Every 10 minutes, ClickRuntime checks your chosen Google Drive folder for files added since the last check.
Files it has already announced are skipped.
For text documents, AI writes a one-line summary when available.
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
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 Discord and Google Drive steps into one automation
Under the hood
The code that runs this automation
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?
Which files get a summary?
Does it work with a shared drive?
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
Save Discord attachments to Google Drive
Every file shared in your Discord channel is copied to a Google Drive folder within 15 minutes, named with the channel, author and date.
See how it worksBack up your data to Google Drive every night
Every night your data is saved to a dated folder in Google Drive, and Discord tells you whether the backup worked.
See how it worksPost new articles to your Telegram channel
New posts from the sites you follow land in your channel with a one-line summary.
See how it worksKeep exploring
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.