Skip to main content
Candu Actions has two modes. Chat mode is freeform — the user types whatever they want and the AI matches their intent to any available action. Wizard mode is structured — you define a sequence of steps, each with its own question, available actions, and completion criteria. Use wizards when the workflow has clear stages and you want the AI to move through them in order.
New to wizards? Read What is a wizard? for the conceptual overview before diving into config.

How wizards work

At each step, the wizard shows a specific question, gives the AI a focused prompt (stageBooster), exposes only a declared subset of actions (availableActions), and advances when the AI confirms the step’s completionCriteria is met. At runtime, the stageBooster is appended to the agent’s system prompt for that step only. Actions outside availableActions are not exposed to the model at all — they’re invisible, not just discouraged.

Wizard config

Notice segments_create is in step 1 but not step 2. Once created, the AI can’t accidentally create another one.
completionCriteria is a natural-language description the AI checks each turn — when satisfied, the wizard advances. Write it as a clear outcome statement, not an instruction.

Action scoping per step

This is the most important concept in wizard design. Each step declares exactly which actions are available. Actions not in the list are invisible to the AI for that step. It cannot call them, reference them, or accidentally trigger them.
As a rule: include every action the AI might legitimately need at a step. Remove actions that should no longer be available once the primary goal of a step is complete.

Writing a good stageBooster

A strong stageBooster has four parts: context (what the user is doing), guidance (what the AI should do), constraints (scope and format rules), and formatting (how the response should look).
The labels are pedagogical — they don’t appear in the live config. In your actual stageBooster string, run the four parts together as one passage. The structure is the discipline; the prose is what the model sees.

Launching a wizard

Wizards are typically triggered from a button or link in your app — for example, a “Create your first segment” CTA on an empty state.

See it run

The Create a Segment walkthrough shows this exact wizard config running end to end — every tool call, payload, and confirmation step.