Skip to main contentRunchat supports automatically generating output parameters from object keys to easily define parametric relationships between nodes.
Creating Parameters
Runchat enables parameters to be generated from object
datatypes. When you enable creating new parameters from the Code
or Agent
node, Runchat will generate a new output parameter for each key in the object. An object
can be created using the Object Input
, generated from the Agent
or Code
nodes.
Creating Parameters in the Code Node
Expand the settings on the Code Node and click the Create Parameters
toggle. The next time the node is run, runchat will check if the first item in the output is an object
, and if it is will create output parameters for each key.
Creating Parameters in the Agent Node
You will only see the option to create new parameters when you specify an object
type as the Format
for the output. Set a “custom” output format for the node, then specify the object
type. Then toggle the Create New Parameters
option from the node settings bar. The next time the node is run, runchat will check if the first item in the output is an object
, and if it is will create output parameters for each key.
Dynamically publishing parameters
Because parameters are generated dynamically developers will not be able to manually set which parameters are exposed to the user. Instead, all parameters can be published by enabling the Publish All
option in the node settings.