Hourly
Translate new documents in a folder
Each document added to a folder gets a translated copy next to it.
- Runs
- Hourly
- Apps
- Google Drive
- AI
- Yes, uses the built-in AI allowance
- Access
- read+write
Send this to your assistant
Create a ClickRuntime automation: every hour, translate new documents in my To translate folder into Spanish and save each translation as a new Google Doc in the same folder.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small exporter keeps product sheets, terms of sale and onboarding guides in English, but its customers in Germany, Spain and Brazil need them in their own language. Each document goes to a freelancer or through a paste-into-translator routine, with formatting lost and someone left to put the result back in the right folder. Updates to the English version are often never translated, so customers end up reading old terms.
Every hour, ClickRuntime lists the files added to the source folder since its last run, exports each as text and has ClickRuntime's built-in AI translate it into the language you set. The translated copy is uploaded next to the original with the language in its name, so the English and Spanish versions sit side by side.
Teams that serve several markets, schools with multilingual families, and HR departments with international staff use this for first-draft translation.
What you get out of it
Documents reach customers in their language
A buyer who can read the terms and the setup guide without help is more likely to proceed and less likely to raise a support ticket. Translation turns a barrier into a document that is already waiting.
Faster than a freelance round trip
Waiting two days for a translator on a one-page update slows launches. A first draft in minutes lets a reviewer polish only what matters, so the human time goes into quality instead of copying files.
Translations stay beside the source
Putting each copy next to its original, with a clear language suffix in the name, makes it easy to find and to check when the English version changes. No separate folder structure needs to be kept in sync.
Lower cost for routine documents
Internal notes, FAQs and low-risk guides rarely justify professional rates. Automatic drafts cover that bulk cheaply, and paid translators can be reserved for legal text and marketing copy. Money saved there can go to review.
New files are handled without a request
Anything dropped into the folder gets translated on the next run, so staff do not need to file a ticket or remember a process. Coverage grows with the folder instead of depending on someone's diligence.
How it works
What happens, step by step
Every hour ClickRuntime checks your Google Drive folder for newly added Google Docs.
It reads the text of each new document.
AI translates it into your chosen language, such as Spanish.
The translation is saved as a new Google Doc next to the original, with the language in its name.
Before it runs live
- 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 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, report_fetched, credentials, state, ai
FOLDER = "to-translate-folder-id"
DOC = "application/vnd.google-apps.document"
@on_trigger
def run(event):
creds = Credentials(credentials.connection("google", "work"))
drive = build("drive", "v3", credentials=creds, cache_discovery=False)
docs = build("docs", "v1", credentials=creds, cache_discovery=False)
since = state.get("since") or "2026-01-01T00:00:00Z"
files = drive.files().list(q=f"'{FOLDER}' in parents and mimeType = '{DOC}' and createdTime > '{since}' "
"and not name contains '(ES)'",
orderBy="createdTime", fields="files(id,name,createdTime)").execute()["files"]
report_fetched(len(files))
if not files:
return {"summary": "Nothing new"}
for f in files:
text = drive.files().export(fileId=f["id"], mimeType="text/plain").execute().decode()[:12000]
spanish = ai.generate("Translate into Spanish, keeping paragraphs:\n" + text, max_output_tokens=2048).text
new = drive.files().create(body={"name": f"{f['name']} (ES)", "mimeType": DOC, "parents": [FOLDER]}).execute()
docs.documents().batchUpdate(documentId=new["id"], body={"requests": [
{"insertText": {"location": {"index": 1}, "text": spanish}}]}).execute()
state.set("since", files[-1]["createdTime"])
return {"translated": len(files)}FAQ
Common questions
Which languages can it translate into?
Is the translation good enough to send to customers?
Does it keep the formatting of the original?
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 invoice details out of PDFs in a folder
When you drop an invoice or statement into a folder, its key fields are pulled out and sent to you as CSV.
See how it worksGet a summary of each new document
When a document or transcript lands in a folder, you get an email with its key points, decisions and action items.
See how it worksResize and watermark new photos
Photos dropped into a folder are resized, compressed and watermarked into a web-ready folder.
See how it worksKeep exploring
Set up “Translate new documents in a folder” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.