Skip to main content

Workflows

Build and execute DAG-based AI pipelines on Kubernetes. Design workflows conversationally with the STAN AI assistant or using the visual node editor. Chain together 480 nodes and tools across data sources, transformations, AI models, agents, control flow, and destinations -- with full execution tracing and real-time monitoring.

Workflow Builder canvas

What are Workflows?​

Workflows are directed acyclic graph (DAG) pipelines that execute on Kubernetes. Each workflow is composed of interconnected nodes that define a data processing pipeline. Workflows can be built in two ways:

  • STAN AI Assistant: A conversational AI agent that builds workflows through natural language. STAN understands the full node catalog, can configure nodes, wire connections, and iterate on designs interactively.
  • Visual Node Editor: A drag-and-drop canvas interface for manually assembling and configuring workflow nodes.

Each workflow consists of:

  • Trigger: The event that initiates the workflow (16 trigger types available)
  • Processing Nodes: Components that transform, analyze, route, or act on data
  • Destinations: Where processed data is delivered

Architecture​

Workflows run on a Kubernetes-native execution engine with the following characteristics:

  • DAG Execution: Nodes execute in dependency order with automatic parallelization of independent branches.
  • Fast Execution: Dedicated compute resources are pre-provisioned per organization for low-latency execution dispatch.
  • STRONGLY_SERVICES: A dynamic service discovery mechanism that provides workflow nodes with access to platform services (AI models, databases, add-ons). The configuration is injected as a JSON environment variable so nodes can connect to user-selected services at runtime.
  • Automatic Retry: Failed executions can be automatically retried.
  • Distributed Execution: Workflows can execute across multiple zones for parallel processing and fault tolerance.

Node Catalog​

The builder's node palette provides 480 nodes and tools across 11 categories (counts grow with each release):

CategoryCountExamples
Tools152Web Search, Code Interpreter, Web Browser, File Manager, Calculator, API Caller
Sources123PostgreSQL, MySQL, MongoDB, S3, Salesforce, Jira, Slack, Google Sheets, REST API
Destinations66PostgreSQL, MongoDB, S3, Slack, Email (SMTP/SendGrid), Teams, Webhook Response
Transform51Code, AI Transform, Filter, Aggregate, PDF Parser, Excel Parser, Text Chunker
Control Flow23Conditional, Loop, Map, Parallel Branch, Switch/Case, Sub-Workflow, Human Checkpoint
Triggers16Webhook, Schedule, REST API, Chat, Email, Form, File, RSS Feed, SSE, Error
Agents16ReAct Agent, Multi-Agent Chat, RAG Agent, Supervisor Agent, Planner, Reflection
Evaluation10LLM as Judge, Faithfulness Checker, RAG Metrics, Guardrails, Cost Tracker
AI9AI Gateway, LLM, Embeddings, Vision, Image Generation, Speech-to-Text, Text-to-Speech
Memory7Conversation Memory, Knowledge Base, Semantic Memory, Working Memory
Operators7MCP Tools Provider (connects to external MCP servers for tool access)

Trigger Types​

Workflows support 16 trigger types, including:

TriggerNode IDDescription
WebhookwebhookHTTP requests with HMAC signature verification
SchedulescheduleTime-based execution (intervals, daily, cron expressions)
REST APIrest-apiAuthenticated API endpoints
Chatchat-triggerConversational input for chat-based workflows
Emailemail-triggerNew emails in an IMAP mailbox, checked every Poll Interval
FormformForm submissions with validation
Filefile-triggerNew or updated files in an S3 data source, checked every Poll Interval
RSS Feedrss-triggerNew RSS/Atom feed items, checked every Poll Interval
SSEsse-triggerServer-Sent Events stream
Errorerror-triggerStarts when a run of another workflow in your organization fails
Multi-Modal Inputmulti-modal-inputCombined text, image, audio, and file input
EventeventPlatform event subscriptions
QueuequeueMessage-queue consumption
Batch Subscribebatch-subscribeProcesses recorded streaming sessions in batch (the streaming-to-batch hand-off)
Agent Triggeragent-triggerInvocation by an agent
Task Duetask-due-triggerAn agent's trigger: fires when one of the agent's tasks becomes due

Streaming workflows have their own trigger set (for example WebSocket and WebRTC streaming triggers) in the streaming palette.

Execution Modes​

Batch vs Streaming​

Every workflow is either a Batch or a Streaming workflow. Pick the type with the Batch/Streaming pill next to the workflow's status badge in the builder -- click it to switch while the canvas is empty. Once nodes are on the canvas the type is locked (remove all nodes to change it).

