# Spam filters

### How do I stop my AI agent from replying to spam messages?

To prevent your AI agent from replying to messages you believe are spam (could include marketing, cold email, or notification emails) you can use our spam filter feature.

You'll find it at **AI agent setup > Customize** near the bottom of the page with the heading:

"**Block certain emails e.g. spam**"

Once there, decide whether you want to block specific:

* Email domains
* Email addresses
* Email subject keywords

Enter the domains, emails or subject keywords you want to block then click "*Save advanced settings*" and you're done.

Now the next time an email comes in that matches any of those criteria, your AI agent will not respond.


---

# 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://support.myaskai.com/features/spam-filters.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.
