# Filters

To create a filter based on specific keywords, you can utilize the following syntax:

* **For Text-Based Filters:**

  * Example:

    ```css
    /addfilter [keyword] message to be sent
    ```

  This command associates a given keyword with a specific message that will be sent in response.
* **For Media-Based Filters (including audio, picture, or video):**
  * First, select the desired media file.
  * Then, use the command in the file's caption, as follows:

    ```css
    /addfilter [keyword] message to be sent
    ```

    In this context, the accompanying message is optional.


---

# 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.paal.ai/mypaal/telegram/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.
