# Setting: `chatbot_max_history`

- **Constant:** `ConfigInterface::CHATBOT_MAX_HISTORY`
- **Category:** `chatbot`
- **Type:** `number`
- **Required:** no
- **Sensitive:** no
- **Validation:** `integer|min:1|max:50`
- **Placeholder / default hint:** `10`

## Description

Maximum number of previous messages to include in context

## Allowed options

_Free-form / no fixed options_

## Change via CLI

```bash
featherpanel saas getsetting chatbot_max_history
featherpanel saas setsetting chatbot_max_history "<value>"
```

## Change via API

```http
PATCH /api/admin/settings
Content-Type: application/json

{ "chatbot_max_history": "<value>" }
```
