Overview
Effective prompting is the key to successful browser automation. This guide teaches you how to write tasks that consistently produce great results.Prompting Principles
1. Be Specific vs Open-Ended
- 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:3. Structure Multi-Step Tasks
Break complex tasks into numbered steps:Action-Specific Prompting
Navigation
Form Interaction
Data Extraction
Scrolling
Error Recovery Patterns
Graceful Degradation
Retry Logic
Anti-Bot Detection
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:"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