The moment it happens
Set up a shared folder for each new client
Each new client gets a folder with your standard subfolders, shared with them.
- Runs
- The moment it happens
- Apps
- Google Drive
- AI
- Not needed
- Access
- read+write
Send this to your assistant
Create a ClickRuntime automation: give me a link my intake form can send to. Create a folder named after the client with Contracts, Invoices and Assets subfolders, share it with their email and send me the link.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A bookkeeping firm signs up three or four new clients a week through an intake form. Afterward someone creates a Drive folder named after the client, adds subfolders for Contracts, Invoices, Tax Documents and Correspondence, shares it with the client's email address and writes a message with the link. Each step is small, but they are done differently every time, and a folder shared with the wrong email address is a real confidentiality problem.
The moment the form is submitted, ClickRuntime creates the client folder, or reuses it if one with that name already exists, then adds your standard subfolders. It gives the client's email address access to the folder and sends them an email containing the link, so they can start uploading documents straight away.
Law firms, agencies, accountants, consultants and photographers use the same pattern for projects, cases and events.
What you get out of it
Every client gets the same structure
When subfolders come from one template, your team always knows where an engagement letter or a receipt belongs. New staff find files faster, and nothing ends up in a random top-level folder named final-v2.
Fewer sharing mistakes
The address typed by the client is the address that gets access, with no retyping between a form and a Drive dialog. That removes the classic error of granting a folder to the wrong person with a similar name.
Clients can upload on day one
The welcome email with the folder link arrives right after sign-up, while the client is still engaged. Onboarding documents come in sooner than they do when the link waits for an admin to get to it.
No duplicate folders when forms repeat
Reusing an existing folder means a client who submits twice, or an existing client who fills the form again, does not end up with two folders holding half of their documents each.
Admin time goes to real work
Setting up a folder, five subfolders and a permission takes several minutes of clicking. Across a few hundred clients a year, that is days of staff time that can go to billing and follow-up instead.
How it works
What happens, step by step
When a new client fills in your onboarding form, ClickRuntime receives their details straight away.
It creates a folder for the client in Google Drive, or reuses it if one already exists, and adds standard subfolders.
It shares the folder with the client's email address.
You get an email with the folder link and who it was shared with.
Before it runs live
- Connect Google Drive
- 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 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_event, credentials, notify
CLIENTS_ROOT = "clients-root-folder-id"
FOLDER = "application/vnd.google-apps.folder"
@on_event
def handle(event):
form = event.json or {}
drive = build("drive", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
name = form["client"].replace("'", "\\'")
found = drive.files().list(q=f"name = '{name}' and mimeType = '{FOLDER}' and '{CLIENTS_ROOT}' in parents and trashed = false",
fields="files(id,webViewLink)").execute()["files"]
if found:
return {"created": False, "link": found[0]["webViewLink"]}
root = drive.files().create(body={"name": form["client"], "mimeType": FOLDER, "parents": [CLIENTS_ROOT]},
fields="id,webViewLink").execute()
for sub in ("Contracts", "Invoices", "Assets"):
drive.files().create(body={"name": sub, "mimeType": FOLDER, "parents": [root["id"]]}).execute()
drive.permissions().create(fileId=root["id"], sendNotificationEmail=True,
body={"type": "user", "role": "writer", "emailAddress": form["email"]}).execute()
notify.email_me(f"Client folder: {form['client']}", root["webViewLink"])
return {"created": True, "link": root["webViewLink"]}FAQ
Common questions
What happens if the client has no Google account?
Can the client see other clients' folders?
Can I set how the subfolders are named and what access the client gets?
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 a contract PDF from each form entry
Each form submission becomes a filled-in contract from your template, saved as a PDF in Drive.
See how it worksSave files to Drive from any tool
Any tool that can send a file URL to your link gets that file saved into your Drive folder.
See how it worksBack up your data to Drive every night
Each night your data is saved to a dated Drive folder, and backups older than 30 days go to trash.
See how it worksKeep exploring
Set up “Set up a shared folder for each new client” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.