download google drive and http request and upload to drive
Configured with Aggregate, Chain LLM, Filter, Google Drive, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Files / media
- AI & models
- Transform
- Routing
- Wait
- Web / API
- Data store
- Trigger
- Integration
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Base Image | Files / media | Google Drive | download |
| Google Gemini Chat Model | AI & models | LM Chat Google Gemini | See node parameters |
| Structured Output Parser | Transform | Output Parser Structured | See node parameters |
| Loop Over Items | Routing | Loop Over Items | See node parameters |
| Wait | Wait | Wait | See node parameters |
| Download Screenshot | Web / API | HTTP Request | See node parameters |
| Upload to Drive | Files / media | Google Drive | See node parameters |
| Update Base Image | Data store | Google Sheets | appendOrUpdate |
| Merge | Transform | Merge | See node parameters |
| Schedule Trigger | Trigger | Schedule Trigger | See node parameters |
| Get URLs with Missing Base Images | Data store | Google Sheets | See node parameters |
| Run Webpage Screenshot | Web / API | HTTP Request | POST |
| Run Webpage Screenshot1 | Web / API | HTTP Request | POST |
| Has Changes | Routing | Filter | See node parameters |
| Combine Row and Result | Transform | Edit Fields | See node parameters |
| Wait1 | Wait | Wait | See node parameters |
| Aggregate | Transform | Aggregate | See node parameters |
| Create Report | Integration | Linear | See node parameters |
| When clicking ‘Test workflow’ | Trigger | Manual Trigger | See node parameters |
| Get Webpages List | Data store | Google Sheets | See node parameters |
| For Each Webpage... | Routing | Loop Over Items | See node parameters |
| Download New Screenshot | Web / API | HTTP Request | See node parameters |
| Combine Screenshots | Transform | Merge | See node parameters |
| Visual Regression Agent | AI & models | Chain LLM | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
googleDriveOAuth2ApigooglePalmApigoogleSheetsOAuth2ApihttpQueryAuthlinearApi
Workflow notes
Part A. Generate Base Images
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, to achieve this. This part of the workflow should only be run when we want to update our base screenshots.
5. Download Base and Generate new Webpage Screenshot
5. Download Base and Generate new Webpage Screenshot
Looping for each webpage, we'll do 2 tasks (1) download the base screenshot for the url and (2) and use our Apify.com webpage screenshot actor again to generate a fresh screenshot.
6. Compare Screenshots using Vision Model
6. Compare Screenshots using Vision Model
Read more about the basic LLM chain
To carry out our visual regression test, we need to send both screenshots simultaneously to our Vision model. This is easily achieved using n8n's built-in basic LLM chain where we can define two user messages of the binary type. For our vision model, we'll use Google's Gemini but any capable vision model will also do the job. A Structured Output Parser is used here to return the AI's response in JSON format, this is for easier formatting purposes which we'll get to in the next step.
7. Create Report In Linear
7. Create Report In Linear
Learn more about integrating with Linear.app
For the final step, we'll generate a simple report which will capture any changes detected in our webpages list. Let's do this by first combining our webpages with their test results and filter out any in the page where no changes were detected. Next, we'll aggregate all changes into the Linear.app node which will be formatted into a markdown snippet and used to create a new issue in Linear. If you don't use Linear, feel free to swap this out for JIRA or even Slack.
4. Trigger Visual Regression Test Run
4. Trigger Visual Regression Test Run
Read more about the Schedule Trigger
Once we've generated our base images to compare with in Part A, we can now run our Visual Regression Tests. These tests are intended to check for unexpected changes to a webpage by using some form of image detection. To trigger Part B, we'll start with a schedule trigger and pull a list of webpages to test from Google Sheets.
1. Get List of Webpages to Generate Base Images
1. Get List of Webpages to Generate Base Images
Learn more about using Google Sheets
This workflow is split into 2 parts: Part A will generate the "base" screenshots to compare new screenshots against. To capture these base screenshots, we'll use Google Sheets to hold our list of webpages and their screenshot references (we'll come on to that later).
Example Sheet: https://docs.google.com/spreadsheets/d/REPLACE_WITH_DOCUMENT_ID/2PACX-1vTXRZRi55dUbLAsWZboJqH5U-EK0ZRSse8pkqANAV4Ss70otpQ97zgT8YBd3dL4d2u2UC1TTx_o1o1R/pubhtml
2. Generate Webpage Screenshot via Apify
2. Generate Webpage Screenshot via Apify
To generate a screenshot of the webpage, we'll need a third party service since this functionality is outside the scope of n8n. Feel free to pick whichever internal or external service works for you but I've had great experience using Apify.com - a popular webscraping SaaS who offer a generous free plan and require very little configuration to get started.
The Apify "actor" (ie. a type of scraper) we'll be using is specifically designed to take webpage screenshots.
3. Upload Screenshot to Google Drive
3. Upload Screenshot to Google Drive
Read more about using the Google Drive node
Once we have our screenshots, we'll download them from Apify and upload them to our Google Drive for safe keeping. After uploading, we'll capture the new Google Drive IDs for the images into our Google Sheet, this will allow us to reference them again when we perform the visual regression testing.
Part B. Run Visual Regression Test
Part B. Run Visual Regression Test
In this part of the workflow, we'll retrieve our list of webpages to test with our AI vision model. This part can be run as many times as required.
Try It Out!
Try It Out!
This workflow implements an approach to Visual Regression Testing - a means to test websites for defects - using AI Vision Models.
This workflow uses a Google Sheet to track a list of webpages to test and is split into 2 parts; Part A generates the base screenshots of the list and Part B runs the visual regression testing.
The example spreadsheet can be found here: https://docs.google.com/spreadsheets/d/REPLACE_WITH_DOCUMENT_ID/2PACX-1vTXRZRi55dUbLAsWZboJqH5U-EK0ZRSse8pkqANAV4Ss70otpQ97zgT8YBd3dL4d2u2UC1TTx_o1o1R/pubhtml
Apify.com is the screenshot generator of choice and a free account with $5 in credit is available via this link.
Need Help?
download google drive and http request and upload to drive
download google drive and http request and upload to drive
Purpose and structure
This folder contains the download google drive and http request and upload to drive workflow. Its executable nodes use aggregate, chainLlm, filter, googleDrive, googleSheets, httpRequest, linear, lmChatGoogleGemini, manualTrigger, merge, outputParserStructured, scheduleTrigger, set, splitInBatches, wait. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
Schedule Trigger, When clicking ‘Test workflow’
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Wait/0578_Wait_Schedule_Create_Webhook.json MIT; preserve source notices.