# Gerar URL de arquivos

{% embed url="<https://drive.google.com/file/d/16DO969Sk5BnuYMUSxWx-rsQPEs-_NFmg/view?usp=sharing>" %}

{% hint style="info" %}
Em etapas javaScript é solicitado que o arquivo/mídia a ser enviado esteja no formato de URL e ela precisa conter a extensão do arquivo. Para isso, abordaremos uma maneira simples e rápida de fazer isso através da Cosmobots.&#x20;
{% endhint %}

## Como subir arquivos para a Nuvem, gerando URL com a extensão do arquivo.

1. Acesse a área de Bots da Plataforma:

![Acessando o Menu de Bots da Plataforma](/files/cAn6dqmVveNOVnMeszNl)

&#x20; 2\. Acesse o Fluxograma de um Bot:

![Acessando a construção de um Bot](/files/A7ecb6vKTaZOel5MFBCb)

&#x20; 3\. Vá para a Área de Testes do seu Bot:

![Área de Testes de um Bot na Plataforma](/files/TTH5uBHhwld3fgxhdhgI)

&#x20; 4\. Abra a Conversa de Testes com o Bot:

![Conversação de Testes. (Plataforma Cosmobots)](/files/1yYCs1PcIBruXSI1rF9O)

&#x20; 5\. Anexe o arquivo desejado, clicando no ícone de clipe:

![Envio de Arquivo para o Bot Teste](/files/vfAcOKekkmuGxe5Eeq2q)

&#x20; 6\. Acesse a área "Contexto" da Janela de Conversação:

![Área de Contexto das Conversas](/files/6ty5QBVpvRpbdUBfso2g)

&#x20; 7\. Retire a URL do arquivo enviado:

![URL de acesso a Imagem enviada.](/files/NXkpqSxGdBvP3W2eL5mp)

{% hint style="warning" %}
O Link gerado poderá ser acessado por qualquer computador, não tendo necessidade de verificação ou algum tipo de bloqueio. Você conseguirá enviar nessa área de testes arquivos de tamanhos diferentes.

Tamanhos permitidos:

* Arquivos (.pdf, .doc): 2mb &#x20;
* Imagens (.jpg, .png): 20mb
* Vídeos (.mp4) 2MB
  {% endhint %}


---

# 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://help.cosmobots.io/help/outros/dicas/gerar-url-de-arquivos.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.
