🎣 Course recommendation system for surveys with data tables and GPT-4.1-Mini

⚑ 3,545 views · 🎣 Lead Generation & Enrichment

Description

Use the n8n Data Tables feature to store, retrieve, and analyze survey results β€” then let OpenAI automatically recommend the most relevant course for each respondent.


🧠 What this workflow does

This workflow demonstrates how to use n8n’s built-in Data Tables to create an internal recommendation system powered by AI.

It:

> Trigger: Form submission (manual or public link)


πŸ‘₯ Who it’s for

Perfect for educators, training managers, or anyone wanting to use n8n Data Tables as a lightweight internal database β€” ideal for AI-driven recommendations, onboarding workflows, or content personalization.


βš™οΈ How to set it up

1️⃣ Create your n8n Data Tables

This workflow uses two Data Tables β€” both created directly inside n8n.

🧾 Table 1: Survey Responses

Columns:

To create:

  1. Add a Data Table node to your workflow.
  2. From the list, click β€œCreate New Data Table.”
  3. Name it Survey Responses and add the columns above.

πŸ“š Table 2: Courses

Columns:

To create:

  1. Add another Data Table node.
  2. Click β€œCreate New Data Table.”
  3. Name it Courses and create the columns above.
  4. Copy course data from this Google Sheet:
    πŸ‘‰ https://docs.google.com/spreadsheets/d/1Y0Q0CnqN0w47c5nCpbA1O3sn0mQaKXPhql2Bc1UeiFY/edit?usp=sharing

This Courses Data Table is where you’ll store all available learning paths or programs for the AI to compare against survey inputs.


2️⃣ Connect OpenAI

  1. Go to OpenAI Platform
  2. Create an API key
  3. In n8n, open Credentials β†’ OpenAI API and paste your key
  4. The workflow uses the gpt-4.1-mini model via the LangChain integration

🧩 Key Nodes Used

NodePurposen8n Feature
Form TriggerCollect survey responsesForms
Data Table (Upsert)Stores results in Survey ResponsesData Tables
Data Table (Get)Retrieves CoursesData Tables
Aggregate + SetCombines and formats table dataCore nodes
OpenAI Chat Model (LangChain Agent)Analyzes responses and coursesAI
Structured Output ParserReturns structured JSON outputLangChain

πŸ’‘ Tips for customization


🧾 Why Data Tables?

This workflow shows how n8n’s Data Tables can act as your internal database:

All user data and course content are stored securely and natively in n8n Cloud or Self-Hosted environments.


πŸ“¬ Contact

Need help customizing this (e.g., expanding Data Tables, connecting multiple surveys, or automating follow-ups)?

πŸ”— Nodes Used

AI Agent, OpenAI Chat Model, Structured Output Parser, n8n Form Trigger, n8n Form, Data table

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup