Request a demo
← All articles How it works

Human in the loop: how a run pauses for a person and picks up again

Where to put a human step in an agent, what the HUMAN_INPUT node asks for, how the runtime saves the run while it waits, and how the answer resumes it from the same point.

The fastest way to lose trust in an agent is to let it guess when it should have asked. A claim form with a missing policy number, a low-confidence classification, a refund above a limit: these are moments for a person, not a model. Insight AI Assist treats them as a step in the design, so the pause is as visible and as auditable as everything else.

In short

A HUMAN_INPUT node pauses the run and asks for one or more named values. The runtime saves the run's state while it waits; the person sees the prompt and a field for each value; submitting resumes the run from the same step with the answers in its data. The pause and the answer are part of the run's record.

What the human step asks for

SettingWhat it does
promptThe question shown to the person, for example “Confirm the call list for today's late orders.”
input_keyThe name the answer is stored under, so later steps can use it (for example call_owner)
requiredWhether the run can continue without an answer
timeout_secondsHow long the step waits (an hour by default)
inputsOptional: several values at once, each with its own prompt, key and required flag

A human step can also take its questions from the data: placed after a data validator, it asks for exactly the fields the validator found missing, which is how the claim intake example asks a person to fill gaps in a form rather than inventing them.

Pause and resume

When a run reaches the step, the runtime saves the run's state with its checkpointer and sends a workflow_paused event naming the step, the prompt and the values it needs. In the designer, a dialog titled Input needed to continue shows each value with its prompt; the execution log reads Paused: waiting for input. In Agent history the run shows as paused.

The designer with a dialog titled Input needed to continue, asking for call_owner with the prompt Confirm the call list for today's late orders, and the execution log showing the run paused and waiting for input.
A made-up late-order digest pauses at its human step. The log shows the tasks before the pause; the dialog asks for the call list.

Submit & resume sends the run's id and the answers back to the runtime, which continues from the paused step. Tasks that finished before the pause are not run again, so a pause is safe even after expensive steps. The answer becomes part of the run's data and of its stored result.

Example · a made-up operations team

Fernhill's morning late-order call list

Fernhill Supply (fictional) runs a small agent each morning: it loads the open orders, flags those more than two days late, and pauses for Maya, the operations lead, to confirm who calls each customer. Today two orders are late; Maya types Jordan calls Marlow Print Co; Priya calls Oakridge Dental and resumes. The run completes, and the call list she confirmed is in the run's stored result if anyone asks tomorrow what was agreed.

Asking for several values at once

The inputs setting turns one pause into a short form. A made-up refund agent, for example, might stop once and ask for three things:

input_keypromptrequired
approve_refundApprove the refund of {{ order.total }} for order {{ order.id }}? (yes / no)yes
refund_reasonReason code from the returns policyyes
note_to_customerAnything to add to the customer emailno

The person sees one field per row, with the placeholders filled in from earlier steps. On resume, the three answers sit in the run's data under their keys, so the next step, perhaps an IF on approve_refund, can read them like any other output.

Resuming from another system

Answers do not have to come from the designer's dialog. A run paused at a human step can be resumed through the API by sending the run's ID and a missing_data object whose keys match the input keys, which lets a team answer from a tool they already use. Whatever the route, the answer is stored with the run in the same way.

Where to put human steps

  • Before anything irreversible: sending to a customer, paying, deleting, changing a record of truth.
  • When the data is incomplete: after a validator, ask for the missing fields instead of guessing.
  • When confidence is low: route on a model's confidence score, and send only the unsure cases to a person.
  • Above a limit: a refund, discount or claim value above a threshold.
Ask precise questions. A prompt like “Approve?” gets a yes without a look. “Confirm the call list for today's late orders” or “Policy number missing: enter it from the form” gets an answer worth recording.

Waiting well

A paused run is a piece of work waiting on someone, so treat paused runs like a queue. Agent history counts runs that are running or paused and can be filtered by status, which makes a quick daily check easy. Set timeout_seconds to match how quickly the answer is really needed: a morning call list can wait an hour, a fraud hold may need longer. And put the context a person needs in the prompt itself, using placeholders from earlier steps, so they can answer without opening three other systems.

A checklist for each human step

  • Is the question answerable from the prompt alone, with the context filled in by placeholders?
  • Does each answer have a clear input_key that a later step actually reads?
  • Is "required" set honestly? An optional answer that later steps rely on is a bug waiting to happen.
  • Is there a branch for "no"? An approval step needs a path for a refusal, not just for a yes.
  • Does the timeout match how fast a real answer arrives?

Questions process owners ask

Who can answer a paused run?

Any signed-in user who can open the run; the answer is recorded against the run. If only certain people should answer a given step, say so in the prompt and in the runbook, and check the answers in history.

Do the steps before the pause run again on resume?

No. The saved state carries their outputs forward, so an extraction or model call that ran before the pause is not repeated.

How many human steps is too many?

If every run pauses, the agent is a form with extra steps. Aim for pauses on the cases that need judgement; route the clear cases past them.

See it at scale: a claim intake agent with two human checkpoints.

See it on one of your processes

Bring one process you'd like an agent to run

We'll design it with you on the canvas, run it on sample data, and show the run log and history, as a hosted trial or in your own cloud.

Request a demo