> 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

Teste seu bot na sua tela para garantir que ele funcione como esperado.

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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FiTCdNkCH45UBuszMpW1H%2FScreenshot%202024-07-11%20at%2009.49.59.png?alt=media&amp;token=28999dd9-349a-40e8-b54f-582ebfbaf1a1" 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FUfqZ0AHgZhZgaNlNyH79%2FScreenshot%202024-07-11%20at%2011.44.42.png?alt=media&amp;token=a618c244-fa7b-4fe9-88ec-97be488abe48" 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2Fe2quFpmgFl43XbQoPss9%2FScreenshot%202024-07-11%20at%2015.31.38.png?alt=media&amp;token=9c9c9f49-c64e-46e3-83f7-50986faea377" 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FwxXwtt5rbJhPIp5GLF6w%2FScreenshot%202024-07-11%20at%2015.22.23.png?alt=media&amp;token=0f153e95-a812-4a5e-b796-1cae37a49067" 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FD6GaeVVo1JyAwWZmu7Iz%2Fdebug.png?alt=media&amp;token=41eb3e17-4a19-475d-8be5-c6c5f5a78a41" 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FcUoOmH98ziOXaJcGQLNr%2FScreenshot%202024-07-16%20at%2009.56.05.png?alt=media&amp;token=04207ad4-ed25-48f3-9a81-c27db79184a3" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.chatlayer.ai/chatlayer-documentation-pt-br/buildabot/emulator.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
