Every 15 minutes
Get a Slack summary of each new doc in a Drive folder
Every document that lands in your Drive Inbox folder is summarised and the summary is sent to you in Slack.
- Runs
- Every 15 minutes
- Apps
- Google Docs, Google Drive
- AI
- Yes, uses the built-in AI allowance
- Access
- Drive read; Docs read
Send this to your assistant
Create a ClickRuntime automation: whenever a new document lands in my Drive 'Inbox' folder, summarise it and Slack me the summary.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A director receives reports, proposals and meeting notes from her team all week, each dropped into a shared Drive folder. Most need only a quick decision, but she has to open and read each one to know which. The folder fills up and the important ones wait alongside the routine ones.
This automation reads each new document as it arrives and sends her a short summary in Slack, so she can see what each one says and decide which need her full attention.
What you get out of it
Know what is in a document before opening it
A few lines in Slack tell you the point of each document, so you can decide what to read now and what can wait.
Faster decisions for your team
Routine items get a quick response, which keeps work moving instead of waiting for you to work through the folder.
Nothing slips past unread
Every new document produces a message, so items do not sit in the folder unnoticed.
Works with what people already do
Your team keeps saving files to the same folder. Nothing about their routine needs to change.
How it works
What happens, step by step
Every 15 minutes ClickRuntime checks your Drive Inbox folder for new documents.
It skips any document it has already summarised.
It reads the text of each new document, and AI writes a short summary with any actions or deadlines.
The summary is sent to you in Slack with a link to the document.
Before it runs live
- Connect Google Docs
- 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 Google Docs 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, state, notify, ai, report_fetched
FOLDER_ID = "your-inbox-folder-id"
@on_trigger
def run(event):
creds = Credentials(credentials.connection("google", "work"))
drive = build("drive", "v3", credentials=creds, cache_discovery=False)
seen = set(state.get("seen") or [])
files = drive.files().list(q=f"'{FOLDER_ID}' in parents and mimeType='application/vnd.google-apps.document' and trashed=false",
fields="files(id,name,webViewLink)").execute()["files"]
new = [f for f in files if f["id"] not in seen]
report_fetched(len(new))
if not new:
return {"new": 0}
docs = build("docs", "v1", credentials=creds, cache_discovery=False)
for f in new:
body = docs.documents().get(documentId=f["id"]).execute()["body"]["content"]
text = "".join(r.get("textRun", {}).get("content", "") for c in body for r in c.get("paragraph", {}).get("elements", []))
summary = ai.generate(["Summarise in 3-5 bullets, including actions and deadlines.", text[:60000]], max_output_tokens=400).text
notify.slack(f"📝 *{f['name']}*\n{summary}\n{f['webViewLink']}", channel="#me")
seen.add(f["id"])
state.set("seen", list(seen))
return {"new": len(new)}FAQ
Common questions
Which types of document are summarised?
How long are the summaries?
Will old documents in the folder be summarised?
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
Score CVs in a Drive folder and keep a ranked report Doc
Every CV you drop into your Applicants folder is scored against the job description and added to a ranked summary in a Google Doc.
See how it worksCreate document drafts from new contract PDFs in Drive
Each contract PDF added to your Drive folder produces a draft from your Doc template with the parties, dates and amounts filled in.
See how it worksTurn PDFs in Drive into two versions of a multiple-choice test
Drop a PDF into your Drive folder and get two different multiple-choice tests on it as Google Docs.
See how it worksKeep exploring
Set up “Get a Slack summary of each new doc in a Drive folder” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.