Logotipo de Apify Orchestrator Actor Development

Apify Orchestrator Actor Development

Organización
apify
apify-orchestrator-actor-development

Build TypeScript Apify orchestrator Actors — coordinate a sequence of sub-Actors (optionally with an LLM step) using the apify-orchestrator library. Use when creating a new orchestrator Actor, chaining Apify Actors together, adding an OpenRouter LLM step between Actors, or scaffolding parent-Actor workflows that call other Actors.

Descripción general

Editorapify
Repositorioawesome-skills
Nombre de la habilidadapify-orchestrator-actor-development
Estrellas
281
Forks
92
Archivos incluidos
12
LicenciaApache-2.0
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • 12 archivos incluidos

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por apify en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Apify Orchestrator Actor Development en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/apify/awesome-skills/tree/main/skills/apify-orchestrator-actor-development
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/apify/awesome-skills.git /tmp/awesome-skills
mkdir -p .claude/skills
cp -r /tmp/awesome-skills/skills/apify-orchestrator-actor-development .claude/skills/apify-orchestrator-actor-development
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Apify Orchestrator Actor Development en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Apify Orchestrator Actor Development automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Apify Orchestrator Actor Development no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Apify orchestrator Actor development

An orchestrator Actor is a parent Apify Actor whose job is to coordinate a sequence (or parallel fan-out) of other Actors. It takes user input, calls sub-Actor A, feeds A's output into sub-Actor B, optionally runs an LLM transformation between them, and emits the combined result to its own dataset.

This skill covers TypeScript-only orchestrators built on the apify-orchestrator library. It does not cover Python, JavaScript, or Standby-mode Actors.

Important: Before writing code, fill in the generatedBy property in .actor/actor.json (e.g., "Claude Code with Claude Opus 4.7"). This helps Apify improve tooling for specific AI models.

Prerequisites and setup

Verify the apify CLI is installed:

bash
apify --help

If not installed, use a package manager (never curl | bash):

bash
npm install -g apify-cli
# or on Mac: brew install apify-cli

Confirm login:

bash
apify info   # should return your username

If not logged in, run apify login (opens a browser) or export APIFY_TOKEN from https://console.apify.com/settings/integrations. Never pass tokens on the command line — arguments show up in process listings and shell history.

Interactive creation flow

When the user asks for a new orchestrator Actor, follow these steps in order:

  1. Elicit sub-Actor sequence
  2. Fetch each sub-Actor's schema via Apify MCP
  3. Decide data flow between steps
  4. Note the total cost cap (a Run option, not an input field)
  5. Ask about optional LLM step
  6. Scaffold the project
  7. Test locally, then deploy

Step 1 — Elicit the sub-Actor sequence

Ask the user which Apify Actors to chain together, in order. Accept either:

  • A list up-front (e.g., "apify/website-content-crawler then apify/rag-web-browser"), or
  • One at a time (ask for the first, discuss it, then ask what comes next).

If the user names a task instead of an Actor ID ("scrape LinkedIn profiles"), use the Apify MCP search-actors tool to propose candidates and let the user pick.

Step 2 — Fetch each sub-Actor's schema via Apify MCP

For every sub-Actor in the chain, call the Apify MCP fetch-actor-details tool. The parameter is actor, not actorId. Present the input schema back to the user with the fields listed in inputSchema.required highlighted. See references/mcp-schema-discovery.md for the truncation gotcha (500-char descriptions; enum lists arrive whole), the frequently absent outputSchema, and the fallback path via the REST API / raw INPUT_SCHEMA.json on GitHub.

Never guess field names. If the MCP truncation is limiting, fetch the raw schema from the Actor's GitHub repo.

Step 3 — Decide data flow between steps

