返回提示词库
文本 · 通用大模型Headless Browser AI自动化方案设计PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型AI 与 Agent

Headless Browser AI自动化方案设计

为AI驱动的网页自动化任务设计完整的headless browser技术方案

49浏览
完整提示词可替换花括号中的变量后直接使用

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]

2026/3/22

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。