# AI-powered auto-generate exam questions: n8n workflow template

> Started by an event in a connected app, and works across Google Docs, Google Sheets and Qdrant.

Source: https://millionrounds.com/workflow/ai-powered-auto-generate-exam-questions (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# AI-powered auto-generate exam questions

Started by an event in a connected app, and works across Google Docs, Google Sheets and Qdrant. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 32 steps, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-auto-generate-exam-questions)

**32 steps** Large: read it before trusting it with anything live

**0** Branches: places the flow splits

**2** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 22 Logic 3 Service 6

The steps in the order they run, from what starts it.

- 1 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 2 **Create collection** Http Request *Service*
- 3 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 4 **Token Splitter** Text Splitter Token Splitter *Model*
- 5 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 6 **Item List Output Parser** Output Parser Item List *Model*
- 7 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 8 **Google Gemini Chat Model2** Lm Chat Google Gemini *Model*
- 9 **Item List Output Parser1** Output Parser Item List *Model*
- 10 **Google Gemini Chat Model3** Lm Chat Google Gemini *Model*
- 11 **Embeddings OpenAI2** Embeddings Open Ai *Model*
- 12 **Structured Output Parser** Output Parser Structured *Model*
- 13 **Google Gemini Chat Model4** Lm Chat Google Gemini *Model*
- 14 **Embeddings OpenAI1** Embeddings Open Ai *Model*
- 15 **Refresh collection** Http Request *Service*
- 16 **Qdrant Vector Store** Vector Store Qdrant *Model*
- 17 **Default Data Loader** Document Default Data Loader *Model*
- 18 **Open questions** Chain Llm *Model*
- 19 **Answer questions** Chain Retrieval Qa *Model*
- 20 **Closed questions** Chain Llm *Model*
- 21 **Answer and create options** Agent *Model*
- 22 **Qdrant Vector Store2** Vector Store Qdrant *Model*
- 23 **RAG** Tool Vector Store *Model*
- 24 **Qdrant Vector Store1** Vector Store Qdrant *Model*
- 25 **Get Doc** Google Docs *Service*
- 26 **Loop Over Items** Split In Batches *Logic*
- 27 **Write open** Google Sheets *Service*
- 28 **Loop Over Items1** Split In Batches *Logic*
- 29 **Write closed** Google Sheets *Service*
- 30 **Vector Store Retriever** Retriever Vector Store *Model*
- 31 **Converto di MD** Code *Logic*
- 32 **Convert to File** Convert To File *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 32, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Docs, Google Sheets, Qdrant
- **Model:** Gemini, OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Google Docs, Google Sheets and Qdrant accounts, and a key for Gemini and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Gemini and OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 32 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 32 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-auto-generate-exam-questions)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Docs](https://millionrounds.com/workflows?service=Google+Docs#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Qdrant](https://millionrounds.com/workflows?service=Qdrant#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Auto-generate product comparison pages with OpenAI** 32 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/auto-generate-product-comparison-pages-with-openai)
- [**Macro tracker with Groq and OpenAI** 32 steps · calls a model · Google Sheets, Qdrant](https://millionrounds.com/workflow/macro-tracker-with-groq-and-openai)
- [**Track fitness class attendance and retention** 32 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/track-fitness-class-attendance-and-retention)
- [**24/7 shorts automation system for busy people with OpenRouter** 33 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/24-7-shorts-automation-system-for-busy-people-with-openroute)
- [**Automate Google My Business responses with Gemini** 31 steps · calls a model · Google Business Profile, Google Sheets](https://millionrounds.com/workflow/automate-google-my-business-responses-with-gemini)
- [**Generate Suno AI music from Discord forms with Gemini** 31 steps · calls a model · Discord, Google Sheets](https://millionrounds.com/workflow/generate-suno-ai-music-from-discord-forms-with-gemini)
