# Generate orchestrator code for a multi-actor pipeline

**Use case:** 

Turn an Apify actor chain into ready-to-run TypeScript — retries, logging, pagination — validated before you deploy it.

## Input

```json
{
  "stages": [
    {
      "actorId": "apify/rag-web-browser",
      "alias": "fetch"
    },
    {
      "actorId": "apify/website-content-crawler",
      "alias": "crawl",
      "fieldMapping": {
        "startUrls": "markdown"
      }
    }
  ],
  "validateRuntime": false,
  "codegenMode": "productionish",
  "paginationMode": "limit_1000",
  "suggestionMode": "schema_only",
  "strictness": "default",
  "emitAgentContract": true,
  "emitSignals": true,
  "trackChanges": false,
  "sampleSize": 10
}
```

## Output

```json
{
  "codegenMode": {
    "label": "Codegen mode"
  },
  "generatedCode": {
    "label": "Generated code"
  },
  "codegenAssumptions": {
    "label": "Codegen assumptions"
  },
  "codegenWarnings": {
    "label": "Codegen warnings"
  },
  "stageDetails": {
    "label": "Stage details"
  }
}
```

## About this Actor

This example demonstrates how to use [Actor Pipeline Builder — Validate Multi-Actor Workflows](https://apify.com/ryanclinton/actor-pipeline-builder) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ryanclinton/actor-pipeline-builder) to learn more, explore other use cases, and run it yourself.