> For the complete documentation index, see [llms.txt](https://docs.stammer.ai/stammer.ai-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/general-settings/message-rate-limits.md).

# 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="/files/Q0sNvTQ4PXcbn1eOZpvU" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/general-settings/message-rate-limits.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
