Skip to main content
Script workflows are sequences of steps. Each step: natural language in, TypeScript out, deterministic execution.

The Flow

Describe step → Generate TypeScript → Execute → Output files → Next step
1

You describe what a step should do

2

AI generates TypeScript code (once, at build time)

3

Code runs in a secure sandbox

4

Step outputs files for downstream steps

5

Repeat for each step in your workflow

Deterministic Execution

Unlike agents that make AI decisions at runtime:
FeatureScript
PredictabilitySame inputs → same outputs every time
Runtime AINone — code path is fixed at generation
DebuggingErrors show exactly where and why
The AI runs once during generation. At runtime, it’s just code.

Step Structure

┌─────────────────────────────────────┐
│  "Fetch orders from Shopify"        │  ← Your description
├─────────────────────────────────────┤
│  Generated TypeScript               │  ← AI-generated code
│  • Calls Shopify API                │
│  • Transforms response              │
│  • Writes output files              │
├─────────────────────────────────────┤
│  Outputs: orders.csv, summary.json  │  ← Available to next step
└─────────────────────────────────────┘

Outputs

TypeDescription
CSV / JSONStructured data
DashboardCharts, metrics
HITL FormHuman approval UI
SpreadsheetGoogle Sheets
MarkdownReports

Iteration

First try: Most workflows work immediately. Refinement: Describe what to change. AI updates the code. Usually 1 iteration, sometimes 2-3 for edge cases. Faster than editing code manually. More precise than re-explaining from scratch.

Next