{
  "openruna_format": "flow-graph-v1",
  "title": "Make OpenAI Citation for File Retrieval RAG",
  "slug": "make-openai-citation-for-file-retrieval-rag-2",
  "source_filename": "1548_Splitout_Code_Automation_Webhook.json",
  "nodes": [
    {
      "id": "Aggregate",
      "name": "Aggregate",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Window Buffer Memory",
      "name": "Window Buffer Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "Create a simple Trigger to have the Chat button within N8N",
      "name": "Create a simple Trigger to have the Chat button within N8N",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "OpenAI Assistant with Vector Store",
      "name": "OpenAI Assistant with Vector Store",
      "integration": "@n8n/n8n-nodes-langchain.openAi",
      "kind": "action"
    },
    {
      "id": "Get ALL Thread Content",
      "name": "Get ALL Thread Content",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Split all message iterations from a thread",
      "name": "Split all message iterations from a thread",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Split all content from a single message",
      "name": "Split all content from a single message",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Split all citations from a single message",
      "name": "Split all citations from a single message",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Retrieve file name from a file ID",
      "name": "Retrieve file name from a file ID",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Regularize output",
      "name": "Regularize output",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Optional Markdown to HTML",
      "name": "Optional Markdown to HTML",
      "integration": "markdown",
      "kind": "action"
    },
    {
      "id": "Finnaly format the output",
      "name": "Finnaly format the output",
      "integration": "code",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Aggregate",
      "to": "Finnaly format the output"
    },
    {
      "from": "Regularize output",
      "to": "Aggregate"
    },
    {
      "from": "Get ALL Thread Content",
      "to": "Split all message iterations from a thread"
    },
    {
      "from": "Finnaly format the output",
      "to": "Optional Markdown to HTML"
    },
    {
      "from": "Retrieve file name from a file ID",
      "to": "Regularize output"
    },
    {
      "from": "OpenAI Assistant with Vector Store",
      "to": "Get ALL Thread Content"
    },
    {
      "from": "Split all content from a single message",
      "to": "Split all citations from a single message"
    },
    {
      "from": "Split all citations from a single message",
      "to": "Retrieve file name from a file ID"
    },
    {
      "from": "Split all message iterations from a thread",
      "to": "Split all content from a single message"
    },
    {
      "from": "Create a simple Trigger to have the Chat button within N8N",
      "to": "OpenAI Assistant with Vector Store"
    }
  ]
}