Templates / Generate RAG-based study flashcards from notes with OpenAI and Slack

Generate RAG-based study flashcards from notes with OpenAI and Slack

Ready for 3.0

by Oneclick AI Squad ✓ · 26 views · created 2026-08-13 · Content Creation, AI RAG

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 16 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Slack.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Set - Config (Edit Fields (Set)): sets 9 fields: embeddingApiUrl, embeddingModel, chunkSizeChars…
  2. JS - Chunk Notes & Prepare Embedding Requests (Code): runs custom JavaScript code
  3. Wait: pauses before continuing
  4. HTTP Request: calls an HTTP API (POST)
  5. JS - Vector Similarity Search & Context Assembly (Code): runs custom JavaScript code
  6. AI - Generate Flashcards from Context (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
  7. JS - Parse, Validate, Dedupe & Assign SM-2 Scheduling (Code): runs custom JavaScript code
  8. Wait: pauses before continuing
  9. If: checks a condition and branches into true / false
  10. Wait: pauses before continuing

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

Services it uses

OpenAI Chat ModelSlack

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 (10)

From the author

Quick overview This workflow turns submitted study notes into a reviewed flashcard deck by chunking the text, retrieving the most relevant passages with OpenAI embeddings, generating grounded Q&A cards with an OpenAI chat model, and sending the approved deck…

Excerpt from Oneclick AI Squad'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.