The two types support different setups:

  • Batch -- run-to-completion pipelines. The palette offers the full batch node catalog, and deployment includes a Lifecycle Policy that controls how the workflow runs when deployed (affecting cost and availability).
  • Streaming -- continuous, session-based pipelines (live audio, WebRTC, SSE, WebSocket). The palette switches to the streaming node set and the model pickers that give its nodes their models, and the builder opens a live test panel so you can exercise the stream while you build. See Streaming Workflows.

Streaming workflow builder with the streaming node palette

The Workflow Monitor's Active card shows the batch, stream and agent split across your workflows.

How workflows run​

Batch workflows can be executed in several ways:

  • Manual: On-demand execution from the UI or API.
  • Scheduled: Recurring execution on an interval or cron expression.
  • Webhook/API Triggered: External systems invoke workflows via HTTP endpoints.

Streaming workflows run as live sessions: a client opens a session and data flows through the pipeline continuously until the session ends.

Key Features​

STAN AI Assistant​

STAN is a conversational AI agent that builds and configures workflows through natural language interaction. STAN operates in two modes:

  • NEW mode: Creates workflows from scratch based on requirements described in plain language.
  • ACTIVE mode: Modifies and iterates on an existing workflow loaded in the editor.

STAN has access to the full node catalog, can configure node parameters, establish connections between nodes, and apply workflow templates. It uses MCP (Model Context Protocol) tools to interact with the workflow builder programmatically.

Visual Node Editor​

  • Drag-and-drop interface for assembling workflow nodes
  • Real-time execution visualization on the canvas
  • Node connections define data flow between components
  • Canvas organization, grouping, and layout tools

Execution Infrastructure​

Each organization has dedicated compute resources for workflow execution:

  • Pre-provisioned resources reduce execution start time.
  • Automatic scaling adjusts capacity based on demand.
  • Resource reuse returns compute resources after execution completes, enabling efficient utilization.

Execution Tracing​

Every workflow execution produces detailed tracing data:

  • Per-node spans with timing, status, inputs, and outputs tracked per node.
  • Real-time progress reporting with status updates as each node completes.
  • Execution timeline with node durations for performance analysis.
  • Console logs and error messages captured per node.
  • Performance metrics including success rate, duration, and throughput.

Versioning​

  • Integer-based version numbers that auto-increment on each save.
  • Each deployment creates a versioned snapshot of the workflow definition.
  • Version history is maintained for audit and comparison.

Sharing and Collaboration​

  • Share workflows with specific users within an organization.
  • Clone existing workflows to create copies.
  • Create and apply workflow templates for common patterns.

STRONGLY_SERVICES​

STRONGLY_SERVICES is a JSON configuration injected into workflow workers that provides dynamic access to platform services:

  • AI Models: Users select which AI Gateway models to use; the selected model configuration is available to AI nodes at runtime.
  • Databases: Connection details for PostgreSQL, MySQL, MongoDB, and other data sources.
  • Add-ons: Third-party service integrations configured at the platform level.

Multiple services of the same type can be configured, and users select which service each node should use during workflow configuration.

Three-Tier Caching​

Data handed between nodes is cached in three tiers, chosen per item by its size:

  • L1: Memory: items up to 100 KB, in the worker pod's memory, for the fastest reads.
  • L2: Disk: items up to 10 MB, on the worker pod's local disk.
  • L3: Object storage: every item of any size, shared by every pod of the run, so scaled loops and resumed runs read the same data.

See How Workflows Run for lifetimes and cleanup, and for the worker pool that runs your drafts, closing loops with a Loop Accumulator, threads and pods, and node metrics.

Waiting for a Person​

