Message limits

Boei has several built-in protections that stop a single abusive visitor (or a script) from burning through your AI message credits. Some are automatic and always on. One is configurable per agent, so you can tighten the limit further on public-facing widgets.

How to get there: The configurable limit lives under AI agents in the left menu → click your agent → Settings → Advanced → Rate Limit.

Set a limit for your agent

  1. Open AI agents and select your agent.
  2. Go to Settings → Advanced → Rate Limit.
  3. Enter the maximum number of messages and the time window in seconds. For example, 30 messages in 3600 seconds sets a limit of 30 messages per hour.
  4. Write the message visitors see when they reach the limit.
  5. Save your changes and test the limit in a new conversation.

Choose a limit that leaves room for a normal customer conversation. Check AI credits separately for your account's monthly allowance and what happens when it runs out.

Rate Limit contains the message count, time window and message shown to the visitor. Demo data.

The Three Layers of Protection

Layer What it does Configurable?
Built-in safety throttle Hard cap of 10 AI messages per minute per conversation No, always on
Per-visitor rate limit Custom cap (e.g. "30 messages per hour") per conversation Yes, per agent
Plan credit limit Monthly AI credit allowance tied to your subscription Yes, via plan upgrade

All three apply independently. A visitor must pass every active layer before a message is sent to the AI and counted against your credits.

Layer 1: Built-In Safety Throttle

Every AI agent is protected by a hardcoded throttle that always applies:

  • 10 AI messages per minute per conversation session
  • 30 messages per minute per session when a live agent has taken over

When a visitor exceeds it, the widget returns a 429 Too Many Requests response and the message is not sent to the AI, so no credit is consumed. The visitor sees a generic "Too many requests. Please slow down." message and can retry once the window resets.

This protection is per conversation (thread_id), not per IP, so a busy office network sharing one IP is never blocked by another user's activity.

You don't need to configure this. It's there to absorb runaway scripts, malfunctioning integrations, and accidental rapid-fire submissions on every agent.

Layer 2: Per-Visitor Rate Limit (Configurable)

For public AI agents where you want a tighter budget, you can add a second, custom limit on top of the safety throttle.

Use the steps below to set this limit.

When this limit is reached, the visitor sees a message you can customize (e.g. "You have sent too many messages. Please wait a moment before continuing."). Their existing conversation stays open; only new messages are blocked until the window expires.

Like the safety throttle, this limit is per conversation session, not per IP.

Layer 3: Plan Message Limit

Your subscription includes a monthly AI credit allowance. Different models can use different amounts of credit per reply. When credits run out, the agent cannot generate another AI answer.

See Plans and pricing for the message quota on each plan.

When a message is blocked

The visitor must wait until the limit resets. Their conversation history stays available. A request blocked before it reaches the AI does not use AI credits.

A limit per conversation does not stop someone from starting a new conversation. Use it to limit activity within a chat, rather than as a block on a person or IP address.

Repeated greetings and keyboard noise

Business-level automatic spam protection also checks for repeated greetings and obvious keyboard noise. It warns before stopping replies. A normal question or attachment after the warning resets the count. If the visitor keeps going, the conversation moves to Spam. The same AI answer also helps recognise random letters, without a separate AI check. Those AI turns still use credits, including the warning and stop decisions. Savings start after the conversation stops. On messaging channels, text alone does not reopen a conversation stopped for AI-identified random letters. A new attachment or your team can reopen it. Manual spam marks stay in place. See Spam filtering for details and settings.