Transformer Nodes

This page describes the Transformer nodes in the Automations workflow builder.

Transformer nodes

Purpose: Allows you to transform data from one format to another using various transformer functions. They are highly versatile and can be used for a variety of tasks, such as data manipulation, formatting, and conversion. Learn how to configurate transformer nodes below.

Transformer functions

The transformer node features various transformer functions that you can specify.

Join transformer

  • The Join transformer allow you to join together a list of items into a single text. It can be joined together with a new line, tab or any form of custom characters.

  • The value to join has to be a list of items.

  • The join transformer always outputs a string.

Map transformer

  • The Map transformer allows you to modify each item in a list with something new. For each item you can choose to pick something from the current context (current item), or something completely new.

  • The map transformer always outputs a list with the new modified values.

Using multiple transformers

In cases where you would want to use multiple transformers to accomplish a task, you can approach this in two ways.

In the example we will consider the use case of transforming the sources and joining them together.

Approach
Description
Pros
Cons

Approach 1

Create a transformer node with the transformer map and feed that output into a transformer node with the join transformer.

  • Clear separation of transformers.

  • Easier to debug each transformer separately.

  • More nodes to manage.

  • Slightly more complex setup.

Approach 2

Create a transformer node with the transformer join and in the input select map and specify the map.

  • Fewer nodes to manage.

  • More streamlined setup.

  • Less clear separation of transformers.

  • Harder to debug if something goes wrong.

Last updated

Was this helpful?