> For the complete documentation index, see [llms.txt](https://docs.graspil.com/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graspil.com/en/other/pricing/optimization.md).

# Cost optimization

Since you are charged for every event created, you can reduce the number of collected events and thereby reduce the monthly cost of the service.

You can analyze your events and prevent their creation using the following methods:

#### Mini App

By default, the counter in the mini app automatically creates an event for every user click, which can be excessive. You can disable automatic event creation and only send the events you actually need; how to do this is described in the [Mini App](https://docs.graspil.com/en/other/pricing/pages/Psop5hvJd0STFlsDapsX#dop.-nastroiki) connection section

#### Bot

By default, events are generated by almost all user actions in the bot and outgoing commands from the bot.

You can set data processing rules to ignore certain messages and user actions.

To do this, go to the "All resources" section -> select the bot you need -> in the "Ignore data types" block in the settings, select the types you want to exclude

{% hint style="info" %}
Note that this may affect certain metrics — for example, if you disable processing of all incoming text messages, this may affect the MAU metric
{% endhint %}
