All blocks

App template

Workflow builder

Build trigger-to-action workflows on a canvas, map fields with sample data, test a run, replay history, and let an assistant propose changes.

Draft saved

Draft

Route website inquiries: big companies to sales, everyone else gets a reply.

7 steps · 1 needs setup

Use this template

Installs the whole app into your project: its pages, routes, services with sample data, agent tools and the browser entry. Every file is yours to edit.

npx shadcn@latest add checkfu/uicontext/automation-builder
  1. Run itLoad from your page’s script. It builds the app with createApp: the browser’s router, the agent tools, an offline notice, and sign-in when you turn it on. Inside an app that already routes, render AutomationBuilder, which brings its own in-memory router.
  2. Connect your backendEvery read and write goes through Workflows in . Implement it over your API and point WorkflowsLive at your Layer.
  3. Make it yoursPages are one file per route. Delete the ones you don’t need, and the sample data in .

Screens

  • Workflows

    /

    Every workflow with its status and last run, and a button to start a new one.

  • Editor

    /workflows/:id

    The canvas with its trigger and steps, step setup with field mapping, and the docked assistant.

  • Run history

    /workflows/:id/runs

    Every run of the workflow, newest first.

  • Run

    /workflows/:id/runs/:run

    One run’s steps with their input and output, to replay or delete.

Where your backend plugs in

Pages never call a backend. They read through the queries in queries/ and write through Commands kept beside the component that runs them; both capture the Workflows service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:

export const WorkflowsLive = Workflows.sample
// becomes your Layer, such as
export const WorkflowsLive = Layer.effect(Workflows, makeHttpWorkflows)

The root provides it once, so every page shares one instance. Sign-in is one line: delete auth: false in once your backend serves the session routes, and the sidebar shows who signed in.

What to delete

  • services/seed.ts, and Workflows.sample in services/Workflows.ts
  • The assistant, if your app has none: its panel in pages/workflows/WorkflowPage.ts

To drop a screen, delete its file in pages/ and its route in ; TypeScript points at every link that still prints it. The agent tools are in .