Skip to content

Human in the Loop

Fontana treats human approval as a control. Agents analyse, draft, and propose; a consequential change waits until you approve it. Chat threads pause on structured forms, canvas edits need an explicit apply step, and natural-language operation compiles stay pending until you confirm. Every path leaves records you can review alongside Compliance evidence.

Suggestions

Surface workflow suggestions in-thread so reviewers can accept or reject proposed changes without leaving the audit trail.

Human In the Loop Form

Collect questionnaires, clarifications, and approvals as structured forms embedded directly in the agent thread.

Not every AI step needs a click. Fontana separates assist work, which runs under your agent and RBAC settings, from approval-gated work that changes production rules, outputs, or control policies.

Agents assist on their own You approve
Analyse files, schemas, and source outputs Changes to production rules or workflow boundaries
Infer fields, mappings, and validation checks for review Exceptions, outputs, and control changes
Draft operating specifications and mapping proposals Operational steps in production
Explain breaks, exceptions, and supporting evidence Changes to named owners, approval gates, or control policies
Propose workflow configuration before it is applied Work outside defined permissions and data-class boundaries

Each agent’s permission allow-list, your role, and the agent’s abilities narrow what runs without a human step.

The main chat checkpoint is the built-in hitl_askHuman tool, which every chat agent has. The agent calls it when it needs a question answered, a confirmation, or a choice. The thread pauses until you submit the form or send a chat message instead, and Flow renders the form in the chat’s supplementary drawer. When several forms are pending, you page through them one at a time. While a form is open, the thread status shows that the agent is waiting for you.

Input:

Field Required Purpose
schema No A JSON Schema object describing fields, types, validation, and question copy (title, description). Omit it when the choice is only the action buttons
uiSchema No UI hints (widgets, layout) following react-jsonschema-form conventions
actions No Named buttons that replace the default Submit control. Each item is { id, label, color? }; colour is one of gray, blue, sky, teal, green, amber, red, violet. Omit or pass [] for Submit plus Cancel. Include id: "cancel" to set Cancel’s label and colour

Response: a stringified JSON object { "action": "<button id>", "values": <form data or null> }. The default Submit uses "action": "submit". The agent reads action to branch (for example Send now against Save draft) and values for the field data. The turn continues after you click a button.

Every pending form shows Cancel, which submits { "action": "cancel", "values": null } without validating the fields. Stop on a tool row is a separate control. An unanswered form stays open for 24 hours; after that it closes and the agent continues.

Sending a message from the composer while a form is open closes that form in every send mode. The tool result is { "kind": "answered-in-chat", "message": "The user decided to answer in the chat instead of this form." }, and your message is included on the next turn. When the form was the only step still running, Steer, Queue, and Auto send that reply immediately; Interrupt also cancels any other tools still running.

Supported leaf types are boolean, string (including format hints such as date, date-time, email, and uri), number and integer (including ui:widget: "range"), enum (with or without an explicit type), array, and object. uiSchema widgets include textarea, password, range, radio, select (a Flow dropdown), and ui:readonly. const fields render locked to that value.

A property whose type is object with fixed properties renders as its own labelled group of sub-fields, to any depth. A free-form object with no fixed properties falls back to a JSON editor.

items shape of an array What you see
Enum of scalars Checkbox multi-select
Homogeneous string (no enum) Add and remove text rows
Object with fixed properties Add and remove structured cards
Tuple (items is an array of schemas) One control per position
Other item shapes JSON editor

Nested objects and arrays sit on a tinted wash under their parent label. Long forms scroll inside the drawer. A leaf with an unknown type still renders as a text input, so required fields stay fillable; its submitted value is the typed string.

Boolean approval:

{
"type": "object",
"properties": {
"approved": {
"type": "boolean",
"title": "Approve this change?",
"description": "Do you want to proceed with this modification?"
}
},
"required": ["approved"]
}

Named buttons: pass actions on the tool call, not inside the schema. Omit schema when the buttons are the whole choice. The result is { "action": "send_now", "values": { "body": "…" } } or { "action": "cancel", "values": null }.

{
"schema": {
"type": "object",
"properties": {
"body": {
"type": "string",
"title": "Message"
}
},
"required": ["body"]
},
"actions": [
{ "id": "send_now", "label": "Send Now", "color": "teal" },
{ "id": "save_draft", "label": "Save Draft" }
]
}

Single select: renders as buttons by default, or as a dropdown with uiSchema: { "ui:widget": "select" }.

