HomeCase studiesDurable No-Code Workflow Automation Builder and API...

Case study · Berlin, Germany

Durable No-Code Workflow Automation Builder and API Connector Engine

Workflow Orchestration & API Connectors

Visual automation tools often look effortless during demos yet collapse in production when third-party APIs rate-limit requests, OAuth tokens expire mid-run, or worker processes restart halfway through multi-step pipelines. We built a no-code automation builder combining an interactive React DAG canvas with a Node.js connector runtime backed by Temporal durable execution. Operations teams wire conditional branches, loops, and SaaS integrations visually while inheriting automatic retries, state persistence, and step-level replay.

Industry
Workflow Orchestration & API Connectors
Solution
A visual no-code automation platform pairing a React node-graph editor with a Node.js and Temporal durable execution engine for resilient API workflows.
Platforms
Web & API
Stack
React · Node.js · Temporal · TypeScript · PostgreSQL · Redis
Location
Berlin, Germany · delivered remotely
Role
Engineering, with the team behind for mobile and QA

Delivered remotely for a business based in Berlin, Germany. Names withheld by agreement.

Project Overview

Business operations teams depend on connecting CRMs, billing engines, ticketing queues, and internal webhooks without filing engineering tickets for every new integration. Yet homegrown scripts break silently on network blips, while naive queue-based automation tools lose context whenever a container restarts during a multi-day approval wait or batch sync.

We engineered a production-grade no-code automation builder linking an intuitive React workflow canvas to a Node.js integration runtime orchestrated by Temporal. Non-technical builders design branching API workflows visually with live schema previews, while Temporal guarantees durable state transitions, resilient retries, and inspectable step histories underneath.

Reliability Gaps in Visual Automation

Earlier-generation workflow builders routinely fail teams once automations graduate from simple two-step alerts to core operational processes:

  • Volatile in-flight state: When a Node.js worker crashes mid-loop or during a scheduled delay, basic message queues lose partial progress or duplicate side effects like invoice creation.
  • OAuth token race conditions: Fifty parallel runs refreshing an expiring CRM token simultaneously invalidate each other's refresh credentials, breaking every active integration.
  • Unsafe inline scripting: Allowing arbitrary JavaScript snippets inside mapping fields opens sandbox-escape vulnerabilities and noisy CPU exhaustion across shared tenants.
  • Version-upgrade collisions: Editing a published workflow while older executions remain paused on a timer breaks replay determinism unless definitions are strictly version-pinned.

Architectural Strategy

We decoupled graph authoring and versioning from deterministic workflow interpretation. In the browser, the React studio models triggers, conditional routers, iterators, and connector actions as a typed DAG with live autocomplete derived from upstream JSON schemas. Saving or publishing creates an immutable graph snapshot in PostgreSQL.

At runtime, the Node.js Webhook Gateway validates incoming payloads, enforces idempotency keys, and starts a Temporal workflow bound to that exact graph version ID. Temporal runs a clean, deterministic interpreter loop that dispatches external SaaS calls as isolated Temporal Activities—automatically handling exponential backoff, Retry-After pauses, heartbeats, and dead-letter inspection.

Core Capabilities

  • Schema-Aware React DAG Studio: Drag-and-drop canvas supporting conditional splits, parallel fan-out/fan-in branches, array iteration, and test-payload step pinning.
  • Version-Pinned Durable Execution: Running workflows complete against the exact published graph snapshot they started with, eliminating mid-flight schema mismatches.
  • Single-Flight OAuth2 Credential Vault: Encrypted multi-tenant connection manager automatically refreshing expiring tokens safely across concurrent workers.
  • Pure-AST Data Transformation Engine: Zero-eval formula and mapping evaluator supporting date arithmetic, array filtering, and template formatting safely in memory.
  • Step-Level Replay & Dead-Letter Recovery: Operators inspect exact redacted inputs, HTTP responses, and stack traces per node in React and replay failed branches without re-running completed upstream mutations.

Technical Architecture

External events enter through the Node.js Webhook Gateway or scheduled cron triggers, deduplicate via Redis idempotency keys, and enqueue Temporal workflow executions pinned to immutable PostgreSQL DAG versions. Temporal schedules Node.js Activities that fetch scoped credentials from the vault, evaluate AST mappings, invoke typed SaaS connectors, and emit step telemetry back to the React run inspector.

Flow: External Webhook / Schedule → Node.js Webhook Gateway (Redis Idempotency) → Temporal Durable Workflow Engine → Versioned DAG Interpreter → Node.js Connector Activities (Single-Flight OAuth Vault + AST Mapper) → PostgreSQL History & React Run Inspector

Isolating external HTTP calls inside Temporal Activities means long waits and transient SaaS outages consume zero active Node.js event-loop memory while preserving complete auditability.

Technology Stack

Category Technology detail
Visual Graph Studio React and TypeScript powering the drag-and-drop DAG canvas and schema mapper
Connector & Control API Node.js services validating workflow graphs, webhooks, and connector manifests
Durable Orchestration Temporal managing workflow state machines, timers, backoff retries, and replays
Metadata & Run History PostgreSQL storing versioned DAG schemas, connector definitions, and audit logs
Ingress & Rate Control Webhook Gateway with Redis enforcing burst buffering and per-tenant concurrency
Expression Sandbox Restricted AST expression evaluator executing safe data transforms without eval
Credential Vault Encrypted OAuth2 token store with single-flight refresh locks across workers
Connector SDK Declarative TypeScript adapters standardizing pagination, auth, and error mapping

