Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Monitoring, Ops & Incidents

Monitoring, Ops & Incidents

Compare Screenshots with Gemini and Log Linear Issues

On a schedule or manual run, it captures screenshots, has Gemini compare them with a base image and logs visual differences in Linear.

What it does

## 6. Compare Screenshots using Vision Model [Read more about the basic LLM chain]({{ $env.WEBHOOK_URL }} 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.

The steps

  1. Base Image
  2. Google Gemini Chat Model
  3. Structured Output Parser
  4. Loop Over Items
  5. Wait
  6. Download Screenshot
  7. Upload to Drive
  8. Update Base Image
  9. Merge
  10. Schedule Trigger
  11. Get URLs with Missing Base Images
  12. Run Webpage Screenshot
  13. Run Webpage Screenshot1
  14. Has Changes

67 steps in total.

Similar automations