Core Blocks
Core Blocks
The fundamental building blocks of every Zelaxy workflow
Core Blocks
Core blocks are the fundamental processing units in Zelaxy. They handle AI reasoning, control flow, data transformation, and workflow orchestration. Every workflow uses at least a Starter block and typically an Agent block.
Block Categories
AI & Reasoning
| Block | Description | Use When |
|---|---|---|
| Agent | Multi-provider LLM with tool calling | You need AI reasoning, generation, or analysis |
| Thinking | Forces step-by-step reasoning | You want to improve an agent's chain-of-thought |
| Evaluator | Score and assess content quality | You need to rate, rank, or evaluate outputs |
| Translate | Multi-language translation | You need to convert text between languages |
Control Flow
| Block | Description | Use When |
|---|---|---|
| Condition | Boolean or LLM-based branching | You need IF/ELSE logic in your workflow |
| Router | Multi-path routing (up to 4 paths) | You need to route to 3+ different paths |
| Loop | Iterate over arrays or repeat N times | You need to process items one by one |
| Parallel | Run multiple blocks simultaneously | You need to run independent tasks concurrently |
Data & I/O
| Block | Description | Use When |
|---|---|---|
| Starter | Workflow entry point | Every workflow needs one as the first block |
| Response | Return final output | You want to display or return the workflow result |
| Function | Execute custom JavaScript/TypeScript | You need custom data transformation logic |
| API | Make HTTP requests to any API | You need to call an external REST API |
Knowledge & Memory
| Block | Description | Use When |
|---|---|---|
| Knowledge | Vector search across documents | You need RAG (retrieval-augmented generation) |
| Memory | Persistent data storage | You need to store/retrieve data across runs |
Safety & Quality
| Block | Description | Use When |
|---|---|---|
| Guardrails | Validate content (JSON, regex, PII, hallucination) | You need to check output quality or safety |
Media & Files
| Block | Description | Use When |
|---|---|---|
| Image Generator | Generate images with DALL-E 3 / GPT Image | You need to create images from text prompts |
| Vision | Analyze images with vision models | You need to extract information from images |
| File | Parse PDF, CSV, DOCX files | You need to read and extract file contents |
Orchestration
| Block | Description | Use When |
|---|---|---|
| Workflow | Execute another workflow as a sub-workflow | You want to reuse workflows as building blocks |
How Blocks Connect
Every block has inputs and outputs. You reference outputs using the {{blockName.fieldName}} syntax:
Starter → Agent → Condition
↓
{{starter.input}} → Agent processes it
{{agent.content}} → Condition evaluates itBlocks auto-detect connections when you draw lines between them on the canvas.