# Aggregation and Automation

Planeobot is very effective when it comes to aggregating data and performance bulk actions. As an example, you can ask it to list environments and specify which have stacks deployed to them

<figure><img src="/files/4fc7BJZYiKqOMBUrCseG" alt=""><figcaption></figcaption></figure>

You can use Planeobot like a scripting language to help with wider testing

<figure><img src="/files/E1bmtJM3yACFFHBACI9B" alt=""><figcaption></figcaption></figure>

A request like this will generate a set of stacks similar to this, similar to what you'd expect from writing a simple script

<figure><img src="/files/9Qlbzpqm2ThvY5LTjAlK" alt=""><figcaption></figcaption></figure>


---

# 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://documentation.planeo.dev/using-planeobot/aggregation-and-automation.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.
