Processing Data with Code

Autom8 AI gives you full flexibility to transform and manipulate data using custom code.


Function Node

The Function Node allows you to write JavaScript or Python to customize how data is handled. You can:

  • Add, remove, or modify fields

  • Loop through items

  • Reshape complex data structures

  • Perform conditional logic

You have direct access to the incoming data and can return precisely what you need for the next node.


Why Use It?

Use the Function Node when:

  • Built-in transformation nodes don’t cover your use case

  • You need custom logic based on dynamic data

  • You're integrating complex or inconsistent data sources


Example (JavaScript)

javascriptCopyEditreturn items.map(item => {
  item.json.processed = true;
  return item;
});

This adds a processed: true flag to each item in the flow.

Last updated