Skip to content

Every 15 minutes

Get a risk review of every new contract in Slack

Each contract PDF you drop into your Drive Contracts folder gets a short list of key terms and risky clauses posted in #legal.

Runs
Every 15 minutes
Apps
Google Drive, Slack
AI
Yes, uses the built-in AI allowance
Access
Drive read; Slack chat:write

Send this to your assistant

Create a ClickRuntime automation: when a contract PDF is added to my Drive 'Contracts' folder, list the key terms and any risky clauses and post them to #legal.

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

A small agency signs a handful of supplier and client contracts each month. They arrive as PDFs, get saved to a shared Drive folder, and are often signed before anyone has read past the first page. An automatic renewal or an uncapped liability clause only surfaces when it causes a problem.

This automation gives every new contract a first read as soon as it lands in the folder, so the person who signs it sees the payment terms, notice periods and unusual clauses in Slack before the signature goes on.

What you get out of it

  • Risky clauses are flagged before signing

    Auto-renewals, one-sided indemnities and long notice periods are called out while there is still time to push back, not after the contract is in force.

  • A shared view for the whole team

    Posting in #legal means sales, finance and the founder all see the same summary, and questions can be raised in the thread.

  • Faster review for routine contracts

    Standard agreements with nothing unusual can be approved quickly, leaving legal time for the ones that need a closer look.

  • A record of what was flagged

    The Slack history shows which terms were noticed and when, which helps when a contract is renegotiated or disputed later.

How it works

What happens, step by step

  1. Every 15 minutes ClickRuntime checks your Drive Contracts folder for new PDF files.

  2. It skips any contract it has already reviewed.

  3. For each new contract it reads the text, and AI lists the key terms and any clauses that look risky.

  4. The review is posted in your #legal Slack channel with a link to the file.

Before it runs live

  • Connect Google Drive
  • Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)

What you get

RunsEvery 15 minutes
Get a risk review of every new contract in Slacktoday, 9:00Succeeded
Slack · #legal📄 Northwind MSA.pdf: 12-month term, renews unless cancelled 90 days before. ⚠️ Liability for Acme is uncapped.

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
  • Change what the AI looks for, or how it writes the result
  • Add another app, for example also send it to Google Sheets
  • Combine it with other Google Drive and Slack 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.
contracts_in_drive_reviewed_risks_to_slack.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
import io
from pypdf import PdfReader
from clickruntime import on_trigger, credentials, state, notify, ai, http, report_fetched

FOLDER_ID = "your-contracts-folder-id"

@on_trigger
def run(event):
    token = credentials.connection("google", "work")
    drive = build("drive", "v3", credentials=Credentials(token), cache_discovery=False)
    seen = set(state.get("seen") or [])
    files = drive.files().list(q=f"'{FOLDER_ID}' in parents and mimeType='application/pdf' and trashed=false",
                               fields="files(id,name,webViewLink)").execute().get("files", [])
    new = [f for f in files if f["id"] not in seen]
    report_fetched(len(new))
    if not new:
        return {"new": 0}
    for f in new:
        pdf = http.get(f"https://www.googleapis.com/drive/v3/files/{f['id']}?alt=media",
                       headers={"Authorization": f"Bearer {token}"}).content
        text = "\n".join(p.extract_text() or "" for p in PdfReader(io.BytesIO(pdf)).pages)[:60000]
        review = ai.generate(["List the key terms and any risky clauses in this contract as short bullets.", text],
                             max_output_tokens=700).text
        notify.slack(f"*{f['name']}*\n{review}\n{f['webViewLink']}", channel="#legal")
        seen.add(f["id"])
    state.set("seen", list(seen))
    return {"new": len(new)}

FAQ

Common questions

Does it replace a lawyer's review?
No. It is a first read that highlights terms worth checking. Contracts with significant value or risk should still be reviewed by someone qualified.
Which files does it look at?
Only PDFs added to the folder you choose. Files already in the folder when you set it up are skipped, so you are not flooded with old contracts.
What does it look for in a contract?
Parties, term and renewal, payment terms, termination and notice periods, liability caps, indemnities and exclusivity. You can add your own items, such as data protection or IP ownership.
What permissions does it need?
Drive read; Slack chat:write. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
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 “Get a risk review of every new contract in Slack” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.