> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deskhoot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Guardrails

> Message limits and spam

Admins set message limits and spam checks on [**AutoPilot › Guardrails**](https://app.deskhoot.com/app/ai?tab=guardrails).

> [card] [Rate limit](#rate-limit)
>
> How many messages one customer can send in the chat.

> [card] [Spam detection](#spam-detection)
>
> Let AutoPilot mark spam conversations.

> [!NOTE]
>
> What the AI must never say or do is not set here. Write that in the **Guardrails** box on the [Instructions](https://docs.deskhoot.com/autopilot/instructions.md) page.

## Rate limit

It starts at 20 messages every 240 seconds for each customer. A customer past the limit sees "Too many messages in a row. Try again in a few minutes." You can change all three. Empty the message to go back to this one.

| | The rate limit |
| - | - |
| **Counts** | Every message one customer sends in any of your widgets, added together. |
| **Applies to** | Every chat, also on widgets where AutoPilot is off. |
| **Does not count** | Emails. |
| **Past the limit** | New messages are not sent, and the customer sees the limit message. The count starts over once the seconds have passed since their first counted message. |

## Spam detection

Spam detection lets AutoPilot check conversations for spam. It is off to begin with.

Under **What counts as spam**, describe spam in your own words. It starts filled with a rule against rude or explicit words, advertising and scams, and nonsense such as random typing. The rule also says that a real question written rudely is not spam. Empty the box to go back to it.

**1. AutoPilot checks**

After the customer's 2nd, 4th, 8th and 16th message, in conversations AutoPilot is answering. There is no check after the 16th. If a check cannot run, the conversation carries on.

**2. Spam is marked**

The conversation is marked as spam and leaves your queues. AutoPilot stops answering it. The customer is not told.

**3. Your team can restore it**

Select **Restore from spam**. If the customer is still waiting, AutoPilot answers them. The conversation is not checked a second time.

> [!NOTE]
>
> Spam detection only runs while AutoPilot is answering, in chats and emails. Your team finds marked conversations under **Spam**. See [Spam and block](https://docs.deskhoot.com/conversations/manage.md#spam-and-block).

## Related

> [card] [Instructions](https://docs.deskhoot.com/autopilot/instructions.md)
>
> How AutoPilot should reply.

> [card] [Channels](https://docs.deskhoot.com/autopilot/channels.md)
>
> Where AutoPilot answers.

> [card] [Assign, move and resolve](https://docs.deskhoot.com/conversations/manage.md)
>
> Owners, snooze, resolve and spam.

> [card] [Handing off to a person](https://docs.deskhoot.com/autopilot/handoff.md)
>
> When AutoPilot passes a conversation to your team.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.