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 answers a chat question from your own OpenAI vector store and writes the name of each source file into the answer, right after the passage it supports.
OpenAI file search answers with cited file names inline is an n8n workflow in the Research 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.
Chat message
It starts when someone sends a message in n8n’s chat:
A chat answer taken from your files, with the name of each source file after the passage it supports
What you need before you start.
Language model and file search
Searches the vector store, writes the answer and reports which file each passage came from.
NeedsAn OpenAI API key, and the ID of a vector store that holds your files
Checked by Mindket on 13 Nov 2026
This n8n workflow answers a chat question from the files in your own OpenAI vector store and names the file behind each passage. It sends the question to OpenAI’s Responses API with the file search tool. A Code node then writes each file name into the answer at the spot where its citation belongs. Mindket’s copy swaps OpenAI’s retired Assistants API for that single call. Four nodes run it, beside four sticky notes.
Teams that keep their knowledge in documents and want chat answers that show where each statement came from. Skip it if you need a chat that remembers earlier messages, or if you cannot keep your files in an OpenAI vector store.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Legal | Paralegals | Ask questions of a set of policy or contract files | A paralegal asks about a notice period and sees the contract file named in the answer. |
| Support | Support teams | Answer customers from help documents | A support lead asks about refunds and sees the policy file named beside each point. |
| Research | Analysts | Query a folder of reports | An analyst asks what a report says on churn and sees which report each line came from. |
| Education | Course teams | Answer student questions from course notes | A student asks about an exam rule and sees the handbook named. |
You need a little n8n: import a file, add one credential and paste one vector store ID.
Any n8n that can reach OpenAI will run it. The answers appear in n8n’s own chat window.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Setup takes one credential and one vector store ID.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| OpenAI | An API key, and a vector store that holds your files |
| Vector store ID | The ID of that store, from OpenAI |
workflow.json.Ask OpenAI with File Search.<YOUR_VECTOR_STORE_ID> with your vector store’s ID.Chat Trigger and ask a question that your files can answer.Open the chat and ask about your files. The answer arrives with a file name in italics after each cited passage. Turn on the Markdown node if you want HTML instead.
| To change | Where |
|---|---|
| The model | model in the body of Ask OpenAI with File Search |
| How many passages OpenAI uses | max_num_results on the tool in that body |
| The look of each note | The text in Insert File Names |
| HTML output | Optional Markdown to HTML |
A support lead adds a refund policy and a delivery guide to a vector store and pastes its ID into the request body. A customer asks how long a refund takes.
OpenAI searches both files and writes a short answer. The Code node adds the policy’s file name in italics after the sentence that came from it, and the delivery guide’s name after the line about shipping.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. Here one box asks OpenAI and one tidies the answer. A vector store is a set of your files that OpenAI has made searchable. Start with two short files.
For experts. The workflow is a Chat Trigger, one HTTP Request to the Responses API and a Code node. The file names come from the citations in the reply, so no second call is needed.
| Node | What it does | What to know |
|---|---|---|
Ask OpenAI with File Search | Posts the question with the file_search tool and the vector store | It uses the OpenAI credential type, so n8n adds the key |
Insert File Names | Reads the output_text part and inserts each file name at its citation index | It inserts from the end of the text, so earlier positions stay right |
Optional Markdown to HTML | Turns the Markdown into HTML | It is switched off |
OpenAI’s Assistants API shut down on 26 August 2026, so this copy calls the Responses API and keeps no memory of earlier messages.
gpt-5.6-terra, which OpenAI lists as supporting file searchindex as the spot in the text where it belongs, and the Code node trusts itAn n8n workflow that answers a chat question from the files in your own OpenAI vector store, then writes the name of each
file it used into the answer. The answer comes from OpenAI's Responses API and its file search tool.
workflow.json: the workflow as n8n exports it, eight nodes: four that do the work and four sticky notes. It holds noREADME.md: these notes.Chat Trigger feeds Ask OpenAI with File Search, an HTTP Request nodehttps://api.openai.com/v1/responses with the file search tool and your vector store. Insert File Names<YOUR_VECTOR_STORE_ID> in the request body.gpt-5.6-terra, which OpenAI's model page lists as supporting file search in the Responses API.Window Buffer Memory is gone, because it fed the assistant node. Each question is answered on its own.workflow.json.Ask OpenAI with File Search.<YOUR_VECTOR_STORE_ID> with your vector store's ID. Remove the angle brackets too.Chat Trigger and ask a question that your files can answer.Chat Trigger takes the question as chatInput.Ask OpenAI with File Search posts the question with the file_search tool and your vector store. OpenAI searches theInsert File Names reads the answer's text and its file citations. At each citation's position it adds the file's nameOptional Markdown to HTML is switched off. Turn it on to change the Markdown into HTML.model in the JSON body of Ask OpenAI with File Search.max_num_results to the tool in the body. OpenAI's guide lists it.Insert File Names.Optional Markdown to HTML.index as the position in the output text where theNOTICE.md 634 B README.md 4 KB workflow.json 5 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…
dBenf · Kit
Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…
zimmerk4 · Kit
Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…
yuji-nozawa · Kit
Pretrained vision transformer checkpoints in three sizes from a research paper on training attention heads to focus on image regions. For researchers who extra…