/iblai-vibe:iblai-vibe-workflowfrom ibl.ai vibe
Adds a visual workflow editor and workflows list to Next.js apps for building multi-step agent flows with branching, looping, state, and classifier steps.
Ships in ibl.ai vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Add agent workflows -- multi-step flows that start from one agent and route, branch, loop and set state. Two SDK components mount the whole feature:
WorkflowsList — the organization's workflows: search, status (Active
/ Draft), Create Workflow. It is opened from an agent, whose id seeds
the Agent step of every workflow created there — the list itself is the
same for every agent.WorkflowEditor — the editor: a step sidebar (Core / Logic / Data,
plus Tools for File Search), the canvas, the step settings panel,
workflow variables, a Classifier step with Try, keyboard
shortcuts, a Warnings and Errors banner whose lines open the step
they are about, inline rename, Save, Publish, Activate /
Deactivate / Delete, and a Preview chat that runs the workflow.












Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
/iblai-vibe-agent-chat — the chat transport (axdToken, baseWsUrl,
redirectToAuthSpa) the editor's Preview reuses; take the same values./iblai-vibe-agent-setting — an Agent step's gear opens that agent's
settings; wire onOpenAgentSettings to your settings route./iblai-vibe-navbar — where the side-menu entry goes./iblai-vibe-auth)@iblai/mcp in .mcp.json)@iblai/iblai-js 3.6.0 or later for the builder that stays quiet while
you build (see Saving, validating, publishing); vibe-starter ships ^3.6.0.mentorId): every new workflow is
Start → Agent → End with the Agent step bound to it, and backend
6.1.0 and later report nothing to fix in it. The list is organization-wide.username and stays on its spinner without one.workflowsApiSlice registered in the Redux store (Step 3) — it is not
part of mentorReducer.Before proceeding, check for an iblai.env in the project root. Look for
PLATFORM, DOMAIN, and TOKEN variables. If the file does not exist or
is missing these variables, tell the user:
"You need an iblai.env with your platform configuration. Download the
template and fill in your values:
curl -o iblai.env https://raw.githubusercontent.com/iblai/vibe/refs/heads/main/iblai.env"
app/(app)/workflows/[mentorId]/page.tsx// app/(app)/workflows/[mentorId]/page.tsx
"use client";
import { useState } from "react";
import { useParams, useRouter } from "next/navigation";
import { WorkflowsList } from "@iblai/iblai-js/web-containers/next";
import { resolveAppTenant } from "@/lib/iblai/tenant";
export default function WorkflowsPage() {
const router = useRouter();
const { mentorId } = useParams<{ mentorId: string }>();
const [tenantKey] = useState(resolveAppTenant);
return (
<WorkflowsList
tenantKey={tenantKey}
mentorId={mentorId}
onOpenWorkflow={(workflow) =>
router.push(
`/workflows/${workflow.entry_mentor_id}/${workflow.unique_id}?listMentorId=${mentorId}`,
)
}
/>
);
}
A Next.js page receives only params and searchParams, so resolve the
organization inside the page (the starter's resolveAppTenant), never as a
prop. onOpenWorkflow receives the full Workflow; route on its
entry_mentor_id (the workflow's own run agent — see Important Notes) and
keep the list's agent in a query parameter so Delete can return to the
right list.
app/(app)/workflows/[mentorId]/[id]/page.tsx// app/(app)/workflows/[mentorId]/[id]/page.tsx
"use client";
import { useState } from "react";
import { useParams, useRouter, useSearchParams } from "next/navigation";
import { WorkflowEditor } from "@iblai/iblai-js/web-containers/next";
import { useGetWorkflowQuery } from "@iblai/iblai-js/data-layer";
import { useAxdToken, useUsername } from "@iblai/iblai-js/web-utils";
import { redirectToAuthSpa } from "@/lib/iblai/auth-utils";
import config from "@/lib/iblai/config";
import { resolveAppTenant } from "@/lib/iblai/tenant";
import { useAgentChatPermissions } from "@/lib/iblai/use-agent-chat-permissions";
export default function WorkflowEditorPage() {
const router = useRouter();
const { mentorId, id } = useParams<{ mentorId: string; id: string }>();
const listMentorId = useSearchParams().get("listMentorId") ?? mentorId;
// The list, not router.back(): after Agent Settings the previous page is
// that agent's settings, not the list.
const listPath = `/workflows/${listMentorId}`;
const [tenantKey] = useState(resolveAppTenant);
const username = useUsername();
const axdToken = useAxdToken();
// Preview chats with the workflow's own run agent, so its chat permission
// is the one the composer waits for.
const { data: workflow } = useGetWorkflowQuery(
{ org: tenantKey, uniqueId: id },
{ skip: !tenantKey || !id },
);
useAgentChatPermissions(tenantKey, workflow?.entry_mentor_id, username);
return (
<WorkflowEditor
tenantKey={tenantKey}
workflowId={id}
username={username ?? ""}
axdToken={axdToken ?? ""}
baseWsUrl={config.baseWsUrl()}
redirectToAuthSpa={(to, key, logout) => void redirectToAuthSpa(to, key, logout)}
onBack={() => router.push(listPath)}
onDeleted={() => router.push(listPath)}
onOpenAgentSettings={(agentId) => router.push(`/agents/${agentId}/settings`)}
/>
);
}
axdToken, baseWsUrl and redirectToAuthSpa are the values
/iblai-vibe-agent-chat wires (useAxdToken(), config.baseWsUrl(),
lib/iblai/auth-utils); a page gets no other props, so resolve them inside it.
Preview's composer stays disabled until the app reports the run agent's
permissions loaded. Copy assets/use-agent-chat-permissions.ts to
lib/iblai/use-agent-chat-permissions.ts (vibe-starter already has it):
useAgentChatPermissions loads the agent's grants, and the composer stays
locked for a person they refuse. If they fail to load, it marks them loaded
anyway, as the ibl.ai app does; the server's refusal is then the only gate.
The editor fills its parent's height (h-full), not the window, so it sits
under your navbar; the starter's <main> gives it that height.
The editor's header has no back button, so your navigation returns people to
the list: put Workflows in the sidebar beside the agent's other sections.
The ibl.ai app shows admins a collapsible Workflows section (New
Workflow, My Workflows, both to /workflows/<current agent>), and with
no agent selected it asks them to pick one.
workflowsApiSlice in the storeThe workflow hooks live on their own slice that mentorReducer does not
include. Add its reducer and middleware to the starter's
store/iblai-store.ts (three lines marked + — the rest is the file
vibe-starter already ships, comments left out):
// store/iblai-store.ts
import { configureStore } from "@reduxjs/toolkit";
import {
coreApiSlice,
mentorReducer,
mentorMiddleware,
mcpApiSlice,
workflowsApiSlice, // + workflows
} from "@iblai/iblai-js/data-layer";
import {
hostChatReducer,
chatInputSliceReducer,
chatSliceReducerShared,
filesReducer,
rbacReducer,
subscriptionReducer,
topBannerReducer,
appleRestrictionReducer,
} from "@iblai/iblai-js/web-utils";
export const iblaiStore = configureStore({
reducer: {
[coreApiSlice.reducerPath]: coreApiSlice.reducer,
...mentorReducer,
[mcpApiSlice.reducerPath]: mcpApiSlice.reducer,
[workflowsApiSlice.reducerPath]: workflowsApiSlice.reducer, // + workflows
chat: hostChatReducer,
chatInput: chatInputSliceReducer,
chatSliceShared: chatSliceReducerShared,
files: filesReducer,
rbac: rbacReducer,
subscription: subscriptionReducer,
topBanner: topBannerReducer,
appleRestriction: appleRestrictionReducer,
},
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({ serializableCheck: false })
.concat(coreApiSlice.middleware)
.concat(mcpApiSlice.middleware)
.concat(workflowsApiSlice.middleware) // + workflows
.concat(...mentorMiddleware),
});
export type IblaiRootState = ReturnType<typeof iblaiStore.getState>;
export type IblaiAppDispatch = typeof iblaiStore.dispatch;
Without it every workflow hook returns undefined and both pages render
their error state.
get_component_info("WorkflowEditor")
get_component_info("WorkflowsList")
Both import from @iblai/iblai-js/web-containers/next.
<WorkflowsList>| Prop | Type | Required | Description |
|---|---|---|---|
tenantKey | string | Yes | Organization key |
mentorId | string | Yes | The agent the list was opened from — it seeds the Agent step of workflows created here; the list itself is organization-wide |
onOpenWorkflow | (workflow: Workflow) => void | Yes | Called with the full record on card click and right after Create |
<WorkflowEditor>| Prop | Type | Required | Description |
|---|---|---|---|
tenantKey | string | Yes | Organization key |
workflowId | string | Yes | The workflow's unique_id |
username | string | Yes | Signed-in user — loads each Agent step's settings; with an empty username the editor never leaves its spinner |
axdToken | string | Yes | Chat token for the preview chat |
baseWsUrl | string | Yes | WebSocket origin for the preview chat (${baseWsUrl}/ws/langflow/) |
redirectToAuthSpa | (redirectTo?, platformKey?, logout?) => void | Yes | Host auth redirect (wrap an async helper to => void) |
onBack | () => void | Yes | Go Back when the workflow fails to load (the header has no back button) |
onDeleted | () => void | Yes | After a successful delete — go back to your list |
onOpenAgentSettings | (mentorId?: string) => void | No | The Agent Settings gear on an Agent step; the gear is hidden when omitted |
agentSettings | WorkflowAgentSettingsConfig | No | RBAC and paywall config (enableRBAC, rbacPermissions, executeGatedAction) for the agent-settings pieces the editor embeds, such as the Agent step's Tools switches |
Inline-editable name (pencil; saves on blur / Enter) · Active / Draft · Unpublished changes once a published workflow has saved edits that are not published yet · Unsaved while the canvas differs from the server · Publish, Save, Preview, Activate / Deactivate, Delete. As the header narrows, buttons move into a More Workflow Options menu — Delete first, Publish last. In Preview they become Close Preview, New Chat and Publish.
node-types does not mark planned, in the
order it sends them (a built-in list until it loads): Core — End,
Agent, Note · Tools — File Search, on backend 6.1.0 and later · Logic
— If / Else, While, Classifier · Data — Transform, Set State. Drag a
step onto the canvas, or click it to drop it next to the selected step.{{steps.<id>}} on a step
with a result (Agent, Classifier, While, Transform, Set State). An Agent
card has Change Agent (pencil) and, with an agent set, Agent
Settings (gear). Hover a connection for Delete Connection. The
toolbar has Pan, Select (drag a box to select several steps), Undo, Redo
and Zoom; each tooltip names its shortcut.node-types marks planned (Guardrails, MCP, User Approval;
File Search before backend 6.1.0) still shows on the canvas;
nothing new can add one, and publish refuses a connected one.md breakpoint): the sidebar becomes an Add
Step button that opens the step list from the bottom, the settings panel
takes the canvas's width, and Preview replaces the canvas (Close
Preview returns to the same view and undo history).⌘S saves, ⌘Z / ⇧⌘Z undo and redo, ⌘C / ⌘V copy and paste steps with their
connections, Delete removes, H / V pick Pan / Select, ⌘+ ⌘− ⌘0 zoom (Ctrl
off a Mac). The full table, and where the keys stay out of the way, is in
references/keyboard-shortcuts.md.
Opens on click (not on drag). What each step edits:
| Step | Fields |
|---|---|
| Start | State Variables — name, type, optional default (validated per type) |
| Agent | Change picks the agent · Instructions, added to the user's message for this step only (empty = just the agent's own prompt) · Output Variable, the reply kept for later steps · Model, read-only · Tools switches, which edit that agent's own settings (every chat with it) · Advanced → Output Schema, a JSON object: the agent replies in that shape and the Output Variable holds its fields |
| Classifier | below |
| If / Else | If + Else If n rows: case name (optional) + condition; an empty condition cannot be published |
| While | Condition (required), Max Iterations (default 10, at most 100) |
| Transform | Key / Value expressions |
| Set State | Assign Value → To Variable rows; New creates a variable |
| File Search | On backend 6.1.0 and later: Dataset (Select, or Change once one is set, opens the workflow's own agent's Datasets tab to pick one document, and its Add Resource shows only with the grant /iblai-vibe-agent-dataset names in agentSettings.rbacPermissions; none = all of them) · Max Results (default 10; publish refuses anything outside 1–20) · Query, placeholders typed by hand (empty = the user's message). Later steps read the passages it found as {{steps.<id>}}; Copy and Insert Variable or Step do not offer it yet, so type its id. What it saves and its full result: references/node-data-model.md |
| End | Nothing to set; it sends the reply (below) |
End's reply. Its panel says "Reply with whichever ran last: an Agent
step or a Transform that sets the reply". End replies with the latest Agent
step or Transform whose Key is output, whichever ran last; a step
that runs after them, such as Set State, does not change the reply. Only
when neither has run does it reply with the last step's result, and never
with a Classifier's or a File Search's.
Sends the message to a decision model and follows the path for its answer.
iblai, the decision model set up for the
organization) plus any config_schema.model.suggestions from
node-types.Technical Problem → technical_problem) and shown under it;
renaming a category moves its connection, removing one drops it.{{variables.…}}, {{steps.…}} stay empty. It shows
the answer with its confidence and the model that answered. Each try is a
billed model call. Settings that cannot run list the backend's own lines
under Fix these settings first:, or under the backend's sentence when
it sends one; running out of credits, a spend limit, a model that is off
or failing, and a sample over 20,000 characters each get their own message.{{input}} (the user's message), {{variables.name}},
{{steps.<step-id>}}. Only variables and steps that run before the step
count; publish refuses one that would always be empty. Agent and
Classifier fields list them underneath with copy buttons.variables['score'] > 5, step_results['mentor-1']['output'],
variables['items'][0] (first item), [-1] (last).
variables.score fails validation.PATCHed and
then validated. Opening a workflow validates it and never saves it.Research step: No agent selected.).notices, backend 6.1.0 and later): runs skip them, and they never stop
publishing. The header counts each kind (Warnings and Errors · 2
errors, 1 warning, 1 step not connected), or reads Not Connected · 2
steps with only those. Earlier backends send no notices; they check
every step and warn about each one with no connection at all.400 with
is_valid: false). A new workflow is created Active.The workflowsApiSlice hooks from @iblai/iblai-js/data-layer
(useGetWorkflowsQuery, useGetWorkflowQuery, the create / patch / delete,
validate, publish, activate and classifier-test mutations,
useGetNodeTypesQuery) with their arguments and types, and the pieces for
composing your own editor (WorkflowCanvas, NodeConfigPanel,
WorkflowSidebar, the definition helpers), are in
references/exports.md; every NodeConfig field,
the handles and the migrations are in
references/node-data-model.md.
Run /iblai-vibe-ops-test before telling the user the work is ready, and give
every page, control and state this skill added its own checkpoint — one Playwright
test titled <ID> · … in e2e/journeys/, listed in e2e/coverage.json;
pnpm e2e:coverage must pass:
pnpm build -- must pass with zero errorspnpm test -- vitest must pass/iblai-vibe-ops-test says:
open /workflows/<agentId> — the list renders with the organization's
workflows; Create Workflow opens the new workflow's editor with
Start → Agent → End on the canvas (not "Failed to load workflow") and no
Warnings and Errors banner; add a Classifier and Try it on a
sample message; ⌘S / Ctrl+S saves (Unsaved clears); delete the End
step and Publish — it is refused and the banner opens expanded with
the missing End; the console is clean.Stable selectors: the step panel is workflow-node-panel, the warnings list
workflow-validation-list (each line has data-problem-kind error,
warning or notice; a step link has data-step-id), the header buttons
workflow-header-actions; canvas cards carry data-node-id; buttons have
accessible names (Create Workflow, Publish, More Workflow
Options, Insert Variable or Step).
initializeDataLayer(): 5 args (v1.2+)@reduxjs/toolkit: Deduplicated via webpack aliases in next.config.tssonner and @iblai/iblai-web-mentor must be installed
(pnpm add sonner @iblai/iblai-web-mentor)WorkflowsList, WorkflowEditor, WorkflowCanvas,
NodeConfigPanel, WorkflowPreviewChat come from
@iblai/iblai-js/web-containers/next (they use next/dynamic and
next/navigation); the sidebar, dialogs and definition helpers from
@iblai/iblai-js/web-containers.mentorId (the list's agent) only seeds new
workflows. entry_mentor_id is the run agent the backend creates for
every workflow (named after it, deleted with it): chatting with it runs
the workflow, Preview talks to it, an Agent step may not use it, and
outside Preview it refuses an inactive workflow. An Agent step's own
agent is definition.nodes[].data.mentor_id.definition.nodes / edges are
unknown[]; the editor owns the shapes (see the reference). A misnamed
field is ignored by the backend and silently turns a step into a no-op.Endpoints, what publishing checks, step connections and a run's socket
messages: references/rest-api.md.
assets/use-agent-chat-permissions.ts (opens in a new tab)iblai-vibe-workflow-classifier-try.png (opens in a new tab)iblai-vibe-workflow-file-search-picker.png (opens in a new tab)iblai-vibe-workflow-list.png (opens in a new tab)iblai-vibe-workflow-new.png (opens in a new tab)iblai-vibe-workflow-not-connected.png (opens in a new tab)iblai-vibe-workflow-panel-agent.png (opens in a new tab)iblai-vibe-workflow-panel-classifier.png (opens in a new tab)iblai-vibe-workflow-panel-file-search.png (opens in a new tab)iblai-vibe-workflow-panel-if-else.png (opens in a new tab)iblai-vibe-workflow-preview.png (opens in a new tab)iblai-vibe-workflow-problems.png (opens in a new tab)iblai-vibe-workflow-shortcuts.png (opens in a new tab)iblai-vibe-workflow.png (opens in a new tab)references/exports.md (opens in a new tab)references/keyboard-shortcuts.md (opens in a new tab)references/node-data-model.md (opens in a new tab)references/rest-api.md (opens in a new tab)test.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub iblai/base --plugin iblai-vibe166 skills in this plugin
/iblai-api-agent-accessManage role-based access to an ibl.ai agent via the platform API — list role policies, search users/groups, and grant/revoke editor, chat, or analytics_viewer roles for users, groups, and emails. Use when controlling who can edit, chat with, or view analytics for an agent./iblai-api-agent-auditRead an ibl.ai agent's audit log via the platform API — a who-changed-what trail filterable by action, actor email, and date range. Read-only. Use when investigating configuration changes to an agent./iblai-api-agent-chatSet up live chat with a deployed ibl.ai agent by wiring the hosted iblai-api-agent-chat MCP server into the project (.mcp.json / claude mcp add) using the .env Api-Token and a chosen agent's unique id, or by signing in from claude.ai, ChatGPT or Claude Desktop with only the URL. Use to enable runtime conversations with an agent, and to list or disconnect the apps a user has connected. The actual chatting then happens through the MCP server's tools.Other plugins' skills for the same job