by System Admin
Tagged with: , , , ,
by System Admin
Tagged with: , , , ,
by System Admin
Tagged with: , , , ,
by System Admin
Tagged with: , , , ,
by System Admin
Tagged with: , , , ,
by System Admin
Tagged with: , , , ,
by System Admin
Tagged with: , , , ,
by Milan Vasarhelyi - SmoothWork
Video Introduction Want to automate your inbox or need a custom workflow? 📞 Book a Call | 💬 DM me on Linkedin Workflow Overview This workflow creates a recipe finder web application that connects to the API Ninjas Recipe API using n8n's HTTP Request node. Users submit search queries through a public web form, which triggers an API call to fetch matching recipes. The results—including recipe title, ingredients, and cooking instructions—are displayed in a formatted completion page. Why This Workflow Is Valuable This template demonstrates API-to-API integration, a crucial skill for connecting services that don't have pre-built n8n nodes. By using direct API calls, you gain access to the full functionality of external services. This pattern can be adapted to integrate virtually any tool with an API into your n8n workflows. Common Use Cases Create public-facing forms that query external databases Build custom search tools for specialized APIs Integrate niche services without dedicated n8n nodes Learn header authentication for secure API connections Setup & Configuration Register for API Ninjas: Sign up at API Ninjas to access their Recipe API Get your API Key: Locate your API key in the API Ninjas dashboard Configure Credentials: In n8n, create a new Header Auth credential Set the header name to match the API requirement (e.g., 'X-Api-Key') Paste your API key as the value Apply this credential to the HTTP Request node The Form Trigger generates a public URL for users to submit queries. Customize the form title, field labels, and completion message HTML to match your needs.
by System Admin
No description available
by System Admin
Tagged with: , , , ,
by Robert Breen
A minimal, plug-and-play workflow that generates sample data using n8n’s Code node (both JavaScript and Python versions included) and then fans out those records into individual items with Split Out. Perfect for testing downstream nodes, mapping, pagination, or prototyping list-based logic without connecting to real data sources. ✅ What this template does Generates 20 sample records** with fields: index, num, and test Writes the array to item.json.barr Uses Split Out to convert the array into one item per record Includes both JavaScript and Python implementations side-by-side 👤 Who’s it for Builders who need mock data to test mappings and loops Educators/demo makers who want a simple fan-out pattern Anyone who wants a clean scaffold for list processing in n8n ⚙️ How it works / What it does Generate Data Javascript**: Produces barr = [{ index, num, test }, ...] for 20 rows Generate Data Python**: Same output, written in Python Split Out Javascript / Python: Takes barr and emits **one item per element > Use either branch (JS or Python) depending on your preference. 🛠️ How to set up No external setup required. Import the workflow and Execute. Select either the JavaScript or Python branch to see fan-out items. 📋 Requirements n8n (Cloud or self-hosted) No credentials or third-party services 🎛️ Customize the workflow Change the number of rows: adjust the loop range (0..N) Rename or add fields to each record (e.g., name, price, tags) Replace the static array with generated or randomized data Pipe the Split Out output into Set, Function, HTTP, or Sheets nodes for further testing 🗒️ Notes Sticky notes are included for in-editor guidance. Both implementations return the same structure so you can swap freely. 📬 Contact Need help customizing this (e.g., shaping fields, adding randomizers, or exporting to CSV/Sheets)? 📧 rbreen@ynteractive.com 🔗 Robert Breen — https://www.linkedin.com/in/robert-breen-29429625/ 🌐 ynteractive.com — https://ynteractive.com
by Arthur Dimeglio
🎧 Automated Spotify Playlist Organizer — Sort and Queue Tracks by Popularity 🧠 Overview This workflow acts as your AI-powered Spotify DJ assistant. It retrieves your playlists, cleans and organizes them, sorts tracks by popularity, and automatically queues them for playback — creating a ready-to-play, personalized listening session. ⸻ ⚙️ Step-by-Step Breakdown Manual Trigger Node: When clicking ‘Execute workflow’ Starts the workflow manually when you click “Execute” in n8n. ⸻ Get User’s Playlists Node: Get a user’s playlists • Uses your Spotify OAuth credentials. • Calls Spotify’s API to retrieve all playlists from your account (returnAll: true). • Output: an array of playlists (name, URI, number of tracks, etc.). 🟢 This is your raw data source. ⸻ Clean & Deduplicate Node: Clean & Deduplicate (Code node) This JavaScript block: • Normalizes input (handles arrays and multiple items). • Extracts only useful fields: name, uri, total. • Filters out playlists missing data. • Removes duplicates by URI. 🧹 Result: a clean, uniform list of your playlists. ⸻ Get a Playlist’s Tracks Node: Get a playlist’s tracks by URI or ID • Fetches all tracks from a specific playlist. • Returns detailed info: name, popularity, artists, album, added date, etc. 🎵 This retrieves the actual songs from your chosen playlist. ⸻ Playlist Reorganizer Node: Playlist reorganizer (Code node) This JavaScript block: • Collects all tracks from the selected playlist. • Avoids duplicates with seenTrackIds. • Extracts key fields: id, name, popularity, artists, album, added_at, url, etc. • Sorts songs by ascending popularity (less popular first). 📊 Result: playlist reorganized by song popularity. ⸻ Loop Over Items Node: Split in Batches • Iterates over each track one by one. • Sends each song sequentially to the next node (“Add a song to a queue”). 🔁 Allows each song to be processed individually. ⸻ Add a Song to a Queue Node: Add a song to a queue • Uses each song’s Spotify ID to add it to your Spotify playback queue (spotify:track:{{ $json.id }}). • Connected to the “Loop Over Items” node to continue until all songs are queued. 🎶 Result: your Spotify queue fills automatically with the reorganized tracks. ⸻ ✅ Final Result When you execute this workflow: It fetches all your playlists. Cleans and filters them. Extracts tracks from one selected playlist. Sorts them by popularity. Adds them to your playback queue. 🎧 End result: a fully automated “AI DJ” that reorganizes your playlists and lines up your music session — from discovery to playback. ⸻ 🪪 Prerequisites Before using this workflow: • You must have a Spotify account. • You need to set up Spotify OAuth credentials in n8n (Client ID, Client Secret, Redirect URI). • Ensure you have Spotify Premium (API queueing only works on Premium accounts). ⸻ 🛠️ Setup Instructions Import this workflow into your n8n instance. Go to the Spotify OAuth2 API credentials section and connect your account.