> For the complete documentation index, see [llms.txt](https://docs.chatlayer.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatlayer.ai/chatlayer-documentation-pt-br/support/solving-bot-issues/3.-media-upload-not-working.md).

# O vídeo não está funcionando

Digamos que você tem um ótimo tutorial no YouTube que quer mostrar aos seus usuários. Mas quando você tenta adicionar isso em 'Mídia' em uma mensagem do Bot, você vê o seguinte vídeo:

![](/files/c49ca9169bf1d4c82506ffcf1cad51bb963ff769)

Não é exatamente o que queremos, então vamos consertar isso!

## 1. Copie o código de incorporação do vídeo

Primeiro, você precisa copiar o código de incorporação. Vá para o seu vídeo no YouTube e clique com o botão direito nele, depois escolha 'Copiar código de incorporação' como na captura de tela abaixo:<br>

![Clique na 4ª opção para copiar o código de incorporação](/files/d803f5aa7548e4634184f3622980878d3b60e921)

## 2. Crie um bloco de Ação

Depois de copiar o código, volte para a plataforma e crie um bloco de Ação. Nesse bloco, clique em `IFrame` para criar um Iframe.

![Clique em IFrame para criar um IFrame](/files/0989f4d87104aceb0fa6a2c33e32865f045f1cd5)

No IFrame, cole a `src` parte da URL anteriormente incorporada na Caixa de Entrada de Fonte. Para o vídeo acima, precisamos alterar isto:

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

Para isto:

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

Adicione este link ao bloco de Ação e defina uma altura que funcione para você. Vamos começar com 200 e ver como fica:

Seu bot agora exibirá o vídeo assim:

![](/files/3a1da2072e3fd92bae8f7470612558ca47e1a24c)

Parece muito melhor!&#x20;

Se depois de ler este tutorial você ainda encontrar algum problema, por favor contate nossa [Equipe de Suporte](mailto:support@chatlayer.ai). Estamos aqui para ajudar!


---

# 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.chatlayer.ai/chatlayer-documentation-pt-br/support/solving-bot-issues/3.-media-upload-not-working.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.
