Skip to content

The moment it happens

Turn a website address into a company profile in Supabase and Drive

Submit a company's website and get its mission, services, contacts and keywords saved as a row in Supabase and a profile doc in Drive.

Runs
The moment it happens
Apps
Google Drive, Supabase
AI
Yes, uses the built-in AI allowance
Access
Supabase write; Drive write (drive.file)

Send this to your assistant

Create a ClickRuntime automation: when I submit a URL to this link, read the website, pull out the mission, services, contacts and keywords, add a row to my Supabase companies table and save a profile doc in my Drive folder.

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 business development team researches prospects before every call. Someone opens the company's site, skims the about and services pages, copies contact details into a database and writes a short profile. It takes twenty minutes per company and the format varies by who did it.

Sending the website address to a link and getting a structured profile back in seconds frees that time for the call itself. Every profile has the same fields, so the database stays searchable.

What you get out of it

  • Research in seconds

    A profile is ready shortly after you submit the address. You can prepare for a call minutes before it starts.

  • A consistent database

    Every company gets the same fields in Supabase, so filtering by service or keyword works across all of them.

  • A readable profile to share

    The Drive doc gives colleagues a quick read without database access.

  • Easy to feed from anywhere

    Any form, browser shortcut or internal tool can send a URL to the link.

How it works

What happens, step by step

  1. It starts when a website address is sent to your trigger link.

  2. ClickRuntime reads the website's home page.

  3. AI pulls out the mission, services, contacts and keywords.

  4. A row is added to your Supabase companies table and a profile doc is saved in your Google Drive folder.

Before it runs live

  • Connect Google Drive
  • Connect Supabase
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Turn a website address into a company profile in Supabase and Drivejust nowSucceeded
Supabase · companiesNorthwind Logistics · Mission: same-day freight for small retailers · Services: courier, warehousing · Keywords: logistics, last mile

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 Slack
  • Combine it with other Google Drive and Supabase 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.
turn_a_website_url_into_a_company_profile_in_supabase_and_drive.pyexample
from bs4 import BeautifulSoup
from googleapiclient.http import MediaInMemoryUpload
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_event, credentials, http, ai

SUPABASE_URL, FOLDER_ID = "https://your-project.supabase.co", "your-profiles-folder-id"

@on_event
def handle(event):
    url = event.event["url"]
    text = BeautifulSoup(http.get(url, timeout=20).text, "html.parser").get_text(" ", strip=True)[:15000]
    schema = {"type": "object", "properties": {k: {"type": "string"} for k in ["name", "mission", "services", "contacts", "keywords"]}}
    p = ai.generate(f"Extract the company name, mission, services, contacts and keywords from this website:\n{text}",
                    json_schema=schema, max_output_tokens=600).json
    key = credentials.secret("SUPABASE_SERVICE_KEY")
    http.post(f"{SUPABASE_URL}/rest/v1/companies", json={"website": url, **p},
              headers={"apikey": key, "Authorization": f"Bearer {key}", "Prefer": "resolution=merge-duplicates"})
    doc = "\n\n".join(f"{k.title()}: {v}" for k, v in p.items())
    drive = build("drive", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    drive.files().create(body={"name": f"{p.get('name', url)} profile", "parents": [FOLDER_ID],
                               "mimeType": "application/vnd.google-apps.document"},
                         media_body=MediaInMemoryUpload(f"{url}\n\n{doc}".encode(), mimetype="text/plain")).execute()
    return {"company": p.get("name")}

FAQ

Common questions

What does the profile include?
The company's mission in a sentence, its main services, any contact email or phone number listed on the site, and a handful of keywords describing what it does.
What if the website blocks reading?
Some sites refuse automated visits. In that case no row is added and you get a note saying the site could not be read.
Will a company be added twice?
If the same website is submitted again, the existing row is updated instead of creating a duplicate, provided your table treats the website as unique.
What permissions does it need?
Supabase write; Drive write (drive.file). 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 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 “Turn a website address into a company profile in Supabase and Drive” from your assistant

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