Skip to main content
Agents use operations to do work. Ensembles orchestrate agents. Operations are where the rubber meets the road.

Core Operations

Compute Operations

Execute logic and transform data.

think

AI reasoning with LLMs and ML models

code

JavaScript/TypeScript execution

transform

Declarative data transformations

convert

Document format conversion (HTML, Markdown, DOCX)

Data Operations

Access and manipulate data stores.

storage

KV, R2, Cache - Simple storage

data

D1, Vectorize, Hyperdrive - Databases

Communication Operations

Send messages and make requests.

http

HTTP requests to APIs

email

Send emails

sms

Send SMS messages

Async Operations

Background processing and message queues.

queue

Cloudflare Queue message processing

Presentation Operations

Render content for users.

html

Render HTML templates

pdf

Generate PDF documents

form

Generate validated forms

chart

Data visualization (bar, line, pie, etc.)
Looking for API documentation? The docs/ directory is now a first-class component in Conductor. See Building Documentation for details.

HTTP Context Operations

Manage HTTP-specific concerns.

cookies

Cookie management with consent awareness

Analytics Operations

Track metrics and emit events.

telemetry

Emit events to Cloudflare Analytics Engine

Extension Operations

Extend functionality with external tools.

tools

MCP tools and custom skills

Quick Reference

Common Configuration

All operations support:

Output Access

Reference operation outputs:

Performance Features

Automatic Parallelization

Operations without dependencies run in parallel:

Built-in Caching

Cache expensive operations:

Automatic Retry

Retry failed operations:

Error Handling

Conditional Execution

Skip operations on failure:

Error Context

Access error details:

Best Practices

  1. Use the Right Operation - Each is optimized for its use case
  2. Cache Aggressively - Cache expensive operations
  3. Handle Failures - Use conditions and fallbacks
  4. Parallel by Default - Don’t create unnecessary dependencies
  5. Set Timeouts - Prevent hanging operations
  6. Monitor Performance - Track operation durations
  7. Test Thoroughly - Unit test each operation
  8. Version Components - Use Edgit for prompts/configs

Operation Comparison

When to Use What

think vs code vs transform vs convert:
  • Use think for AI reasoning, natural language
  • Use code for complex logic, conditionals, loops
  • Use transform for simple data shaping (pick/omit/merge)
  • Use convert for format conversion (HTML↔Markdown, DOCX)
storage vs data:
  • Use storage (KV) for caching, simple key-value
  • Use data (D1) for structured data, complex queries
http vs tools:
  • Use http for direct API calls
  • Use tools for MCP-compatible tools
email vs sms:
  • Use email for rich content, attachments
  • Use sms for urgent, short messages
html vs page:
  • Use html for simple rendering
  • Use page for full-stack, interactive UIs

Next Steps

think

AI reasoning operation

storage

Simple storage operation

data

Database operation

http

HTTP request operation

All Operations

Core concepts guide