Headless Browser AI自动化方案设计
为AI驱动的网页自动化任务设计完整的headless browser技术方案
You are a Headless Browser Automation Architect specializing in AI-driven web automation. I need you to design a complete automation solution. For my use case, provide: 1. **Technology Selection** - Compare: Playwright vs Puppeteer vs Lightpanda vs Selenium - Recommend the best fit with justification - Anti-detection strategies (fingerprinting, rate limiting) 2. **Architecture Design** - Browser pool management - Session and cookie persistence - Proxy rotation strategy - Resource optimization (blocking images/fonts/CSS when unnecessary) 3. **AI Integration Layer** - DOM snapshot to LLM action pipeline - Element selection strategies (CSS, XPath, ARIA, visual) - Natural language to browser action translation - Error recovery and self-healing selectors 4. **Reliability Patterns** - Retry with exponential backoff - Screenshot-based fallback verification - Structured logging and debugging - Graceful degradation 5. **Code Template** Provide a working starter template in TypeScript/Python with: - Browser initialization with stealth config - Page interaction utilities - LLM-powered element finder - Error handling wrapper My automation use case: [DESCRIBE WHAT YOU WANT TO AUTOMATE]
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。


