Classify Plex music into smart playlists using Ollama and local LLMs
Ready for 3.0What this workflow does
This workflow has 31 nodes and runs on a schedule (every week at 22:00). It uses only n8n's built-in nodes. It also calls my_host_or_ip:32400 and my_ollama_host_or_ip:11434 over HTTP.
How it runs
Trigger: On a schedule (every week at 22:00).
- HTTP Request: calls my_host_or_ip:32400
- HTTP Request: calls my_host_or_ip:32400
- Code: runs custom JavaScript code
- [ Clear Store ] (Code): runs custom JavaScript code
- Set Offset (Edit Fields (Set)): sets 2 fields: offset, sectionId
- HTTP Fetch Plex Lib Data (HTTP Request): calls an HTTP API
- Code: runs custom JavaScript code
- If: checks a condition and branches into true / false
- Return Track List (Code): runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
…plus 20 more steps. See the full node list below.
HTTP calls to: my_host_or_ip:32400, my_ollama_host_or_ip:11434
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview A scheduled workflow that (1) fetches all tracks from a Plex Music library, (2) sends them in batches to a local Ollama LLM for playlist classification, (3) recreates and populates matching Plex playlists. How it works 1. Runs weekly on a…