Skip to Content
ToolsWorkflowSetup & Configuration

Setup & Configuration

Create, configure, and connect shared workflows in Chocolate Factory.

For background on what workflows are and when to use them, see the Overview.

Manage Workflows

Workflows are managed from the Workflows page in the main menu. From here you can view all shared workflows in your organization or project, search by name, and see which agents use each workflow.

Workflow management page

Create a Workflow

To create a new shared workflow:

  1. Navigate to Workflows in the main menu.
  2. Click New Workflow.
  3. Choose how to create it:
    • Manual → enter a Name and optional Description, then click Create & Open Builder.
    • Generate Workflow with AI → describe what the workflow should do in natural language. The AI generates a complete graph with nodes and connections, using available MCP servers as context when relevant. Click Generate & Open Builder.
  4. Once workflow created, You will be directed to the Workflow Builder to create the workflow graph.

Create workflow

Configure a Workflow

The Workflow Builder is a visual canvas where you design your process. Drag nodes from the palette, connect them, and click a node or edge to configure its settings.

Workflow builder example

Node types

NodeDescription
TriggerStarting entry point of the workflow from a chat message.
ThinkLLM reasoning step with no external tool call.
RespondSend an intermediate message to the user.
ToolInvoke a built-in tool, MCP tool, or database query.
AgentDelegate to another agent and use its response.
BranchRoute the flow based on conditions.
WorkflowRun a sub-workflow and pass output downstream.
Output / EndTerminal node that produces the final result.
DelayPause execution for a set duration (up to 30 seconds).

Activating Workflows

  • Click Save to persist changes. Each save increments the workflow version.
  • Toggle Active in the header to enable or disable execution. Only active workflows can run when invoked by an agent.

You can also edit the workflow name and description from the builder header.

AI-generated workflows are a starting point. Review and adjust nodes, connections, and parameters in the builder before activating and attaching to agents.

Run History

Click Run History to review past executions triggered by agents using this workflow.

Workflow run history

Each run shows the conversation, agent, status, duration, and a step-by-step execution log. Expand a run to see individual node outputs, errors, and timing, which is useful for debugging failed or slow workflows.

Connecting Workflows to Agents

A workflow must be attached to an agent before that agent can invoke it during a conversation:

  1. Navigate to Agent from the main menu → open the agent from Agents Management.
  2. In the Tools tab, then scroll to the Shared Workflows section and click Add Workflow.
  3. Click Add on the workflow you want to connect.
  4. Save the agent configuration.

Connect workflow to agent

The workflow must be Active to execute. Attached workflows appear under Shared Workflows on the agent configuration page. Click the workflow name to open it in the builder.

See Setup & Configuration for the full agent configuration guide.

Last updated on