Getting Started with Data enrichmentUpdated 09/12/2019


The Processor connector gives you the flexibility you need to transform the data according to your needs. Inside the connector, you can write javascript code on Users and Accounts respectively with the Processor connector and the Account Processor connector.

How to configure the Processor

Start by installing Hull's Processor Connector. Give it a name and a description. Then, select the User segments on which you want to apply your code:

processor user

You can add custom variables that you want to use directly inside your Processor code. For instance, define a variable name called api_key that will take as a default value 25kt and access it inside the processor as variables.foo. Note that these custom variables can only be defined as strings.

Screenshot 2019-12-03 at 10.45.37 (1)

How to configure the Account Processor

Start by installing Hull's Account Processor Connector. Give it a name and a description. Then, select the Account segments on which you want to apply your code:

processor account

You can add custom variables that you want to use directly inside your Processor code. For instance, define a variable name called api_key that will take as a default value 25kt and access it inside the processor as variables.foo. Note that these custom variables can only be defined as strings.

account custom variables

How to transform User and Account data using the Processor

Once you have configured either your User or Account Processor connector, you can start coding. To do open the Code editor using the button inside the Overview page of the connector: michal

To have input data, you need to load the payload on the left by selecting a user email or user id. Then, apply some code in the Code section in the middle.

You will be able to see the results of your code inside the Console section on the right.

Note

We recommend you read the full documentation for these connectors to get a good understanding of the proper way to manipulate data

⚠️ Warning ⚠️:

You can test the code as much as you want. Unless you hit the Save button, the code will not impact the data flow.