# Monitors

![](/files/-MXsS4mG9fhghwoLTpbK)

## Adding A New Monitor

To add a new monitor, click the "Add New" button located on the top of the page. You will then be presented with a popup window where you can setup your monitor.

![](/files/-MXsSqBKaezRXAn-jNsN)

* **Product**: Certain stores require different product types besides just a URL. Please refer to the store guides section of the documentation.
* **Min Price**: You can set the minimum price for the product you want to monitor. This is helpful for sites that have 3rd party vendors. This is **not** required to add a monitor.
* **Max Price**: You can set the maximum price for the product you want to monitor. This is helpful for sites that have 3rd party vendors. This is **not** required to add a monitor.
* **Monitor Delay**: The time in milliseconds that the bot will sleep before re-fetching product data.
* **Error Delay**: The time in milliseconds that the bot will sleep if it encounters an error.

![A monitor in action](/files/-MXsWFwtmYwKrdGjU-DJ)

## Monitor Actions

You can start, stop, edit, duplicate, or delete multiple monitors at the same time by clicking on the checkboxes on the left hand side. To select/deselect all monitors, click the top checkbox next to "Store".

![](/files/-MXsTt7WZXsTtwJti2ro)

## Overview

### Why Use Monitors?

Monitors make your tasks more efficient if you are running many tasks at once for a restock. They allow you to use less resources and help increase speeds.

You can create monitors and connect tasks to them. The monitors run and check to see whether a not the specified product is instock. They report this information back to any tasks that are connected to them. The tasks then process this information and if they see that the product is instock, they will then continue to the add to cart and checkout process.

### How To Connect A Task To A Monitor

As referenced earlier in the Tasks guide, the advanced tab in the task creator has a switch that allows you to toggle between connecting to an individual monitor

![The "Connect To Monitor" switch pictured above](/files/-MXsVM80HQ8s9WEsrFsR)

When creating a task with the intent of connecting it to a monitor, make sure you enter in the same product input and size as the monitor you wish to connect it to.

{% hint style="warning" %}
Random sizing is not supported when creating tasks that are connected to a monitor
{% endhint %}

Once tasks are started, the status of the tasks will update to "Connected To Monitor" followed by the product status as reported by the monitor.

![](/files/-MXsVrVWmHvBahKLthXZ)

{% hint style="warning" %}
If tasks get stuck on connecting to monitor, double check that a monitor is running and that the size and product is the same
{% endhint %}


---

# 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://mercury-aio.gitbook.io/mercury-docs/general-overview/task-groups/monitors.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.