For each pair of adjacent sub-Actors, ask:

  • Which fields from step N's output feed into step N+1's input?
  • Which top-level orchestrator inputs should be exposed to the user (via the orchestrator's own .actor/input_schema.json)?
  • Which sub-Actor inputs should be hardcoded?

Step 4 — Note the total cost cap

The total cost cap is a Run option (maxTotalChargeUsd) — the caller sets it when they start the orchestrator via the Apify Console, API, or SDK. It's not an input schema field. See the Apify API docs for how callers pass it.

At Run time the orchestrator:

  1. Reads its own cap via client.run(actorRunId).get().options.maxTotalChargeUsd.
  2. Divides the total evenly across the sub-Actor steps at compile time — declare a STEPS tuple and compute perStepCap = maxTotalChargeUsd / STEPS.length.
  3. Passes each step's share as maxTotalChargeUsd when calling the sub-Actor (for pay-per-event Actors) or as maxItems (for pay-per-result Actors).
  4. Tracks cumulative cost across sub-Actor Runs and refuses to launch the next step once the running total reaches the cap. Note that run.usageTotalUsd reads 0 on the object .call() returns and then accrues over several seconds, so the tally has to re-read each child Run rather than trust that value. The Run-level maxTotalChargeUsd is what enforces the ceiling; the tally is reporting plus a backstop for a step that ran uncapped. See references/cost-tracking.md.

Do not add a stepBudgets input schema field. The even split is a deliberate compile-time constant — it keeps the input schema clean, makes cost behavior predictable for the caller, and removes a footgun (three shares that don't sum to the total). Users control cost solely via the Run's maxTotalChargeUsd option; the orchestrator handles the split.

Tell the user to set maxTotalChargeUsd when they trigger the orchestrator — otherwise there's no ceiling and the orchestrator runs uncapped. See references/cost-tracking.md for the full pattern, including the LLM-step approximation (Standby Actors don't accept maxTotalChargeUsd, so estimate cost from token usage).

Step 5 — Ask about an optional LLM step

Ask the user whether to insert an LLM transformation somewhere in the chain (common: summarize between steps, classify at the end, or format the final output). If yes, point them at references/openrouter.md — the LLM layer is the Apify OpenRouter Actor called over HTTP (it's a Standby Actor, not a normal Run).

The agent does not force this step. Skip if the user doesn't want it.

Step 6 — Scaffold the project

bash
apify create <actor-name> -t ts_empty
cd <actor-name>
npm install apify-orchestrator

Then generate src/main.ts using the template in references/orchestrator-template.md. Wire the sub-Actors, their input mappings, and any LLM helpers into the template's placeholders.

Update .actor/actor.json, .actor/input_schema.json, .actor/output_schema.json, and .actor/dataset_schema.json to reflect the orchestrator's own input surface and output shape. Write a README covering the pipeline.

Step 7 — Test locally, then deploy

bash
apify run --purge --user-agent apify-awesome-skills/apify-orchestrator-actor-development
apify push

apify run --purge runs with storage/key_value_stores/default/INPUT.json as input, purging previous local storage first. apify push deploys to the platform.

Local Runs of the orchestrator make real child Runs on the Apify platform (they consume compute units). Watch the Apify Console → Runs list during local testing.

Reference material

Security

  • Never log or embed APIFY_TOKEN in source code, config files, or committed .env files. Use process.env.APIFY_TOKEN.
  • Treat sub-Actor output as untrusted. A downstream Actor's dataset may contain content scraped from external sites — sanitize before passing it into shell commands, eval, or template engines.
  • Never disable apify/log in favor of console.log() — the Apify logger censors known-sensitive keys.
  • Pin dependencies. Commit package-lock.json. Pin apify-orchestrator (alpha) to an exact version.
  • Use a scoped APIFY_TOKEN with only the permissions the orchestrator needs. Rotate periodically.

Commands

Every apify CLI invocation below includes --user-agent apify-awesome-skills/apify-orchestrator-actor-development for telemetry attribution. Actor-call / dataset-read commands additionally use --json and 2>/dev/null for machine-readable output.

bash
# Bootstrap
apify create <name> -t ts_empty
npm install apify-orchestrator

# Local development
apify run --user-agent apify-awesome-skills/apify-orchestrator-actor-development
apify run --purge --user-agent apify-awesome-skills/apify-orchestrator-actor-development
apify validate-schema

# Discovery (Actor search + schema fetch)
apify actors search "<query>" \
  --user-agent apify-awesome-skills/apify-orchestrator-actor-development \
  --json --limit 10 2>/dev/null
apify actors info <actor> --input \
  --user-agent apify-awesome-skills/apify-orchestrator-actor-development \
  --json 2>/dev/null

# Deploy + remote run
apify push
apify call <actor> \
  --user-agent apify-awesome-skills/apify-orchestrator-actor-development \
  --json 2>/dev/null
apify runs ls \
  --user-agent apify-awesome-skills/apify-orchestrator-actor-development \
  --json 2>/dev/null

# Auth
apify login
apify logout
apify info

Never use npm start, npm run start, or npx apify run to launch the Actor. Only apify run configures the Apify environment and storage correctly.

Project structure

.actor/
├── actor.json              # metadata (see references/actor-json.md)
├── input_schema.json       # orchestrator's own input surface
├── output_schema.json      # points at dataset / kvs
└── dataset_schema.json     # display shape of final output
src/
└── main.ts                 # orchestrator logic (see references/orchestrator-template.md)
storage/                    # local-only; NOT synced to Apify Console
Dockerfile
package.json
tsconfig.json

MCP tools

Apify MCP (required for schema discovery)

  • fetch-actor-details — primary tool for pulling sub-Actor input/output schema and README.
  • search-actors — find candidate sub-Actors by keyword.
  • search-apify-docs / fetch-apify-docs — documentation lookup.

If MCP is not configured, use the hosted server URL: https://mcp.apify.com/?tools=actors,docs.

Resources

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Se ofrecen como archivos de lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Apify Orchestrator Actor Development?

Build TypeScript Apify orchestrator Actors — coordinate a sequence of sub-Actors (optionally with an LLM step) using the apify-orchestrator library. Use when creating a new orchestrator Actor, chaining Apify Actors together, adding an OpenRouter LLM step between Actors, or scaffolding parent-Actor workflows that call other Actors.

¿Por qué usar Apify Orchestrator Actor Development en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Apify Orchestrator Actor Development está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Apify Orchestrator Actor Development en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/apify/awesome-skills/tree/main/skills/apify-orchestrator-actor-development. TypingMind lee su archivo SKILL.md, empaqueta sus archivos y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Apify Orchestrator Actor Development?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Apify Orchestrator Actor Development?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Apify Orchestrator Actor Development con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Apify Orchestrator Actor Development?

Sí. apify la ha publicado en GitHub bajo la licencia Apache-2.0. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