PromptForge
返回列表
AI开发browser-automationheadlessweb-scrapingAI-agent

Headless Browser AI自动化方案设计

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

15 浏览3/22/2026

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]