Relay.app logo

How to vibe codeRelay.app

AI-powered workflow automation and integration platform

relay.app

Workflow Automation

68/ 100
Solid side project

The verdict: can you vibe code Relay.app?

Build a focused personal automation runner with core AI actions and state persistence, though you will have to skip the expansive proprietary third-party app connector catalog.

Relay.app is fundamentally an orchestration and state-machine engine wrapped in a visual builder. Vibecoding a personal version is entirely feasible if you scope your connector list down to 3 or 4 essential APIs (like Slack, GitHub, and email) rather than trying to match 100+ enterprise integrations. The hardest parts will be building the durable workflow runner that handles asynchronous loops and the human-in-the-loop pause/resume lifecycle without dropping state.

Estimated effort: 2-3 weeks part-time

What you can't replicate

  • Pre-built certified OAuth connectors for 100+ third-party enterprise applications
  • The exact team workspace permissioning and enterprise compliance posture

Founded

2021

Raised

$8.1M

Team

~3-36 reported active

Cheapest paid tier

What Relay.app does

Relay.app is an AI-powered workflow automation platform that combines traditional multi-step integrations with native AI actions and human-in-the-loop collaboration checkpoints.

Core features

  • Visual drag-and-drop workflow builder with multi-step sequencing
  • OAuth credential vault and token manager for business applications
  • Asynchronous workflow execution engine with state machine management
  • Human-in-the-loop checkpoint system for manual approvals and data review
  • Multi-model LLM abstraction layer supporting OpenAI, Anthropic, and Google
  • Model Context Protocol (MCP) server integration to expose workflows as tools
  • Run history logging, error retries, and data table management

The business

Pricing

  • FreeFree
  • Paid PlansTiered

Funding

$8.1M from Andreessen Horowitz (a16z), Khosla Ventures, Balderton Capital, BoxGroup, Neo, Entropia Capital

Pay vs build, cumulative

Break-even at month 1 — after that, every month is money kept.

The hard parts of vibe coding Relay.app

  • Building a bulletproof OAuth token lifecycle manager across third-party APIs with varying refresh semantics
  • Architecting a durable asynchronous workflow engine capable of state pausing, resumption, list iteration, and branch retries
  • Implementing persistent human-in-the-loop state pausing that securely holds context indefinitely awaiting a web action
  • Exposing workflows dynamically as compliant MCP servers for external AI agent consumption

How to vibecode Relay.app

Prerequisites

  • Node.jsfree

    Runtime environment for building and executing the full-stack Next.js workflow engine.

  • GitHubfree

    Code repository hosting and CI/CD deployment connection.

AI coding tools

Recommended stack

FrontendNext.js with Tailwind CSS and React Flow for the visual workflow builder canvas
BackendNext.js API Routes powered by Inngest for durable step execution and background state management
DatabaseTurso (SQLite at the edge) for lightweight relational workflow definitions and run history storage
Authbetter-auth for self-hosted, secure single-user authentication without MAU pricing
PaymentsNone required for a personal automation runner
OtherVercel AI SDK for multi-model LLM abstraction and structured output generation, Resend for sending workflow notification emails

Hosting & infrastructure

VercelHosting Next.js frontend and serverless API execution$0-20/mo
TursoServerless SQLite database for workflow definitions and execution state$0/mo

