Skip to main content

Processing Components

Processing components transform, combine, and manipulate data as it flows through your automation. Use them to prepare data for conditions, format content for actions, or extract specific values.

Data Object Fundamentals

All data in Agent Studio flows as Data objects - structured key-value containers:
Processing components modify these objects—adding fields, filtering keys, combining multiple objects, or extracting specific values.

Create Data V2

Creates a new Data object with specified key-value pairs.

When to Use

  • Initialize data at the start of a flow
  • Create structured data from multiple sources
  • Build payloads for API calls or actions

Configuration

Example: Build Email Context

Configuration:
Output:

Update Data V2

Adds or updates fields in an existing Data object.

When to Use

  • Add computed fields to existing data
  • Append metadata or timestamps
  • Modify values for downstream processing

Configuration

Example: Add Timestamp and Flag

Input:
Configuration:
Output:

Filter Data V2

Creates a new Data object containing only specified keys.

When to Use

  • Remove sensitive fields before logging
  • Reduce data size for downstream processing
  • Extract specific fields from complex objects

Configuration

Example: Keep Only Essential Fields

Input:
Configuration:
Output:

Extract Key V2

Extracts a single value from a Data object.

When to Use

  • Get a specific field for a condition
  • Extract a value to use as a standalone input
  • Access nested values

Configuration

Example: Extract Nested Value

Input:
Configuration:
Output:

Combine Data V2

Merges multiple Data objects into one.

When to Use

  • Combine data from multiple sources
  • Merge results from parallel paths
  • Aggregate data for reporting

Configuration

Operations Explained

Concatenate

Combines arrays of Data objects into a single array.

Append

Adds new Data objects to an existing array.

Merge

Combines fields from multiple objects into one (later values override earlier).

Join

Combines objects based on a common key.

Select Data V2

Selects a single item from a list of Data objects by index.

When to Use

  • Get the first or last item from a list
  • Access a specific item by position
  • Extract one result from a query

Configuration

Example: Get First Account

Input:
Configuration:
Output:

Example: Get Last Item

Configuration:
Output:

Calculate Expression V2

Evaluates mathematical expressions on data fields.

When to Use

  • Compute percentages or ratios
  • Perform arithmetic operations
  • Calculate derived metrics

Configuration

Supported Operations

Example: Calculate Percentage

Input:
Configuration:
Output:

Current Date V2

Returns the current date and time in a selected timezone.

When to Use

  • Get the current timestamp for data enrichment
  • Compare dates in conditions
  • Add timestamps to records or messages

Configuration

Output Data


Date Formatter V2

Automatically formats all date fields found in a Data object to a specified format.

When to Use

  • Standardize date formats before sending emails or Slack messages
  • Convert ISO dates to human-readable formats
  • Prepare data for external API calls that require specific date formats

Configuration

How It Works

The component recursively scans all fields in the input Data object (including nested objects), detects ISO date strings, and reformats them to the specified format.

Example

Input:
Configuration:
Output:

Using @ Notation

The @ symbol references values from incoming data:

Dynamic Field References

You can build field references dynamically:
If priority_level is “high”, creates field alert_high.

Common Patterns

Pattern: Data Enrichment Pipeline

Pattern: Data Filtering Before Action

Pattern: Aggregate Multiple Sources

Pattern: Extract and Validate


Fetch Object Data V2

Fetches the latest data for an entity from the database, returning a fresh Data object. This is useful when earlier components in the flow may have modified entity data (e.g., after a Sleep component or Human-in-the-Loop pause) and you need the most current values.

When to Use

  • After a Sleep V2 component, to get updated data that may have changed during the wait
  • After a Human-in-the-Loop pause, to pick up any manual changes
  • When you need to re-read entity data that another automation may have modified
  • To ensure downstream components work with the latest field values

Configuration

Output Data

Returns a Data object with all current fields for the entity, identical in structure to what the trigger segment provides.

Example: Refresh After Sleep


Best Practices

Start with Create Data for essential fields, then use Update Data to add more as needed.
Remove sensitive or unnecessary fields before sending data to external systems.
Use descriptive key names that indicate the data’s purpose and origin.
Use conditions to check if required keys exist before processing them.

Next Steps

Logic Components

Add conditional routing

Action Components

Use processed data in actions