Skip to Content
UI Kit
Screens (56)

AI Chat Workflow

AI Chat / Workflow Builder — a narrow chat on the left, the automation it builds on the right, in a single file.

Open preview
Loading AI Chat Workflow…

Usage

import { AiChatWorkflowScreen } from "ui-kit/screens/ai-chat-workflow";

Props

PropTypeDefaultDescription
workspacestring"Northwind"The workspace in the sidebar
promptstring—The prompt the screen opens with – the sample build plays it (leave empty to start without a workflow)
onPrompt(prompt: string) => void—Called when a prompt is sent – build your workflow here
onRun(mode: WfRun["mode"]) => void—Called when a test run starts – "sample" uses made-up rows, "live" touches real data
onResolve(block: string, action: string) => void—Called when a question in the chat is answered
onPublish() => void—Called when Publish is pressed
chatsShellChat[]—The chats in the sidebar
loadingbooleanfalseGray lines in the chat, gray steps on the canvas
emptybooleanfalseNo workflow yet – the assistant offers a first prompt