Templates / Generate production database schemas from Excel and CSV with OpenAI and LangChain

Generate production database schemas from Excel and CSV with OpenAI and LangChain

Ready for 3.0

by ResilNext ✓ · 96 views · created 2026-03-25 · Document Extraction, AI Summarization

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-10-19.

What this workflow does

This AI workflow has 21 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Workflow Configuration (Edit Fields (Set)): sets 3 fields: maxRevisionAttempts, minForeignKeyOverlap, confidenceThreshold
  2. Check File Type (If): checks a condition and branches into true / false
  3. Extract Excel Data (Extract from File): extracts data from a file (xlsx)
  4. Extract CSV Data (Extract from File): extracts data from a file
  5. Merge: merges the data from its input branches
  6. Compute File Hash & Profile Data (Code): runs custom JavaScript code
  7. Column Profiling Engine (Code): runs custom JavaScript code
  8. Schema Reasoning Agent (AI Agent): runs an AI agent, with model: OpenAI GPT; output parser: Schema Output Parser
  9. Rules Validation Layer (Code): runs custom JavaScript code
  10. Check Validation Result (If): checks a condition and branches into true / false

…plus 7 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.

Nodes used (10)

From the author

Overview This workflow automatically converts CSV or Excel files into a production-ready database schema using AI and rule-based validation. It analyzes uploaded data, detects column types, relationships, and data quality, then generates a normalized schema.…

Excerpt from ResilNext'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.