Skip to main content

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

Workflow preview

Workflow preview
100%
Course recommendation system for surveys with data tables and GPT-4.1-Mini preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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

Best for

  • Lead Generation automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.formtrigger, n8n-nodes-base.datatable, n8n-nodes-base.aggregate, n8n-nodes-base.set, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Robert Breen.

Original n8n.io source

1.1 Workflow description

Title
Course recommendation system for surveys with data tables and GPT-4.1-Mini
Workflow name
Course recommendation system for surveys with data tables and GPT-4.1-Mini

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:

  • Collects survey responses through a Form Trigger
  • Saves responses to a Data Table called Survey Responses
  • Fetches a list of available courses from another Data Table called Courses
  • Passes both Data Tables into an OpenAI Chat Agent, which selects the most relevant course
  • Returns a structured recommendation with:
    • course: the course title
    • reasoning: why it was selected

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

  • Name
  • Q1 — Where did you learn about n8n?
  • Q2 — What is your experience with n8n?
  • Q3 — What kind of automations do you need help with?

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:

  • Course
  • Description

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

Node Purpose n8n Feature
Form Trigger Collect survey responses Forms
Data Table (Upsert) Stores results in Survey Responses Data Tables
Data Table (Get) Retrieves Courses Data Tables
Aggregate + Set Combines and formats table data Core nodes
OpenAI Chat Model (LangChain Agent) Analyzes responses and courses AI
Structured Output Parser Returns structured JSON output LangChain

💡 Tips for customization

  • Add more Data Table columns (e.g., email, department, experience years)
  • Use another Data Table to store AI recommendations or performance results
  • Modify the Agent system message to customize how AI chooses courses
  • Send recommendations via Email, Slack, or Google Sheets

🧾 Why Data Tables?

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

  • Create and manage tables directly inside n8n
  • No external integrations needed
  • Store structured data for AI prompts
  • Share tables across multiple workflows

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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 2 - Survey Submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 3 - Store Survey Result

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 4 - Get Available Courses

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 5 - Aggregate Courses

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 6 - Convert to Text

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Combine Results

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 8 - Choose Best Course

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 9 - Sticky Note55

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note61

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note63

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 14 - Sticky Note31

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Form

Type / Role
n8n-nodes-base.form - form
Config choices
Version 2.3

3. Summary Table

Workflow Course recommendation system for surveys with data tables and GPT-4.1-Mini
Complexity advanced
Nodes 15
Categories Lead Generation, AI RAG
Author Robert Breen
Published 09 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9437/9437.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Course recommendation system for surveys with data tables and GPT-4.1-Mini do?

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

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI RAG use case.