Templates / AI-powered auto-generate exam questions and answers from Google Docs with Gemini

AI-powered auto-generate exam questions and answers from Google Docs with Gemini

Needs changes

by Davide Boizza ✓ · 3,970 views · created 2025-05-13 · Document Extraction, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 32 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Qdrant Vector Store, Embeddings OpenAI, Google Docs and Google Gemini Chat Model and 2 more. It also calls qdrant_url over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Refresh collection (HTTP Request): calls qdrant_url (POST)
  2. Get Doc (Google Docs): get
  3. Converto di MD (Code): runs custom JavaScript code
  4. Closed questions (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Item List Output Parser
  5. Convert to File: converts data to a file (to text)
  6. Open questions (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Item List Output Parser
  7. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  8. Qdrant Vector Store: stores documents in the Qdrant vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  9. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  10. Answer and create options (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 1 tool (RAG); output parser: Structured Output Parser

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

Services it uses

Qdrant Vector StoreEmbeddings OpenAIGoogle DocsGoogle Gemini Chat ModelVector Store Question AnswerGoogle Sheets

HTTP calls to: qdrant_url

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Answer and create options (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Answer and create options (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (19)

From the author

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…

Excerpt from Davide Boizza'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.