Skip to main content
Community template Uses AILead GenerationAI RAG

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

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. --- This workflow demonstrates how to use n8n’s built-in Data Tables to create an internal recommendation…

Template by Robert Breen · Original listing (opens in a new tab)

Starts on
Form submission
Nodes
10 nodes
Level
Intermediate
Setup
About 12 min

Workflow preview

How this workflow runs

  1. 1

    Survey Submission

    Starts the workflow from a public form submission, capturing the submitted fields.

  2. 2

    Structured Output Parser

    Forces the AI output into a structured JSON schema for reliable downstream use.

  3. 3

    OpenAI Chat Model

    Provides the OpenAI chat model (GPT) that powers the AI reasoning in this workflow.

  4. 4

    Store Survey Result

    Reads or writes rows in an n8n Data Table.

  5. 5

    Get Available Courses

    Reads or writes rows in an n8n Data Table.

  6. 6

    Combine Results

    Combines data from multiple branches back into a single stream.

  7. 7

    Aggregate Courses

    Combines multiple items into a single aggregated item.

  8. 8

    Choose Best Course

    The AI agent that orchestrates the workflow — it reasons over the input and decides which tools to call.

  9. 9

    Convert to Text

    Sets or transforms workflow data — prepares, renames, or injects fields before the next step.

  10. 10

    Form

    Handles the Form step in this workflow.

Creator's notes and setup

Written by Robert Breen for the original listing.

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

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

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


n8n nodes used (9 types)

What every node does (10)
  • Structured Output Parser (Output Parser Structured)Forces the AI output into a structured JSON schema for reliable downstream use.
  • Survey Submission (Form Trigger)Starts the workflow from a public form submission, capturing the submitted fields.
  • Store Survey Result (Data Table)Reads or writes rows in an n8n Data Table.
  • Get Available Courses (Data Table)Reads or writes rows in an n8n Data Table.
  • Aggregate Courses (Aggregate)Combines multiple items into a single aggregated item.
  • Convert to Text (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Combine Results (Merge)Combines data from multiple branches back into a single stream.
  • Choose Best Course (Agent)The AI agent that orchestrates the workflow — it reasons over the input and decides which tools to call.
  • OpenAI Chat Model (LLM Chat Open AI)Provides the OpenAI chat model (GPT) that powers the AI reasoning in this workflow.
  • Form (Form)Handles the Form step in this workflow.

FAQ

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

How do I import the "Course recommendation system for surveys with data tables and GPT-4.1-Mini" workflow into n8n?

Copy the workflow JSON from this page, open the n8n editor, click on an empty canvas and paste with Ctrl+V (Cmd+V on macOS). You can also download the .json file and choose Import from File in the workflow menu. Save the workflow, then attach credentials before activating it.

Which nodes and credentials does "Course recommendation system for surveys with data tables and GPT-4.1-Mini" use?

It uses Merge, Set, Agent, LLM Chat Open AI, Output Parser Structured and Form Trigger, plus 3 more. Any node that connects to an external service needs your own credential — open each node after import and select or create one. Trigger, logic and transformation nodes usually need no credentials.

Can it run on n8n Cloud and on self-hosted n8n?

The workflow format is the same on both. If a node appears as unknown or outdated after import, update n8n to a recent version or, on self-hosted instances, install the required community node package. Features such as $env access are available on self-hosted instances only.

How can I customise "Course recommendation system for surveys with data tables and GPT-4.1-Mini"?

Start by changing the trigger (schedule, webhook or app event) and the destination nodes to match your stack — it is listed under Lead Generation, AI RAG. Edit prompts, field mappings and filters in the relevant nodes, use expressions like {{ $json.field }} to map data, and test with a manual execution before activating.

n8n is a trademark of n8n GmbH. AltFTool is not affiliated with, endorsed by or sponsored by n8n. Community templates are credited to their creators and link to the original listing; AltFTool originals are written and tested by the AltFTool team.

About this page

Free n8n workflow templates to copy and import

The AltFTool n8n library collects free n8n workflow templates for AI agents, Gmail, Google Sheets, Telegram and other apps. Each workflow page shows a preview, the list of nodes and the credentials it needs, and lets you copy or download the JSON to import into your own n8n.

Search the templates by app or task, or browse them by category and by node. The Workflow Inspector checks any workflow JSON for triggers, credentials and hardcoded keys before you share it, and the expressions cheat sheet gives copy-paste n8n expression examples. AltFTool is not affiliated with n8n.

People also search for

  • n8n workflow templates
  • n8n templates
  • n8n automation examples
  • n8n json workflows
  • n8n nodes
  • free n8n workflow templates
  • n8n ai agent template
  • n8n expressions cheat sheet