# Smart knowledge base with Google Docs and Discord: n8n workflow

> Started by an event in a connected app, and works across Google Docs. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/smart-knowledge-base-with-google-docs-and-discord (Millionrounds; every figure on the page links to its filing or article)

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

# Smart knowledge base with Google Docs and Discord

Started by an event in a connected app, and works across Google Docs. It hands the judgement calls to OpenAI. 16 steps, 1 branch: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsmart-knowledge-base-with-google-docs-and-discord)

**16 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 5 Logic 4 Service 5

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

- 1 **When Executed by Another Workflow** Execute Workflow trigger *Starts it*
- 2 **Save Memories** Tool Workflow *Model*
- 3 **Retrieve Memories** Tool Workflow *Model*
- 4 **Send Memories to Discord** Tool Workflow *Model*
- 5 **4o-mini** Lm Chat Open Ai *Model*
- 6 **DM User** Discord Tool *Service*
- 7 **Send to Channel** Discord Tool *Service*
- 8 **Edit Fields** Set *Logic*
- 9 **MCP Server Trigger** Mcp trigger *Starts it*
- 10 **AI Agent** Agent *Model*
- 11 **Memory Tool Router** Switch *Logic*
- 12 **Save Long Term Memories** Google Docs *Service*
- 13 **Retrieve Long Term Memories** Google Docs *Service*
- 14 **Retrieve Long Term Memories Discord** Google Docs *Service*
- 15 **Saved response** Set *Logic*
- 16 **Respond with long term memories** Set *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 16, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Google Docs
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Docs account, and a key for 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 OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 16 steps is enough that you should read each one before running it.

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 16 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%2Fsmart-knowledge-base-with-google-docs-and-discord)
- **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)

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**Team knowledge management with Google Docs and Discord** 16 steps · calls a model · Google Docs](https://millionrounds.com/workflow/team-knowledge-management-with-google-docs-and-discord)
- [**Plan AI-powered travel itineraries with Apify and OpenAI** 15 steps · calls a model · Apify, Google Docs](https://millionrounds.com/workflow/plan-ai-powered-travel-itineraries-with-apify-and-openai)
- [**Convert CDP network topology to Lucidchart prompts with AWX** 14 steps · calls a model · Google Docs](https://millionrounds.com/workflow/convert-cdp-network-topology-to-lucidchart-prompts-with-awx)
- [**Personalized email automation with Google Docs and Pinecone** 18 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/personalized-email-automation-with-google-docs-and-pinecone)
- [**AI-powered WhatsApp chatbot with Venom Bot and Gemini** 13 steps · calls a model · Google Docs](https://millionrounds.com/workflow/ai-powered-whatsapp-chatbot-with-venom-bot-and-gemini)
- [**Generate natural health remedies guides with OpenAI** 13 steps · calls a model · Google Docs, n8n data table](https://millionrounds.com/workflow/generate-natural-health-remedies-guides-with-openai)
