# Receive message

**Receive message** layer template is designed to allow you to receive message from various receivers such as UDP, TCP or OSC and trigger different actions based on them.

## Variables

### Default

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-da783aa1ddd6db17475f709795036ebadcdfd687%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

* **Device**: Select the device which you want to use as the receiver of the message.

## Setting up

### &#x20;**1. Create the appropriate Device node**

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-9a8357b3498d4a7e584275aa654710f6f27a895e%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

In the Devices window, create an appropriate *Receiver* device node. Set it up the way you want and check the **Receive** checkbox. For more information you might want to refer to the [Network page](https://docs.lightact.com/integrations/network).

### **2. Inserting the layer**

**Through the right click menu**

Right click in the *Timeline*, select *Control* category and choose **Receive message** layer.

### **3. Set up the layer**

Set up the variables of the layer and choose the device you created in step 1.

### **4. Open the Layout**

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-42cbb2fd5d5f13719821fbf1bff795aac0ceb147%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

Open the Layout by double clicking on the layer. In the *Logic* group of nodes, you see a number of *Switch Case* nodes. They are designed to trigger a different Lifeline output pin depending on the input.

Connect the desired *Case* output of the selected *Switch Case* node with the desired action node, such as *Go to marker* or *Go to section* node.
