# How to Add Custom Node.JS Code to the Flow?

Source: https://support.godzillamktg.com/crm/how-to-add-custom-node-js-code-to-the-flow

## Run Custom Node JS Code

Drag and drop the Run Custom to start using the code editor

![](https://support.flowtrack.co/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8dae591e-0a16-4934-bd14-a283c4185346%2FUntitled.png?id=bb0d49c9-ab38-49a2-bd97-5123bdbfc01c&table=block&spaceId=4016a1bf-2f21-41a2-8cdc-a28e6ed2d134&width=2000&userId=&cache=v2)

## Inside Code Editor

Here is the Custom Node.JS code that you can insert. You can also create a the variables from here.

![](https://support.flowtrack.co/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F326651c3-a7c2-4968-93f7-cb699ef091d8%2FUntitled.png?id=a66962ee-f447-45e9-b9d3-67f7458163f7&table=block&spaceId=4016a1bf-2f21-41a2-8cdc-a28e6ed2d134&width=2000&userId=&cache=v2)

## Adding the Node JS Function Code

You can add the Node JS Function Code along with the function input/output parameters.

![](https://support.flowtrack.co/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F35b9a229-17db-4556-91f9-efd9a711c619%2FUntitled.png?id=ff87cf82-a3cd-4e45-b7b1-12be90364e31&table=block&spaceId=4016a1bf-2f21-41a2-8cdc-a28e6ed2d134&width=2000&userId=&cache=v2)

## Save

Save all the settings and you are good to go.

![](https://support.flowtrack.co/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F0f713647-c913-43fe-b36c-8b701326df7a%2FUntitled.png?id=492e7fb2-1d3f-4931-8826-e8b913739cb4&table=block&spaceId=4016a1bf-2f21-41a2-8cdc-a28e6ed2d134&width=2000&userId=&cache=v2)
