Process refund requests from Gmail using Shopify and Google Sheets

22255fa1-1548-429b-b275-c1688444b926

Latency
5398ms
Cost
$0.0000
Tokens
195
Status
partial
gemini-2.5-flash-lite

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "54fa0439-a717-4a2c-8bdf-352d61d836ef",
    "timestamp": 1780868817376
  },
  {
    "data": {
      "kind": "n8n-nodes-base.gmailTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1780868817376
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "54fa0439-a717-4a2c-8bdf-352d61d836ef",
    "timestamp": 1780868817376
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "05ac2dd6-1b0f-4dbc-9b86-5dc2b7069218",
    "timestamp": 1780868817378
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/llama-3.3-70b-versatile",
    "nodeId": "llm",
    "timestamp": 1780868817378
  },
  {
    "data": {
      "model": "llama-3.3-70b-versatile",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780868817378
  },
  {
    "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": "05ac2dd6-1b0f-4dbc-9b86-5dc2b7069218",
    "timestamp": 1780868821501
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "813eba65-4e60-4c13-af1a-3c5c5beee814",
    "timestamp": 1780868821503
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780868821503
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780868821503
  },
  {
    "data": {
      "model": "gemini-2.5-flash-lite",
      "costUsd": 0.000029100000000000003,
      "provider": "openai",
      "latencyMs": 365,
      "promptTokens": 163,
      "completionTokens": 32
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780868821870
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "813eba65-4e60-4c13-af1a-3c5c5beee814",
    "timestamp": 1780868821870
  },
  {
    "data": {
      "nodeType": "code"
    },
    "event": "node_start",
    "nodeId": "c67589fa-d373-4df6-8cee-4e8e7c11a819",
    "timestamp": 1780868821870
  },
  {
    "event": "execution error (simulated): \"undefined\" is not valid JSON",
    "nodeId": "code",
    "timestamp": 1780868821874
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "code",
      "latencyMs": 0,
      "operation": "exec-failed",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1780868821874
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "code"
    },
    "event": "node_end",
    "nodeId": "c67589fa-d373-4df6-8cee-4e8e7c11a819",
    "timestamp": 1780868821875
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "89516d69-f7ef-43de-ab52-207c1e836661",
    "timestamp": 1780868821876
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "shopify",
      "latencyMs": 250,
      "operation": "get",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1780868822128
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "89516d69-f7ef-43de-ab52-207c1e836661",
    "timestamp": 1780868822128
  },
  {
    "data": {
      "nodeType": "if"
    },
    "event": "node_start",
    "nodeId": "f056b065-acc7-4491-9856-0d29a85ffe61",
    "timestamp": 1780868822133
  },
  {
    "event": "false branch",
    "nodeId": "if",
    "timestamp": 1780868822133
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "if"
    },
    "event": "node_end",
    "nodeId": "f056b065-acc7-4491-9856-0d29a85ffe61",
    "timestamp": 1780868822133
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "150e6302-f8f8-49ab-9136-fa9194e2e303",
    "timestamp": 1780868822137
  },
  {
    "data": {
      "service": "gmail",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780868822137
  },
  {
    "data": {
      "url": "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5&q=in%3Ainbox",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780868822137
  },
  {
    "data": {
      "status": 200
    },
    "event": "gmail.read",
    "nodeId": "integration",
    "timestamp": 1780868822358
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 221,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780868822358
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "150e6302-f8f8-49ab-9136-fa9194e2e303",
    "timestamp": 1780868822358
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "e5192a70-224f-46c0-a239-185b12e388e0",
    "timestamp": 1780868822363
  },
  {
    "data": {
      "service": "gmail",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780868822363
  },
  {
    "data": {
      "url": "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5&q=in%3Ainbox",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780868822363
  },
  {
    "data": {
      "status": 200
    },
    "event": "gmail.read",
    "nodeId": "integration",
    "timestamp": 1780868822489
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 126,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780868822489
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "e5192a70-224f-46c0-a239-185b12e388e0",
    "timestamp": 1780868822489
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "ae637d4a-ed87-4f92-a3dc-9b00fa0c64c0",
    "timestamp": 1780868822493
  },
  {
    "data": {
      "service": "gmail",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780868822493
  },
  {
    "data": {
      "url": "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5&q=in%3Ainbox",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780868822494
  },
  {
    "data": {
      "status": 200
    },
    "event": "gmail.read",
    "nodeId": "integration",
    "timestamp": 1780868822611
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 118,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780868822611
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "ae637d4a-ed87-4f92-a3dc-9b00fa0c64c0",
    "timestamp": 1780868822611
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "2c323e52-6be1-4666-a4dc-891537e1a833",
    "timestamp": 1780868822616
  },
  {
    "data": {
      "service": "googleSheets",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780868822616
  },
  {
    "data": {
      "url": "https://sheets.googleapis.com/v4/spreadsheets/1e8XpVw-np2ABv8gBd_VYhphaHZUYnJ5zoOa--qocbPE/values/Sink:append?valueInputOption=RAW",
      "method": "POST"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780868822616
  },
  {
    "data": {
      "tab": "Sink",
      "status": 200
    },
    "event": "sheets.write",
    "nodeId": "integration",
    "timestamp": 1780868822774
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "googleSheets",
      "latencyMs": 158,
      "operation": "append"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780868822774
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "2c323e52-6be1-4666-a4dc-891537e1a833",
    "timestamp": 1780868822774
  }
]