The moment it happens
Email a personalised certificate to everyone who passes
Everyone who scores 80% or more gets a PDF certificate with their name, made from your Slides template and emailed from your Gmail.
- Runs
- The moment it happens
- Apps
- Gmail, Google Slides
- AI
- Not needed
- Access
- Slides/Drive edit; gmail.send
Send this to your assistant
Create a ClickRuntime automation: when someone scores 80% or more on my quiz, fill my Slides certificate with their name, export a PDF and email it to them from Gmail.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Online courses and workshops often promise certificates, then send them in batches days later, after someone edits each name by hand. Learners who passed on Monday ask on Wednesday where their certificate is.
Sending a personalised PDF the moment someone passes makes completion feel like an achievement and removes a tedious admin job.
What you get out of it
Certificates arrive instantly
Learners get theirs minutes after passing.
Personal and on brand
Each certificate uses your design with the learner's name and date.
No admin backlog
No more evenings editing names in a template.
Sent once
Repeat submissions from the same person don't trigger a second certificate.
How it works
What happens, step by step
Your quiz sends each result to your automation's link.
ClickRuntime checks whether the score is 80% or higher and whether a certificate was already sent.
It copies your Slides certificate and fills in the name and date.
It exports a PDF and emails it to the learner from your Gmail address.
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 Slides
- 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 Gmail and Google Slides steps into one automation
Under the hood
The code that runs this automation
import base64
from datetime import date
from email.message import EmailMessage
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_event, credentials, http, state
TEMPLATE_ID, PASS_MARK = "certificate-template-id", 80
@on_event
def handle(event):
r = event.json or {}
if float(r.get("score", 0)) < PASS_MARK or state.get(f"sent:{r['email'].lower()}"):
return {"skipped": True}
drive, slides = build("drive", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False), build("slides", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).presentations()
deck = drive.files().copy(fileId=TEMPLATE_ID, body={"name": f"Certificate – {r['name']}"}).execute()["id"]
slides.batchUpdate(presentationId=deck, body={"requests": [{"replaceAllText": {"containsText": {"text": "{{" + k + "}}"}, "replaceText": v}}
for k, v in {"name": r["name"], "date": f"{date.today():%d %B %Y}"}.items()]}).execute()
pdf = drive.files().export(fileId=deck, mimeType="application/pdf").execute()
drive.files().delete(fileId=deck).execute()
msg = EmailMessage()
msg["To"], msg["Subject"] = r["email"], "Your certificate of completion"
msg.set_content(f"Congratulations {r['name']}, you passed with {r['score']}%! Your certificate is attached.")
msg.add_attachment(pdf, maintype="application", subtype="pdf", filename="certificate.pdf")
build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).users().messages().send(userId="me", body={"raw": base64.urlsafe_b64encode(msg.as_bytes()).decode()}).execute()
state.set(f"sent:{r['email'].lower()}", True)
return {"sent": r["email"]}FAQ
Common questions
Which quiz tools work?
Can the pass mark be changed?
Is a copy of each certificate kept?
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
Email a tailored proposal deck to a client after a sales call
After a call, a proposal is written from your notes, built in your Slides template, turned into a PDF and emailed to the client from your Gmail.
See how it worksGet your monthly report deck by email with the latest numbers
On the 1st of each month, your Slides report template is filled with last month's figures from Google Analytics and the PDF is emailed to you.
See how it worksPost new orders and sign-ups to Slack
When something happens in your shop, app or form, the details land in the right channel straight away.
See how it worksKeep exploring
Set up “Email a personalised certificate to everyone who passes” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.