Create PDF flashcards, quizzes, and study plans with Gemini and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs when someone submits an n8n form (“PDF to flashcards”). Along the way it connects Google Gemini Chat Model, Gmail and Google Sheets.
How it runs
Trigger: When someone submits an n8n form (“PDF to flashcards”).
- Extract Study Text (Extract from File): extracts data from a file (pdf)
- Has Enough Text (If): checks a condition and branches into true / false
- Generate Flashcards with Gemini (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Study Pack Parser
- Email Unreadable PDF (Gmail): uses Gmail
- Parse Study Pack (Code): runs custom JavaScript code
- Email Generation Failure (Gmail): uses Gmail
- Email Study Plan (Gmail): uses Gmail
- Split Quiz Questions (Split Out): splits a list into separate items
- Split Flashcards (Split Out): splits a list into separate items
- Save Quiz Questions (Google Sheets): append
…plus 1 more step. See the full node list below.
Services it uses
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)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - Split Out
n8n-nodes-base.splitOut - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick Overview This workflow collects a PDF and study preferences via an n8n form, extracts its text, uses Google Gemini to generate flashcards, a quiz, key topics, and a study plan, then saves the cards and quiz to Google Sheets and emails the study plan via…