The moment it happens
Save incoming files to Drive and log them in a sheet
Files sent to your trigger link are saved in your Drive 'Inbox' folder and listed in a sheet with name, sender, date and link.
- Runs
- The moment it happens
- Apps
- Google Drive, Google Sheets
- AI
- Not needed
- Access
- Drive write; Sheets read+write
Send this to your assistant
Create a ClickRuntime automation: when a file is posted to my trigger link, save it to my Drive 'Inbox' folder and log the name, sender, date and link in my sheet.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small architecture practice receives drawings and documents from contractors through a website upload form and a couple of other tools. Files end up in different inboxes and download folders, and nobody can say for certain whether the revised plans from last Tuesday were received.
This automation gives you one trigger link that any form or tool can send files to. Each file is saved in one Drive folder and logged in a sheet, so there is a single place to look and a record of everything that arrived.
What you get out of it
One place for every incoming file
Uploads from forms, tools and partners all land in the same Drive folder instead of scattered inboxes and laptops.
A record of what arrived and when
The sheet shows the name, sender, date and link for each file, which settles questions about whether something was received.
Easy to share with the team
Anyone with access to the folder and sheet can find a file without asking who downloaded it.
Works with tools you already use
Any form builder or service that can send a file to a web link can feed the same folder.
How it works
What happens, step by step
ClickRuntime starts each time a file is sent to your trigger link.
The file is saved in your Drive 'Inbox' folder under its original name.
A row with the file name, sender, date and Drive link is added to your sheet.
Before it runs live
- Connect Google Drive
- Connect your Google Sheets account and pick the spreadsheets it may use
- Paste your automation's link into the other app's webhook settings
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
- 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 Drive and Google Sheets steps into one automation
Under the hood
The code that runs this automation
import base64
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from googleapiclient.http import MediaInMemoryUpload
from clickruntime import on_event, credentials
INBOX_FOLDER, SHEET_ID = "your-inbox-folder-id", "your-spreadsheet-id"
@on_event
def handle(event):
body = event.json or {}
content = base64.b64decode(body["file_base64"])
creds = Credentials(credentials.connection("google", "work"))
drive = build("drive", "v3", credentials=creds, cache_discovery=False)
saved = drive.files().create(body={"name": body.get("filename", "upload"), "parents": [INBOX_FOLDER]},
media_body=MediaInMemoryUpload(content, mimetype=body.get("mime_type", "application/octet-stream")),
fields="id,name,webViewLink").execute()
row = [saved["name"], body.get("sender", "unknown"), event.received_at, saved["webViewLink"]]
build("sheets", "v4", credentials=creds, cache_discovery=False).spreadsheets().values().append(
spreadsheetId=SHEET_ID, range="Files!A:D", valueInputOption="USER_ENTERED", body={"values": [row]}).execute()
return {"file": saved["id"]}FAQ
Common questions
How big can files be?
How does it know who sent the file?
Can files go into different folders?
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
Create PDF invoices from your order form
Each order from your form gets a numbered PDF invoice saved to Drive and a row in your Invoices sheet.
See how it worksLog your arrival and departure times automatically
Your phone records each time you arrive at or leave work in a Google Sheet, and last month's log is saved to Drive on the 1st.
See how it worksCreate a Drive folder for each new hire in your roster
New rows in your Onboarding sheet get their own Drive folder from your template, shared with the new hire, with the link written back.
See how it worksKeep exploring
Set up “Save incoming files to Drive and log them in a sheet” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.