Human Input
The Human Input component pauses a flow so a human can review content and choose an action. Each configured User Action becomes a branch output. After the human makes a decision, the flow continues only on the selected branch.
Use the Human Input component in a flow
This example gates a flow with Approve and Reject branches:
- Add a Human Input component from Flow Controls.
- In Form Content, enter text for the human reviewer, such as
Review this summary before it is sent to the customer. - In User Actions, keep the default values Approve and Reject. Optionally, add a custom label, such as Escalate. Each action adds a matching output handle to the component.
- Connect the Approve output to the components to run when the request is approved.
- Connect the Reject output to an alternate path, such as a Chat Output component that explains the rejection.
- Run the flow in the Playground. When execution reaches the Human Input node, select an action in the approval pane to resume the flow.
Each User Action label maps to a stable action_id in API resume requests. For example, Request Changes becomes request_changes.
Configure timeouts and fallback
Enable fallback to create a new output handle from the component. If no decision arrives before the configured timeout, Langflow routes to this Fallback output.
To handle unanswered requests, do the following:
- In the component inspection panel, select Enable Fallback.
- Set the Timeout time.
- Connect the Fallback output to the logic that should run when the timeout expires.
Human Input parameters
| Name | Display name | Description |
|---|---|---|
prompt | Form Content | Content shown to the human for review. |
decisions | User Actions | Actions the human can select. Each action becomes a component branch output. |
timeout | Timeout | When Enable Fallback is on, how long to wait for a response before taking the fallback path. |
enable_fallback | Enable Fallback | When enabled, adds a Fallback output used when no user action is answered within the timeout. |
Some parameters are hidden by default in the visual editor. You can modify all component parameters through the component inspection panel that appears when you select a component.
Use HITL in a flow
For a video example, see the Langflow 1.11 release blog.
See also
Was this page helpful?