Skip to main content

Overview

Effective prompting is the key to successful browser automation. This guide teaches you how to write tasks that consistently produce great results.
Golden Rule: Be specific about actions, but let the agent figure out the details of how to execute them.

Prompting Principles

1. Be Specific vs Open-Ended

Why it matters:
  • Specific tasks reduce ambiguity
  • Agent makes fewer wrong decisions
  • Faster execution with fewer retries
  • More predictable results

2. Reference Actions by Name

When you know what action to use, name it explicitly:
See Available Tools for the complete list.

3. Structure Multi-Step Tasks

Break complex tasks into numbered steps:

Action-Specific Prompting

Form Interaction

Data Extraction

Scrolling

Error Recovery Patterns

Graceful Degradation

Retry Logic

Anti-Bot Detection

For production, use cloud browsers with automatic captcha bypass.

Custom Actions Integration

When you have custom tools, be explicit about when to use them:

2FA Custom Tools

Keyboard Navigation Workarounds

Sometimes clicks fail. Use keyboard as backup:
Common keyboard shortcuts:
  • "Enter" - Submit forms
  • "Escape" - Close modals
  • "Tab" - Navigate between fields
  • "ArrowDown" / "ArrowUp" - Navigate lists
  • "Space" - Toggle checkboxes

Vision-Based Tasks

Conditional Logic

Domain-Specific Prompting

E-commerce

Research & Data Collection

Social Media

Performance Optimization

Fast Mode Tasks

Zero-Cost Operations

Common Pitfalls

Don’t Over-Specify Implementation

Don’t Assume Element Details

Don’t Mix Instructions and Task

Testing and Iteration

Start Simple

Add Error Handling Progressively

Advanced Patterns

State Management

Dynamic Task Generation

Chained Agents

Next Steps

Available Tools

Reference all available actions

Custom Tools

Build specialized actions

System Prompts

Customize agent behavior

Examples

See more examples