---
title: cascades_generate_workflow
description: Build a cascade from a plain-English policy description using the Cascades AI builder, then create it (by default) so it is immediately runnable with…
canonical_url: "https://cascades.crscreditapi.com/docs/mcp/tools/cascades_generate_workflow"
doc_version: "1.0.0"
last_updated: "2026-10-09T14:37:54Z"
source: docs/mcp/tools.json
---

# `cascades_generate_workflow`

Build a cascade from a plain-English policy description using the Cascades AI builder, then create it (by default) so it is immediately runnable with cascades_trigger_workflow. Use this when the user describes a screening/decision policy in words rather than supplying a node graph. Returns the created cascade (with the AI-generated name and any warnings); pass create:false to preview the generated definition without saving it.

- **Access:** write
- **Scopes:** `workflows:write`
- **REST operation:** `POST /api/v1/workflows/generate` — [generateWorkflow](https://cascades.crscreditapi.com/docs/api/workflows/generate-workflow.md)

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `prompt` | `string` | yes | Plain-English description of the decision policy to turn into a cascade (max 5 000 characters by default). |
| `name` | `string` | no | Optional name override; otherwise the generator names the cascade. |
| `use_case` | `string` | no | Optional use case label. Defaults to `tenant_screening`. |
| `create` | `boolean` | no | `true` (default) saves the generated cascade and returns `201`; `false` returns the generated definition as a `200` preview without saving. |
| `environment` | `string` | no | Target environment: "prod" (default) or "dev". One of: `dev`, `prod`. |

## Example call

```json
{
  "name": "cascades_generate_workflow",
  "arguments": {
    "prompt": "Approve applicants with a credit score over 680 and no evictions; refer everyone else to review.",
    "use_case": "tenant_screening"
  }
}
```

## Example result

```json
{
  "data": {
    "id": 159,
    "object": "workflow",
    "name": "Score 680+ and no evictions",
    "active": true
  },
  "warnings": []
}
```

## Sitemap

See the full [sitemap](https://cascades.crscreditapi.com/sitemap.md) for all pages.