Build guide

  1. 01Project Scaffolding and Database Schema

    Initialize a Next.js project with Tailwind CSS, configure better-auth, and set up Turso tables for workflows, workflow runs, steps, and user credentials.

    Create a new Next.js project configured with TypeScript, Tailwind CSS, and better-auth. Set up the database connection to Turso using Drizzle ORM or Prisma. Define the relational schema for workflows (id, name, definition_json, created_at), workflow_runs (id, workflow_id, status, input_data, output_data, current_step_index), workflow_steps (id, workflow_id, step_type, config_json, step_order), and user_credentials (id, user_id, provider_name, encrypted_token_data). Ensure all types are strictly enforced and include proper foreign key constraints and indexes on run history foreign keys.
  2. 02Visual Workflow Builder UI

    Build the drag-and-drop workflow canvas using React Flow where users can sequence triggers, actions, AI steps, and approval gates.

    Build a visual workflow builder page in Next.js using React Flow. Implement a custom node sidebar allowing users to drag and drop Trigger nodes (Webhook, Manual), Action nodes (HTTP Request, Send Slack Message), AI nodes (Summarize, Extract, Generate), and Human Approval gates onto the canvas. Create an interactive configuration drawer for the selected node that lets users edit JSON parameters and map previous step outputs via handlebars-style variable interpolation (e.g., {{step_1.output}}). Save the resulting graph structure back to the database as a JSON workflow definition.
  3. 03Durable Workflow Execution Engine

    Implement the asynchronous execution engine using Inngest to manage state transitions, retries, branching logic, and step progression.

    Implement a durable workflow execution engine using Inngest integrated into the Next.js backend. Create an execution runner function that ingests a workflow run ID, fetches its step sequence, and executes each step sequentially or conditionally based on branching logic. Handle variable resolution by parsing input parameters against previous step outputs stored in run state. Implement robust error handling with automatic step retries and write detailed execution logs into the workflow_runs table for every state transition.
  4. 04Multi-Model AI Actions and LLM Abstraction

    Integrate the Vercel AI SDK to support AI text generation, extraction, and summarization actions inside workflow steps across OpenAI and Anthropic.

    Create an AI action executor module using the Vercel AI SDK that supports dynamic model selection (OpenAI GPT-4o, Anthropic Claude 3.5 Sonnet). Implement specialized step executors for 'Summarize Text', 'Extract Structured Data' (using Zod schema validation for guaranteed JSON output), and 'Custom Prompt Generation'. Ensure AI step tokens and usage are tracked per run, and safely handle API key configuration from user settings or environment variables.
  5. 05Human-in-the-Loop Approval Checkpoints

    Build the pause-and-resume state handling for workflows that encounter a human approval checkpoint, generating secure notification links and resuming execution upon user action.

    Implement a human-in-the-loop pause and resume mechanism within the Inngest workflow engine. When an execution reaches an approval step, transition the workflow run status to 'paused_waiting_for_approval', generate a secure tokenized approval link sent via Resend, and halt execution. Build a dedicated dashboard page where users can view paused runs, inspect payload data, and click 'Approve' or 'Reject'. Clicking the action button must invoke a backend webhook that resumes the Inngest step function with the reviewer's input data.
  6. 06Model Context Protocol (MCP) Server Export

    Expose custom workflow definitions as compliant Model Context Protocol (MCP) endpoints so external AI agents can discover and invoke them as tools.

    Build an MCP server endpoint in the Next.js app using the Model Context Protocol TypeScript SDK. The endpoint must dynamically inspect the user's saved workflows and expose them as callable MCP tools with explicit input schema definitions derived from step configurations. Implement secure API key authentication for incoming MCP tool execution requests, mapping incoming agent tool calls directly into the asynchronous workflow execution engine and returning structured execution outputs.

Cost vs paying for Relay.app

What will you build it with?

Est. 12M in / 3.5M out tokens· Includes access to introductory usage of the default model with dynamic rate limits.$0

Starting total with Claude Code$0 one-time

Starting costs (one-time)

  • Domain name (optional)$12/yr

Total~$12 one-time

Ongoing costs (monthly)

  • Vercel Hobby / Turso / Resend$0/mo
  • AI API Usage (OpenAI / Anthropic for workflow AI steps)~$5-15/mo

Total~$5-15/mo

Paying for Relay.app

$30-100/mo (Prior Paid Plan equivalents)

Your time to build

40-60 hours

AI tool credits

$20/mo (Claude Pro / Cursor)

Break-even

N/A (Personal build for utility/learning)

Vibe code Relay.app: FAQ

Can you vibe code Relay.app yourself?
Solid side project — 68/100 vibecodeable. Build a focused personal automation runner with core AI actions and state persistence, though you will have to skip the expansive proprietary third-party app connector catalog.
How long does it take to vibe code Relay.app?
2-3 weeks part-time — roughly 40-60 hours of hands-on time with an AI coding agent.
How do you build your own Relay.app?
Scoped to personal use: Next.js with Tailwind CSS and React Flow for the visual workflow builder canvas on the front, Next.js API Routes powered by Inngest for durable step execution and background state management behind it, Turso (SQLite at the edge) for lightweight relational workflow definitions and run history storage for data. Follow the 6-step build guide on this page — each step has a paste-ready prompt for an AI coding agent.
How do you code your own Relay.app without being an expert?
Use an AI coding tool (Claude Code or Cursor) and work in small steps: scaffold, data model, core screens, then deploy. Realistic effort: 2-3 weeks part-time. The prompts on this page are written so the AI does the heavy lifting.
How much does it cost to vibe code Relay.app instead of paying?
About ~$12 one-time to start and ~$5-15/mo to run, versus $30-100/mo (Prior Paid Plan equivalents) for Relay.app. Break-even: N/A (Personal build for utility/learning).
What stack should you use to vibe code Relay.app?
Next.js with Tailwind CSS and React Flow for the visual workflow builder canvas; Next.js API Routes powered by Inngest for durable step execution and background state management; Turso (SQLite at the edge) for lightweight relational workflow definitions and run history storage; plus Vercel AI SDK for multi-model LLM abstraction and structured output generation, Resend for sending workflow notification emails.

Sources

Alternatives & community builds

All alternatives →