AI-Powered Gmail Draft Generator for Email Threads

f72afb3c-28cf-4c0e-97b9-0d352692960b

Latency
1987ms
Cost
$0.0002
Tokens
29
Status
success
gpt-4o-mini

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "65f0508a-ca2e-49ce-b02f-ef6505b5e983",
    "timestamp": 1782944578114
  },
  {
    "data": {
      "kind": "n8n-nodes-base.scheduleTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1782944578114
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "65f0508a-ca2e-49ce-b02f-ef6505b5e983",
    "timestamp": 1782944578114
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "d488db90-7367-49fa-b366-ccdfc796b5b3",
    "timestamp": 1782944578116
  },
  {
    "data": {
      "service": "gmail",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782944578116
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 250,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782944578367
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "d488db90-7367-49fa-b366-ccdfc796b5b3",
    "timestamp": 1782944578367
  },
  {
    "data": {
      "nodeType": "code"
    },
    "event": "node_start",
    "nodeId": "a99b3164-fe36-4dde-9525-110c1ae08afb",
    "timestamp": 1782944578367
  },
  {
    "event": "execution error (simulated): Buffer is not defined",
    "nodeId": "code",
    "timestamp": 1782944578373
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "code",
      "latencyMs": 0,
      "operation": "exec-failed",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782944578373
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "code"
    },
    "event": "node_end",
    "nodeId": "a99b3164-fe36-4dde-9525-110c1ae08afb",
    "timestamp": 1782944578373
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "f0f731bd-7b2f-4c39-bc06-42fd57bc4ae8",
    "timestamp": 1782944578375
  },
  {
    "event": "fetching POST https://www.googleapis.com/gmail/v1/users/me/drafts",
    "nodeId": "http",
    "timestamp": 1782944578375
  },
  {
    "data": {
      "url": "https://www.googleapis.com/gmail/v1/users/me/drafts",
      "method": "POST"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1782944578375
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "f0f731bd-7b2f-4c39-bc06-42fd57bc4ae8",
    "timestamp": 1782944578548
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "c1ce3400-4582-46c7-a85d-8fa9c325ff7b",
    "timestamp": 1782944578550
  },
  {
    "data": {
      "service": "gmail",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782944578550
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 250,
      "operation": "removeLabels",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782944578801
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "c1ce3400-4582-46c7-a85d-8fa9c325ff7b",
    "timestamp": 1782944578801
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "ca4a209b-a79d-4911-b69b-1db22808be60",
    "timestamp": 1782944578804
  },
  {
    "data": {
      "inputKeys": [],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1782944578804
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "ca4a209b-a79d-4911-b69b-1db22808be60",
    "timestamp": 1782944578804
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "93eb3844-f1fe-4b09-bcae-3e372a19ab6f",
    "timestamp": 1782944578806
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1782944578806
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "93eb3844-f1fe-4b09-bcae-3e372a19ab6f",
    "timestamp": 1782944578806
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "da35eda9-b63e-49f9-8fe8-7517c1445c92",
    "timestamp": 1782944578808
  },
  {
    "data": {
      "inputKeys": [],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1782944578808
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "da35eda9-b63e-49f9-8fe8-7517c1445c92",
    "timestamp": 1782944578808
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "9f5262c5-d319-4a9d-af6e-aa42970d1a6f",
    "timestamp": 1782944578809
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1782944578809
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1782944578809
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.00023,
      "provider": "openai",
      "latencyMs": 781,
      "promptTokens": 8,
      "completionTokens": 21
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1782944579590
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "9f5262c5-d319-4a9d-af6e-aa42970d1a6f",
    "timestamp": 1782944579590
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "6ffd7d66-40b6-49a4-9e15-9742bda73d2f",
    "timestamp": 1782944579593
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1782944579593
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "6ffd7d66-40b6-49a4-9e15-9742bda73d2f",
    "timestamp": 1782944579593
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "8afc47c8-075f-4f3d-a89d-fda81fc270fc",
    "timestamp": 1782944579594
  },
  {
    "data": {
      "service": "gmail",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782944579594
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 250,
      "operation": "get",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782944579846
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "8afc47c8-075f-4f3d-a89d-fda81fc270fc",
    "timestamp": 1782944579846
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "2286bfa7-dcb8-4a61-a71b-ea58e21bf7ab",
    "timestamp": 1782944579848
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1782944579848
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "2286bfa7-dcb8-4a61-a71b-ea58e21bf7ab",
    "timestamp": 1782944579848
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "44c52e61-dd88-4499-85db-69ce4704c2b2",
    "timestamp": 1782944579850
  },
  {
    "data": {
      "service": "gmail",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782944579850
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 250,
      "operation": "get",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782944580101
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "44c52e61-dd88-4499-85db-69ce4704c2b2",
    "timestamp": 1782944580101
  }
]