Visual Regression Testing with Apify and AI Vision Model

Part A. Generate Base Images Before we can run our visual regression tests, we must generate a series of base screenshots to compare against. This part of the workflow uses an external website screenshotting service, [Apify.com](https://www.apify.com?fpr=414q6), to achieve this. This part of the workflow should only be run when we want to update our base screenshots.

Workflow Structure (24 nodes)
100%
Manual Trigger
When clicking ‘Test workflow’
Google Sheets
Get URLs with Missing Base Images
Split In Batches
Loop Over Items
Merge
Merge
Http Request
Download Screenshot
Google Drive
Upload to Drive
Google Sheets
Update Base Image
Schedule Trigger
Schedule Trigger
Google Sheets
Get Webpages List
Split In Batches
For Each Webpage...
Google Drive
Base Image
Set
Combine Row and Result
Merge
Combine Screenshots
Filter
Has Changes
Aggregate
Aggregate
Linear
Create Report
Http Request
Run Webpage Screenshot
Wait
Wait
Http Request
Run Webpage Screenshot1
Http Request
Download New Screenshot
Langchain.lm Chat Google Gemini
Google Gemini Chat Model
Langchain.chain Llm
Visual Regression Agent
Langchain.output Parser Structured
Structured Output Parser
Wait
Wait1
Node Types:
action
default
logic
http
trigger
transform
Requires credentials

Prerequisites

Required Credentials (5)

Google Drive

Used by: Base Image, Upload to Drive

Docs

Google Palm

Used by: Google Gemini Chat Model

Docs

Google Sheets

Used by: Update Base Image, Get URLs with Missing Base Images +1 more

Docs

Http Query Auth

Used by: Run Webpage Screenshot, Run Webpage Screenshot1

Docs

Linear

Used by: Create Report

Docs

Multiple services required

This workflow needs 5 different credentials. Make sure you have accounts for all services before importing.

Complexity

Advanced

Expert level. Custom code, complex logic, many integrations.

Setup time: ~1 hour
Score: 85/100
Conditional Logic
Loops
8 Integrations

When to Use This Workflow

AI-Powered Content Creation

Automate content generation, summarization, or analysis using AI capabilities.

Save hours of manual work while maintaining quality and consistency.

Automated Reporting

Automatically collect and organize data into spreadsheets for analysis.

Spend less time on data entry and more time on insights.

Scheduled Operations

Run automated tasks at specific times - daily reports, weekly cleanups, monthly backups.

Set it and forget it - reliable automation that runs on your schedule.

workflow.json
{
  "meta": {
    "instanceId": "408f9fb9940c3cb18ffdef0e0150fe342d6e655c3a9fac21f0f644e8bedabcd9"
  },
  "nodes": [
    {
      "id": "cb62c9a5-2f43-4328-af94-84c2cb731d9c",
      "name": "Base Image",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        260,
        660
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.base }}"
        },
        "options": {
...

Workflow Details

Nodes
34
Trigger
Scheduled
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

🤖🧑‍💻 AI Agent for Top n8n Creators Leaderboard Reporting

AI Agent for n8n Creator Leaderboard Stats https://github.com/teds-tech-talks/n8n-community-leaderboard

Http-request
Lmchatopenai
Executeworkflow
Toolworkflow
49 nodesEvent
Curated

Intelligent Web Query and Semantic Re-Ranking Flow

Step 1. Set Up a Free Brave Web Search Query API Key To attain the free web search API tier from Brave, follow these ste...

Webhook
Outputparserautofixing
Outputparserstructured
Chainllm
20 nodesWebhook
Curated

Host Your Own AI Deep Research Agent with n8n, Apify and OpenAI o3

2. Ask Clarifying Questions [Read more about form nodes](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-b...

Outputparserstructured
Lmchatopenai
Form
Chainllm
87 nodesEvent
Curated

HR-focused automation pipeline with AI

HR Expert This workflow automates the process of handling job applications by extracting relevant information from submi...

Form
Informationextractor
Chainsummarization
Google-sheets
18 nodesEvent
Curated

Automate Image Validation Tasks using AI Vision

1. Import Photos To Validate [Read more about using Google Drive](https://docs.n8n.io/integrations/builtin/app-nodes/n8n...

Outputparserstructured
Google-drive
Editimage
Chainllm
11 nodesManual
Curated

Easy Image Captioning with Gemini 1.5 Pro

Try it out! This workflow takes an image and generates a caption for it using AI. The OpenAI node has been able to do t...

Lmchatgooglegemini
Outputparserstructured
Editimage
Http-request
16 nodesManual
Curated