> For the complete documentation index, see [llms.txt](https://docs.zerowork.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerowork.io/using-zerowork/using-selectors/what-are-selectors.md).

# What Are Selectors

Every element on a website can be identified by its unique selector (CSS or XPath). Each time you want your TaskBot to interact with an element of a website, such as clicking a button, your TaskBot needs to know the selector of that element in order to perform that action.

**Note**: While ZeroWork supports both CSS and XPath selectors, in this guide we will focus on CSS selectors only, as they are more beginner- and intermediate-friendly. We expect more advanced users to be already familiar with how to use XPath selectors. Here is a page whith some basic information about XPath: [How to Use XPath in ZeroWork (advanced)](/using-zerowork/using-selectors/how-to-use-xpath-in-zerowork-advanced.md).

Here is an overview of how to get selectors:

* [Copy Selectors](/using-zerowork/using-selectors/copy-selectors.md)
* [Use Element's Text](/using-zerowork/using-selectors/use-elements-text.md)
* [How to Build Custom Selectors](/using-zerowork/using-selectors/how-to-build-custom-selectors.md)

Are you wondering which way is the best? In the beginning, it may be enough to use the first two methods. These may also be enough if you automate websites other than social media. If you automate social media, then with time you will need to advance your skills by learning how to build your own selectors in order to build truly robust TaskBots.

### Selectors: Introduction and Overview

{% embed url="<https://youtu.be/xRiai6UL7fQ?si=UJb-nB4Fjs_zhv_c>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.zerowork.io/using-zerowork/using-selectors/what-are-selectors.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
