# Video isn't working

Let's say, you have a great Youtube tutorial that you want to show to your users. But when you try and add this to 'Media' in a Bot message, you see the following video:

![](/files/-MbGfFWp77YieC3EJHhz)

Not exactly what we are looking for, so let's fix that!

## 1. Copy the video's embed code

First, you need to copy the embed code. Go to your Youtube video and right-click on it, then choose 'Copy embed code' like in the screenshot below:<br>

![Click on the 4th option to copy the embed code](/files/-MbGd2Yc2f83s0iKGZJy)

## 2. Create an Action block

Once you've copied the code, go back to the platform and create an Action block. In that block, click on `IFrame` to create an Iframe.

![CLick on IFrame to create an IFrame](/files/-MbGeOTb7K3q_RVvWZfU)

In the IFrame, past the `src` part of the previously embedded URL in the Source Input Box. For the video above, we need to change this:

```
<iframe width="1280" height="786" src="https://www.youtube.com/embed/yaYzSQn9rL4" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
```

To this:

```
https://www.youtube.com/embed/yaYzSQn9rL4
```

Add this link to the Action block and set a height that works for you. Let's start with 200 and see how that looks:

Your bot will now display the video like this:

![](/files/-MbGexNJZOaQ2zMZvKMM)

Looks a lot better!&#x20;

If after reading this tutorial, you still run into any issues, please contact our [Support team](mailto:support@chatlayer.ai). We're here to help!


---

# Agent Instructions: 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:

```
GET https://docs.chatlayer.ai/support/solving-bot-issues/3.-media-upload-not-working.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
