Autom8 AI Docs
  • Introduction to A8I
  • Quick Start
    • Your First Workflow
  • Workflows Explained
    • Create and Run a Workflow
    • Workflow Components
    • Executions
    • Manual, Partial, and Production Executions
    • Workflow Executions
    • All Executions
    • Custom Execution Data
    • Debug and Re-run Past Executions
    • Tags
    • Export and Import Workflows
    • Workflow Templates
    • Workflow Sharing
    • Workflow Settings
  • Flow Logic
  • Data
    • Data Structure
    • Data Flow Within Nodes
    • Transforming Data
    • Processing Data with Code
    • Data Mapping
  • AI Assistant
  • Glossary
  • Integrations
  • Build an AI Chat Agent in Autom8 AI
Powered by GitBook
On this page
  1. Data

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.

PreviousTransforming DataNextData Mapping

Last updated 5 days ago