OpenAI RAG Chatbot with File Citations

0e6e9a0f-a706-4978-a582-b879c885a505

Latency
25678ms
Cost
$0.0000
Tokens
0
Status
partial
gemini-2.5-flash

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "a61dd9d3-4faa-4878-a6f3-ba8277279002",
    "timestamp": 1782938991748
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1782938991748
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "a61dd9d3-4faa-4878-a6f3-ba8277279002",
    "timestamp": 1782938991748
  },
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "539a4e40-9745-4a26-aba8-2cc2b0dd6364",
    "timestamp": 1782938991750
  },
  {
    "data": {
      "kind": "@n8n/n8n-nodes-langchain.chatTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1782938991750
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "539a4e40-9745-4a26-aba8-2cc2b0dd6364",
    "timestamp": 1782938991750
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "aa5b2951-df32-43ac-9939-83b02d818e73",
    "timestamp": 1782938991751
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1782938991751
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1782938991751
  },
  {
    "data": {
      "error": "Google Gemini API error (500): {\n  \"error\": {\n    \"code\": 500,\n    \"message\": \"An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting\",\n    \"status\": \"INTERNAL\"\n  }\n}\n",
      "status": "error",
      "degraded": true,
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "aa5b2951-df32-43ac-9939-83b02d818e73",
    "timestamp": 1782939017185
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "16429226-e850-4698-b419-fd9805a03fb7",
    "timestamp": 1782939017191
  },
  {
    "event": "fetching GET https://api.openai.com/v1/threads//messages",
    "nodeId": "http",
    "timestamp": 1782939017191
  },
  {
    "data": {
      "url": "https://api.openai.com/v1/threads//messages",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1782939017191
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "16429226-e850-4698-b419-fd9805a03fb7",
    "timestamp": 1782939017330
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "0f51e09f-2782-4e2d-b797-d4d58fcabdaf",
    "timestamp": 1782939017332
  },
  {
    "data": {
      "count": 1
    },
    "event": "splitOut",
    "nodeId": "passthrough",
    "timestamp": 1782939017332
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "0f51e09f-2782-4e2d-b797-d4d58fcabdaf",
    "timestamp": 1782939017332
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "4d569993-1ce3-4b32-beaf-382feac25da9",
    "timestamp": 1782939017334
  },
  {
    "data": {
      "count": 1
    },
    "event": "splitOut",
    "nodeId": "passthrough",
    "timestamp": 1782939017334
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "4d569993-1ce3-4b32-beaf-382feac25da9",
    "timestamp": 1782939017334
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "999e1c2b-1927-4483-aac1-6e8903f7ed25",
    "timestamp": 1782939017335
  },
  {
    "data": {
      "count": 1
    },
    "event": "splitOut",
    "nodeId": "passthrough",
    "timestamp": 1782939017335
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "999e1c2b-1927-4483-aac1-6e8903f7ed25",
    "timestamp": 1782939017335
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "98af62f5-adb0-4e07-a146-fc2f13b851ce",
    "timestamp": 1782939017336
  },
  {
    "event": "fetching GET https://api.openai.com/v1/files/",
    "nodeId": "http",
    "timestamp": 1782939017336
  },
  {
    "data": {
      "url": "https://api.openai.com/v1/files/",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1782939017336
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "98af62f5-adb0-4e07-a146-fc2f13b851ce",
    "timestamp": 1782939017415
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "b11f0d3d-bdc4-4845-b14b-d0b0de214f01",
    "timestamp": 1782939017420
  },
  {
    "data": {
      "inputKeys": [
        "statusCode",
        "headers",
        "body"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1782939017420
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "b11f0d3d-bdc4-4845-b14b-d0b0de214f01",
    "timestamp": 1782939017420
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "b9033511-3421-467a-9bfa-73af01b99c4f",
    "timestamp": 1782939017422
  },
  {
    "data": {
      "count": 1
    },
    "event": "aggregate",
    "nodeId": "passthrough",
    "timestamp": 1782939017422
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "b9033511-3421-467a-9bfa-73af01b99c4f",
    "timestamp": 1782939017422
  },
  {
    "data": {
      "nodeType": "code"
    },
    "event": "node_start",
    "nodeId": "589e2418-5dec-47d0-ba08-420d84f09da7",
    "timestamp": 1782939017422
  },
  {
    "event": "execution error (simulated): $input.item.json.data is not iterable",
    "nodeId": "code",
    "timestamp": 1782939017424
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "code",
      "latencyMs": 0,
      "operation": "exec-failed",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782939017424
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "code"
    },
    "event": "node_end",
    "nodeId": "589e2418-5dec-47d0-ba08-420d84f09da7",
    "timestamp": 1782939017424
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "d0cbb943-57ab-4850-8370-1625610a852a",
    "timestamp": 1782939017426
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1782939017426
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "d0cbb943-57ab-4850-8370-1625610a852a",
    "timestamp": 1782939017426
  }
]