# Debug your bot

In the **Debugger** you can find the following information:

<figure><img src="/files/bsYFrmIXyJTRCVHBCNj4" alt=""><figcaption></figcaption></figure>

`User says` the input the user has given

`Intent` the recognized intent

`Contexts` if any [contexts ](https://docs.chatlayer.ai/understanding-users/using-context)are active and what the lifespan is

`Bot dialog` with the id and name of the current block

`Read-Only Session data` This is all data that is retrieved up until this point in the session. If you need to use any of these variables, it is important that you add `internal.` before the variable. For example `internal.channel`

If there are any variables collected in the conversation along the way, they will be listed at the bottom. If you want to use these, `internal.` is not necessary

<figure><img src="/files/hO8o5rDCj3bixPd9WwzF" alt="" width="276"><figcaption></figcaption></figure>

If you need to use any of the variables with a `{ }` behind it, remember to use the correct variable name when you open the variable. For example `internal.currentDialogstate.name`

Below `Messages` (on the right side) you can see all the messages the bot has given up until that point.

### NLP Result

The NLP section shows the result of the NLP engine. Any recognized intents or entities are shown here

<figure><img src="/files/GwPAD3mt1q7FNPvcWalv" alt="" width="375"><figcaption><p>The expression matched 100% to intent 'Place_order'</p></figcaption></figure>

This information helps locating intent issues - if a wrong response is given in the bot, you can check here which intent was triggered.


---

# 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://docs.chatlayer.ai/support/solving-bot-issues.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.
