AI-Powered Gmail Draft Generator for Email Threads

4de26c5d-b39d-4311-bffc-c8721f049ee3

Latency
3351ms
Cost
$0.0010
Tokens
399
Status
success
gemini-2.5-flash

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "65f0508a-ca2e-49ce-b02f-ef6505b5e983",
    "timestamp": 1782944581106
  },
  {
    "data": {
      "kind": "n8n-nodes-base.scheduleTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1782944581106
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "65f0508a-ca2e-49ce-b02f-ef6505b5e983",
    "timestamp": 1782944581106
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "d488db90-7367-49fa-b366-ccdfc796b5b3",
    "timestamp": 1782944581108
  },
  {
    "data": {
      "service": "gmail",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782944581108
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 250,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782944581360
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "d488db90-7367-49fa-b366-ccdfc796b5b3",
    "timestamp": 1782944581360
  },
  {
    "data": {
      "nodeType": "code"
    },
    "event": "node_start",
    "nodeId": "a99b3164-fe36-4dde-9525-110c1ae08afb",
    "timestamp": 1782944581360
  },
  {
    "event": "execution error (simulated): Buffer is not defined",
    "nodeId": "code",
    "timestamp": 1782944581365
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "code",
      "latencyMs": 0,
      "operation": "exec-failed",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782944581365
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "code"
    },
    "event": "node_end",
    "nodeId": "a99b3164-fe36-4dde-9525-110c1ae08afb",
    "timestamp": 1782944581365
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "f0f731bd-7b2f-4c39-bc06-42fd57bc4ae8",
    "timestamp": 1782944581370
  },
  {
    "event": "fetching POST https://www.googleapis.com/gmail/v1/users/me/drafts",
    "nodeId": "http",
    "timestamp": 1782944581370
  },
  {
    "data": {
      "url": "https://www.googleapis.com/gmail/v1/users/me/drafts",
      "method": "POST"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1782944581370
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "f0f731bd-7b2f-4c39-bc06-42fd57bc4ae8",
    "timestamp": 1782944581433
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "c1ce3400-4582-46c7-a85d-8fa9c325ff7b",
    "timestamp": 1782944581435
  },
  {
    "data": {
      "service": "gmail",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782944581435
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 250,
      "operation": "removeLabels",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782944581686
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "c1ce3400-4582-46c7-a85d-8fa9c325ff7b",
    "timestamp": 1782944581686
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "ca4a209b-a79d-4911-b69b-1db22808be60",
    "timestamp": 1782944581688
  },
  {
    "data": {
      "inputKeys": [],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1782944581688
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "ca4a209b-a79d-4911-b69b-1db22808be60",
    "timestamp": 1782944581688
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "93eb3844-f1fe-4b09-bcae-3e372a19ab6f",
    "timestamp": 1782944581689
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1782944581689
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "93eb3844-f1fe-4b09-bcae-3e372a19ab6f",
    "timestamp": 1782944581689
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "da35eda9-b63e-49f9-8fe8-7517c1445c92",
    "timestamp": 1782944581692
  },
  {
    "data": {
      "inputKeys": [],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1782944581692
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "da35eda9-b63e-49f9-8fe8-7517c1445c92",
    "timestamp": 1782944581692
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "9f5262c5-d319-4a9d-af6e-aa42970d1a6f",
    "timestamp": 1782944581693
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1782944581693
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1782944581693
  },
  {
    "data": {
      "model": "gemini-2.5-flash",
      "costUsd": 0.0009931,
      "provider": "openai",
      "latencyMs": 2249,
      "promptTokens": 2,
      "completionTokens": 397
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1782944583944
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "9f5262c5-d319-4a9d-af6e-aa42970d1a6f",
    "timestamp": 1782944583944
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "6ffd7d66-40b6-49a4-9e15-9742bda73d2f",
    "timestamp": 1782944583948
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1782944583948
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "6ffd7d66-40b6-49a4-9e15-9742bda73d2f",
    "timestamp": 1782944583948
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "8afc47c8-075f-4f3d-a89d-fda81fc270fc",
    "timestamp": 1782944583950
  },
  {
    "data": {
      "service": "gmail",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782944583950
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 250,
      "operation": "get",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782944584201
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "8afc47c8-075f-4f3d-a89d-fda81fc270fc",
    "timestamp": 1782944584201
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "2286bfa7-dcb8-4a61-a71b-ea58e21bf7ab",
    "timestamp": 1782944584204
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1782944584204
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "2286bfa7-dcb8-4a61-a71b-ea58e21bf7ab",
    "timestamp": 1782944584204
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "44c52e61-dd88-4499-85db-69ce4704c2b2",
    "timestamp": 1782944584206
  },
  {
    "data": {
      "service": "gmail",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782944584206
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 250,
      "operation": "get",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782944584457
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "44c52e61-dd88-4499-85db-69ce4704c2b2",
    "timestamp": 1782944584457
  }
]