🆕Emulator
Test your bot from your canvas to make sure it works as expected.
When your bot does not behave as expected, you need to investigate and identify the issue—also known as debugging. But where should you start? How can you determine the cause of the problem? This article covers the basics of debugging inside the Chatlayer Emulator.
Test your bot in the Emulator
To open your Emulator:
Under the Bot builder tab, click on Flows.
Find the play button in the upper right corner of the screen and click on it.
![](https://docs.chatlayer.ai/~gitbook/image?url=https%3A%2F%2F2786867680-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-LLTwFwbOqJj4dDhg8Ju%252Fuploads%252FiTCdNkCH45UBuszMpW1H%252FScreenshot%25202024-07-11%2520at%252009.49.59.png%3Falt%3Dmedia%26token%3D28999dd9-349a-40e8-b54f-582ebfbaf1a1&width=768&dpr=4&quality=100&sign=21c6e33b&sv=1)
Test your bot by typing in the input field.
![](https://docs.chatlayer.ai/~gitbook/image?url=https%3A%2F%2F2786867680-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-LLTwFwbOqJj4dDhg8Ju%252Fuploads%252FUfqZ0AHgZhZgaNlNyH79%252FScreenshot%25202024-07-11%2520at%252011.44.42.png%3Falt%3Dmedia%26token%3Da618c244-fa7b-4fe9-88ec-97be488abe48&width=768&dpr=4&quality=100&sign=b0e91f52&sv=1)
To restart the test conversation, click on the restart button at the top right corner of the window.
![](https://docs.chatlayer.ai/~gitbook/image?url=https%3A%2F%2F2786867680-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-LLTwFwbOqJj4dDhg8Ju%252Fuploads%252Fe2quFpmgFl43XbQoPss9%252FScreenshot%25202024-07-11%2520at%252015.31.38.png%3Falt%3Dmedia%26token%3D9c9c9f49-c64e-46e3-83f7-50986faea377&width=768&dpr=4&quality=100&sign=d2be04a1&sv=1)
Test modes
Your Emulator has 3 different modes of testing that can be set from the upper part of the window.
![](https://docs.chatlayer.ai/~gitbook/image?url=https%3A%2F%2F2786867680-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-LLTwFwbOqJj4dDhg8Ju%252Fuploads%252FwxXwtt5rbJhPIp5GLF6w%252FScreenshot%25202024-07-11%2520at%252015.22.23.png%3Falt%3Dmedia%26token%3D0f153e95-a812-4a5e-b796-1cae37a49067&width=768&dpr=4&quality=100&sign=9c5300ef&sv=1)
Debugger
This is useful if you would like to debug your chatbot. For a most comprehensive guide to debugging, check this page:
Debug your botVoice
This is the mode to test your voicebot if you have one.
Test your voicebotWhatsApp Sandbox
This is a test window to test your bot on a WhatsApp channel.
Debug your bot
To debug your bot conversation:
Click on Debugger next the bubble chat.
![](https://docs.chatlayer.ai/~gitbook/image?url=https%3A%2F%2F2786867680-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-LLTwFwbOqJj4dDhg8Ju%252Fuploads%252FD6GaeVVo1JyAwWZmu7Iz%252Fdebug.png%3Falt%3Dmedia%26token%3D41eb3e17-4a19-475d-8be5-c6c5f5a78a41&width=768&dpr=4&quality=100&sign=fb64250f&sv=1)
An Inspector window opens.
![](https://docs.chatlayer.ai/~gitbook/image?url=https%3A%2F%2F2786867680-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-LLTwFwbOqJj4dDhg8Ju%252Fuploads%252FcUoOmH98ziOXaJcGQLNr%252FScreenshot%25202024-07-16%2520at%252009.56.05.png%3Falt%3Dmedia%26token%3D04207ad4-ed25-48f3-9a81-c27db79184a3&width=768&dpr=4&quality=100&sign=ab9f2216&sv=1)
Last updated