> 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/buildabot/emulator.md).

# Emulador

Quando o seu bot não se comporta como o esperado, você precisa investigar e identificar o problema — também conhecido como depuração. Mas por onde começar? Como você pode determinar a causa do problema? Este artigo aborda o básico da depuração dentro do Chatlayer Emulator.

## Teste seu bot no Emulator

Para abrir o seu Emulator:

1. Na [**Construtor de bots**](/chatlayer-documentation-pt-br/navegacao/bot-builder.md) aba, clique em [**Fluxos**](/chatlayer-documentation-pt-br/navegacao/bot-builder/flows.md).
2. Encontre o **reproduzir** botão no canto superior direito da tela e clique nele.

<figure><img src="/files/387f95e01a50b62350054b5c0e8c04665cce429c" alt="" width="339"><figcaption><p>Abra o Emulator clicando no botão de play no canto superior direito da sua tela.</p></figcaption></figure>

3. Teste seu bot digitando no campo de entrada.

<figure><img src="/files/10349e1ea060f062b7283dc8a506ec1ae9ca1d35" alt="" width="375"><figcaption><p>Teste seu bot no Emulator.</p></figcaption></figure>

4. Para reiniciar a conversa de teste, clique no **reiniciar** botão no canto superior direito da janela.

<figure><img src="/files/d8ac128b3f017725421614691176b7a3cdb030f9" alt="" width="375"><figcaption></figcaption></figure>

## Modos de teste

Seu Emulator tem 3 modos de teste diferentes que podem ser definidos na parte superior da janela.

<figure><img src="/files/5a05901dc0eef00cf22db22324230ad588a210aa" alt="" width="375"><figcaption><p>3 modos de teste disponíveis no seu Emulator.</p></figcaption></figure>

### Depurador

Isso é útil se você quiser depurar o seu chatbot. Para um guia mais completo de depuração, confira esta página:

{% content-ref url="/pages/183b623b9cdc04b1d0f29c23b9d28671a091e861" %}
[Depure seu bot](/chatlayer-documentation-pt-br/support/solving-bot-issues.md)
{% endcontent-ref %}

### Voice

Este é o modo para testar o seu voicebot, se você tiver um.

{% content-ref url="/pages/3d9d7ab333ba2e4041952d0f04bd9ab4ce62cd76" %}
[Teste seu voicebot](/chatlayer-documentation-pt-br/voz/phone-and-voice/test-your-voicebot.md)
{% endcontent-ref %}

### WhatsApp Sandbox

Esta é uma janela de teste para [testar seu bot em um canal do WhatsApp](https://docs.chatlayer.ai/start-quickly/leadzy-tutorial/1.-new-bot-new-block#run-tests-in-the-whatsapp-sandbox).

## Depure seu bot

Para depurar a conversa do seu bot:

1. Clique em **Depurador** ao lado do balão de conversa.

<figure><img src="/files/a5be57066f8bcb2122e00973c1bc9c81345a357e" alt="" width="375"><figcaption><p>Clique no ícone 'debug' para abrir o modal do depurador</p></figcaption></figure>

2. Uma **Inspetor** janela se abre. Nesse Inspetor, você pode verificar o usuário [**Dados da sessão**](/chatlayer-documentation-pt-br/bot-answers/session.md).

<figure><img src="/files/5c0a9db43b953514d43483761299bb9049c16bfb" alt="" width="563"><figcaption><p>Emulador de teste com modal lateral do depurador</p></figcaption></figure>


---

# 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/buildabot/emulator.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.
