> ## Documentation Index
> Fetch the complete documentation index at: https://askui-docs-streamline-documentation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Natural Language

> Plain text task instructions.

## Basic Usage

```python theme={null}
from askui import VisionAgent

with VisionAgent() as agent:
    agent.act("""
        Open Firefox
        Navigate to amazon.com
        Search for "mechanical keyboard"
        Click first result
        Add to cart
    """)
```

## Writing Effective Instructions

```python theme={null}
# Good - visual description
agent.act('Click the orange "Add to Cart" button')

# Good - positional context
agent.act('Click the search icon in the top right')

# Bad - technical terms agent can't see
agent.act('Click the element with id="add-to-cart"')
```

## Patterns

### Form Filling

```python theme={null}
agent.act("""
    Fill registration form:
    - First Name: Jane
    - Email: jane@example.com
    - Password: SecurePass123!
    Check "I agree to terms"
    Click "Create Account"
""")
```

### Data Extraction

```python theme={null}
result = agent.get("""
    From the order confirmation, extract:
    - Order number
    - Total amount
    - Delivery date
""")
```

### Conditional

```python theme={null}
agent.act("""
    If there's a notification about "pending approval":
        Click it and approve
    Otherwise:
        Close the panel
""")
```
