Skip to Content
Browser UtilswriteOutput

writeOutput

Write a value to the flow’s output. The key must be defined in the flow config’s output array.

Signature

await utils.writeOutput(key, value)

Parameters

ParamTypeDescription
keystringOutput key (must match config)
valueProfileOutputValueValue to store (see accepted types below)

Accepted Value Types

TypeConstraint
string | number | booleanPrimitive values
ArrayMax 20 elements, each must be a primitive
ObjectMax 10 entries, values must be primitives

Examples

await utils.writeOutput("status", "SUCCESS"); await utils.writeOutput("balance", 123.45); await utils.writeOutput("tokens", ["ETH", "USDT", "BTC"]); await utils.writeOutput("data", { token: "abc", verified: true });

Error Handling

Throws if the key is not defined in the flow config’s output array.

Last updated on