← All N8N workflows
AI & researchAgentChain LLMChain Retrieval QaCodeConvert To File

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.

Workflow preview
TriggerWhen clicking ‘Testworkflow’Manual TriggerData storeQdrant Vector StoreVector Store QdrantWeb / APICreate collectionHTTP RequestWeb / APIRefresh collectionHTTP RequestAI & modelsEmbeddings OpenAIEmbeddings Open AiFiles / mediaDefault Data LoaderDocument Default Data Lo…TransformToken SplitterText Splitter Token Spli…CodeConverto di MDCodeFiles / mediaGet DocGoogle DocsAI & modelsVector Store RetrieverRetriever Vector StoreData storeQdrant Vector Store1Vector Store QdrantTransformConvert to FileConvert To FileAI & modelsGoogle Gemini ChatModelLM Chat Google GeminiTransformItem List Output ParserOutput Parser Item ListRoutingLoop Over ItemsLoop Over ItemsAI & modelsGoogle Gemini ChatModel1LM Chat Google GeminiAI & modelsGoogle Gemini ChatModel2LM Chat Google GeminiTransformItem List OutputParser1Output Parser Item ListRoutingLoop Over Items1Loop Over ItemsAI & modelsGoogle Gemini ChatModel3LM Chat Google GeminiData storeQdrant Vector Store2Vector Store QdrantAI & modelsEmbeddings OpenAI2Embeddings Open AiTransformStructured OutputParserOutput Parser StructuredAI & modelsRAGTool Vector StoreAI & modelsGoogle Gemini ChatModel4LM Chat Google GeminiAI & modelsOpen questionsChain LLMAI & modelsClosed questionsChain LLMAI & modelsAnswer questionsChain Retrieval QaAI & modelsAnswer and createoptionsAgentData storeWrite openGoogle SheetsData storeWrite closedGoogle SheetsAI & modelsEmbeddings OpenAI1Embeddings Open Ai

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.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When clicking ‘Test workflow’TriggerManual TriggerSee node parameters
Qdrant Vector StoreData storeVector Store QdrantSee node parameters
Create collectionWeb / APIHTTP RequestPUT
Refresh collectionWeb / APIHTTP RequestPOST
Embeddings OpenAIAI & modelsEmbeddings Open AiSee node parameters
Default Data LoaderFiles / mediaDocument Default Data LoaderSee node parameters
Token SplitterTransformText Splitter Token SplitterSee node parameters
Converto di MDCodeCodeSee node parameters
Get DocFiles / mediaGoogle Docsget
Vector Store RetrieverAI & modelsRetriever Vector StoreSee node parameters
Qdrant Vector Store1Data storeVector Store QdrantSee node parameters
Convert to FileTransformConvert To FiletoText
Google Gemini Chat ModelAI & modelsLM Chat Google GeminiSee node parameters
Item List Output ParserTransformOutput Parser Item ListSee node parameters
Loop Over ItemsRoutingLoop Over ItemsSee node parameters
Google Gemini Chat Model1AI & modelsLM Chat Google GeminiSee node parameters
Google Gemini Chat Model2AI & modelsLM Chat Google GeminiSee node parameters
Item List Output Parser1TransformOutput Parser Item ListSee node parameters
Loop Over Items1RoutingLoop Over ItemsSee node parameters
Google Gemini Chat Model3AI & modelsLM Chat Google GeminiSee node parameters
Qdrant Vector Store2Data storeVector Store QdrantSee node parameters
Embeddings OpenAI2AI & modelsEmbeddings Open AiSee node parameters
Structured Output ParserTransformOutput Parser StructuredSee node parameters
RAGAI & modelsTool Vector StoreSee node parameters
Google Gemini Chat Model4AI & modelsLM Chat Google GeminiSee node parameters
Open questionsAI & modelsChain LLMSee node parameters
Closed questionsAI & modelsChain LLMSee node parameters
Answer questionsAI & modelsChain Retrieval QaSee node parameters
Answer and create optionsAI & modelsAgentSee node parameters
Write openData storeGoogle Sheetsappend
Write closedData storeGoogle Sheetsappend
Embeddings OpenAI1AI & modelsEmbeddings Open AiSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. 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

  • googleDocsOAuth2Api
  • googlePalmApi
  • googleSheetsOAuth2Api
  • httpHeaderAuth
  • openAiApi
  • qdrantApi

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.

More in AI & research