Three nodes pause a run until a person answers:

  • Wait for Input waits for data (checked against its Input Schema when you set one).
  • Human Feedback asks for free text, a rating, one of a list of choices, or a form.
  • Human Checkpoint shows the data under review and waits for Approve or Reject, with a message and any Input Fields you defined. The run continues on the Approved or Rejected port. With Approvers set (picked from your organization's users, or yourself), only they can decide; they are notified in-app, by email or through a webhook, as you choose under Notification Channels.

While a run waits, the builder shows a Waiting for you panel with each pending request and the control to answer it; the run continues within seconds of your answer. The run's status stays Running while it waits. Each node's Timeout decides what happens when nobody answers. The same requests are answered through the REST API (GET /workflows/-/executions/{id}/human-requests, then POST /executions/{id}/input) and the Python SDK (executions.pending_inputs, executions.submit_input).

Automatic Retry​

Failed executions can be:

  • Inspected for failure details and error context.
  • Retried automatically based on configured retry settings.
  • Retried manually after the underlying issue is resolved.

Monitoring and Observability​

The Workflow Monitor (Workflows > Monitor) shows every workflow with its status, type, owner, last execution, and execution count. An agent counts as active while it runs, including while an on-demand agent is idle at zero, and as draft when it is stopped; the status filter uses the same reading.

Four cards sit above the list, on the Monitor and on the Builder's workflow list, over every workflow and agent you can see:

  • Active: the workflows and agents that are live, out of your total, with how many are batch, stream and agents.
  • Runs 24h: the runs started in the last 24 hours (a sub-workflow's own steps are not counted as runs), with a bar per hour.
  • Success: completed runs out of the runs with an outcome of the workflow: those that completed, failed (failed, error or timeout), partly succeeded (partial success) or completed with gaps. Below the rate are how many completed (ok) and failed, and, when there are any, how many are still running, partly succeeded or were cancelled. A queued or running run has no outcome yet and a stopped or cancelled run was ended by a person, so neither is in the rate. The figure is red when runs failed, amber when runs partly succeeded and none failed, and green otherwise, the same reading as a workflow's Statistics page. With no run that has an outcome in the last 24 hours the card says No finished runs. Hover the info icon for the full breakdown.
  • Failing: the workflows and agents whose latest run failed, naming the one that failed most recently (the name opens its Execution History). Click the card to list only those workflows; on the Monitor the status filter then reads Failing (latest run failed), and on the Builder Show all clears it.

A workflow's runs over time are at GET /api/v1/workflows/:id/time-series (window 24h by hour, 7d or 30d by UTC day): each run counted once, in the hour or day it was created, as completed, partly succeeded, failed, cancelled or still running, with the mean, shortest and longest run time. A task's fires over time are at GET /api/v1/primitives/tasks/:id/time-series, by status. The Strongly iPhone app charts both by day for the last 30 days.

Workflow Monitor

Every workflow execution provides:

  • Real-time status updates via reactive subscriptions
  • Execution timeline with per-node durations
  • Input/output data inspection for each node
  • Console logs and error messages
  • Performance metrics (success rate, average duration, throughput)
  • Resource utilization and availability monitoring

In the Monitor's list an agent's type is Agent (a workflow's is Batch or Stream), and the Active card counts each kind on its own, so batch, stream and agents add up to the total. An agent's runs are listed in the Monitor under the agent, with type Agent, from the moment each run starts. A run's Turns are its model turns (each call the agent's loop made to its model), recorded when the run ends, and its Transcript is the message the run answered, linked to the agent's conversation. A batch workflow run has neither and shows n/a. A run's trace has one agent:<name> span with a span under it for every model call, named llm:<model name>, and for every tool call, named tool:<tool>. A model call's span shows what it was sent (the model, the tools offered and the messages), what it answered (its reply, its tool calls and its token usage), and its prompt, completion and total tokens under Metrics; the agent span carries the run's turns and token totals. A tool call whose result reports an error is shown as failed, with that error. Heartbeat and task runs are traced the same way. Workflows a run's tools started are listed under Workflows Run by Tools with links to their own traces. An agent run has no Retry: to ask again, send the message in the agent's chat.

Use Cases​

Workflows are designed for:

  • Data Processing Pipelines: Extract, transform, and load data from 121+ source connectors into 23+ destinations.
  • AI-Powered Automation: Chain AI models, agents, and evaluation nodes for complex analysis and decision-making.
  • Agentic Workflows: Build multi-agent systems with ReAct, RAG, and Supervisor agents that use tools and memory.
  • Event-Driven Integrations: React to webhooks, emails, RSS feeds, SSE streams, and file events.
  • Scheduled Tasks: Run recurring jobs, data synchronization, and report generation via CronJobs.
  • Document Analysis: Parse PDFs, Excel files, Word documents, and emails, then process with AI.
  • Multi-System Integration: Connect databases, APIs, cloud services, and SaaS platforms in a single pipeline.
  • Chat Applications: Build conversational workflows with chat triggers, memory, and AI agents.
Best Practice

Start with simple workflows and gradually add complexity. Use STAN AI assistant to quickly scaffold workflows, then fine-tune in the visual editor. Test thoroughly before deploying to production.

Getting Started​