> ## Documentation Index
> Fetch the complete documentation index at: https://botpress.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Inspect behaviour

You can inspect your agent's behaviour in the ** Inspect** section of your agent's menu. Here's a breakdown of each sub-section:

## Logs

You can view logs from all your agent's conversations in the **Logs** sub-section. This includes system logs that provide updates on your agent's status, as well as logs from any integrations you have installed:

![Logs](https://mintcdn.com/botpress/WjGSJXsFWYihoyaq/get-started/manage-your-agent/assets/logs.png?fit=max\&auto=format\&n=WjGSJXsFWYihoyaq\&q=85\&s=e9504842e7b9db39bb1a5177dd4fc3c0)

You can filter logs by date and time to narrow down your search for a specific event or conversation.

### Custom logs

You can add custom logs when [writing code in Studio](https://botpress.com/docs/studio/guides/advanced/use-code.md)—just use JavaScript's `console.log`:

```js theme={"theme":{"light":"light-plus","dark":"dark-plus"}}
console.log('An error occured.')
```

Once you’ve published your changes, your bot will print that statement to its logs every time the code executes.

***

## Events

Events represent what happens within your bot, such as messages from users and system-level occurrences. You can view all incoming events processed by your agent in the **Events** section:

![Events](https://mintcdn.com/botpress/WjGSJXsFWYihoyaq/get-started/manage-your-agent/assets/events.png?fit=max\&auto=format\&n=WjGSJXsFWYihoyaq\&q=85\&s=b7844cdf637b7727d04c241179d2af6f)

> [accordion] What counts as an event?
>
> An event is any action that triggers bot activation. Only incoming messages & events that a bot listens to count towards your event quota.
>
> The following actions count as an incoming message & event:
>
> * A user saying "Hello" to a bot
> * A reaction being added to a message
> * A [Trigger](https://botpress.com/docs/studio/concepts/triggers.md) that opens the bot
> * A session timeout event
> * Opening the bot's shareable URL
> * Publishing your bot (counts as 3 events)
>
> The following actions don't count as an incoming message & event:
> ‍
>
> * A message sent by the bot in response to a user message
> * An execute code card
> * [Workflow](https://botpress.com/docs/studio/concepts/workflows.md) transitions

### Event data

Select any event to view a detailed JSON representation of all its associated data:

![Event JSON data](https://mintcdn.com/botpress/WjGSJXsFWYihoyaq/get-started/manage-your-agent/assets/event-json-data.png?fit=max\&auto=format\&n=WjGSJXsFWYihoyaq\&q=85\&s=01c5d5c0470213d2b50fa7a34e89281b)

### Quota

Incoming events count towards your plan's Incoming Messages & Events quota. If you need to increase this quota, go to the [Billing](https://botpress.com/docs/get-started/configure-your-workspace.md#billing) section.

***

## Files

You can view all files uploaded to your agent in the **Files** section. This includes:

* [Files uploaded by users](https://botpress.com/docs/webchat/get-started/configure-your-webchat.md#features)
* Files indexed as part of a [Knowledge Base](https://botpress.com/docs/get-started/manage-your-agent/knowledge.md#knowledge-bases)
* System files
* Files you've uploaded yourself using the [Files API](https://botpress.com/docs/api-reference/files-api/getting-started.md)

### Inspect file data

Select any file to view a detailed JSON representation of all its associated data:

![File JSON data](https://mintcdn.com/botpress/WjGSJXsFWYihoyaq/get-started/manage-your-agent/assets/file-json-data.png?fit=max\&auto=format\&n=WjGSJXsFWYihoyaq\&q=85\&s=78217c0e4e086de7c10a6ad0d96e8296)

### View a file

To view a file, select it and open its URL.

### Download a file

To download a file, select  to open additional options, then  **Download**.

### Delete a file

To delete a file,  select  to open additional options, then  **Delete**.

### Quota

Any files you store count against your File Storage quota. You can increase your quota in your dashboard's [Billing](https://botpress.com/docs/get-started/configure-your-workspace.md#billing) menu.

***

## Issues

You can view any problems or errors your agent encountered in the **Issues** sub-section:

![Issues](https://mintcdn.com/botpress/WjGSJXsFWYihoyaq/get-started/manage-your-agent/assets/issues.png?fit=max\&auto=format\&n=WjGSJXsFWYihoyaq\&q=85\&s=49e58bc59057803f91d293768bdcac50)

The **Category** field tells you where the issue came from, while the **Events** field tells you how many times it occurred. Select any issue to view a list of all occurrences:

![Issue events](https://mintcdn.com/botpress/WjGSJXsFWYihoyaq/get-started/manage-your-agent/assets/issue-events.png?fit=max\&auto=format\&n=WjGSJXsFWYihoyaq\&q=85\&s=86ea4759242eec5ba6530688b7763336)

This gives you detailed information about each occurrence, like:

* Its payload
* The associated user and conversation IDs
* The channel or integration on which it occurred


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.