Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Web Scraping & Research

Web Scraping & Research

Scrape Pages with a Gemini Vision Agent and ScrapingBee

When you run it or another workflow calls it, it reads URLs from Google Sheets, fetches pages with ScrapingBee and extracts data with a Gemini vision agent.

What it does

## Vision-Based Scraping AI Agent This is the central node of the workflow, powered by an AI Agent with two key prompts: - System Prompt: Instructs the AI on how and what data to extract from the screenshot. You can customize this to suit your needs. It also includes fallback instructions to call a tool for retrieving the HTML page if data extraction from the screenshot fails. - User Message: Provides the page URL for context. ### Sub-Nodes 1. Google Gemini Chat Model Chosen because tests show that Gemini-1.5-Pro outperforms GPT-4 and GPT-4-Vision in visual tasks. *Either my prompt wasn’t optimized for GPT models, or GPT might need glasses 👓*. Other multimodal LLMs haven’t been tested yet. 2. HTML-Based Scraping Tool A fallback tool the agent uses if it cannot extract data directly from the screenshot. 3. Structured Output Parser Formats the extracted data into an easy-to-use structure, ready to be added to the results page in Google Sheets.

The steps

  1. When clicking ‘Test workflow’
  2. ScrapingBee- Get page HTML
  3. Structured Output Parser
  4. Google Gemini Chat Model
  5. Split Out
  6. Google Sheets - Get list of URLs
  7. Set fields
  8. ScrapingBee - Get page screenshot
  9. HTML-based Scraping Tool
  10. Google Sheets - Create Rows
  11. Vision-based Scraping Agent
  12. HTML-Scraping Tool
  13. Set fields - from AI agent query
  14. HTML to Markdown

Similar automations