I built my first real n8n workflow — Auto Couple Album for Immich 📸

Hey everyone! Long-time lurker, first-time poster here.

I’ve been self-hosting Immich for a while and always wanted a “just us” album — only photos where my wife and I appear together, no group shots, no solo photos, automatically kept up to date.

Spoiler: harder than I expected for a non-developer, but I got there!


What it does

Two workflows working together:

  • Full Library Backfill — scans your entire Immich library once and populates the album. Fully paginated so it doesn’t cap at 1000 photos.
  • Daily Incremental — runs every night at 3:30am, only checks the last 2 days of photos, sends a Telegram notification with the results.

The filter is strict: exactly 2 people in the photo, and both must be the people you configured. Solo shots and group photos are excluded.


What I learned building this

A few things that tripped me up that might help others:

  • fetch and $http are both unavailable in Code nodes on newer n8n versions with the task runner — use helpers.httpRequest instead
  • The Merge node in multiplex mode throws a “Fields to Match” error in newer n8n — I ended up doing the second person lookup inside a Code node with helpers.httpRequest instead, which works great
  • For error workflows to show up in the dropdown, the workflow must start with an Error Trigger node — a plain Code node won’t work

The workflow

Config node → Find Person 1 → Extract ID → Get Person 2 inside Code node → Fetch & filter (paginated) → IF any results → Add to Album → Telegram notify

Everything is configured in a single Config node at the top — names, album ID, API key, Telegram token. Should be easy for anyone to adapt.


I’ve published it on GitHub with a full README including setup instructions:
:backhand_index_pointing_right: GitHub - dhaval9911/n8n-immich-couple-album-auto: Automatically keep a Couple Album in Immich updated — only photos where exactly two specific people appear together, no solo shots, no group photos. · GitHub

Thanks to this community for all the posts that helped me figure this out. Happy to answer any questions! :folded_hands:

1 Like