Scripts
User can write custom code in JavaScript to fetch HTTP APIs, execute custom logic, return output data and outcome. Other nodes can access and make decisions on output/outcome.
Features
// name=SCRIPT_NODE1
export async function onExecute(input, config) {
console.log('hello from script node!');
const resp = await fetch('https://jsonplaceholder.typicode.com/users/1');
const body = await resp.json();
// π return [data, outcome]
return [{FIELD1: 'one', FIELD2: 42, userName: body.name}, 'OUTCOME2'];
}Mapping data and outcome
data and outcomeLast updated