# How can I define browser instructions automatically?

You can easily automate browser instructions, such as clicking, scrolling, filling out forms, or waiting for elements, with our browser instructions feature available in the [Web Scraper API Playground](https://dashboard.oxylabs.io/en/?route=/api-playground).

This can be done in two ways:

* **Create from scratch:** Define browser actions through an intuitive step-by-step interface, and wait for the system to automatically generate the necessary code. Once finalized, download the instructions in a structured JSON format for easy integration into API requests.
* **Prefill with AI:** Instead of manually selecting actions, simply enter a natural language prompt, click "Generate," and the instructions will be automatically prefilled with AI.

***

<a href="https://dashboard.oxylabs.io/en/" class="button primary">Head back to the dashboard</a>


---

# 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://developers.oxylabs.io/help-center/products-and-features/how-can-i-define-browser-instructions-automatically.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.
