# AI knowledge assistant with Gemini and OpenAI: n8n workflow

> Started by someone opening a chat with it, and works across Google Drive, Pinecone and n8n data table.

Source: https://millionrounds.com/workflow/ai-knowledge-assistant-with-gemini-and-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Documents and files](https://millionrounds.com/workflows?category=Documents+and+files#library)

# AI knowledge assistant with Gemini and OpenAI

Started by someone opening a chat with it, and works across Google Drive, Pinecone and n8n data table. 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: 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-knowledge-assistant-with-gemini-and-openai)

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

**0** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 5 Model 23 Logic 1 Service 3

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

- 1 **Embeddings Google Gemini** Embeddings Google Gemini *Model*
- 2 **Recursive Character Text Splitter** Text Splitter Recursive Character Text Splitter *Model*
- 3 **Embeddings Google Gemini (retrieval)** Embeddings Google Gemini *Model*
- 4 **Google Drive File Updated** Google Drive trigger *Starts it*
- 5 **Google Drive File Created** Google Drive trigger *Starts it*
- 6 **Window Buffer Memory** Memory Buffer Window *Model*
- 7 **When chat message received** Chat trigger *Starts it*
- 8 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 9 **Google Gemini Chat Model (retrieval)** Lm Chat Google Gemini *Model*
- 10 **BD - Bright Data MCP** Mcp Client Tool *Model*
- 11 **BD - Webhook Call** Webhook *Starts it*
- 12 **BD - Structured Output Parser - 1** Output Parser Structured *Model*
- 13 **BD - Structured Output Parser - 2** Output Parser Structured *Model*
- 14 **BD - GPT 4o Mini - 1** Lm Chat Open Ai *Model*
- 15 **BD - GPT 4o Mini - 2** Lm Chat Open Ai *Model*
- 16 **BD - GPT 4o - 1** Lm Chat Open Ai *Model*
- 17 **BD - GPT 4.1 Mini - 1** Lm Chat Open Ai *Model*
- 18 **BD - Structured Output Parser - 3** Output Parser Structured *Model*
- 19 **Pinecone Vector Store** Vector Store Pinecone *Model*
- 20 **Default Data Loader** Document Default Data Loader *Model*
- 21 **Pinecone Vector Store (Retrieval)** Vector Store Pinecone *Model*
- 22 **Download File From Google Drive** Google Drive *Service*
- 23 **AI Agent** Agent *Model*
- 24 **BD - Set Variables** Set *Logic*
- 25 **Vector Store Tool** Tool Vector Store *Model*
- 26 **BD - Bright Data Search Agent** Agent *Model*
- 27 **BD - Extract Data** Chain Llm *Model*
- 28 **BD - Summarize Information** Agent *Model*
- 29 **BD - Adjust Query Agent** Agent *Model*
- 30 **BD - Bright Data - Data Extraction** Http Request *Service*
- 31 **BD - Respond to Webhook** Respond To Webhook *Starts it*
- 32 **BD - Update Logs** Data Table *Service*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 32
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Pinecone, n8n data table
- **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 Drive and Pinecone 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 someone opening a chat with it.

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-knowledge-assistant-with-gemini-and-openai)
- **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 Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Pinecone](https://millionrounds.com/workflows?service=Pinecone#library)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also documents and files, with the same services where possible, closest in size first.

- [**Document-based RAG chat assistant with Google Drive** 32 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/document-based-rag-chat-assistant-with-google-drive)
- [**PDF RAG agent with Telegram** 32 steps · calls a model · Google Drive, Telegram](https://millionrounds.com/workflow/pdf-rag-agent-with-telegram)
- [**Sync Google Drive documents to Pinecone RAG with Gemini** 32 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/sync-google-drive-documents-to-pinecone-rag-with-gemini)
- [**Send, chase, and e-signature with Airtable and TurboDocx** 33 steps · Airtable, Gmail](https://millionrounds.com/workflow/send-chase-and-e-signature-with-airtable-and-turbodocx)
- [**Chat with Google Drive and Pinecone** 30 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/chat-with-google-drive-and-pinecone)
- [**Create custom PDF documents from templates with Gemini** 30 steps · calls a model · Google Drive](https://millionrounds.com/workflow/create-custom-pdf-documents-from-templates-with-gemini)
