# Message Rate Limits

Message rate limiting allows you to control how many messages users can send in a given period. This helps prevent abuse and protects your AI agent from overload or spam.

<figure><img src="https://1359281993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLIQnOFYHkQtdWxUzzFE%2Fuploads%2Fe1qiZtDmMWKKRMP1gPzs%2FScreenshot%202025-05-24%20at%206.43.21%E2%80%AFPM.jpg?alt=media&#x26;token=c790cbba-8124-493b-9131-ed4a21599f2e" alt=""><figcaption></figcaption></figure>

How to Enable Message Rate Limiting

1. **Go to Settings → Message Rate Limits**
2. Toggle the **Enable Rate Limiting** switch to turn it on.

***

#### Configuration Options

* **Time Period**\
  Choose the time interval for the message limit. Options include:
  * Per Hour
  * Per Day
  * Per Month
* **Message Limit**
  * Set the maximum number of messages a user can send during the selected time period.
* **Cooldown Period (minutes)**
  * Once the user hits the limit, this is how long they’ll have to wait before they can send messages again.
* **Cooldown Message**
  * This is the message that will be shown to users when they reach the limit.
    * *(Default example: “You have reached the message limit. Please wait before sending more messages.”)*

***

#### Current Configuration Summary

* Users can send up to **100 messages per hour**.
* If the limit is exceeded, messaging will be disabled for **15 minutes**.
* During this time, users will see the cooldown message you set.

***

#### Actions

* Click **Save Configuration** to apply your changes.
* Click **Reset to Defaults** if you want to revert to the default system settings.


---

# 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.stammer.ai/stammer.ai-docs/chat-ai-agents/general-settings/message-rate-limits.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.
