Make OpenAI Citation for File Retrieval RAG
Make OpenAI Citation for File Retrieval RAG
Manual
High
19
Nodes
Manual
Trigger
High
Complexity
7/22/2025
Added
Workflow Overview
Total Nodes
19
Node Types
10
Node Types
aggregate
Aggregate
1 node
memory Buffer Window
Window Buffer Memory
1 node
sticky Note
Sticky Note4, Sticky Note, Sticky Note1, Sticky Note2, Sticky Note3, Sticky Note5, Sticky Note6
7 nodes
chat Trigger
Create a simple Trigger to have the Chat button within N8N
1 node
open Ai
OpenAI Assistant with Vector Store
1 node
http Request
Get ALL Thread Content, Retrieve file name from a file ID
2 nodes
split Out
Split all message iterations from a thread, Split all content from a single message, Split all citations from a single message
3 nodes
set
Regularize output
1 node
markdown
Optional Markdown to HTML
1 node
code
Finnaly format the output
1 node
Workflow JSON
13.6 KB
{
"id": "5NAbfX550LJsfz6f",
"meta": {
"instanceId": "00493e38fecfc163cb182114bc2fab90114038eb9aad665a7a752d076920d3d5",
"templateCredsSetupCompleted": true
},
"name": "Make OpenAI Citation for File Retrieval RAG",
"tags": [
{
"id": "urxRtGxxLObZWPvX",
"name": "sample",
"createdAt": "2024-09-13T02:43:13.014Z",
"updatedAt": "2024-09-13T02:43:13.014Z"
},
{
"id": "nMXS3c9l1WqDwWF5",
"name": "assist",
"createdAt": "2024-12-23T16:09:38.737Z",
"updatedAt": "2024-12-23T16:09:38.737Z"
}
],
"nodes": [
{
"id": "b9033511-3421-467a-9bfa-73af01b99c4f",
"name": "Aggregate",
"type": "n8n-nodes-base.aggregate",
"position": [
740,
120
],
"parameters": {
"options": {},
"aggregate": "aggregateAllItemData"
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "a61dd9d3-4faa-4878-a6f3-ba8277279002",
"name": "Win...Showing first 1000 characters. Click "Expand" to view the full JSON.