Heliont Contract Generator icon

Heliont Contract Generator

Create the global contract object

Heliont Contract Generator

AI-generated

Summary

Generates a contract object from JSON input, stores it in workflow static data, and outputs stripped items and the contract.

Inputs

  • main (required) — Input items to process; each item's JSON is stripped of contract data via the stripContract helper.

Output shape

split

The node splits into two output streams: 'Output' and 'Contract'. Both are of type 'main'.

Examples

Example 1: Initialize a contract and pass data through for further processing

Set the 'Contract (JSON)' field to a valid JSON object (e.g., {type: 'sale', terms: {...}}). Connect an upstream node providing items to the node's main input. The first output ('Output') yields the same items with contract data removed; the second output ('Contract') yields a single item containing the stored contract under json.contract.

Discussion