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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET 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?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
