# Answer internal policy questions from Google Drive with OpenAI: n8n workflow

> Started by someone opening a chat with it, and works across Google Drive, Qdrant and Slack.

Source: https://millionrounds.com/workflow/answer-internal-policy-questions-from-google-drive-with-open (Millionrounds; every figure on the page links to its filing or article)

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

# Answer internal policy questions from Google Drive with OpenAI

Started by someone opening a chat with it, and works across Google Drive, Qdrant and Slack. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 31 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanswer-internal-policy-questions-from-google-drive-with-open)

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

**2** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 4 Model 9 Logic 8 Service 10

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

- 1 **When File Created in Drive** Google Drive trigger *Starts it*
- 2 **When File Updated in Drive** Google Drive trigger *Starts it*
- 3 **Generate OpenAI Embeddings** Embeddings Open Ai *Model*
- 4 **Split Text Recursively** Text Splitter Recursive Character Text Splitter *Model*
- 5 **Chat Message Trigger** Chat trigger *Starts it*
- 6 **Buffer Memory Storage** Memory Buffer Window *Model*
- 7 **OpenAI GPT-4 Chat Model** Lm Chat Open Ai *Model*
- 8 **Query OpenAI Embeddings** Embeddings Open Ai *Model*
- 9 **When Slack Event Occurs** Slack trigger *Starts it*
- 10 **Download Created File** Google Drive *Service*
- 11 **Download Updated File** Google Drive *Service*
- 12 **Insert into Qdrant Vector Store** Vector Store Qdrant *Model*
- 13 **Load Default Data** Document Default Data Loader *Model*
- 14 **Normalize Message Data** Set *Logic*
- 15 **Support AI Agent** Agent *Model*
- 16 **Retrieve from Qdrant Vector Store** Vector Store Qdrant *Model*
- 17 **Filter Slack Messages** Filter *Logic*
- 18 **Merge Files for Processing** Merge *Logic*
- 19 **Merge Chat and Slack Data** Merge *Logic*
- 20 **Format Citations for Messaging** Code *Logic*
- 21 **Route by File Type** Switch *Logic*
- 22 **Check If Origin Is Slack** If *Logic*
- 23 **Extract Text from PDF** Extract From File *Service*
- 24 **Extract Text from Google Doc** Extract From File *Service*
- 25 **Convert DOCX to Google Doc** Http Request *Service*
- 26 **Extract Text from TXT** Extract From File *Service*
- 27 **Post Message to Slack** Slack *Service*
- 28 **Text Extraction Output** No Op *Logic*
- 29 **Export GDoc to Text** Http Request *Service*
- 30 **Delete Vectors by File ID** Http Request *Service*
- 31 **Remove Temporary Google Doc** Http Request *Service*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 31, with 2 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Qdrant, Slack
- **Model:** 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, Qdrant and Slack accounts, and a key for 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 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 31 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 31 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%2Fanswer-internal-policy-questions-from-google-drive-with-open)
- **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)[Qdrant](https://millionrounds.com/workflows?service=Qdrant#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also customer support, with the same services where possible, closest in size first.

- [**Automated customer support system with Gmail** 31 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automated-customer-support-system-with-gmail)
- [**Automate B2B SaaS renewal risk management with CRM** 30 steps · Gmail, HubSpot](https://millionrounds.com/workflow/automate-b2b-saas-renewal-risk-management-with-crm)
- [**Answer onboarding questions in Slack with Anthropic** 33 steps · calls a model · Google Sheets, Pinecone](https://millionrounds.com/workflow/answer-onboarding-questions-in-slack-with-anthropic)
- [**Automate customer support issue resolution with OpenAI** 29 steps · calls a model · Jira, Notion](https://millionrounds.com/workflow/automate-customer-support-issue-resolution-with-openai)
- [**Triage and resolve stale Jira tickets with OpenAI and Notion** 29 steps · calls a model · Jira, Notion](https://millionrounds.com/workflow/triage-and-resolve-stale-jira-tickets-with-openai-and-notion)
- [**Automate customer support with Slack and CRM** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-customer-support-with-slack-and-crm)
