OpenAI LangChain Integration with Custom Code

6ab74864-1120-4be3-99a3-3679be1df533

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

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "ad1a920e-1048-4b58-9c4a-a0469a1f189d",
    "timestamp": 1780874525107
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "lmopenai",
      "latencyMs": 250,
      "operation": "run",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1780874525360
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "ad1a920e-1048-4b58-9c4a-a0469a1f189d",
    "timestamp": 1780874525360
  },
  {
    "data": {
      "nodeType": "manualTrigger"
    },
    "event": "node_start",
    "nodeId": "05ad7d68-5dc8-42f2-8274-fcb5bdeb68cb",
    "timestamp": 1780874525367
  },
  {
    "data": {
      "initialData": {
        "input": "Can you explain how to use the n8n Code node to transform an array of objects by adding a timestamp to each item?"
      }
    },
    "event": "triggered",
    "nodeId": "manualTrigger",
    "timestamp": 1780874525367
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "manualTrigger"
    },
    "event": "node_end",
    "nodeId": "05ad7d68-5dc8-42f2-8274-fcb5bdeb68cb",
    "timestamp": 1780874525367
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "4e2af29d-7fc4-484b-8028-1b9a84d60172",
    "timestamp": 1780874525371
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780874525371
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780874525371
  },
  {
    "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": "4e2af29d-7fc4-484b-8028-1b9a84d60172",
    "timestamp": 1780874551371
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "05e0d5c6-df18-42ba-99b6-a2b65633a14d",
    "timestamp": 1780874551377
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "code",
      "latencyMs": 250,
      "operation": "run",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1780874551628
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "05e0d5c6-df18-42ba-99b6-a2b65633a14d",
    "timestamp": 1780874551628
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "39e2fd34-3261-44a1-aa55-96f169d55aad",
    "timestamp": 1780874551633
  },
  {
    "data": {
      "inputKeys": [
        "input"
      ],
      "mergeKeys": [
        "string"
      ]
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1780874551633
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "39e2fd34-3261-44a1-aa55-96f169d55aad",
    "timestamp": 1780874551633
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "42a3184c-0c62-4e79-9220-7a93e313317e",
    "timestamp": 1780874551638
  },
  {
    "data": {
      "inputKeys": [
        "input"
      ],
      "mergeKeys": [
        "string"
      ]
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1780874551638
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "42a3184c-0c62-4e79-9220-7a93e313317e",
    "timestamp": 1780874551638
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "9c729e9a-f173-430c-8bcd-74101b614891",
    "timestamp": 1780874551641
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "code",
      "latencyMs": 250,
      "operation": "run",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1780874551893
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "9c729e9a-f173-430c-8bcd-74101b614891",
    "timestamp": 1780874551893
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "6427bbf0-49a6-4810-9744-87d88151e914",
    "timestamp": 1780874551898
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780874551898
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780874551898
  },
  {
    "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": "6427bbf0-49a6-4810-9744-87d88151e914",
    "timestamp": 1780874577781
  }
]