Check if the song is present in the database
Configured with Filter, Noco Db, Schedule Trigger, Loop Over Items, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Code
- Files / media
- Data store
- Routing
- Transform
- Trigger
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 |
|---|---|---|---|
| Get current date | Code | Code | See node parameters |
| Get last 10 liked tracks | Files / media | Spotify | library |
| Check if track is saved | Data store | Noco Db | getAll |
| Is not saved | Routing | If | See node parameters |
| Create song entry | Data store | Noco Db | create |
| Get all user playlist | Files / media | Spotify | playlist / getUserPlaylists |
| Get monthly playlist | Routing | Filter | See node parameters |
| Get playlist in DB | Data store | Noco Db | getAll |
| Monthly playlist exist in Spotify ? | Routing | If | See node parameters |
| Playlist exist in DB ? | Routing | If | See node parameters |
| Create playlist in Spotify | Files / media | Spotify | playlist / create |
| Create playlist in DB1 | Data store | Noco Db | create |
| Create playlist in DB | Data store | Noco Db | create |
| Merge | Transform | Merge | See node parameters |
| Clean op | Routing | No Op | See node parameters |
| Clean op2 | Routing | No Op | See node parameters |
| Get this month playlist in DB | Data store | Noco Db | getAll |
| Get this month tracks in DB | Data store | Noco Db | getAll |
| Add song to the playlist | Files / media | Spotify | playlist |
| For each tracks in liked song | Routing | Loop Over Items | See node parameters |
| For each monthly tracks in DB | Routing | Loop Over Items | See node parameters |
| Get this month tracks in Spotify | Files / media | Spotify | playlist / getTracks |
| Filter1 | Routing | Filter | See node parameters |
| Song is not present in the playlist ? | Routing | If | See node parameters |
| Clean op1 | Routing | No Op | See node parameters |
| Schedule Trigger | Trigger | Schedule Trigger | See node parameters |
| End | Routing | No Op | 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
nocoDbApiTokenspotifyOAuth2Api
Workflow notes
Check if the song is present in the database
Check if the song is present in the database
Purpose and structure
This folder contains the Check if the song is present in the database workflow. Its executable nodes use code, filter, if, merge, noOp, nocoDb, scheduleTrigger, splitInBatches, spotify. 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
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/Code/0034_Code_Filter_Create_Scheduled.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Check if the song is present in the database
- Check if the playlist present in the database
- Check if the song is in the Spotify playlist. If not, add it.