Beginner AI dataset generator using OpenAI + LangChain in n8n
This n8n workflow dynamically generates a realistic sample dataset based on a single topic you provide. It uses OpenAI (via LangChain) and n8n’s built-in nodes to: 1. Generate structured JSON data for 5 columns with 3...
Template notes
This n8n workflow dynamically generates a realistic sample dataset based on a single topic you provide. It uses OpenAI (via LangChain) and n8n’s built-in nodes to:
1. Generate structured JSON data for 5 columns with 3–5 values each 2. Flatten that data into a single text blob 3. Infer meaningful column names via a second AI call 4. Pivot, split, merge, and rename columns automatically 5. Output a clean, labeled dataset ready for export or further processing
---
⚙️ Prerequisites
1. OpenAI API Key - Visit: https://platform.openai.com/account/api-keys - Create a new key - In n8n: Credentials → New → OpenAI API, paste key, name it “OpenAi account”
2. LangChain nodes enabled in your n8n instance
🥇 Step 1: Set Up OpenAI Credential 1. Go to [OpenAI API Keys](https://platform.openai.com/account/api-keys) 2. Create and copy your key 3. In n8n: Credentials → New → OpenAI API → paste key as “OpenAi account”
🥈 Step 2: Manual Trigger - Add Manual Trigger to start the workflow