# Agnostos Research Discovery (`avinashistoocool/agnostos-research-discovery`) Actor

Find OpenAlex researchers by topic and country, with optional public-page email suggestions and unsent AI drafts. No email sending or deliverability guarantees.

- **URL**: https://apify.com/avinashistoocool/agnostos-research-discovery.md
- **Developed by:** [Avinash Chandra Gupta](https://apify.com/avinashistoocool) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $30.00 / 1,000 saved researcher results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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

## Agnostos Research Discovery Actor

This Actor uses Agnostos's existing OpenAlex discovery pipeline to find researchers by topic and country, with recent publications, topics, and seniority. Its existing funding heuristics assume an Indian undergraduate applicant, so the Actor omits those notes and does not pass them to drafts. Optional public-page email lookup supplies **suggestions**, not verified deliverability. Optional Groq-based drafting produces **unsent** tailored subject/body pairs. There is no SMTP sending, mailbox access, CV upload, or automatic follow-up.

### Input and output

Supply `topics` (semicolon/newline-separated) and optionally `countries` (ISO two-letter codes or `europe`, `dach`, `uk`, `usa`), `maxResults` (1–50), `maxPagesPerTopic` (1–10), `minHIndex` and `openalexApiKey`. The OpenAlex key is optional but can improve quota. Discovery searches papers from the past five calendar years, requires 20 published works per author, and may return fewer than requested when pages or seniority constraints limit matches. A result is a researcher, **not proof that they are a professor**; inspect rank and affiliation yourself.

`verifyEmails: true` searches publicly indexed university pages. It reports `emailSuggestion`, `emailStatus`, `emailConfidence` and `emailNotes`; it never probes SMTP, adopts an unconfirmed suggestion as an address, or guarantees that an address accepts mail. This step may be slow or inconclusive on blocked/absent pages.

`draftEmails: true` additionally requires `groqApiKey`, `applicantName`, `applicantDegree` (actual year and degree), `applicantInstitution`, `applicantInterests`, `targetPeriod` (season and year), and `confirmedFacts`; `applicantSkills` is optional. This opt-in calls Groq and may consume your quota or incur provider charges. Drafts ask for an 8–10 week research internship, using your supplied degree and target period rather than assuming an applicant profile or year. The Actor cannot verify your facts or whether an institution accepts interns; enter only truthful, non-sensitive applicant facts. Inspect every draft and check recipient identity before considering contact.

The default dataset has one item per researcher: `name`, `institution`, `country`, `researchArea`, `recentWorks`, `openalexId`, `topics`, `discoveryNotes`, `email`, `emailStatus`, `emailConfidence`, `emailSuggestion`, `emailNotes`. Opted-in drafts add `subject`, `body`, `probability` and `justification`. A blank `email` means no confirmed address; a suggestion is for manual review. `probability` is the draft model's heuristic, **not** a measured reply or acceptance rate. **Apify run inputs and datasets can contain sensitive personal data**: keep runs private, never put access tokens in ordinary text fields, and do not publish draft datasets without consent. API keys use encrypted secret input fields and are never included in dataset rows or deliberately logged.

Synthetic, fictional example output (not a real researcher or address):

```json
{
  "name": "Example Researcher",
  "institution": "Example University",
  "country": "DE",
  "researchArea": "Graph neural networks",
  "recentWorks": ["Fictional methods paper (2025)"],
  "openalexId": "https://openalex.org/A0",
  "topics": ["Graph neural networks"],
  "discoveryNotes": "Synthetic example only",
  "email": "",
  "emailStatus": "not_checked",
  "emailConfidence": 0,
  "emailSuggestion": "",
  "emailNotes": ""
}
```

### Pay-per-event pricing

The Actor charges $0.03 through the `researcher-result` event for each saved discovery-only dataset item, or $0.08 through `researcher-draft` for each saved item with an opted-in, unsent draft. `researcher-result` is the primary event. Draft rows replace rather than add to discovery-only rows for pricing; a row is never intentionally charged both custom events. Empty results, validation errors and discovery/draft failures produce no dataset items or custom events. The SDK limits pushes and event charges to the run's spending cap. Generated drafts use the **user's own Groq API key**, which may incur separate provider charges. Email suggestions are not verified ownership or deliverability.

The pricing configuration contains no `apify-default-dataset-item` or `apify-actor-start` event, so there is no automatic charge for an empty run or a second charge per saved row. Pay-per-event + usage is not enabled. The Actor remains private pending completion of its Store listing and the account owner's publication action.

Example (synthetic discovery-only input):

```json
{
  "topics": "graph neural networks; particle physics",
  "countries": "de,ch",
  "maxResults": 10
}
```

### Local development and deployment

At the repository root, install `python -m pip install -e ".[actor]"`. Put a sample input in `storage/key_value_stores/default/INPUT.json` (ignored by Git; do not commit real keys), then run `python -m apify_actor`. Read output from the local default dataset. For remote deployment, use an isolated directory containing only `.actor/`, `apify_actor/`, the eleven explicitly copied `outreach` modules from the Dockerfile, `pyproject.toml`, `README.md` and `LICENSE`. Run `apify push` from **that directory only**, after authenticating the Apify CLI and reviewing its exact contents. Do not push this repository root: Apify CLI uploads source, not just the Docker image, and Git ignore rules alone do not exclude every tracked file. Deployment to an account is not a public Store listing. A private deployment and an empty synthetic smoke run have succeeded. The fictional example above is documentation, not a published Store sample: add it in the Console's **Publishing > Sample output** section if that field is not populated automatically, and add an Actor logo and display information before the owner selects **Publish on Store**.

The image installs the required modules from the existing `outreach` package and the Apify Python SDK via the `actor` dependency extra. The package's existing dependency set is installed, but SMTP and IMAP source modules are not included and no messaging integrations are invoked. Network calls are needed for OpenAlex discovery, optional public-page lookup, and opted-in Groq drafting; offline tests mock these integrations.

# Actor input Schema

## `topics` (type: `string`):

One or more research queries, separated by semicolons or newlines.

## `countries` (type: `string`):

ISO two-letter country codes or groups such as europe, dach, uk, usa, separated by commas.

## `maxResults` (type: `integer`):

Maximum number of researchers to return.

## `maxPagesPerTopic` (type: `integer`):

Limit search effort for each topic; a page contains up to 100 works.

## `minHIndex` (type: `integer`):

Seniority threshold for discovered researchers.

## `verifyEmails` (type: `boolean`):

Search public university pages for an address. Results are suggestions, never guaranteed deliverable.

## `draftEmails` (type: `boolean`):

Opt in to Groq LLM requests (subject to your provider's quotas and billing); requires applicant fields and a Groq API key.

## `applicantName` (type: `string`):

Required only for unsent drafts. Drafts are stored in the run dataset.

## `applicantDegree` (type: `string`):

Your actual year and degree, e.g. second-year undergraduate or master's student. Required for drafts.

## `targetPeriod` (type: `string`):

Required for unsent drafts. Specify the actual season and year, e.g. summer 2027.

## `applicantInstitution` (type: `string`):

Required only for unsent drafts.

## `applicantInterests` (type: `string`):

Required only for unsent drafts; separate interests with semicolons.

## `applicantSkills` (type: `string`):

Relevant skills for personalized drafts, separated by semicolons.

## `confirmedFacts` (type: `string`):

Required for unsent drafts. Only include facts you can personally verify; never include passwords, private contact details or access tokens.

## `groqApiKey` (type: `string`):

Secret; required only for unsent drafts.

## `openalexApiKey` (type: `string`):

Optional secret for higher OpenAlex request limits.

## Actor input object example

```json
{
  "topics": "graph neural networks; particle physics",
  "countries": "europe",
  "maxResults": 10,
  "maxPagesPerTopic": 2,
  "minHIndex": 8,
  "verifyEmails": false,
  "draftEmails": false
}
```

# Actor output Schema

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

Default dataset containing public researcher details and optional unsent drafts.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("avinashistoocool/agnostos-research-discovery").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("avinashistoocool/agnostos-research-discovery").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 '{}' |
apify call avinashistoocool/agnostos-research-discovery --silent --output-dataset

```

## MCP server setup

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

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/Tpm3NG0zoPYyLkEKm/builds/Qd8ft0KRPcG8PYJQf/openapi.json
