# Spam Filter

The **Spam Filter** in Zipchat AI helps manage the flow of messages, preventing disruptive behavior and ensuring interactions remain meaningful and user-friendly.

<figure><img src="/files/mAjUMmOtVAJcsau4dXSa" alt=""><figcaption></figcaption></figure>

### How It Works

1. **Rate Limit (Max Replies per User)**
   * Control the maximum number of messages a user can send within a set time frame.
   * Prevent spamming or overwhelming the chatbot with irrelevant queries.
2. **Unlimited Option**
   * Allow unrestricted messaging if high-volume interactions are encouraged.
3. **Time Period Setting**
   * Define the time frame for the rate limit, such as per minute or per hour, to tailor chat pacing.
4. **Custom Message for Limits**
   * Notify users who exceed the limit with a polite message. Example:\
     \&#xNAN;*"Sorry, you're sending messages too quickly. Please try again shortly."*

***

### Why Use the Spam Filter?

* **Maintain Chat Quality**: Ensure conversations stay on-topic and productive.
* **Protect the AI**: Prevent the chatbot from being overwhelmed by excessive messages from competitors and/or spammers.
* **Improve User Experience**: Encourage thoughtful communication with polite notifications.


---

# 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.zipchat.ai/installation-and-setup/chat-settings/configuration/spam-filter.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.
