WORKFLOWS

Automate Any Business Process with AI Workflows

Chain AI agents, code steps, MCP tools, and conditional logic into pipelines that run on schedule, on webhook, on file upload, or on demand. No code required to build. Full control when you want it.

7 Step Types. One Unified Pipeline.

Every workflow is a sequence of steps. Mix and match AI reasoning, custom code, external tool calls, branching logic, and data transformations in a single pipeline.

Agent Step

Execute a pre-configured AI agent with its own system prompt, tools, and model selection. Agents run in Standard (V2) or Super (SuperV2) runtime with full tool-calling support and streaming output.

Inline Prompt

Send a direct prompt to any supported LLM without creating a separate agent. Ideal for one-off classification, summarization, or extraction tasks where a full agent definition would be overkill.

Code Step

Run AI-generated or hand-written JavaScript in a secure V8 sandbox. Access fetch, JSON, Math, and Date APIs with zero LLM cost. Perfect for data parsing, API calls, and calculations between AI steps.

MCP Tool Step

Invoke tools from any deployed MCP server directly in your workflow. Query databases, call REST APIs, or interact with external systems using the Model Context Protocol standard.

Action Step

Execute utility tools for common operations: send emails, create Jira tickets, read and write files, or call any HTTP endpoint. Built-in actions cover the most common integration patterns out of the box.

Condition Step

Add branching logic with dotted-path resolution on step outputs. Route workflow execution down different paths based on AI classification results, data thresholds, or any computed value.

Transform Step

Reshape data between steps without writing code or consuming LLM tokens. Map fields, filter arrays, merge objects, and prepare payloads so every downstream step receives exactly the structure it expects.

4 Trigger Types. Run Workflows Your Way.

Every workflow needs a trigger. Orckai supports four distinct trigger modes so your automations fire exactly when you need them to, whether that is once a minute or once a quarter.

  • Manual — Click "Run" from the dashboard or call the API. Best for ad-hoc tasks, testing, and human-in-the-loop processes where timing is unpredictable.
  • Schedule (Cron) — Define any cron expression: every 5 minutes, every Monday at 9 AM, or the first of each month. Orckai's job queue ensures reliable, drift-free execution even under load.
  • Webhook — Expose a unique HTTPS endpoint with an auto-generated secret. External systems authenticate with the X-Webhook-Secret header, validated securely to prevent replay and brute-force attacks.
  • File Upload — Drag and drop files to trigger a workflow. The uploaded document is passed as input to the first step, enabling document processing pipelines, invoice extraction, and content ingestion.
Try It Free
Schedule Trigger
cron: "*/5 * * * *"
Runs every 5 minutes, managed by job queue
Webhook Trigger
POST /api/webhooks/{workflowId}
Header: X-Webhook-Secret: whs_a7b3...
File Upload Trigger
input: { file: "invoice_Q4.pdf" }
Document passed to Step 1 as input
Manual Trigger
POST /api/workflows/{id}/execute
Run from dashboard or via API call

Pass Data Between Steps with Variable Interpolation

Every step in an Orckai workflow can reference the output of any previous step using the {{variable}} syntax. This means your AI agent's classification result can feed directly into a condition step, which routes to different code steps, which format the final payload for an action step.

Transform steps let you reshape data without consuming LLM tokens. Map fields from one schema to another, extract nested values, filter arrays, or merge multiple step outputs into a single clean object that downstream steps can consume.

  • Reference any previous step output: {{step_1.result.category}}
  • Transform steps for schema mapping and data reshaping
  • Step outputs automatically serialized and available to all subsequent steps
  • Works across all 7 step types: agents, code, prompts, actions, MCP tools, conditions, and transforms
Workflow Variable Flow
Step 1: Agent (classify-email)
  output: { category: "billing",
             priority: "high" }

Step 2: Condition
  if: {{step_1.category}} == "billing"
  then: goto Step 3a
  else: goto Step 3b

Step 3a: Code (fetch-invoice)
  input: {{step_1.priority}}
  output: { invoice: {...}, total: 4250 }

Step 4: Action (send-email)
  to: billing@company.com
  body: "Invoice {{step_3a.invoice.id}}
         Total: ${{step_3a.total}}"

Secure Code Execution with Zero LLM Cost

Not every step needs an AI model. Code steps run JavaScript in a secure sandbox, giving you full programmatic control for data processing, API integrations, and business logic without spending a single token.

The sandbox isolates code execution from the host environment while providing safe APIs including fetch, JSON, Math, Date, and regular expressions. Each execution runs with configurable timeouts to prevent runaway processes.

  • AI-generated or hand-written JavaScript
  • fetch API for calling external services
  • Configurable execution limits and timeouts
  • Full access to step inputs via the inputs object
  • Zero token cost — reduce workflow expenses by offloading deterministic logic
