variables | object | No | - | Top-level variables injected into the execution context before your code runs. • Keys must be valid Python identifiers (e.g., account_ids, keywords). • Values can be literals or placeholders like {{nodeId.data}}; placeholders are resolved and type-cast to the correct Python types automatically. Example: {“keywords”: “{{googleAdsNodeId.data}}”, “accounts”: “{{accountNode.data}}”} You can reference these directly in code (no imports or parsing needed), e.g.: result = {“count”: len(accounts), “first_kw”: keywords[0]} |
code | string | Yes | - | The Python code to be executed supports all standard and data analysis libraries. Examples include: pandas, numpy, requests, seaborn, urllib, nltk, beautifulsoup4. Follow the instructions below when writing your code: - Your code must return a result — place it as the last line so it is captured as the output. - To return multiple values, combine them into a single dict, e.g.: {“key1”: value1, “key2”: value2} - The final value must be one of these JSON-safe types: dict, list, str, int, float, bool, or None. - Do not print the result; only return it as the last expression. - Do not return complex objects such as DataFrames, NumPy arrays, sets, custom classes, or functions. Convert them to plain lists or dicts first. Important: Do not define or assign dynamic variables here. They are provided automatically and will already exist as direct variables in the execution context (e.g., if you defined ‘payload’ in variables, just use ‘payload’ directly in your code). |