Every 15 minutes
File emailed CVs in Drive with a short candidate review
Every CV sent to your jobs inbox is saved to your Candidates folder and you get an email with a short review against the role.
- Runs
- Every 15 minutes
- Apps
- Gmail, Google Drive
- AI
- Yes, uses the built-in AI allowance
- Access
- Gmail gmail.modify; Drive write
Send this to your assistant
Create a ClickRuntime automation: when an email with a CV arrives at jobs@, save the CV to my Drive 'Candidates' folder and email me a short evaluation against the role.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
The founder of a ten-person company posts a job and asks applicants to email jobs@. Within a week there are sixty CVs mixed in with recruiter pitches and follow-ups. She downloads each attachment, renames it, drags it into a folder, and reads every one before she can decide who to call.
Filing each CV automatically and getting a short review against the role lets you shortlist from your inbox in minutes. Small companies without a recruiting tool use it to handle applications properly without a hiring coordinator.
What you get out of it
Every application is kept in one folder
CVs are saved to Drive as they arrive, so nothing is lost in the inbox and the whole team can see the candidates.
A quick first read of each candidate
The review highlights how the candidate's experience matches the role and what is missing, so you know which CVs to read in full.
Faster replies to strong candidates
Good applicants often have other offers. Seeing a promising review the same day helps you call them first.
Fairer screening
Every CV is compared with the same role description, which keeps the first pass consistent across a large batch.
How it works
What happens, step by step
Every few minutes ClickRuntime checks your jobs inbox for new emails with an attachment.
It skips emails it has already handled, which it marks with a Gmail label.
Each CV is saved to your Drive Candidates folder.
AI compares the CV with your role description, and you get an email with a short review and a link to the file.
Before it runs live
- Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
- 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 Gmail and Google Drive steps into one automation
Under the hood
The code that runs this automation
import base64, io
from pypdf import PdfReader
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from googleapiclient.http import MediaIoBaseUpload
from clickruntime import on_trigger, credentials, notify, ai, report_fetched
FOLDER_ID, LABEL_ID = "your-candidates-folder-id", "Label_CV_Filed"
ROLE = "Operations manager: 5+ years in logistics, team leadership, strong spreadsheet skills."
@on_trigger
def run(event):
creds = Credentials(credentials.connection("google", "work"))
gmail, drive = build("gmail", "v1", credentials=creds, cache_discovery=False), build("drive", "v3", credentials=creds, cache_discovery=False)
msgs = gmail.users().messages().list(userId="me", q="to:jobs@ has:attachment filename:pdf -label:cv-filed").execute().get("messages", [])
report_fetched(len(msgs))
if not msgs:
return {"summary": "Nothing new"}
for m in msgs:
msg = gmail.users().messages().get(userId="me", id=m["id"]).execute()
part = next(p for p in msg["payload"].get("parts", []) if p.get("filename", "").lower().endswith(".pdf"))
pdf = base64.urlsafe_b64decode(gmail.users().messages().attachments().get(userId="me", messageId=m["id"], id=part["body"]["attachmentId"]).execute()["data"])
f = drive.files().create(body={"name": part["filename"], "parents": [FOLDER_ID]}, fields="webViewLink",
media_body=MediaIoBaseUpload(io.BytesIO(pdf), mimetype="application/pdf")).execute()
text = "".join(p.extract_text() or "" for p in PdfReader(io.BytesIO(pdf)).pages)[:6000]
review = ai.generate(f"Role: {ROLE}\nCV:\n{text}\nWrite a 5-line evaluation: fit, strengths, gaps.", max_output_tokens=300).text
notify.email_me(f"New CV: {part['filename']}", f"{review}\n\n{f['webViewLink']}")
gmail.users().messages().modify(userId="me", id=m["id"], body={"addLabelIds": [LABEL_ID]}).execute()
return {"filed": len(msgs)}FAQ
Common questions
What file types does it handle?
Where do I describe the role?
Does it reply to the applicant?
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
Save invoice PDFs from Gmail to Drive, named by supplier and amount
Invoice and receipt PDFs in your inbox are saved to Drive as date_supplier_amount files, and the email is labelled as filed.
See how it worksTranscribe emailed audio and save summaries to Drive
Voice notes and recordings sent to your inbox become a transcript and summary in Drive, with the summary emailed to you.
See how it worksTurn emailed press releases into draft articles in Drive
Press releases that reach your inbox come back as publish-ready article drafts in Google Docs, with the link emailed to you.
See how it worksKeep exploring
Set up “File emailed CVs in Drive with a short candidate review” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.