Code Step Example
// Fetch exchange rates and compute totals
const rates = await fetch(
  'https://api.exchangerate.host/latest'
).then(r => r.json());

const invoices = inputs.step_2.invoices;
const converted = invoices.map(inv => ({
  ...inv,
  usd: inv.amount * rates.rates.USD,
  eur: inv.amount * rates.rates.EUR
}));

const total = converted.reduce(
  (sum, inv) => sum + inv.usd, 0
);

return {
  invoices: converted,
  totalUSD: total.toFixed(2),
  rateDate: rates.date
};

Monitor, Debug, and Retry Every Execution

When a workflow runs, you see exactly what happened at every step. Inspect inputs, outputs, timing, errors, and token usage. Retry failed steps or re-run entire workflows from the dashboard.

Step-by-Step Execution Viewer

Every workflow run produces a detailed execution log. Expand any step to see its input payload, output data, execution duration, token count, and any errors. Identify bottlenecks and debug failures without guesswork.

Retry and Re-run

Failed at step 4 of 6? Retry just that step or re-run the entire workflow from the beginning. Orckai preserves execution history so you can compare runs, track improvements, and audit every decision the system made.

Queue Monitoring and Metrics

Workflows execute through a reliable async job queue with built-in retry logic. Monitor queue depth, job states, and throughput via the built-in monitoring UI. Metrics feed into dashboards for production observability.

Enterprise Use Cases

Real-world workflow pipelines that combine triggers, AI agents, code steps, MCP tools, and actions into end-to-end automations. Each runs unattended, scales across your organization, and produces auditable execution logs.

HR Resume Screening Pipeline

A scheduled workflow runs every 30 minutes and pulls new applications from your HR system via an MCP tool integration. An AI agent screens each resume against the job description and required qualifications, then a code step computes a weighted candidate score based on experience, skills match, and education. Finally, an action step sends a formatted notification email to the hiring manager with the top-ranked candidates and their scores.

Steps: Schedule MCP Tool Agent Code Action

Daily Sales Intelligence Report

A cron trigger fires every weekday at 9 AM and queries your CRM database through an MCP server to pull pipeline changes, new deals, and updated forecasts. An AI agent analyzes the data to summarize key movements, highlight at-risk deals, and identify upsell opportunities. A transform step formats the analysis into a polished email template, and an action step delivers the briefing to the entire sales leadership team before their morning standup.

Steps: Schedule MCP Tool Agent Transform Action

Document Compliance Checker

A file-drop trigger watches a shared folder for new documents. When a contract, policy, or report lands, an AI agent reviews it against regulatory requirements pulled from the organization's knowledge base using RAG. A condition step evaluates the compliance verdict: passing documents are routed to an approval action that notifies the compliance team, while failing documents trigger an action step that flags the issues and sends the detailed findings to the legal department for remediation.

Steps: File Upload Agent Condition Action

Webhook-Driven Incident Response

A webhook trigger receives real-time alerts from your monitoring system (Datadog, PagerDuty, Prometheus, etc.) authenticated via a secure auto-generated secret. An AI agent triages the alert severity using your organization's runbook knowledge base to determine impact and recommended actions. A code step enriches the incident with live system metrics fetched through an MCP server integration. Finally, an action step creates a Jira ticket with full context and pages the on-call engineer through your escalation channel.

Steps: Webhook Agent Code MCP Tool Action

Production-Grade Workflow Engine

Orckai workflows are built for enterprise reliability, not just demos. Every execution runs through a hardened async queue with retry logic, full observability, and multi-tenant isolation so your automations run around the clock without babysitting.

  • Bull queue with Redis for reliable async execution that survives restarts
  • Automatic retry with exponential backoff — 3 attempts before marking a step as failed
  • Step-by-step execution viewer with full input/output logs and timing data
  • Variable interpolation between steps with {{syntax}} for dynamic data flow
  • Per-step error handling — configure retry, continue, or stop behavior on each step
  • Webhook triggers with auto-generated secrets and timing-safe authentication
  • Multi-tenant isolation with organization-scoped workflows, data, and execution history
  • Execution history with re-run — replay any past run or retry individual failed steps
Workflow Execution Log
 Step 1  MCP Tool (query-crm)     1.2s
  Fetched 47 pipeline records

 Step 2  Agent (analyze-deals)    4.8s
  Tokens: 1,847 in / 623 out

 Step 3  Transform (format)       0.1s
  Mapped to email template

 Step 4  Condition (has-risk)     0.0s
  Result: true → branch A

 Step 5  Action (send-email)      2.1s
  SMTP timeout — retrying (1/3)

 Step 5  Action (send-email)      1.4s
  Retry succeeded — email sent

Run #1042 • Total: 9.6s • 5 steps • 1 retry

Explore More Features

Start Automating with AI Workflows

Build your first workflow in minutes. Connect AI agents, code steps, and external tools into pipelines that run 24/7.