Step Configurator

Set up a workflow step: its app, account and fields mapped from earlier steps, then test it.

2. Create contact

Setup
Pipeline CRMCreate contact
Fields
Email (required)
Work email
Full name
Full name
Company
Company
Seats
Stage
Note
Submitted at

Sample: Asked for a demo on 2026-11-30T13:40:00Z.

Test
Not tested

Testing creates a real contact.

Installation

pnpm dlx shadcn@latest add checkfu/uicontext/mapper

Usage

import { type MapperData, type MapperField, StepConfigurator } from "./ui/uicontext/components/kit/Mapper.ts"import type { StepPickerApp } from "./ui/uicontext/components/kit/StepPicker.ts"
const Message = UiSchema.TaggedEnum({	PickedStep: { step: Schema.String, app: Schema.String, event: Schema.String },	SetStepField: { step: Schema.String, field: Schema.String, value: Schema.String },	TestedStep: { step: Schema.String },})export const StepSetup = (	h: Html.H<typeof Message.Type>,	step: { readonly id: string; readonly app: string | null; readonly event: string | null },	apps: ReadonlyArray<StepPickerApp>,	fields: ReadonlyArray<MapperField>,	data: ReadonlyArray<MapperData>,) =>	StepConfigurator(h, {		key: step.id,		props: {			id: step.id,			title: "2. Create contact",			app: { value: step.app, options: [] },			event: { value: step.event, options: [] },			catalog: { apps, for: "action" },			fields,			data,			test: { note: "Testing creates a real contact." },			can: ["test", "change"],		},		onEmit: {			RequestedAppEvent: ({ id, app, event }) => Message.PickedStep({ step: id, app, event }),			RequestedField: ({ id, field, value }) => Message.SetStepField({ step: id, field, value }),			RequestedTest: ({ id }) => Message.TestedStep({ step: id }),			RequestedApp: () => undefined,			RequestedEvent: () => undefined,			RequestedAccount: () => undefined,			RequestedConnect: () => undefined,			RequestedOptions: () => undefined,			RequestedSample: () => undefined,			RequestedRename: () => undefined,		},	})

Examples

A new step

A step added from the canvas opens the catalog first; once chosen, Change opens it again.

3. New step

Setup
    • Team ChatChannels and direct messages.
    • FilterOnly continue when conditions are true.
    • PathsSplit into paths with their own rules.
    • DelayWait before the next step.
    • FormatterChange text, numbers and dates.
    • Pipeline CRMContacts, companies and deals.
    • Team ChatChannels and direct messages.
    • MailSend and receive email.
    • BillingPayments and subscriptions.
    • Data WarehouseYour admin hasn’t allowed this app.

Filter conditions

A filter or a path takes rules: data, a comparison and a value, joined by all or any.

2. Only big companies

Setup
FilterOnly continue if…
Fields
Conditions (required)
Continue only ifof these are true
Company size
and
Work email

A trigger with an expired account

The trigger's test found records to choose a sample from; its account needs signing in again before it can run.

1. New form response

Setup
FormsNew form response

This Forms account can’t be used: the sign-in expired on Nov 24.

API reference

Props

StepConfigurator props
NameTypeDefaultDescription
idrequiredstring—The step's id, sent back with every request
titlerequiredstring—"2. Create contact"
apprequiredMapperChoice—Which app the step uses, and the apps to choose from
eventMapperChoice—Shown once there's an app
catalogMapperCatalog—The catalog to choose the app and event from; replaces the app and event lists
account{ connectLabel, reconnect }—Shown once there's an event that needs one; reconnect says why the chosen account needs signing in again
fieldsMapperField[]—The step's inputs, shown once the app, event and account are chosen
dataMapperData[]—Data from earlier steps, with samples, that fields can insert
testMapperTest—The last test of the step and what testing does
canrequiredStepConfiguratorCapability[]—What the viewer may do: test the step, connect an account, rename it, change its app
readOnlyNotice—Why the step can't be changed; shows its setup without controls
outcomeOutcome | null—The app's answer to the request in flight; its request is "app", "event", "account", "field", "test", "connect", "rename" or "sample"
agentIdstringstep:<id>The id agents know this step by; step:<id> by default
autoFocusboolean—Move focus to the catalog's search when it shows, as for a step just added

Events

StepConfigurator events
EventPayloadDescription
RequestedApp{ id: string; app: string }The person picked an app for the step
RequestedEvent{ id: string; event: string }The person picked the app's event or action
RequestedAppEvent{ id: string; app: string; event: string }The person picked an app and its event at once, from the catalog
RequestedAccount{ id: string; account: string }The person picked a connected account
RequestedConnect{ id: string; account?: string }Start connecting an account (the app runs the sign-in); account names one to sign in to again
RequestedOptions{ id: string; field: string }Load a select field's choices again
RequestedField{ id: string; field: string; value: string }A field's new value: when a text field is left, a pill goes in or out, or a select or switch changes
RequestedSample{ id: string; sample: string }The person chose the record later steps use as their sample
RequestedRename{ id: string; title: string }The step's new name
RequestedTest{ id: string }Run a test of the step

Agent actions

What agents can do with StepConfigurator
ActionDescription
ChoseAppChoose the app by value (see page_query)
ChoseEventChoose the event by value
PickedStepPickerChoose what the step does from the catalog, by app id and event id (choices app/event)
ChoseAccountChoose the account by value
ClickedConnectStart connecting a new account (a person signs in)
SetFieldSet a field by id. Map data with {{step.path}} tokens from page_query; a conditions field takes JSON {match, rules:[{left, op, right}]}.
ChoseSampleChoose the sample record later steps use
ClickedTestTest the step with the data it maps

Accessibility

  • Setup, fields and test are fieldsets with legends; each field's hint, type warning and error are tied to it with aria-describedby.
  • A field's text and pills are one labelled group. Backspace at the start of a text run removes the pill before it, and the arrow keys step over pills.
  • Insert data opens a searchable list of earlier steps' outputs; the arrows and Enter insert one at the caret.
  • A text field sends its value when you leave it, so typing never sends a request per key. The test result is announced when it arrives.

Source