> For the complete documentation index, see [llms.txt](https://docs.noqo.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.noqo.ai/main-settings/additional-settings/spam-protection.md). Agents can also search and read this documentation through its [MCP server](https://docs.noqo.ai/~gitbook/mcp).

# Spam protection

<figure><img src="https://1782981877-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKvUDH16L29QcaH0CuUhn%2Fuploads%2FUtFZhU8IGpOPTIZhV4Oj%2FSpam%20protection_1.jpg?alt=media&amp;token=3d8fa138-3def-4f53-94cd-dd963b97aed4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1782981877-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKvUDH16L29QcaH0CuUhn%2Fuploads%2FlN7wSY46P5PrfbJrDTc8%2FSpam%20protection_2.jpg?alt=media&amp;token=92840d9d-eb8e-4d11-9212-8df3ced88a9f" alt=""><figcaption></figcaption></figure>

**Maximum number of messages in dialogue** - a setting that allows limiting the length of the dialogue in terms of message count.

**Maximum cost of the dialogue -** allows setting a limit on the dialogue cost.

Since every message has a cost, there is a risk of "draining" the budget in some intentional or unintentional situations when a client writes too many messages. This setting helps protect **against unnecessary balance loss**.
