prompt_for_user_input method shows a form in the Narada browser UI and waits for the user to provide values for one or more workflow variables.
Use this when a Python agent needs structured input before it can continue.
For a higher-level guide covering both human-in-the-loop methods, see Human-in-the-Loop Steps.
Method Signature
Parameters
str
required
A stable identifier for this prompt step.
list[PromptForUserInputVariable]
required
The variables to ask the user to fill. Each variable has:
name: variable nametype: one ofstring,number,boolean,enum,dataTable,object, orarrayrequired: whether the user must provide a valueenum_values: allowed values forenumvariables
str | None
default:"None"
Text to show above the generated input fields. Use this to explain what the user should enter in plain language.
int | None
default:"300"
Maximum time in seconds to wait for the user response. The default is 300 seconds, and the maximum is 3600 seconds.
Return Value
Returns a dictionary keyed by variable name:UserAbortedError.
For dataTable variables, returned values use the canonical table shape: