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-
evalformula 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.