> 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;

![](https://1788973256-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L8uq1TOYNrDiHA5baDk%2F-LXRsy6ZKglrfPSJDqVz%2F-LXRt2-G0IFD82YurInT%2FEditorPreviewYouTube.png?alt=media\&token=e8bd761b-1a6a-4fed-9144-3ae92f337f99)

**Preview**&#x20;

![](https://1788973256-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L8uq1TOYNrDiHA5baDk%2F-LXRsy6ZKglrfPSJDqVz%2F-LXRt4EdXa3iBoeTJ_ta%2FPreviewYouTubePreviewMode.png?alt=media\&token=b8c3a9ef-6e2b-4065-b4a3-6eb0a2276e77)

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;

![](https://1788973256-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L8uq1TOYNrDiHA5baDk%2F-LXRt6s2UDfhN4Q2BjTt%2F-LXRu7RtCOeObgZE-lkI%2FPreviewYouTubePopup.png?alt=media\&token=9a105667-170b-43e7-a11f-85821e2a694f)

**Preview**&#x20;

![](https://1788973256-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L8uq1TOYNrDiHA5baDk%2F-LXRuITe3PTH5xmDVCEZ%2F-LXRuKwf6A86wtx4XhM_%2FPopupPreviewMode.png?alt=media\&token=8c48af18-ad0f-4dc0-97ff-beb741269c8c)

{% 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 %}
