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

Data Mapping

In Autom8 AI, you can dynamically access and map data between nodes using the Expressions Editor. This lets you reference specific fields from previous steps or the current input—essential for building flexible, data-driven workflows.


Mapping in the Expressions Editor

Expressions let you access structured data using dot notation and built-in variables.


Access Data from a Previous Node

To retrieve data from a specific node earlier in the workflow, use:

handlebarsCopyEdit{{ $('NodeName').item }}

To access a specific value like a name:

handlebarsCopyEdit{{ $('NodeName').item.json.name }}

Example Input from a Previous Node

jsonCopyEdit[
  { "id": "23423532", "name": "Jay Gatsby" },
  { "id": "23423533", "name": "José Arcadio Buendía" },
  { "id": "23423534", "name": "Max Sendak" },
  { "id": "23423535", "name": "Zaphod Beeblebrox" },
  { "id": "23423536", "name": "Edmund Pevensie" }
]

Using the expression above would extract the "name" field from each item.


Access Data from the Current Node’s Input

To reference the input item currently being processed:

handlebarsCopyEdit{{ $input.item }}

Or, to get a specific field:

handlebarsCopyEdit{{ $input.item.json.name }}

This is useful for mapping data within a single node or when using branching logic.


Quick Tips

  • Use drag-and-drop mapping for speed, or type expressions manually for precision.

  • Expression references are context-aware: make sure you're referencing the correct node and field.

  • Refer to Item Linking Errors in the docs if your mapping doesn’t behave as expected.

PreviousProcessing Data with CodeNextAI Assistant

Last updated 5 days ago