# Orchestrator Actor (`creatorharsh/orchestrator-actor`) Actor

- **URL**: https://apify.com/creatorharsh/orchestrator-actor.md
- **Developed by:** [Harsh Vardhan](https://apify.com/creatorharsh) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 3.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Clutch Lead Pipeline

One input, three Actors. This Actor calls your existing Actors in order and returns one table:

```
Clutch Reviews Scraper  ->  Clutch to LinkedIn Profile Finder  ->  LinkedIn Bulk Email Finder
   (reviews)                    (+ linkedin_url, confidence_score, country)   (+ email)
```

The child Actors run under the account that runs this Actor, so their usage (and your email provider credits) are billed to that account.

### Modes

| Mode | Runs | Needs |
|---|---|---|
| `full_pipeline` | reviews, LinkedIn, emails | Clutch URLs, email API key |
| `reviews_only` | reviews | Clutch URLs |
| `reviews_and_linkedin` | reviews, LinkedIn | Clutch URLs |
| `linkedin_and_emails` | LinkedIn, emails | input file (reviewer, company columns), email API key |
| `linkedin_only` | LinkedIn | input file |
| `emails_only` | emails | input file with a `linkedin_url` column, email API key |

### Actors called

The three Actor IDs are built in (`src/config.py`, `DEFAULT_ACTOR_IDS`), so users enter nothing. To point a stage at a different Actor (for example a test copy), set `REVIEWS_ACTOR_ID`, `LINKEDIN_ACTOR_ID` or `EMAIL_ACTOR_ID` as an environment variable on this Actor.

### Output

- Dataset (and `RESULTS.xlsx` / `RESULTS.csv` in the key-value store): one row per review with `date, orgName, company, location, reviewDate, reviewUrl, reviewer, title, linkedin_url, confidence_score, country, email`. Extra columns from the extended review fields are kept. Rows with an email come first.
- `RUN_SUMMARY`: the run link and row count of each stage, totals, and notes (for example how many rows were not sent to the email finder).

### How the stages are connected

- Reviews to LinkedIn: `reviewerName` becomes `reviewer`, `reviewerTitle` becomes `title`, `currentDate` becomes `date`; the rows are uploaded as a CSV to this run's key-value store and the LinkedIn finder is given its link.
- LinkedIn to emails: only rows with a `linkedin_url` (and a `confidence_score` of at least `minConfidence`) are sent to the email finder. The other rows are kept in the results with an empty `email`.
- If a stage fails, the rows of the stages that finished are still saved and the run is marked failed with a link to the failed child run.

### Local development

```bash
pip install -r requirements-dev.txt
pytest
```

The tests use a fake runner, so they do not call Apify.

# Actor input Schema

## `mode` (type: `string`):

Full pipeline starts from Clutch company URLs. The other modes start from a file you upload, or stop earlier.

## `clutchUrls` (type: `array`):

Used by the modes that start with reviews. One Clutch profile URL per line, e.g. https://clutch.co/profile/example-company.

## `inputFile` (type: `string`):

Used by the modes that start from a file. For the LinkedIn modes it needs reviewer (or name) and company columns. For Emails only it needs a linkedin_url column.

## `maxReviewsPerCompany` (type: `integer`):

0 = no limit.

## `includeAnonymous` (type: `boolean`):

Anonymous reviews have no name to search for, so they only add rows without LinkedIn or email.

## `includeExtendedFields` (type: `boolean`):

Adds review title, ratings, project details and the interview text to each row.

## `proxyConfiguration` (type: `object`):

Clutch is behind Cloudflare; residential proxies are strongly recommended.

## `useLlmDisambiguation` (type: `boolean`):

Passed to the LinkedIn finder. The AI keys are configured on that Actor.

## `llmProvider` (type: `string`):

Which model the LinkedIn finder uses when AI is enabled. The API keys are configured on that Actor.

## `minConfidence` (type: `integer`):

Rows whose LinkedIn match scores below this are kept in the results but not sent to the email finder, so you do not spend provider credits on weak matches. 0 = look up every row that has a LinkedIn URL.

## `emailProvider` (type: `string`):

Lookups are charged to your own account with that provider.

## `emailApiKey` (type: `string`):

Required for every mode that finds emails. Stored encrypted.

## Actor input object example

```json
{
  "mode": "full_pipeline",
  "maxReviewsPerCompany": 0,
  "includeAnonymous": false,
  "includeExtendedFields": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "useLlmDisambiguation": true,
  "llmProvider": "openai",
  "minConfidence": 0,
  "emailProvider": "findymail"
}
```

# Actor output Schema

## `results` (type: `string`):

All rows. Rows with an email come first.

## `excel` (type: `string`):

The same rows as an Excel file with the columns in order.

## `csv` (type: `string`):

The same rows as a CSV file with the columns in order.

## `runSummary` (type: `string`):

Per-stage run links, row counts and the final counts.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("creatorharsh/orchestrator-actor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    } }

# Run the Actor and wait for it to finish
run = client.actor("creatorharsh/orchestrator-actor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call creatorharsh/orchestrator-actor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,creatorharsh/orchestrator-actor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/tDdmZOIqbfbYhfXu3/builds/Xf1xY1wSpv5kWVYpl/openapi.json
