# 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>
