Every 15 minutes
Get new PDFs in a folder summarised
Each PDF added to a folder reaches you as a short summary instead of a file to open.
- Runs
- Every 15 minutes
- Apps
- OneDrive
- AI
- Yes, uses the built-in AI allowance
- Access
- read
Send this to your assistant
Create a ClickRuntime automation: when a PDF is added to my OneDrive Reports folder, summarise it in five bullets and email me the summary with a link to the file.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A researcher at a policy group has a OneDrive folder where analysts drop reports, white papers and meeting minutes, often twenty pages or more. Everyone intends to read them, few do, and the useful findings sit in files that only the author opened. When an executive asks whether anyone saw the new regulation analysis, the honest answer is that it is somewhere in the folder.
Every 15 minutes, OneDrive is checked for newly added files in that folder. Each new PDF is downloaded, ClickRuntime's built-in AI reads it, and a summary is emailed to you with the file name, who added it, and the key points, along with a link back to the original in OneDrive.
It suits anyone who receives long documents regularly: analysts, lawyers, journalists, procurement teams and managers.
What you get out of it
Long documents reach more readers
A summary of five bullet points gets read by people who would never open a thirty-page PDF, so findings influence decisions instead of staying in the author's head. Decisions made on a clear summary are better informed than decisions made on a title and a guess.
Triage in half a minute
A quick look at the summary tells you if a document needs a proper read now, later, or never. That keeps your attention on the files that matter. Each time-sensitive file, such as a response to a consultation, can then be handled well inside its deadline.
New material is announced promptly
Instead of discovering a file a week late, you see what arrived within minutes, which matters when a deadline or a response window is involved. This is especially useful when several people would otherwise ask each other what a new file contains.
Everyone gets the same starting point
Forwarding the summary to the team gives everybody an identical overview, which cuts back-and-forth about what a document actually says. That memory comes free, because every summary is already filed in the mailbox you use every day.
A searchable memory of what came in
Summaries stay in your inbox, so you can search for a topic and find which document covered it without reopening dozens of PDFs. Starting from the same short overview reduces misunderstandings, and it makes meetings about the document shorter.
How it works
What happens, step by step
Every 15 minutes, ClickRuntime checks your chosen OneDrive folder for new PDFs. Files it has already summarised are skipped.
It reads the text of each new document.
AI sums up each one in five bullet points.
You get an email per document with the summary and a link to the file.
Before it runs live
- Connect OneDrive
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 OneDrive steps into one automation
Under the hood
The code that runs this automation
from pypdf import PdfReader
from io import BytesIO
from clickruntime import on_trigger, credentials, http, state, ai, notify, report_fetched
GRAPH = "https://graph.microsoft.com/v1.0"
FOLDER = "Reports"
@on_trigger
def run(event):
h = {"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"}
files = http.get(f"{GRAPH}/me/drive/root:/{FOLDER}:/children", headers=h,
params={"$select": "id,name,webUrl", "$orderby": "createdDateTime desc", "$top": 20}).json()["value"]
seen = state.get("seen") or []
new = [f for f in files if f["name"].lower().endswith(".pdf") and f["id"] not in seen]
report_fetched(len(new))
if not new:
return {"summary": "Nothing new"}
for f in new:
pdf = PdfReader(BytesIO(http.get(f"{GRAPH}/me/drive/items/{f['id']}/content", headers=h).content))
text = "\n".join(p.extract_text() or "" for p in pdf.pages[:10])[:15000]
summary = ai.generate(text, system="Summarise this document in 5 bullet points.", max_output_tokens=300).text
notify.email_me(f"Summary: {f['name']}", f"{summary}\n\n{f['webUrl']}")
seen.append(f["id"])
state.set("seen", seen[-500:])
return {"summarised": len(new)}FAQ
Common questions
Is the summary a replacement for reading the document?
What if the PDF is very long?
Are files added to subfolders picked up?
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
Pull totals from invoices saved to OneDrive
Each invoice PDF dropped in a folder becomes a one-line email with supplier, date and total.
See how it worksHear when a file lands in a OneDrive folder
You get an email each time a new file appears in the folder you're watching.
See how it worksSort a OneDrive folder by file type
New files in your catch-all folder move into PDFs, Images or Other subfolders.
See how it worksKeep exploring
Set up “Get new PDFs in a folder summarised” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.