# Prompt Finder: Proven Prompts for Any Task (`padmaraj1994/prompt-finder`) Actor

Find the best AI prompt for your task, with proof. It tests candidate prompts on your own examples using your own AI key (Claude, OpenAI, Gemini or any OpenAI-compatible API), scores the results blind against your success criteria, and backs every prompting technique with published research.

- **URL**: https://apify.com/padmaraj1994/prompt-finder.md
- **Developed by:** [Padmaraj Bhosale](https://apify.com/padmaraj1994) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% 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

## Prompt Finder: Proven Prompts for Any Task

Every team now has a pile of AI prompts, and most of them are never checked. **Prompt Finder tells you which prompt actually works for your task, and shows the proof.** Describe the task, give it one or two real examples, and it will:

1. **Collect candidate prompts**: a plain request (the baseline), three expert-designed prompts that each use a different proven technique, and related community prompts from LangChain Hub with their likes and downloads.
2. **Test them on your examples** with your own AI account (Claude, OpenAI, Gemini, or any OpenAI-compatible API). An AI judge scores every output against your success criteria **without knowing which prompt wrote it**.
3. **Back every technique with research**: for each technique in the winning prompts (worked examples, step-by-step reasoning, output format, self-checking, personas...), the most-cited study on it plus the most relevant one for your kind of task. That includes research showing when a technique *doesn't* help.

You get a ranked list with scores, the margin over the plain request, sample outputs with the judge's reasons, and a fill-in-the-blanks blueprint for writing your own prompt.

### Three kinds of proof

| Proof | What it shows | Needs |
| --- | --- | --- |
| **Tested on your examples** | Score out of 10 per prompt, per criterion, wins per example, and the gain over a plain request | Your AI API key |
| **Research** | Published studies on each technique the prompt uses, with citation counts and a key sentence | Nothing |
| **Community** | Likes and downloads of prompts shared on LangChain Hub | Nothing |

Without an API key you still get community prompts, research and the blueprint, but only testing proves which prompt works for *your* task.

### How to use it

1. Click **Try for free**.
2. Describe your **task** (and optionally your **sector**).
3. Paste 1-3 **test inputs**: real examples the prompt will be used on, separated by a line with `---`. Leave empty and the AI invents two.
4. List **what a great result looks like**, one criterion per line. Leave empty and the AI drafts them.
5. Pick your **AI provider**, paste your **API key**, and click **Start**.

#### Input example

```json
{
    "task": "Write a short cold email to a SaaS company's CTO offering our software testing (QA) services",
    "sector": "B2B software services",
    "testInputs": "Lead: Maria Lopez, CTO at Fintrack (fintech SaaS, about 40 engineers). She recently posted that flaky end-to-end tests slow down their weekly releases.",
    "successCriteria": "Under 120 words\nMentions a specific detail about the lead's company\nExactly one clear call to action\nNo hype or buzzwords",
    "provider": "anthropic",
    "apiKey": "<your key>",
    "maxPromptsToTest": 5
}
```

### What you get

| Field | Description |
| --- | --- |
| `summary` | One line, e.g. *Best prompt: "Plan, check, answer" scored 8.7/10 on 2 test inputs; +3.1 points vs. the plain request.* |
| `bestPrompt` | The winning prompt, ready to copy, with `{input}` where your content goes |
| `prompts` | Every candidate, ranked: `score`, `scoreVsBaseline`, `wins`, `criteriaScores`, `techniques`, `researchBackedTechniques`, `prompt`, source and likes, and `sampleOutputs` with the judge's reasons |
| `testing` | Model used, criteria and test inputs (and whether the AI drafted them), number of requests, tokens, and estimated cost |
| `techniqueEvidence` | For each technique: the studies found, with year, citations, link and key sentence |
| `blueprint` | A fill-in-the-blanks prompt that applies the evidence-backed techniques to your task |
| `references` | Official prompting guides from Anthropic and OpenAI, and The Prompt Report survey |

### How much does it cost?

Two parts:

- **This Actor**: a fixed price per task researched, shown on the **Pricing** tab.
- **Your AI provider**: the test requests run on your own account. With the defaults (5 prompts, 2 test inputs) that's about 22 requests. On Claude Opus 5.5 that usually comes to well under $2 per run; on Claude Haiku 5.5 (enter `claude-haiku-5-5` as the model) it's a few cents. The output shows the exact token count and an estimated cost.

### Privacy and safety

- Your API key is stored encrypted by Apify, used only for this run's test requests, and never written to the output or logs.
- Your task, test inputs and criteria are sent to the AI provider you choose. Don't use confidential data your provider isn't allowed to see.
- With Claude Opus 5.5, Sonnet 5.5, Opus 5 and Fable 5.1, Anthropic's refusal fallback is on: if a safety check declines a request, Anthropic re-runs it on a suitable model instead of failing.

### Good to know

- **The judge is the same model that ran the prompts.** Scoring is blind (the judge never sees which prompt produced an output), but treat close scores as a tie. For important decisions, test with more inputs or a second provider.
- **A few examples aren't a statistical study.** Scores show which prompt worked best on *your* examples; use inputs that represent your real work.
- **Research supports techniques in general,** for example that worked examples help or that personas often don't, not your exact task. That's why the live test exists.
- **Community prompts that need several fill-ins** (e.g. `{topic}`, `{word_count}`, `{context}`) are listed with their techniques and likes, but not tested automatically.
- Community prompts belong to their authors; each result links to the original.

### Need help?

Open an issue on the **Issues** tab with your task (no API keys), and it will be looked at quickly.

# Actor input Schema

## `task` (type: `string`):

Describe what you need the AI to do, as you would to a colleague. For example: "Write a short cold email to a SaaS company's CTO offering our QA services".

## `sector` (type: `string`):

Optional, e.g. "B2B software services" or "healthcare".

## `testInputs` (type: `string`):

1-3 real examples the prompt will be used on, such as a lead's details or a document excerpt. Separate examples with a line containing only ---. Leave empty and the AI invents 2 realistic ones.

## `successCriteria` (type: `string`):

One criterion per line, e.g. "Under 120 words" or "Mentions one specific detail about the company". Leave empty and the AI drafts 4-5 criteria.

## `provider` (type: `string`):

Prompts are tested with your own account, so you pay the provider directly for those requests.

## `apiKey` (type: `string`):

Your key for the provider above. Stored encrypted, used only for this run's test requests, and never written to the output or logs. Without a key, prompts are ranked by research and community signals instead of tested.

## `model` (type: `string`):

Leave empty for the default: claude-opus-5-5 on Anthropic (best quality), or a current small model on OpenAI or Gemini. For a much cheaper test on Anthropic, enter claude-haiku-5-5.

## `apiBaseUrl` (type: `string`):

Only for "Other OpenAI-compatible API", e.g. https://openrouter.ai/api/v1 or http://your-server:11434/v1.

## `maxPromptsToTest` (type: `integer`):

Including the plain-request baseline. Each prompt costs two AI requests per test input: one to run it, one to score it.

## `minSecondsBetweenRequests` (type: `integer`):

Only for free tiers with strict rate limits; 0 sends requests as fast as the provider allows.

## `includeCommunityPrompts` (type: `boolean`):

Search LangChain Hub for related prompts, with their likes and downloads.

## `includeResearch` (type: `boolean`):

Look up published studies on each prompting technique (OpenAlex and arXiv).

## `papersPerTechnique` (type: `integer`):

How many studies to show for each technique.

## Actor input object example

```json
{
  "task": "Write a short cold email to a SaaS company's CTO offering our software testing (QA) services",
  "sector": "B2B software services",
  "provider": "anthropic",
  "maxPromptsToTest": 5,
  "minSecondsBetweenRequests": 0,
  "includeCommunityPrompts": true,
  "includeResearch": true,
  "papersPerTechnique": 2
}
```

# Actor output Schema

## `recommendation` (type: `string`):

No description

# 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 = {
    "task": "Write a short cold email to a SaaS company's CTO offering our software testing (QA) services",
    "sector": "B2B software services"
};

// Run the Actor and wait for it to finish
const run = await client.actor("padmaraj1994/prompt-finder").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 = {
    "task": "Write a short cold email to a SaaS company's CTO offering our software testing (QA) services",
    "sector": "B2B software services",
}

# Run the Actor and wait for it to finish
run = client.actor("padmaraj1994/prompt-finder").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 '{
  "task": "Write a short cold email to a SaaS company'\''s CTO offering our software testing (QA) services",
  "sector": "B2B software services"
}' |
apify call padmaraj1994/prompt-finder --silent --output-dataset

```

## MCP server setup

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

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/vnGnVIVHctnshw0h0/builds/57G1xx4Yv1jxVG7oD/openapi.json