Engineering Trade-offs & Solutions

Engineering Challenge Solution & Trade-off
Supporting arbitrary workflow edits without breaking long-lived Temporal replays Bound every Temporal execution to an immutable PostgreSQL graph version ID rather than mutating active definitions in place; requires maintaining backward-compatible activity contracts in Node.js.
Providing flexible data mapping without dangerous eval execution Built a dedicated TypeScript expression parser supporting whitelisted pure operators and strict step timeouts; restricts exotic procedural logic while eliminating prototype-pollution risks.
Preventing noisy-neighbor webhook floods from starving other tenants Enforced per-tenant Redis ingestion queues and Temporal task-queue throttling before activity dispatch; trades brief ingress queuing during extreme bursts for predictable platform-wide latency.
Avoiding massive Temporal event histories on large CSV or array loops Implemented batch chunking and Temporal Continue-As-New handoffs when iteration counts cross safe thresholds; adds chunk-cursor bookkeeping while keeping replay histories fast.

Security & Reliability

Multi-tenant automation engines hold sensitive keys across finance, HR, and customer systems. OAuth tokens and API secrets are envelope-encrypted at rest with per-tenant keys and injected solely inside short-lived Activity execution contexts—never serialized into Temporal's workflow event history or exposed in client-facing step logs. Payload logs mask recognized authorization headers and secret fields automatically before surfacing in the React run inspector.

On the reliability front, Temporal differentiates non-retryable client configuration errors (such as HTTP 400 validation failures) from transient upstream errors (HTTP 429 or 503). Failed runs pause cleanly in a recoverable state so builders can fix a credential or field mapping and resume cleanly without corrupting already-synced records.

Performance & Scale

Visual builders demand immediate feedback while backend engines demand sustained throughput. The React canvas virtualizes large node graphs and computes schema autocomplete client-side from cached connector definitions, staying responsive even on complex multi-branch workflows.

In Node.js, connector workers separate high-priority interactive test runs onto dedicated Temporal task queues so heavy background batch syncs never delay a user clicking "Test Step" in the UI. Combined with Redis rate shapers respecting downstream API quotas, the platform scales horizontally by adding stateless Node.js worker pods.

Operational Outcomes

Pairing a schema-aware React builder with Temporal's durable execution engine gave operations and engineering teams shared reliability without sacrificing speed:

  • Zero silent mid-run drops: Container restarts, rolling deploys, and multi-day approval waits resume seamlessly from persisted Temporal state.
  • Empowered non-engineering builders: Operations teams construct and test complex API integrations visually with live payload previews and safe formula transforms.
  • Clean credential reliability: Single-flight OAuth refresh locking eliminated intermittent authorization failures during parallel sync bursts.
  • Fast incident recovery: Granular step timelines and targeted replay controls resolve third-party outages without duplicating prior side effects.

01 — Questions

asked about this kind of project

Why build the workflow runtime on Temporal instead of chaining BullMQ or Redis job queues manually?

Chaining Redis queues for long-running waits, parallel branches, and compensating actions quickly produces fragile state-machine glue code. Temporal persists deterministic event histories natively, making multi-day delays, crash recovery, and step-level retries first-class primitives.

How do visual user edits safely compile into deterministic Temporal workflows?

The React canvas exports an immutable, version-pinned JSON DAG specification stored in PostgreSQL. Rather than generating arbitrary runtime code, a single deterministic Node.js Temporal interpreter traverses the pinned graph version so in-flight runs finish cleanly even after users publish newer edits.

How do you prevent concurrent workflow steps from corrupting shared OAuth2 refresh tokens?

All connector credentials reside in an encrypted vault coordinated by Redis distributed single-flight locks. When an access token nears expiry, one worker executes the refresh exchange while concurrent activities await the newly minted token.

How are user-authored data mappings and filter formulas executed safely?

Users frequently write JSON path lookups, string formatters, and date math in step fields. Instead of calling JavaScript eval or spinning up heavy VMs per step, a custom TypeScript AST parser evaluates strictly whitelisted pure functions with tight memory and recursion limits.

What happens when a downstream SaaS webhook spikes or returns persistent HTTP 429 rate limits?

The Webhook Gateway absorbs ingress bursts into Redis-backed rate shapers, while Temporal activities classify HTTP 429 and Retry-After headers into non-failing timer backoffs—pausing individual runs cleanly without wasting worker threads or dropping payloads.

03 — Similar project?

describe what is different about yours

Build yours.

Tell me what exists, what you need and the deadline. Fixed price for a defined scope, or $55/day (8–9 hours work) with a written plan first.

Solitaire Corporate Park, Makarba, Ahmedabad, Gujarat 380015, India · IST (UTC+5:30) · --:-- IST · Mon–Fri 09:00–18:00 IST · US & EU overlap daily

No newsletter, no CRM. Just a reply.