AI-Powered Gmail Draft Generator for Email Threads
66fb83d9-0829-470c-8c26-8e6f1d0730f5
Latency
4076ms
Cost
$0.0011
Tokens
426
Status
successgemini-3-flash-preview
Workflow Graph
Trace
[
{
"data": {
"nodeType": "trigger"
},
"event": "node_start",
"nodeId": "65f0508a-ca2e-49ce-b02f-ef6505b5e983",
"timestamp": 1780861063367
},
{
"data": {
"kind": "n8n-nodes-base.scheduleTrigger"
},
"event": "seeded",
"nodeId": "trigger",
"timestamp": 1780861063367
},
{
"data": {
"status": "ok",
"nodeType": "trigger"
},
"event": "node_end",
"nodeId": "65f0508a-ca2e-49ce-b02f-ef6505b5e983",
"timestamp": 1780861063367
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "d488db90-7367-49fa-b366-ccdfc796b5b3",
"timestamp": 1780861063368
},
{
"data": {
"service": "gmail",
"resolved": true
},
"event": "credential_access",
"nodeId": "_context",
"timestamp": 1780861063368
},
{
"data": {
"url": "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5&q=in%3Ainbox",
"method": "GET"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1780861063368
},
{
"data": {
"status": 200
},
"event": "gmail.read",
"nodeId": "integration",
"timestamp": 1780861063592
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "gmail",
"latencyMs": 224,
"operation": "read"
},
"event": "integration_call",
"nodeId": "integration",
"timestamp": 1780861063592
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "d488db90-7367-49fa-b366-ccdfc796b5b3",
"timestamp": 1780861063592
},
{
"data": {
"nodeType": "code"
},
"event": "node_start",
"nodeId": "a99b3164-fe36-4dde-9525-110c1ae08afb",
"timestamp": 1780861063592
},
{
"event": "execution error (simulated): Buffer is not defined",
"nodeId": "code",
"timestamp": 1780861063598
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "code",
"latencyMs": 0,
"operation": "exec-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1780861063598
},
{
"data": {
"status": "ok",
"nodeType": "code"
},
"event": "node_end",
"nodeId": "a99b3164-fe36-4dde-9525-110c1ae08afb",
"timestamp": 1780861063598
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "f0f731bd-7b2f-4c39-bc06-42fd57bc4ae8",
"timestamp": 1780861063601
},
{
"event": "fetching POST https://www.googleapis.com/gmail/v1/users/me/drafts",
"nodeId": "http",
"timestamp": 1780861063601
},
{
"data": {
"url": "https://www.googleapis.com/gmail/v1/users/me/drafts",
"method": "POST"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1780861063601
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "f0f731bd-7b2f-4c39-bc06-42fd57bc4ae8",
"timestamp": 1780861063654
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "c1ce3400-4582-46c7-a85d-8fa9c325ff7b",
"timestamp": 1780861063658
},
{
"data": {
"service": "gmail",
"resolved": true
},
"event": "credential_access",
"nodeId": "_context",
"timestamp": 1780861063658
},
{
"data": {
"url": "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5&q=in%3Ainbox",
"method": "GET"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1780861063658
},
{
"data": {
"status": 200
},
"event": "gmail.read",
"nodeId": "integration",
"timestamp": 1780861063788
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "gmail",
"latencyMs": 130,
"operation": "removeLabels"
},
"event": "integration_call",
"nodeId": "integration",
"timestamp": 1780861063788
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "c1ce3400-4582-46c7-a85d-8fa9c325ff7b",
"timestamp": 1780861063788
},
{
"data": {
"nodeType": "set"
},
"event": "node_start",
"nodeId": "ca4a209b-a79d-4911-b69b-1db22808be60",
"timestamp": 1780861063792
},
{
"data": {
"inputKeys": [],
"mergeKeys": []
},
"event": "merged",
"nodeId": "set",
"timestamp": 1780861063792
},
{
"data": {
"status": "ok",
"nodeType": "set"
},
"event": "node_end",
"nodeId": "ca4a209b-a79d-4911-b69b-1db22808be60",
"timestamp": 1780861063792
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "93eb3844-f1fe-4b09-bcae-3e372a19ab6f",
"timestamp": 1780861063794
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1780861063794
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "93eb3844-f1fe-4b09-bcae-3e372a19ab6f",
"timestamp": 1780861063794
},
{
"data": {
"nodeType": "set"
},
"event": "node_start",
"nodeId": "da35eda9-b63e-49f9-8fe8-7517c1445c92",
"timestamp": 1780861063795
},
{
"data": {
"inputKeys": [],
"mergeKeys": []
},
"event": "merged",
"nodeId": "set",
"timestamp": 1780861063795
},
{
"data": {
"status": "ok",
"nodeType": "set"
},
"event": "node_end",
"nodeId": "da35eda9-b63e-49f9-8fe8-7517c1445c92",
"timestamp": 1780861063795
},
{
"data": {
"nodeType": "llm"
},
"event": "node_start",
"nodeId": "9f5262c5-d319-4a9d-af6e-aa42970d1a6f",
"timestamp": 1780861063797
},
{
"data": {
"messages": 1,
"maxTokens": 1024
},
"event": "calling openai/gpt-4o-mini",
"nodeId": "llm",
"timestamp": 1780861063797
},
{
"data": {
"model": "gpt-4o-mini",
"provider": "openai"
},
"event": "llm_call",
"nodeId": "_context",
"timestamp": 1780861063797
},
{
"data": {
"model": "gemini-3-flash-preview",
"costUsd": 0.0010605999999999999,
"provider": "openai",
"latencyMs": 3376,
"promptTokens": 2,
"completionTokens": 424
},
"event": "llm_result",
"nodeId": "_context",
"timestamp": 1780861067176
},
{
"data": {
"status": "ok",
"nodeType": "llm"
},
"event": "node_end",
"nodeId": "9f5262c5-d319-4a9d-af6e-aa42970d1a6f",
"timestamp": 1780861067176
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "6ffd7d66-40b6-49a4-9e15-9742bda73d2f",
"timestamp": 1780861067179
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1780861067179
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "6ffd7d66-40b6-49a4-9e15-9742bda73d2f",
"timestamp": 1780861067179
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "8afc47c8-075f-4f3d-a89d-fda81fc270fc",
"timestamp": 1780861067181
},
{
"data": {
"service": "gmail",
"resolved": true
},
"event": "credential_access",
"nodeId": "_context",
"timestamp": 1780861067181
},
{
"data": {
"url": "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5&q=in%3Ainbox",
"method": "GET"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1780861067181
},
{
"data": {
"status": 200
},
"event": "gmail.read",
"nodeId": "integration",
"timestamp": 1780861067310
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "gmail",
"latencyMs": 129,
"operation": "get"
},
"event": "integration_call",
"nodeId": "integration",
"timestamp": 1780861067310
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "8afc47c8-075f-4f3d-a89d-fda81fc270fc",
"timestamp": 1780861067310
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "2286bfa7-dcb8-4a61-a71b-ea58e21bf7ab",
"timestamp": 1780861067315
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1780861067315
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "2286bfa7-dcb8-4a61-a71b-ea58e21bf7ab",
"timestamp": 1780861067315
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "44c52e61-dd88-4499-85db-69ce4704c2b2",
"timestamp": 1780861067316
},
{
"data": {
"service": "gmail",
"resolved": true
},
"event": "credential_access",
"nodeId": "_context",
"timestamp": 1780861067316
},
{
"data": {
"url": "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5&q=in%3Ainbox",
"method": "GET"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1780861067316
},
{
"data": {
"status": 200
},
"event": "gmail.read",
"nodeId": "integration",
"timestamp": 1780861067443
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "gmail",
"latencyMs": 127,
"operation": "get"
},
"event": "integration_call",
"nodeId": "integration",
"timestamp": 1780861067443
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "44c52e61-dd88-4499-85db-69ce4704c2b2",
"timestamp": 1780861067443
}
]