Workflow
Build reusable multi-step processes that agents can invoke as tools.
What is a Workflow?
A workflow is a shared, reusable process made up of connected nodes on a visual canvas. Each node performs a specific step, for example, triggering on a user message, calling a tool, reasoning with an LLM, or branching based on a condition. Nodes are linked together to form an end-to-end flow.
Workflows let you define multi-step processes as visual graphs and attach them to agents. When connected, an agent can invoke a workflow as a tool during a conversation to run structured logic, such as searching a knowledge base, calling MCP tools, branching on conditions, and returning a formatted response.
Workflows are created in the Workflow Builder and can be scoped to an organization or project. Once attached to an agent, the agent’s runtime can execute the workflow as a callable tool during chat.
When to Use Workflows
Use workflows when you need repeatable, multi-step logic that goes beyond a single tool call:
- Structured processes → onboard a customer, triage a support request, or run a fixed sequence of steps in order.
- Tool orchestration → chain knowledge base search, database queries, MCP calls, and response formatting in one flow.
- Conditional routing → branch based on user input, tool output, or intermediate results.
- Reusable automation → build once and attach the same workflow to multiple agents across your organization.
For one-off tool calls without a defined process, connect MCP servers, databases, or built-in tools directly to the agent instead.
Tips & Tricks
- Start with a clear trigger → every workflow begins with a FTrigger node that receives the user’s message. Define what variable stores the input so downstream nodes can reference it.
- Use AI generation for a head start → when creating a workflow, describe your goal in plain language and let the AI Workflow Generator produce an initial graph you can refine in the builder.
- Activate before attaching → toggle a workflow to Active in the builder before connecting it to an agent. Inactive workflows cannot be executed.
- Check run history → after testing with an agent, open Run History in the builder to review each step, duration, and any errors.
- Use variables → reference outputs from earlier nodes with
{{variable}}syntax in tool parameters and response templates.
Ready to build your first workflow? See Setup & Configuration.