AutomationMart
Home/Browse/Beginner AI dataset generator using OpenAI + LangChain in n8n
n8n

Beginner AI dataset generator using OpenAI + LangChain in n8n

n8nn8n19 modulesv1.0
Google SheetsOpenAILinkedIn

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 ---

At a glance

Beginner AI dataset generator using OpenAI + LangChain in n8n is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Google Sheets, OpenAI, LinkedIn. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Google Sheets, OpenAI, LinkedIn
Modules
19
Price
Free
Version
v1.0
Beginner AI dataset generator using OpenAI + LangChain in n8n workflow diagram

About this workflow

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: - 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 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 🥉 Step 3: Set Topic - Add a Set node named Set Topic to Search - Field: Topic = n8n use cases (or any topic you choose) ✨ Step 4: Generate Structured Data - LangChain Agent node Generate Random Data - Connect to OpenAI Chat Model1 and Tool: Inject Creativity1 - System prompt: instruct AI to output 5 columns of realistic values in JSON 🔧 Step 5: Parse AI Output - Structured Output Parser to validate JSON 🔄 Step 6: Flatten Data - Code node Outpt all Data to One Field - Joins all values into a comma-separated string for column naming 🧠 Step 7: Generate Column Names - LangChain Agent Generate Column Names - Connect to OpenAI Chat Model2 - Prompt: infer 5 column names from the string 🔢 Step 8: Pivot Names Row - Code node Pivot Column Names transforms array into { column1: name1, … } 🪓 Step 9: Split Columns - 5 SplitOut nodes to break each array back into rows per column 🔗 Step 10: Merge Rows - Merge node Merge Columns together using combineByPosition 🏷️ Step 11: Rename Columns - Set node Rename Columns assigns the AI-generated names to each column 🔗 Step 12: Final Output - Merge Append Column Names combines data and header row --- 🏁 Done! You now have a fully AI-driven, labeled dataset generated from a single topic—no external services needed. Easily extend by adding a Google Sheets or HTTP node to export. 📬 Need Help or Want to Customize This? 📧 robert@ynteractive.com 🔗 LinkedIn

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Add new ActiveCampaign subscribers to a Google Sheets spreadsheet

Every time a new subscriber is added to ActiveCampaign, Make will automatically add that subscriber to a new row in a Google Sheets spreadsheet. If you want to use this template as it is, you need to create a table according to this [example] (https://goo.gl/HofgmG).

Free

Classify documents with Gemini and organize them in Google Drive

Who is this for Accountants and office managers who want to automatically classify and organize documents in Google Drive. What this workflow does Retrieves files from a Google Drive inbox folder, classifies each using Gemini 2.5 Flash OCR, then renames, moves, and logs them. Get inbox files → Loop through files → Download file fetches files one by one. Check file type routes PDFs and images to Convert to Base64; unsupported formats go to Handle unsupported format → Send error notification → Log

Free

Create new Google Docs documents from 2 ChatGPT Prompt completions triggered by RSS articles

Automatically generate Google Docs from 2 ChatGPT prompt completions triggered by new RSS articles. Streamline content creation with AI-driven insights and document management.

Free

Analyze Facebook Ads & send insights to Google Sheets with Gemini AI

This workflow turns n8n into an AI-powered media buyer that automatically analyzes your ad performance, categorizes your creatives, and delivers insights.

Free

Summarize meeting notes in Noloco with OpenAI

Get instant, high-level summaries of your meetings and auto-generated titles using OpenAI. This template watches your Noloco Meetings table, takes the call notes or transcript, and produces a short summary and a clear, descriptive meeting title. Perfect for teams using Noloco as a CRM or internal meeting tracker, this workflow ensures your records stay organized and readable — without the manual effort. Before using this template: Make sure your Noloco app has a Meetings table with a Notes or

Free

Extract product info from website screenshots with Dumpling AI + Sheets

What this workflow does This workflow extracts product details—like name, price, discount, and rating— from website screenshots using Dumpling AI. It starts when a new product page URL is added to a Google Sheet, captures a screenshot of that page, extracts visible product info from the image, and writes the results back into the sheet. What problem is this workflow solving? Many product pages block traditional scraping tools or use unstructured layouts. This workflow bypasses HTML limitatio

Free

Generate product mockups with Nano Banana (Gemini 2.5 Flash Image)

This n8n template uses AI to generate product mockups by composing a product image onto a model or template image. This workflow provides a powerful solution for creating dynamic marketing assets and e-commerce visuals. Use cases are many: Instantly create virtual try-on images for apparel, place your product into different scenes for advertisements, or generate custom marketing material without needing a physical photoshoot. Good to know This workflow uses the OpenRouter API to a

Free

Qualify Idealista leads via WhatsApp with Superchat and GPT-4o

Who's it for This template is built for real estate agencies and agents in Spain, Italy, and Portugal who receive property inquiries through Idealista and want to respond to leads faster using automation and AI. How it works The workflow monitors your inbox for new emails and filters for messages from Idealista. When a match is found, an AI agent extracts key lead details like name, phone number, and property reference from the unstructured email. A WhatsApp template message is then automaticall

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free