Skip to main content

Run Agent

Run another agent with the inputs you give it, and keep the outputs it gives back.

Command in the Core toolkit · id core/run_bot · 11 inputs (1 required), 4 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
AutomationStringYesId of the published automation.
VersionAnyNoVersion number or 'production' (default).
InputsDictionaryNoValues for the child's input variables.
Output mapDictionaryNoChild output name to the variable of this agent that receives it, e.g. {"total": "invoice_total"}.
Timeout (seconds)NumberNoStop the child with CHILD.TIMEOUT when one run takes longer than this; no limit when empty.
Same sessionBooleanNofalseShare this agent's open sessions (workbooks, browsers, connections) with the child; sessions the child opens stay open for this agent.
Fail on errorBooleanNotrueFail this step when the child fails; when off, set status to failed and the error output and carry on.
RepeatNumberNo1Run the child this many times in a row.
Repeat delay (seconds)NumberNo0Wait between repeated runs.
Repeat modeStringNotimesHow often the child runs: a number of times, again and again for a length of time, or again and again until the run is stopped.
Repeat for (seconds)NumberNoStart the child again until this many seconds have passed since the first run began; a run that has started always finishes.

Outputs​

OutputTypeWhat it is
outputsDictionaryThe child's output variables (of the last run when repeated).
statusStringChild run status: success or failed.
errorDictionaryThe child's error (code, message, stepId) when it failed and fail_on_error is off; empty otherwise.
runsNumberHow many times the child ran.