---
title: "Send messages from Tulip to Node-RED"
slug: "send-messages-from-tulip-to-node-red"
updated: 2025-12-02T07:10:03Z
published: 2025-12-02T07:10:03Z
canonical: "support.tulip.co/send-messages-from-tulip-to-node-red"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.tulip.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Send messages from Tulip to Node-RED

To send messages from Tulip (e.g. from in-App Triggers or Automations), a Connector can be used. This is most easily done with the Connector Host installed on all Tulip Edge Devices.

## With Tulip Edge Devices

The following flow will be used to send a message from a Tulip Trigger to Node-RED running on a Tulip Edge Device:

![Communicate with Machines using Edge MC's Connector Host &amp; Node-RED_314676359.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Communicate%20with%20Machines%20using%20Edge%20MC's%20Connector%20Host%20&amp;%20Node-RED_314676359%281%29.png)

Once complete, use the newly-created Connector in any Tulip App or Automation to send messages to Node-RED, such as device commands or flow inputs.

## In Tulip: Configuring your Connector and Connector Host

*Note: If you're not familiar with Connector Hosts and Connector Function in Tulip, check out this article.*

1. Create a new Connector from the **Connectors** page in your Tulip Instance.
2. In the modal that appears, fill in the information as specified below:

**Name**: Choose a name for your Connector **Description**: Choose a description for your Connector Host **Connector Type**: Select **HTTP**

1. Click "Save".
2. To specify the Connector Host's details, click on the **production & testing & development** button on the left. In the modal that appears, enter the following information:

Running On: Select the target Edge Device's Connector Host *Note: If the Edge Device's Connector Host cannot be found, navigate to the Edge Device's portal and make sure "Connector Host" has been enabled.* Host: Enter localhost Port: Enter 1880 (this is the port Node-RED is running on) TLS: Enter No There is no need to add headers or certs.

1. Click Test, and verify your connection passes. Finally, click Save.

This Connector is now able to communicate with Node-RED on the target Edge Device.

---

## In Node-RED: Configuring the HTTP IN Node

This section assumes familiarity with Node-RED. Learn more [here](/r230/docs/overview-of-node-red).

In order to receive the message from the on-device Connector Host, an HTTP IN node will be used.

1. Click and drag to add an HTTP IN node from the Palette on the left side of the Node-RED Editor to the flow:

![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28316%29.png)

Enter the following information: **Method:** POST **URL:** any user-defined path, such as `/nodeRED` or `/myMachine/0013`. It will be re-used in Node-RED, so it should be easy to recognize and remember. The example below shows the URL configured as `/test`: ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28317%29.png)

1. Click "Done" to save changes.

HTTP Requests will fail without a **Response** being returned to the server (in this case, Tulip).

1. Drag in an **HTTP Response** node.
2. Connect the **HTTP Request** node to the **HTTP Response** node.
3. Double-click the **HTTP Response** node and enter **200** as the Status Code. Click Done.

![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28319%29.png){height="" width="")

HTTP Responses and Advanced Feedback

Modify the Status Code and/or use the **+add** button in the **HTTP Response** node to modify or add to the Connector's response. These data (most often, system or device outputs generated by the Flow) will appear in the Connector's Response. Configure Connector Outputs with the guide **here**.

1. Finally, drag in a **Debug** node from the Palette. Configure this node to output "**Complete Message Object** using the **msg.** drop-down:  

![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28318%29.png)

This Node-RED flow will now receive a message from Tulip and display it in the Node-RED Debug Log.

A completed flow may appear as shown below: ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28320%29.png)

Click **Deploy** in the top-right to commit all changes.

## In Tulip: Configuring and Testing the Connector Function

Once Node-RED Flow configuration is completed, return to the Connector in Tulip.

1. Create a new Connector Function.
2. Change the Connector Function from GET to POST.
3. Enter the path configured in Node-RED (in this example, `/test`) in the URL.
4. (optional) to add content to the Connector (such as a message or command), add an Input to the connector.
5. (optional) Add the Input to the Request Body by first changing the Content Type to **JSON**, and then adding an item to `root`.

The screenshot below shows a Connector configured to the `/test` endpoint specified above and includes an input called `testValue`: ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28321%29.png)

Click "Run" to test the Connector Function. Two indicators of success will occur:

1. The Connector Function will receive a `200 OK` response, containing (if applicable):
  1. Any inputs configured to the Connector
  2. Any additional outputs configured in Node-RED's **HTTP Response** node
2. The Debug Log in Node-RED will display the Connector message.  

*Note: Depending on the current version of Node-RED, the Connector Request body can be found at either:*  

a. `msg.payload`, or  

b. `msg.req.body`

Both success states can be found below:

***Connector Success:*** ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28322%29.png)

***Node-RED Success:*** ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28323%29.png)

**Connectors**

**Connectors** enable real-time connectivity between your Tulip solution and a transactional system (e.g. an ERP). The output of a Connector Function can be used in Tulip Apps, Automations, and Functions.

- **HTTP Connectors** utilize HTTP API endpoints.
- **SQL Connectors** can enable connectivity with certain SQL databases.
- **MQTT Connectors** can connect to MQTT brokers for machine monitoring.

![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/connector.gif)

**Connector Host**

Tulip **Connector Hosts**are designed to allow your Tulip Apps to interface with external systems such as databases, APIs, and machines. **On-Prem Connector Hosts**sit within your network and allow Tulip to interface with SQL databases and APIs that aren't accessible to the cloud.

**Edge Device**

**Edge Devices** are any hardware intended to connect physical things to the cloud. This can include entirely mechanical devices, older machines without network functionality, PLCs, and more.

Tulip sells the **Edge IO** and **Edge MC** that interface directly into **Triggers** in a breeze, but Tulip can also support other Edge Devices.
