Skip to content

Every 30 minutes

List the people at each company in your sheet

For each company domain you add, up to five contacts with their names, roles and emails are added to your Contacts tab.

Runs
Every 30 minutes
Apps
Google Sheets, Hunter.io
AI
Optional
Access
Hunter key; Sheets read+write

Send this to your assistant

Create a ClickRuntime automation: every 30 minutes, for each new domain in my Companies tab, find up to 5 people with Hunter, add their name, role and email to the Contacts tab and mark the domain as done.

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

Account-based sales starts with a list of target companies, but a company is not a contact. Finding who works there, in which role, and how to reach them is slow research that eats the time meant for selling.

Sales teams, recruiters and partnership managers use it to turn a list of target companies into named contacts in minutes, with every result kept in the same sheet.

What you get out of it

  • From company to people

    Add a domain and get the names, roles and emails Hunter knows for that company.

  • The right roles first

    Results can be limited to departments such as sales or management, so you are not sorting through every employee.

  • One tidy contacts tab

    All results land in a single tab with the company next to each person, ready to filter or import.

  • Each domain searched once

    Domains are marked done after the search, so credits are not used twice.

How it works

What happens, step by step

  1. Every 30 minutes, ClickRuntime reads your Companies tab for domains not yet marked done.

  2. Hunter searches each domain for people and their work emails.

  3. Up to five contacts per company are added to your Contacts tab with name, role and email.

  4. The domain is marked done, with how many contacts were found.

Before it runs live

  • Connect your Google Sheets account and pick the spreadsheets it may use
  • Connect Hunter.io

What you get

RunsEvery 30 minutes
List the people at each company in your sheettoday, 9:00Succeeded
Google Sheets · Contactsacme.example · Jamie Ortiz · Head of Operations · jamie.ortiz@acme.example · 96

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 Sheets and Hunter.io 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.
find_contacts_at_company_domains_into_a_sheet.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, report_fetched, credentials, http

SHEET_ID = "your-spreadsheet-id"

@on_trigger
def run(event):
    sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")),
                   cache_discovery=False).spreadsheets().values()
    rows = sheets.get(spreadsheetId=SHEET_ID, range="Companies!A2:B").execute().get("values", [])
    new = [(i + 2, r[0]) for i, r in enumerate(rows) if len(r) == 1 and r[0]]
    report_fetched(len(new))
    if not new:
        return {"new": 0}
    contacts, marks = [], []
    for n, domain in new:
        data = http.get("https://api.hunter.io/v2/domain-search", params={"domain": domain, "limit": 5, "type": "personal",
                        "api_key": credentials.secret("HUNTER_API_KEY")}).json().get("data") or {}
        people = data.get("emails", [])
        contacts += [[domain, f"{p.get('first_name') or ''} {p.get('last_name') or ''}".strip(), p.get("position") or "",
                      p["value"], p.get("confidence", "")] for p in people]
        marks.append({"range": f"Companies!B{n}", "values": [[f"Done: {len(people)} contacts" if people else "No contacts found"]]})
    if contacts:
        sheets.append(spreadsheetId=SHEET_ID, range="Contacts!A:E", valueInputOption="RAW", body={"values": contacts}).execute()
    sheets.batchUpdate(spreadsheetId=SHEET_ID, body={"valueInputOption": "RAW", "data": marks}).execute()
    return {"domains": len(new), "contacts": len(contacts)}

FAQ

Common questions

How many contacts per company?
Up to five by default, which suits most outreach. You can raise or lower the number, keeping in mind each search uses Hunter credits.
Can I target certain roles?
Yes. Ask for a department such as executive, sales or marketing, or a seniority such as senior, and only those people are returned.
What if a company has no results?
The domain is marked No contacts found so you know it was searched, and nothing is added to the Contacts tab.
What permissions does it need?
Hunter key; Sheets read+write. Nothing else in your accounts is used.
Does it need AI?
No, but you can ask for an AI step (for example a summary). It then uses ClickRuntime's built-in 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 “List the people at each company in your sheet” from your assistant

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