Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
An n8n workflow that prepares one Google Doc for search. It splits the text into sections, has a model write a line of context for each, and stores every section with its context in Pinecone as a Gemini vector.
Google Doc sections given context, then stored in Pinecone is an n8n workflow in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
Manual run
You start it by pressing Test workflow in n8n, and it needs:
One vector in the Pinecone index for each section of the document, each carrying a line of context
What you need before you start.
Document source
Downloads the Google Doc as plain text.
NeedsGoogle account sign-in
Context writer
Runs the model that writes a line of context for each section.
NeedsOpenRouter API key
Vectors
Turns each section and its context into a vector.
NeedsGoogle AI API key
Vector store
Stores the vectors for later search.
NeedsPinecone API key and an index
Checked by Mindket on 13 Nov 2026
This n8n workflow prepares one Google Doc for search by giving each section its own context. You press a button, and the workflow downloads the doc as plain text. It cuts the text into sections at each marker line. For every section, an agent reads the whole document and writes one short line that places the section in it. The workflow puts that line in front of the section, and Gemini turns the result into a vector that goes into a Pinecone index. Thirteen nodes run it, and three sticky notes label the stages.
Developers and analysts who build a search over long documents, where a piece loses its meaning on its own. Skip it if you want to load many files at once, since this copy handles one document per run.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers | Prepare a product manual for a search feature | A developer cuts a manual at its chapters and stores each one with a line that names the product area. |
| Legal | Legal operations teams | Prepare a contract for question answering | A team stores each clause with a line that says which agreement it belongs to. |
| Research | Analysts | Prepare a long report for lookup | An analyst stores each chapter with a line that ties it to the report’s topic. |
| Education | Course designers | Prepare a course pack for a study assistant | A designer stores each lesson with a line that names its course unit. |
You need a little n8n: import a file, add four credentials, make a Pinecone index and mark the sections in a Google Doc.
Any n8n that can reach Google Drive, OpenRouter, Google’s Gemini API and Pinecone will run it. It starts from the Test workflow button, so it needs no publishing.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. You need a Google account with a Doc, an OpenRouter key, a Google AI key and a Pinecone account.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| Google Drive | A sign-in and a Google Doc |
| OpenRouter | An API key |
| Google AI | An API key from Google AI Studio |
| Pinecone | An account, an API key and an index named context-rag-test with 3072 dimensions and the cosine metric |
context-rag-test with 3072 dimensions and the cosine metric, and copy an API key.workflow.json.Get Document From Google Drive, pick your Google Doc.Pinecone Vector Store, pick your index.[SECTIONEND] between the sections.Mark the sections in your document, press Test workflow and wait until the loop ends. Each section ends up as one vector in the index. Run it twice and everything is stored twice.
| To change | Where |
|---|---|
| The marker between sections | The pattern in Split Document Text Into Sections |
| What the model is asked | The text field in the context agent |
| The model that writes the context | OpenRouter Chat Model |
| The embedding model | Embeddings Google Gemini |
| The index | Pinecone Vector Store |
A developer keeps a product manual in a Google Doc, with a [SECTIONEND] line after each chapter. The workflow reads the chapter on refunds together with the whole manual. The model writes a short line that ties the chapter to the billing part of the manual. Gemini gets that line and the chapter as one text, and Pinecone stores the vector.
Empty sections are skipped.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. A loop node hands items on one at a time. A vector is a list of numbers that stands for the meaning of a text, and Pinecone is a database that finds vectors close to a question.
For experts. Split Document Text Into Sections splits data on the marker and builds document, the sections as one JSON string that the context agent’s prompt reads. Loop Over Items runs at its default batch size of 1, so the agent and Pinecone run once per section. The text splitter’s chunk size of 100000 keeps a section whole.
| Node | What it does | What to know |
|---|---|---|
Get Document From Google Drive | Downloads the Doc as plain text | One document per run |
Split Document Text Into Sections | Cuts the text at the marker | Skips empty sections |
Loop Over Items | Hands over one section at a time | Batch size 1 |
| The context agent | Writes the line of context | Sees the whole document each time |
Pinecone Vector Store | Stores one vector per section | Adds again on each run |
Two model names changed, and each section has to fit the embedding model.
text-embedding-004 down on 14 January 2026 and names gemini-embedding-2. Mindket’s copy uses gemini-embedding-001, a text-only model that is also the node’s default. It returns 3072 values by default, so the index needs 3072 dimensionsopenai/gpt-4.1-mini. OpenAI’s page shuts that model down on 14 January 2027 and names gpt-6-luna, so the copy sets openai/gpt-6-luna, which OpenRouter lists. The agent has no tools, so that model fitsgemini-embedding-001 takes up to 2,048 tokens, so keep each section and its context within that[SECTIONEND] with or without a dashed line around itAn n8n workflow that prepares one Google Doc for search. It splits the text into sections, has a model write a short line of context for each section, and stores every section with its context in Pinecone as a Gemini vector.
workflow.json: the workflow as n8n exports it, 16 nodes. Thirteen run, and three are sticky notes. The thirteen are a manual trigger, the Drive download, the text extraction, a Code node, a Split Out and a Loop Over Items. The rest are the agent with its OpenRouter chat model, a Set node, and the Pinecone store with its loader, text splitter and embeddings. It holds no credential.README.md: these notes.OpenRouter Chat Model node had no model set, so it ran n8n's default, openai/gpt-4.1-mini. OpenAI's deprecation page, read on 12 November 2026, shuts that model down on 14 January 2027 and names gpt-6-luna. The node now sets openai/gpt-6-luna, which OpenRouter's public model list shows. The agent has no tool, so that model fits.Embeddings Google Gemini used models/text-embedding-004. Google's page, read on 12 November 2026, shut it down on 14 January 2026 and names gemini-embedding-2. The node now uses models/gemini-embedding-001, a text-only model that is also this node's default. It returns 3072 values by default.Split Document Text Into Sections split on one exact line of dashes around [SECTIONEND], and an empty section would have gone to the agent. The code now cuts at [SECTIONEND] with or without dashes around it, trims each section and drops empty ones.Get Document From Google Drive is empty, so you pick your own, because the original pointed at a named person's document.Mindket read this copy against n8n's source, Google's pages and OpenRouter's public model list. It was not run on a live n8n.
context-rag-test with 3072 dimensions and the cosine metric, and copy an API key.workflow.json.Get Document From Google Drive, pick your Google Doc.Pinecone Vector Store, pick your index.[SECTIONEND] between the sections.Get Document From Google Drive downloads the Doc and converts it to plain text.Extract Text Data From Google Document puts that text into a field called data.Split Document Text Into Sections cuts data at each [SECTIONEND] marker. It keeps the sections in section and the same sections as one JSON string in document.Prepare Sections For Looping turns the sections into one item each, and Loop Over Items hands them on one at a time.AI Agent - Prepare Context sends the model the whole document and the one section, with the request for a short line of context that helps a search find the section, and nothing else in the answer.Concatenate the context and section text makes a field section_chunk from the model's line, a full stop and the section.Pinecone Vector Store stores section_chunk in insert mode. Embeddings Google Gemini makes the vector, Default Data Loader reads the field and Recursive Character Text Splitter has a chunk size of 100000, so a section stays whole. Then the loop moves to the next section.Split Document Text Into Sections.AI Agent - Prepare Context.OpenRouter Chat Model.Embeddings Google Gemini. If you change it, make a new index of its size.Pinecone Vector Store.gemini-embedding-001's limit of 2,048 tokens.NOTICE.md 709 B README.md 5 KB workflow.json 10 KB
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.
alibaba · Kit
Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…