Workflows
Workflows
Build visual automations that chain inputs, AI, knowledge base, agent tools, MCP integrations, HTTP, and code—with manual run, webhooks, and schedules.
Workflows
Workflows let you design repeatable automations as a simple diagram: each box is a step, and lines define the order steps run. You can run a flow from the dashboard, trigger it with a webhook, or run it on a schedule.
They complement chat agents: the same knowledge base, built-in tools, and MCP integrations can be used inside a workflow, but the flow runs as a scripted pipeline (with a clear result and run history) instead of a back-and-forth conversation.
Why use workflows
- Consistency — The same steps run the same way every time (manual, scheduled, or event-driven).
- Composition — Combine inputs, LLM steps, KB retrieval, agent tools, MCP tools, HTTP calls, and sandbox code in one place.
- Automation — Webhooks connect external systems; schedules run flows at a fixed interval.
- Visibility — Recent runs show status, errors, and technical detail for support or debugging.
How to build a flow
- Add steps — Use the + menu on the canvas to place steps (grouped by purpose: inputs & outputs, apps & code, logic, AI & knowledge).
- Connect steps — Drag from the handle on the right of one step to the handle on the left of the next. The graph must stay a valid order (no cycles).
- Configure — Click a step to edit its settings in the right panel (display name, keys, prompts, URLs, and so on).
- Save — Persist your diagram before running or enabling automations.
- Run — Use Run now; manual values for Input steps live on the Run & automate tab when present.
Triggers
| Trigger | What it does |
|---|---|
| Manual (Run now) | You start the run from the dashboard and optionally fill fields that feed Input steps. |
| Webhook (POST) | Another system sends an HTTP POST to your workflow URL with a secret header. JSON body fields populate the input bag when keys match Input steps. |
| Dashboard API | POST /api/v1/flow/{workflowId} with org JWT or wb_live_ API key and body { "inputs": { … } }. See Triggering workflows. |
| Schedule | While Scheduled runs is on, the deployment runs the workflow on a timer (about once per chosen interval). The next approximate run time is shown when scheduling is enabled. |
Step types (overview)
Data in and out
| Step | Purpose |
|---|---|
| Input | Named fields: text, JSON, number, or file upload (stored securely; later steps receive a file reference). |
| Output | Defines the workflow result (what shows up as the primary output for a completed run). |
AI and knowledge
| Step | Purpose |
|---|---|
| LLM | Calls the configured model with your prompt; optional file text extraction, vision on an image, or slide-outline style Markdown. |
| KB preflight | Retrieves scoped knowledge snippets the same way as before an agent turn (uses your default agent or a chosen agent with linked knowledge files). |
| KB search | Runs the same vector knowledge search as chat agents. Requires a real conversation thread id and query supplied via your inputs (for flows tied to live chats). |
Agents and tools
| Step | Purpose |
|---|---|
| Agent turn | Runs one full channel agent turn (tools, KB preflight, message save) for a real thread, contact session, and user message—the same stack as WhatsApp/Telegram-style agents. |
| Agent tool | Runs a single built-in or custom tool (search, booking, escalate, resolve, MCP-backed tools, or custom:…) for a thread and session—same execution path as chat tools. |
| MCP tool | Calls a tool on a connected MCP integration (Notion, GitHub, Slack, Google, custom MCP server, and so on). Pick the integration, tool name, and JSON arguments (from an input field or default JSON). Connect integrations under Integrations first. |
Integrations and code
| Step | Purpose |
|---|---|
| HTTPS | GET/POST to an https:// URL. You can substitute Input values into the URL using {{fieldName}} placeholders. |
| Code | Runs bash, Python, or Node in an E2B sandbox when your deployment has E2B_API_KEY configured. Receives context (inputs, trigger, payload, input bag). |
| Page crawl | Headless browser fetch of an https:// URL — returns title and readable markdown (good for JS-heavy pages). Requires E2B. |
| Computer use | Launches apps in an E2B desktop sandbox (browser, IDE), optional bash script, optional screenshot. Requires E2B. |
| Transform | Reads one field from upstream data using a dot path (for example bodyPreview or nested.field). |
| Condition | Branches the graph based on input values or expressions. |
| Log | Emits a log line (in the deployment logs or sandbox, depending on configuration). |
Run history and debugging
- Each Run now, webhook, or scheduled execution appears in recent runs with status, timestamps, and error detail when something fails.
- Webhook and schedule toggles live under Run & automate (generate or rotate the secret there; keep it out of client-side code).
Requirements and limits (operators)
- LLM steps need a model provider configured for your organization (the same kind of setup that powers agents).
- Code and some outbound HTTPS paths may require sandbox credentials to be enabled for your workspace—your administrator configures this.
- KB search, Agent turn, and Agent tool steps that rely on a conversation must receive a thread (and usually a contact session) that belongs to your organization—they are not a substitute for creating chats out of thin air.
- MCP tool requires a connected integration that supports remote tool calls. Older connector types that do not expose tools the same way are not supported (errors match what you see when using MCP elsewhere).
Related documentation
- Wisebot CLI and HTTP API — Full
wisebotreference (status, agents, logs, webhooks, andworkflow trigger) plus/api/v1/…HTTP usage - TypeScript SDK (
@wisebotai/sdk) — Typed agents, SSE chat, playground,workflows.run() - Triggering workflows (HTTPS & CLI) — Webhook URL, dashboard API, curl,
wisebot workflow trigger - Custom tools + MCP validation pack — Four custom tool specs and MCP/REST validation checklist
- Example workflows — Patterns you can build (summaries, webhooks, schedules, MCP, agent tools)
- Templates and real use cases — Starter graphs and who uses them (support, sales, ops, engineering)
- MCP overview — Connections used by MCP tool steps
- Built-in tools — Tool names and behavior aligned with Agent tool
- Retrieval and RAG — How knowledge powers KB steps
- E2B sandboxes for AI agents — mental model for sandboxed code and tool runs
- Serverless GPU for model serving — when custom inference sits beside LLM steps