Sim Studio
YAML Reference

Block Schemas

Complete YAML schema reference for all Sim Studio blocks

This section contains the complete YAML schema definitions for all available block types in Sim Studio. Each block type has specific configuration requirements and output formats.

Core Blocks

These are the essential building blocks for creating workflows:

Logic & Control Flow

Blocks for implementing conditional logic and control flow:

Integration Blocks

Blocks for connecting to external services and systems:

Advanced Blocks

Specialized blocks for complex workflow patterns:

Common Schema Elements

All blocks share these common elements:

Basic Structure

block-id:
  type: <block-type>
  name: <display-name>
  inputs:
    # Block-specific configuration
  connections:
    # Connection definitions

Connection Types

  • success: Target block for successful execution
  • error: Target block for error handling (optional)
  • conditions: Multiple paths for conditional blocks

Environment Variables

Use double curly braces for environment variables:

inputs:
  apiKey: '{{API_KEY_NAME}}'
  endpoint: '{{SERVICE_ENDPOINT}}'

Block References

Reference other block outputs using the block name in lowercase:

inputs:
  userPrompt: <blockname.content>
  data: <functionblock.output>
  originalInput: <start.input>

Validation Rules

All YAML blocks are validated against their schemas:

  1. Required fields: Must be present
  2. Type validation: Values must match expected types
  3. Enum validation: String values must be from allowed lists
  4. Range validation: Numbers must be within specified ranges
  5. Pattern validation: Strings must match regex patterns (where applicable)

Quick Reference

Block Types and Properties

Block TypePrimary OutputCommon Use Cases
starter.inputWorkflow entry point
agent.contentAI processing, text generation
function.outputData transformation, calculations
api.outputExternal service integration
conditionN/A (branching)Conditional logic
routerN/A (branching)Intelligent routing
responseN/A (terminal)Final output formatting
loop.resultsIterative processing
parallel.resultsConcurrent processing
webhook.payloadExternal triggers
evaluator.scoreOutput validation, quality assessment
workflow.outputSub-workflow execution, modularity

Required vs Optional

  • Always required: type, name
  • Usually required: inputs, connections
  • Context dependent: Specific input fields vary by block type
  • Always optional: error connections, UI-specific fields
Block Schemas