> For the complete documentation index, see [llms.txt](https://docs.littlebaytech.com/templates/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.littlebaytech.com/templates/messaging-template/page-guides/pages/3.-logged-in/messages/built-in-functionality/12.-send-a-youtube-video-in-a-message.md).

# 12. Send a YouTube Video in a Message

The template detects when the Current User pastes a Youtube video link into either the `Multiline Input (Desktop)` or `Multiline Input (Mobile)` elements.&#x20;

When true, the `Group YouTube Detected (Desktop)` element or `Group YouTube Detected (Mobile)` element will become visible because of the regex, conditional on those Group YouTube Detected elements.

**Editor**&#x20;

![](/files/-LXRt2-G0IFD82YurInT)

**Preview**&#x20;

![](/files/-LXRt4EdXa3iBoeTJ_ta)

Clicking on either of the the `Group YouTube Detected` elements will show that YouTube video in the `Popup YouTube Preview element`, so that the Current User can watch the video in the app before they send it:

**Editor**&#x20;

![](/files/-LXRu7RtCOeObgZE-lkI)

**Preview**&#x20;

![](/files/-LXRuKwf6A86wtx4XhM_)

{% hint style="info" %}
In order for the YouTube video to send in a new Message, the link URL of the video must stay of the Multiline Input elements' value; the video can't be sent in a new Message without sending the link.  More information on these workflows can be found in the **C. New Message** workflow folder.
{% endhint %}
