---
title: How to Add Custom Node.JS Code to the Flow?
description: "## Run Custom Node JS Code Drag and drop the Run Custom to start using the code editor ![](https://crmhelpdocs.com/wp-content/uploads/2023/10/image-154-1024x446.png) ## Inside Code Editor Here is the Custom Node.JS code that you can insert. You can also create a the variables…"
url: "https://crmhelpdocs.com/docs/how-to-add-custom-node-js-code-to-the-flow/"
updated: "2023-10-10"
category: "Automation | Flows"
---

# 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://crmhelpdocs.com/wp-content/uploads/2023/10/image-154-1024x446.png)

## Inside Code Editor

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

![](https://crmhelpdocs.com/wp-content/uploads/2023/10/image-155-1024x450.png)

## Adding the Node JS Function Code

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

![](https://crmhelpdocs.com/wp-content/uploads/2023/10/image-156-1024x450.png)

## Save

Save all the settings and you are good to go.

![](https://crmhelpdocs.com/wp-content/uploads/2023/10/image-157-1024x442.png)
