Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Your quiz sends each result to your automation's link.

  2. ClickRuntime checks whether the score is 80% or higher and whether a certificate was already sent.

  3. It copies your Slides certificate and fills in the name and date.

  4. 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

RunsThe moment it happens
Email a personalised certificate to everyone who passesjust nowSucceeded
Gmail · SentYour certificate of completion – Congratulations Alex Rivera, you passed with 92%!

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
personalised_certificates_by_email.pyexample
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?
Any quiz or form that can send the name, email and score to your automation's link.
Can the pass mark be changed?
Yes, 80% is the default.
Is a copy of each certificate kept?
The filled deck is deleted after sending to keep your Drive tidy. Ask to keep copies in a folder if you need a record.
What permissions does it need?
Slides/Drive edit; gmail.send. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.