# Bulk AI Dataset Enricher: Prompt Every Row (No API Key) (`steady-scrape/bulk-ai-dataset-enricher`) Actor

Run one AI instruction over every row of an Apify dataset or JSON list: classify, tag, extract fields, summarize, score sentiment or translate. Returns free text or named JSON columns. No OpenAI key needed. Pay per row.

- **URL**: https://apify.com/steady-scrape/bulk-ai-dataset-enricher.md
- **Developed by:** [SteadyScrape](https://apify.com/steady-scrape) (community)
- **Categories:** AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 row enriched (standard)s

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

## Bulk AI Dataset Enricher: Prompt Every Row (No API Key)

Run **one AI instruction over every row** of an Apify dataset or a JSON list and get the answer back as a new column. Classify, tag, extract fields, summarize, score sentiment, translate or answer yes/no for thousands of rows, with **no OpenAI or other API key**. **$0.0005 per standard row + $0.005 per run with results**: 1,000 standard rows cost $0.505.

### What it does

- Reads rows from any Apify **dataset ID** (for example the output of a scraper run) or a pasted **JSON array**.
- Sends each row with your instruction to an open model: **Gemma 4 26B** (standard) or **Mistral Small 3.1 24B** (large).
- **Free-text mode:** one `enrichment` answer per row.
- **JSON mode:** list `outputFields` such as `sentiment, topics, category` and each becomes its own column (`ai_sentiment`, `ai_topics`, ...).
- Use `{{field}}` placeholders (dot paths work, e.g. `{{review.text}}`) or pick `inputFields` to send only what matters.
- Keeps your original row and adds the AI columns, so the result drops straight into Sheets, CSV or the next Actor.

### Use cases

- Tag scraped reviews by sentiment and topic.
- Categorise products, jobs or companies into your own taxonomy.
- Extract structured fields (brand, size, price unit) from messy titles.
- Summarise news articles or descriptions to one line.
- Score leads or posts against a rubric (yes/no + reason).

### Input example

```json
{
  "items": [
    {"review": "Battery died after two days, but shipping was fast."},
    {"review": "Exactly as described, great value."}
  ],
  "prompt": "Classify the sentiment of {{review}} as positive, negative or mixed and list up to 3 topics.",
  "outputFields": ["sentiment", "topics"],
  "model": "standard",
  "maxRows": 5
}
```

### Output example

```json
{"review": "Battery died after two days, but shipping was fast.", "rowIndex": 0,
 "enrichmentStatus": "ok", "enrichment": {"sentiment": "mixed", "topics": ["battery life", "shipping"]},
 "ai_sentiment": "mixed", "ai_topics": ["battery life", "shipping"], "enrichmentNote": null}
```

The run summary (key-value store record `OUTPUT`) shows rows enriched, failed and skipped, and the events charged.

### Pricing (pay per event)

You pay only for what runs, with no subscription:

| Event | Price | When it is charged |
|---|---|---|
| Run with results | $0.005 | Once per run that enriches at least one row. Empty runs are free. |
| Row enriched (standard) | $0.0005 | One row answered by the standard model, including 1,000 input tokens and 300 output tokens. |
| Row enriched (large) | $0.0015 | One row answered by the large model, including the same allowance. |
| Extra 1,000 tokens (standard) | $0.0006 | One started 1,000-token block beyond the included allowance, standard model. |
| Extra 1,000 tokens (large) | $0.0012 | One started 1,000-token block beyond the included allowance, large model. |

Failed, empty, skipped and mock rows are **free**. Set **Maximum cost per run** to cap spend; the run stops cleanly before passing it. The default maximum charge per run is $2.00.

Worked examples (standard model, no extra tokens):

- 100 rows: $0.005 + $0.050 = **$0.055**
- 1,000 rows: $0.005 + $0.500 = **$0.505**
- 100 large-model rows: $0.005 + $0.150 = **$0.155**

**Free Apify plan:** up to 100 rows per run.

### How it compares

Typical bulk LLM tools on the Store charge around $0.002 per row, or pass through token costs and ask for your own API key. This Actor includes the model in the price, starts at $0.0005 per standard row, and does not charge failed or empty rows. Quality is that of a mid-size open model, not a flagship paid API; check important results.

### Use it from an AI agent (Apify MCP)

```json
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=steady-scrape/bulk-ai-dataset-enricher"}}}
```

Then ask: *"Classify these 20 reviews as positive, negative or mixed and list up to 3 topics each."* Prices above and your maximum charge apply.

### Integrations

Schedule it in Apify, call it through the Apify API, or connect it to Make, Zapier, n8n, Google Sheets and webhooks with Apify's ready-made integrations. Chain it after another Actor by passing that run's default dataset ID.

### Limits and notes

- Up to 10,000 rows per run; answers up to 1,000 tokens per row.
- If today's AI capacity is used up, remaining rows are returned as `skipped` and not charged. Run again later.
- Rows are treated as data: instructions hidden inside a row are ignored.
- Do not send sensitive personal data (health, financial, government IDs). Small models can be wrong; check important results.

### Acceptable use

Do not use this Actor to generate illegal content, harass people, make automated decisions with legal or similar effects on individuals, or profile people from personal data.

### Model licences

Gemma 4 (Google, Apache License 2.0) and Mistral Small 3.1 (Mistral AI, Apache License 2.0), hosted on Cloudflare Workers AI. You own the answers you generate.

### FAQ

**Do I need an OpenAI key?** No. Models are included in the price.

**Can I chain it after another Actor?** Yes. Pass the run's default dataset ID, or use an Apify integration to start this Actor when a scraper finishes.

**Why did a row fail?** The model returned no valid JSON (JSON mode) or the AI service did not answer. Failed rows are not charged; rerun with `offset` to retry.

**Can AI agents use it?** Yes, through the Apify API or MCP server. Inputs are small with safe defaults and hard limits.

### More tools from SteadyScrape (steady-scrape)

- [Bulk HTTP & API Request Runner: Batch Calls with Retries](https://apify.com/steady-scrape/bulk-http-request-runner): send thousands of HTTP or API requests in one run and get status, JSON, timing and retries.
- [Lead Research Agent](https://apify.com/steady-scrape/lead-research-agent): find and qualify leads you can then classify or score with this enricher.
- [Review Intelligence](https://apify.com/steady-scrape/review-intelligence): Google, Trustpilot and Tripadvisor reviews, ready to tag by sentiment and topic.
- [AI Page to JSON](https://apify.com/steady-scrape/ai-page-to-json): turn a web page into structured JSON, then enrich the rows here.
- [PDF Text & Markdown](https://apify.com/steady-scrape/pdf-text-markdown): extract document text to feed into a prompt.

Built and maintained by **SteadyScrape (steady-scrape)**. Questions or ideas? Open an issue on the Issues tab.

# Actor input Schema

## `prompt` (type: `string`):

What the AI should do with each row. Use {{field}} to insert a field (e.g. {{title}}, {{review.text}}); otherwise the row (or the input fields you pick) is attached as JSON.

## `datasetId` (type: `string`):

Rows to enrich, e.g. the default dataset of another Actor run. Leave empty if you paste rows in 'items'.

## `items` (type: `array`):

Alternative to a dataset: a JSON array of objects.

## `outputFields` (type: `array`):

Optional. Field names the AI must return as a JSON object, e.g. sentiment, topics. Each becomes a column with the output prefix. Leave empty for a free-text answer.

## `inputFields` (type: `array`):

Optional. Only these fields (dot paths allowed) are sent to the AI. Empty = the whole row.

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

Both are open Apache 2.0 models.

## `maxRows` (type: `integer`):

Stop after this many rows (1-10,000).

## `offset` (type: `integer`):

Skip this many rows of the source first.

## `maxOutputTokens` (type: `integer`):

Longest answer per row (16-1,000). Each row includes 300 answer tokens and 1,000 input tokens; longer rows bill extra 1,000-token blocks.

## `maxFieldChars` (type: `integer`):

Long field values are cut to this length before sending (50-20,000).

## `includeOriginal` (type: `boolean`):

Output each original row with the AI columns added. Off = only the row index, picked input fields and the answer.

## `outputPrefix` (type: `string`):

Prefix for JSON-mode output columns.

## `temperature` (type: `string`):

0-1.5. Lower is more consistent. Default 0.2.

## `mock` (type: `boolean`):

Returns sample answers without calling the AI. Nothing is charged.

## Actor input object example

```json
{
  "prompt": "Classify the sentiment of this review as positive, negative or mixed, and list up to 3 topics.",
  "items": [
    {
      "review": "Battery died after two days, but shipping was fast."
    },
    {
      "review": "Exactly as described, great value."
    }
  ],
  "outputFields": [
    "sentiment",
    "topics"
  ],
  "model": "standard",
  "maxRows": 100,
  "offset": 0,
  "maxOutputTokens": 300,
  "maxFieldChars": 4000,
  "includeOriginal": true,
  "outputPrefix": "ai_",
  "mock": false
}
```

# Actor output Schema

## `rows` (type: `string`):

No description

## `summary` (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 = {
    "prompt": "Classify the sentiment of this review as positive, negative or mixed, and list up to 3 topics.",
    "items": [
        {
            "review": "Battery died after two days, but shipping was fast."
        },
        {
            "review": "Exactly as described, great value."
        }
    ],
    "outputFields": [
        "sentiment",
        "topics"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("steady-scrape/bulk-ai-dataset-enricher").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 = {
    "prompt": "Classify the sentiment of this review as positive, negative or mixed, and list up to 3 topics.",
    "items": [
        { "review": "Battery died after two days, but shipping was fast." },
        { "review": "Exactly as described, great value." },
    ],
    "outputFields": [
        "sentiment",
        "topics",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("steady-scrape/bulk-ai-dataset-enricher").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 '{
  "prompt": "Classify the sentiment of this review as positive, negative or mixed, and list up to 3 topics.",
  "items": [
    {
      "review": "Battery died after two days, but shipping was fast."
    },
    {
      "review": "Exactly as described, great value."
    }
  ],
  "outputFields": [
    "sentiment",
    "topics"
  ]
}' |
apify call steady-scrape/bulk-ai-dataset-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steady-scrape/bulk-ai-dataset-enricher"
        }
    }
}
```

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/81DAsl7D8YNcdpgFH/builds/skOvvXgVChfVr07up/openapi.json
