Rate limits protect your chatbot against message flooding - for example, a malicious visitor or an automated script sending messages nonstop to drain your message credits. When a visitor exceeds the limit, the chatbot stops responding to them and displays a message you define, until the time period passes.
Rate limits work per visitor: the counter applies to messages sent from one device and one browser window, so one visitor hitting the limit never blocks anyone else.
Where to Find It
Select your chatbot and navigate to Settings > Security. The Rate limits section is right below Allowed domains.
How to Enable It
- Turn on the Enable rate limits for bot toggle in the Rate limits section header.
- The limit fields appear, pre-filled with the recommended values: 40 messages every 150 seconds.
- Adjust the numbers and the limit message if needed. Changes save automatically - a "Saved" confirmation appears in the bottom-right corner.
Options Explained
-
Limit to ... messages every ... seconds: The maximum number of messages one visitor can send within the time window. When the window passes, the visitor's full message allowance is restored. ChatLab's recommended setting is 40 messages every 150 seconds - generous enough that regular visitors never notice it.
-
Show this message to show when limit is hit: The text the chatbot displays instead of an answer when the limit is exceeded. Defaults to "Too many messages in a row".
To turn the feature off, switch the toggle back off - the limit values are cleared and no rate limiting is applied.
How It Looks to the Visitor
When a visitor exceeds the limit, the chatbot replies with your limit message instead of an answer. Messages sent while the limit is active do not use your message credits.
Once the time period passes, the chatbot responds normally again - the visitor does not need to refresh the page.
Related Protections
Rate limits are one of several tools on the Security page. You can also restrict the domains where your chatbot appears, block specific IP addresses or countries, and enable the automatic spam filter - see Security Settings for the full overview.
To cap how many message credits a single chatbot can spend per month, use the Bot message credit limit setting in Settings > Model & Advanced.