Flow Builder Overview
The Flow Builder is the no-code way to design, deploy, and manage Custodians — AI agents (or squads of agents) that chat with your users, use live web research, read your company documents, and send email — all without writing code.
Open it from the dashboard: Dashboard → Flow Builder (https://dashboard.custodianlabs.io/dashboard/flow-builder).
Flows built here are the same "flow spec" that the Python SDK and TypeScript SDK deploy programmatically — so you can start visually and graduate to code whenever you want.
The workspace
The Flow Builder is a drag-and-drop canvas made of three parts:
| Area | What it does |
|---|---|
| Palette (left) | Node types you can drag onto the canvas: Start, Custodian, and Data Source, plus the tools you can attach: Web Research, Gmail and Slack. |
| Canvas (center) | Drop nodes, drag 🔗 handles to connect them, hover a node to add a connection, and rearrange freely. Nodes auto-connect on drop and the canvas normalizes edges/layout for you. |
| Inspector (right) | Click any node to configure it: a custodian's model, system prompt, topics, tools, privacy, and response schema; a data source's files and which custodians it feeds. |
Node types
- Start — the entry point of every conversation. Every flow has exactly one.
- Custodian — an AI agent. Give it a unique name, a model, a system prompt, optional topics, tools, data sources, and a handoff/response-schema if needed. Each custodian is configured in the inspector.
- Data Source — a knowledge file (or folder) the connected custodian can read as context. See Data Sources & RAG.
Two ways to build
1. Build it by hand
Drag Custodian nodes from the palette, connect them with handles, and configure them in the inspector. Set the squad's routing mode in the workspace settings — see Routing Modes.
2. Build with AI
Click the Build with AI button at the bottom-right of the canvas. Describe the AI you want in plain English and it will build the flow on the canvas for you:
"Create a customer support agent that researches our docs and can escalate to a billing specialist."
You can also ask it how-to questions about the Flow Builder, or ask it to research the web first. Use the Undo AI build button to step back through its changes.
Saving your work
- The workspace autosaves a draft continuously — every change is captured locally, so navigating away, refreshing, or closing the browser won't lose your in-progress flow.
- When you come back, a resume prompt restores the draft (even a draft from an earlier session). Drafts are scoped to your account, so switching accounts never surfaces someone else's workspace.
- Save persists the named squad, and Deploy/Publish ships it to the runtime
(creates or updates a Custodian Squad). Share mode — private, public, or
password-protected — is chosen at deploy time. Keep
sharePasswordempty in any exported flow file; it's set when you share.
Export & import
- Export downloads your flow as a
flow.jsonfile — great for versioning in git or moving between workspaces. Gmail OAuth tokens are never exported (only the connected address is kept); re-connect the account when you import into a new workspace. Slack bot tokens are never exported either (only the workspace name is kept); reconnect Slack after importing. - Import reads a
.flow.jsonexport back onto the canvas.
After deploy
Deployed squads live with your other apps in the dashboard: chat with them, watch usage, manage their share links, and edit them at any time — reopening a deployed flow in the Flow Builder restores the full canvas (topics, handoffs, data sources, and email credentials included).
Next: Routing Modes · Custodians & Tools · Data Sources & RAG · Best Practices