{
"type": "object",
"properties": {
"priority": {
"type": "string",
"enum": ["low", "medium", "high"],
"title": "Priority level"
}
},
"required": ["priority"]
}

Multi-select checkboxes: an array of an enum always renders as a checkbox list.

{
"type": "object",
"properties": {
"categories": {
"type": "array",
"items": {
"type": "string",
"enum": ["urgent", "important", "optional"]
},
"title": "Select categories"
}
}
}

Number slider:

{
"type": "object",
"properties": {
"threshold": {
"type": "number",
"minimum": 0,
"maximum": 100,
"title": "Threshold"
}
},
"uiSchema": {
"threshold": { "ui:widget": "range" }
}
}

Several fields in one prompt: use an object schema with several properties, including nested object properties for grouped sub-fields. A boolean or single-select field renders as a one-click control when it is the only field in the form.

On a Slack-bound thread, an agent with Post and reply in Slack calls hitl_slackBlocks with Block Kit (and optional modals), and the card posts in that thread. From Flow chat, the agent passes the Slack installationId and channel to post an approval card to an operations channel; any linked Slack user may click Approve or Reject. Clicks return the same { action, values } envelope. hitl_askHuman completes in Flow only; Microsoft Teams sends you a link to the thread in Flow. See Chat Channels.

An agent that needs a credential calls system_requestWorkspaceSecret with the Workspace, the secret name, and a one-sentence reason. Flow shows an amber padlock badge in the chat that opens the Set secret dialog, and the value goes from the dialog to the Workspace. The agent receives { "status", "name" } and never a value:

status When
set You saved a value
declined You closed the dialog, or replied in the chat, Slack, or Teams instead
forbidden You cannot change secrets in that Workspace
invalid The name is not a valid secret name

The request completes in Flow; Slack and Teams send you a link to the thread. Agents collect secret values only through this dialog, because askHuman answers become part of the conversation. See Workspace secrets.

hitl_askHuman and system_requestWorkspaceSecret are deferred tools: nothing runs on the server until you answer in Flow. hitl_slackBlocks is deferred the same way and waits for the click in Slack.

Model turn completes, the tool call is stored as pending
↓
Flow shows the form
↓
You submit, the result is stored
↓
The thread schedules the next model turn

Every other agent tool (workflow queries, canvas edits, Knowledge Graph search, MCP calls) runs on the server after the same pending step, subject to the agent’s abilities and permissions. One active browser tab owns the open form per conversation, so duplicate submissions cannot race.

The canvas agent edits a draft workflow graph that belongs to the chat thread, not your saved workflow. When it finishes a batch of edits, Flow shows a suggestion card comparing the draft to your baseline. Nothing is written to the live canvas until you click Apply.

Step What happens
Agent edits Typed canvas tools update the thread’s draft
Review The suggestion card shows a structured diff in the chat or canvas panel
Apply The draft is promoted, with a three-way merge if you edited the workflow since the thread started
Conflict When agent and live edits overlap, you choose merge or overwrite in an explicit dialog

Auto-apply is opt in (a composer preference, off by default). With it off, every canvas change goes through Apply.

Natural-language operations compile review

Section titled “Natural-language operations compile review”

On Operations nodes, plain-English rules compile through the NL Operation Compiler agent. A successful compile lands in a pending card (dashed border) until you:

  • Confirm: merge the operations, edited or not, into the node.
  • Rephrase: send the description back to the composer for another compile.
  • Reject: discard the proposal.

Policy validation and automatic repair retries happen before the card appears, so you always see the final proposal before it affects workflow execution. Confirmed operations collapse in the editor, and the composer is disabled while a pending card is visible.

Human-in-the-loop checkpoints stack with the other AI controls:

Layer How it gates AI work
Abilities and MCP assignment A tool the agent is not granted is not callable
Permissions Each call runs with the overlap of your role and the agent’s allow-list; Flow hides admin and mutation surfaces your role lacks
Deferred tools hitl_askHuman and system_requestWorkspaceSecret in Flow, hitl_slackBlocks on Slack
Suggestion apply Canvas drafts replace a saved workflow only when you apply them
Compile review Operations are stored only after Confirm
Audit trail Tool calls, submissions, and apply actions write reviewable records

For the boundary between immutable security audit and operational telemetry, see Security audit (WORM) and Compliance evidence.

  • Agents: configure which personas may call which tools
  • Tools and MCP: built-in catalog, MCP assignment, and audit
  • Skills: temporary tool expansion during governed playbooks
  • Workflows: Operations nodes and compile behaviour