Templates / Beginner AI dataset generator using OpenAI + LangChain in n8n

Beginner AI dataset generator using OpenAI + LangChain in n8n

Ready for 3.0

by Robert Breen ✓ · 2,396 views · created 2025-08-08 · Document Extraction, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 19 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Set Topic to Search (Edit Fields (Set)): sets 1 field: Topic
  2. Generate Random Data (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Tool: Inject Creativity); output parser: Structured Output Parser
  3. Split Column (Split Out): splits a list into separate items
  4. Split Column (Split Out): splits a list into separate items
  5. Split Column (Split Out): splits a list into separate items
  6. Split Column (Split Out): splits a list into separate items
  7. Split Column (Split Out): splits a list into separate items
  8. Outpt all Data to One Field (Code): runs custom JavaScript code
  9. Merge: merges the data from its input branches
  10. Generate Column Names (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser

…plus 3 more steps. See the full node list below.

Services it uses

OpenAI Chat Model

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

From the author

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…

Excerpt from Robert Breen's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.