Generate Exam Questions
Configured with Agent, Chain LLM, Chain Retrieval Qa, Convert To File, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- Data store
- Web / API
- AI & models
- Files / media
- Transform
- Code
- Routing
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| When clicking ‘Test workflow’ | Trigger | Manual Trigger | See node parameters |
| Qdrant Vector Store | Data store | Vector Store Qdrant | See node parameters |
| Create collection | Web / API | HTTP Request | PUT |
| Refresh collection | Web / API | HTTP Request | POST |
| Embeddings OpenAI | AI & models | Embeddings Open Ai | See node parameters |
| Default Data Loader | Files / media | Document Default Data Loader | See node parameters |
| Token Splitter | Transform | Text Splitter Token Splitter | See node parameters |
| Converto di MD | Code | Code | See node parameters |
| Get Doc | Files / media | Google Docs | get |
| Vector Store Retriever | AI & models | Retriever Vector Store | See node parameters |
| Qdrant Vector Store1 | Data store | Vector Store Qdrant | See node parameters |
| Convert to File | Transform | Convert To File | toText |
| Google Gemini Chat Model | AI & models | LM Chat Google Gemini | See node parameters |
| Item List Output Parser | Transform | Output Parser Item List | See node parameters |
| Loop Over Items | Routing | Loop Over Items | See node parameters |
| Google Gemini Chat Model1 | AI & models | LM Chat Google Gemini | See node parameters |
| Google Gemini Chat Model2 | AI & models | LM Chat Google Gemini | See node parameters |
| Item List Output Parser1 | Transform | Output Parser Item List | See node parameters |
| Loop Over Items1 | Routing | Loop Over Items | See node parameters |
| Google Gemini Chat Model3 | AI & models | LM Chat Google Gemini | See node parameters |
| Qdrant Vector Store2 | Data store | Vector Store Qdrant | See node parameters |
| Embeddings OpenAI2 | AI & models | Embeddings Open Ai | See node parameters |
| Structured Output Parser | Transform | Output Parser Structured | See node parameters |
| RAG | AI & models | Tool Vector Store | See node parameters |
| Google Gemini Chat Model4 | AI & models | LM Chat Google Gemini | See node parameters |
| Open questions | AI & models | Chain LLM | See node parameters |
| Closed questions | AI & models | Chain LLM | See node parameters |
| Answer questions | AI & models | Chain Retrieval Qa | See node parameters |
| Answer and create options | AI & models | Agent | See node parameters |
| Write open | Data store | Google Sheets | append |
| Write closed | Data store | Google Sheets | append |
| Embeddings OpenAI1 | AI & models | Embeddings Open Ai | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
googleDocsOAuth2ApigooglePalmApigoogleSheetsOAuth2ApihttpHeaderAuthopenAiApiqdrantApi
Workflow notes
STEP 1
STEP 1
Create Qdrant Collection
Change:
- QDRANTURL
- COLLECTION
STEP 2
STEP 2
Documents vectorization with Qdrant and Google Drive
Change:
- QDRANTURL
- COLLECTION
STEP 3
STEP 3
The chain analyzes the document and creates 10 "open" questions and another chain analyzes each single question and through the consultation of the vector database the optimal answer is obtained.
STEP 4
STEP 4
The chain analyzes the document and creates 10 questions with "closed" answers and another chain analyzes each single question and through the consultation of the vector database the correct answer and 3 other wrong answers are obtained to be used as a quiz.
Auto-Generate Exam Questions from Google Docs with AI
Auto-Generate Exam Questions from Google Docs with AI
This workflow automates the creation of exam questions (both open-ended and multiple-choice) from educational content stored in Google Docs, using AI-powered analysis and vector database retrieval
This workflow saves educators hours of manual work while ensuring high-quality, curriculum-aligned assessments. Let me know if you'd like help adapting it for specific subjects!
Generate Exam Questions
Generate Exam Questions
Purpose and structure
This folder contains the Generate Exam Questions workflow. Its executable nodes use agent, chainLlm, chainRetrievalQa, code, convertToFile, documentDefaultDataLoader, embeddingsOpenAi, googleDocs, googleSheets, httpRequest, lmChatGoogleGemini, manualTrigger, outputParserItemList, outputParserStructured, retrieverVectorStore, splitInBatches, textSplitterTokenSplitter, toolVectorStore, vectorStoreQdrant. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When clicking ‘Test workflow’
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Googledocs/1134_Googledocs_Code_Create_Webhook.json MIT; preserve source notices.