Skip to main content

Components

In SmythOS, components are the building blocks of your agent workflows. Each one represents a single task, skill, or utility, like calling an API, running logic, filtering JSON, generating text, or storing knowledge.

You build workflows by dragging components onto the canvas, connecting them visually, and configuring how data flows between them.

What Components Do

Components are modular logic blocks that do something specific inside an agent. You can connect them visually in the Builder, test them individually, and combine them to form powerful workflows.

Designing Logic with Components

Each pattern helps you control how your agent thinks and acts. You can combine components like Classifier, ForEach, or Async/Await to create dynamic, multi-step behaviors without writing code.

Sequential Flow

Run steps one after another.

Use when: Each step depends on the output of the previous
Example: Generate blog → Summarize → Post to site
Useful components:

Branching Flow

Choose a path based on logic or classification.

Use when: Your workflow must adapt to input data
Example: If sentiment is negative, alert support; if positive, publish
Useful components:

Parallel Flow

Run multiple tasks at the same time.

Use when: Tasks don’t depend on each other
Example: Analyze text and extract entities in parallel
Useful components:

Combine with care

You can nest patterns. For example: run parallel tasks that each use sequential logic, or insert conditionals after a ForEach. For smarter control, combine flow patterns with components like: - Classifier – routes based on user intent - Code – runs custom logic.

Choosing the Right Component

What You Want to DoUse This ComponentWhy It Helps
Loop through a listForEachHandles each item one by one
Run tasks at the same timeAsync/AwaitRuns branches in parallel
Add a timed pauseSleepControls timing or rate limits
Store useful facts or contextRAG RememberSaves info for later use in the workflow
Route based on input typeClassifierClassifies input and picks the right path
Transform or filter JSONJSON FilterModifies or extracts specific JSON data
Keep workflows manageable

If your flow grows large, split it into smaller Agent Skills and test each part before combining them.

Base Components

These are the essential building blocks that help your agents interact, route input, and generate output.

Start simple, scale smart

Use base components to outline your logic clearly before layering in complex conditionals or memory features.

Advanced Components

These components support more complex logic, loops, filters, and low-level execution.

Crypto Components

Secure operations for signing, hashing, and transforming data formats.

RAG (Retrieval-Augmented Generation) Components

Memory-aware components for knowledge management and dynamic search.

Tool Components

Powerful utilities to connect with browsers, scripts, and live data.

Why Components Matter

The Power of Components

Components are the building blocks of intelligent agents. They allow you to:

  • Build complex workflows without writing code
  • Create modular, maintainable agent architectures
  • Leverage advanced AI capabilities through simple, controllable interfaces
  • Scale your agents' capabilities as your needs grow

Best Practices

Sensitive data handling

Avoid storing secrets directly in components. Use the Vault for secure access to keys and credentials.

  • Use clear component names and Notes to document your logic
  • Start simple, then layer in logic like loops or conditionals
  • Test individual components before combining them into larger flows
  • Use Agent Skills to break big flows into manageable pieces
  • For memory, use RAG components to store reusable facts

What to Try Next