Automated Gmail Labeling Using AI Analysis

6cd40fb7-0489-4ae6-bb78-380a30d050fd

Latency
11159ms
Cost
$0.0037
Tokens
1,478
Status
success
gemini-3-flash-preview

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "8141ffad-df2a-403b-a869-799c036f9733",
    "timestamp": 1780741176385
  },
  {
    "data": {
      "kind": "n8n-nodes-base.gmailTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1780741176385
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "8141ffad-df2a-403b-a869-799c036f9733",
    "timestamp": 1780741176385
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "60a9d75e-1564-4b1d-b3f2-acc2e3bf2411",
    "timestamp": 1780741176388
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1780741176388
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "60a9d75e-1564-4b1d-b3f2-acc2e3bf2411",
    "timestamp": 1780741176388
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "2bdf3fed-8a7f-411a-bad4-266bfea5cede",
    "timestamp": 1780741176391
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4-turbo-preview",
    "nodeId": "llm",
    "timestamp": 1780741176391
  },
  {
    "data": {
      "model": "gpt-4-turbo-preview",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780741176391
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0013078,
      "provider": "openai",
      "latencyMs": 4414,
      "promptTokens": 1,
      "completionTokens": 523
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780741180807
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "2bdf3fed-8a7f-411a-bad4-266bfea5cede",
    "timestamp": 1780741180807
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "6d9aa398-e2de-4fd0-b939-2a12d0c9fe14",
    "timestamp": 1780741180812
  },
  {
    "data": {
      "service": "gmail",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780741180812
  },
  {
    "data": {
      "url": "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5&q=in%3Ainbox",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780741180812
  },
  {
    "data": {
      "status": 200
    },
    "event": "gmail.read",
    "nodeId": "integration",
    "timestamp": 1780741181023
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 211,
      "operation": "get"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780741181023
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "6d9aa398-e2de-4fd0-b939-2a12d0c9fe14",
    "timestamp": 1780741181023
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "7ebb1aad-00ad-43fa-9e07-e5f324864a74",
    "timestamp": 1780741181026
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780741181026
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780741181026
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0023828,
      "provider": "openai",
      "latencyMs": 6175,
      "promptTokens": 1,
      "completionTokens": 953
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780741187203
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "7ebb1aad-00ad-43fa-9e07-e5f324864a74",
    "timestamp": 1780741187203
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "cd86bc09-8c7f-4c85-9cb3-6dbd42420672",
    "timestamp": 1780741187208
  },
  {
    "data": {
      "inputKeys": [
        "text",
        "model",
        "usage"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1780741187208
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "cd86bc09-8c7f-4c85-9cb3-6dbd42420672",
    "timestamp": 1780741187208
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "329435a6-51d1-416e-9aa9-5fe9a8dce74f",
    "timestamp": 1780741187211
  },
  {
    "data": {
      "service": "gmail",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780741187211
  },
  {
    "data": {
      "url": "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5&q=in%3Ainbox",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780741187211
  },
  {
    "data": {
      "status": 200
    },
    "event": "gmail.read",
    "nodeId": "integration",
    "timestamp": 1780741187419
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 208,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780741187419
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "329435a6-51d1-416e-9aa9-5fe9a8dce74f",
    "timestamp": 1780741187419
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "7ae2dd15-472d-4a4b-b036-f80ebd7e3c28",
    "timestamp": 1780741187422
  },
  {
    "data": {
      "count": 1
    },
    "event": "splitOut",
    "nodeId": "passthrough",
    "timestamp": 1780741187422
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "7ae2dd15-472d-4a4b-b036-f80ebd7e3c28",
    "timestamp": 1780741187422
  },
  {
    "data": {
      "nodeType": "merge"
    },
    "event": "node_start",
    "nodeId": "744c7afa-75b1-4b3b-8ccb-e2106c01f387",
    "timestamp": 1780741187425
  },
  {
    "data": {
      "inputCount": 2
    },
    "event": "merged 2 inputs",
    "nodeId": "merge",
    "timestamp": 1780741187425
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "merge"
    },
    "event": "node_end",
    "nodeId": "744c7afa-75b1-4b3b-8ccb-e2106c01f387",
    "timestamp": 1780741187425
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "e47424dc-f43e-41a9-b1e5-ab3e08cbf395",
    "timestamp": 1780741187428
  },
  {
    "data": {
      "count": 2
    },
    "event": "aggregate",
    "nodeId": "passthrough",
    "timestamp": 1780741187428
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "e47424dc-f43e-41a9-b1e5-ab3e08cbf395",
    "timestamp": 1780741187428
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "22ba8297-8efc-463e-8ae0-385fd94a205f",
    "timestamp": 1780741187431
  },
  {
    "data": {
      "service": "gmail",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780741187431
  },
  {
    "data": {
      "url": "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5&q=in%3Ainbox",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780741187431
  },
  {
    "data": {
      "status": 200
    },
    "event": "gmail.read",
    "nodeId": "integration",
    "timestamp": 1780741187544
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 113,
      "operation": "addLabels"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780741187544
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "22ba8297-8efc-463e-8ae0-385fd94a205f",
    "timestamp": 1780741187544
  }
]