Gmail to Notion AI Task and Route Sync

72ca5ade-774c-4c22-bc5a-54e6a881f645

Latency
52778ms
Cost
$0.0006
Tokens
589
Status
partial
gemini-2.5-flash

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "3f649e97-e568-47ff-b175-bf63d859d95f",
    "timestamp": 1783207961853
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o",
    "nodeId": "llm",
    "timestamp": 1783207961853
  },
  {
    "data": {
      "model": "gpt-4o",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783207961853
  },
  {
    "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": "3f649e97-e568-47ff-b175-bf63d859d95f",
    "timestamp": 1783207987234
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "bd60c65f-ba6c-4dcb-8d09-b29f5dd475b7",
    "timestamp": 1783207987242
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "toolcalculator",
      "latencyMs": 0,
      "operation": "run",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783207987242
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "bd60c65f-ba6c-4dcb-8d09-b29f5dd475b7",
    "timestamp": 1783207987242
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "d052786a-92a0-4f9b-9867-2dd64ada8034",
    "timestamp": 1783207987243
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783207987243
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "d052786a-92a0-4f9b-9867-2dd64ada8034",
    "timestamp": 1783207987243
  },
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "f773e41f-13b7-483a-9886-90a4425a7f6a",
    "timestamp": 1783207987245
  },
  {
    "data": {
      "kind": "n8n-nodes-base.gmailTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1783207987245
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "f773e41f-13b7-483a-9886-90a4425a7f6a",
    "timestamp": 1783207987245
  },
  {
    "data": {
      "nodeType": "manualTrigger"
    },
    "event": "node_start",
    "nodeId": "14764527-ca40-4937-baa2-368b716c6f58",
    "timestamp": 1783207987247
  },
  {
    "data": {
      "initialData": {
        "id": "msg_1234567890abcdef",
        "name": "Gmail Trigger",
        "text": "This is a test email body. Please create a task for me to follow up on the Q3 report. And make sure that it's a simple task.",
        "Token": "fake_gmail_token_12345",
        "route": {
          "id": "route_abc123",
          "name": "Client Inquiries",
          "Active": true,
          "NotionDatabase": {
            "id": "notion_db_xyz789",
            "match": "Client Tasks"
          }
        },
        "Active": true,
        "output": null,
        "labelIds": [
          "INBOX",
          "UNREAD"
        ],
        "errorLabelID": "Label_Error_67890",
        "toJsonString": "{\"id\": \"msg_1234567890abcdef\", \"threadId\": \"thread_1234567890\", \"labelIds\": [\"INBOX\", \"UNREAD\"], \"snippet\": \"Please create a task for me to follow up on the Q3 report.\", \"payload\": {\"headers\": {\"to\": \"tasks@example.com\", \"from\": \"client@example.com\"}, \"body\": {\"data\": \"VGhpcyBpcyBhIHRlc3QgZW1haWwgYm9keS4gUGxlYXNlIGNyZWF0ZSBhIHRhc2sgZm9yIG1lIHRvIGZvbGxvdyB1cCBvbiB0aGUgU1EgcmVwb3J0LiBBbmQgbWFrZSBzdXJlIHRoYXQgaXQncyBhIHNpbXBsZSB0YXNrLiA=\", \"size\": 100}}, \"internalDate\": \"1678886400000\"}}",
        "to.text.match": "tasks@example.com",
        "NotionDatabase": {
          "id": "notion_db_xyz789",
          "match": "Client Tasks"
        },
        "processedLabelID": "Label_Processed_12345",
        "from.value.address": "client@example.com"
      }
    },
    "event": "triggered",
    "nodeId": "manualTrigger",
    "timestamp": 1783207987247
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "manualTrigger"
    },
    "event": "node_end",
    "nodeId": "14764527-ca40-4937-baa2-368b716c6f58",
    "timestamp": 1783207987247
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "f68e66e1-9f84-498a-bfc4-f7c5b2ca42b1",
    "timestamp": 1783207987248
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783207987248
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "f68e66e1-9f84-498a-bfc4-f7c5b2ca42b1",
    "timestamp": 1783207987248
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "c55a3e9b-5637-4775-a0a6-ea11f1bd26a7",
    "timestamp": 1783207987250
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "toolcalculator",
      "latencyMs": 0,
      "operation": "run",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783207987250
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "c55a3e9b-5637-4775-a0a6-ea11f1bd26a7",
    "timestamp": 1783207987250
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "4d4f7b04-5431-47d2-b9b1-ee2c516e729c",
    "timestamp": 1783207987251
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o",
    "nodeId": "llm",
    "timestamp": 1783207987251
  },
  {
    "data": {
      "model": "gpt-4o",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783207987251
  },
  {
    "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": "4d4f7b04-5431-47d2-b9b1-ee2c516e729c",
    "timestamp": 1783208012579
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "697198d3-2fc2-4665-86a8-4bc16dbc3d43",
    "timestamp": 1783208012582
  },
  {
    "data": {
      "inputKeys": [
        "processedLabelID",
        "id",
        "Active",
        "to.text.match",
        "errorLabelID",
        "from.value.address",
        "route",
        "toJsonString",
        "Token",
        "labelIds",
        "name",
        "output",
        "NotionDatabase",
        "text"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783208012582
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "697198d3-2fc2-4665-86a8-4bc16dbc3d43",
    "timestamp": 1783208012582
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "133e3498-10ce-4a08-aa50-3c7d56f1b9c8",
    "timestamp": 1783208012586
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "gmail",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783208012586
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "133e3498-10ce-4a08-aa50-3c7d56f1b9c8",
    "timestamp": 1783208012586
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "918ce27c-2886-4793-81f5-e459f3299bb1",
    "timestamp": 1783208012589
  },
  {
    "data": {
      "of": 1,
      "kept": 1
    },
    "event": "filter",
    "nodeId": "passthrough",
    "timestamp": 1783208012589
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "918ce27c-2886-4793-81f5-e459f3299bb1",
    "timestamp": 1783208012589
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "5f955606-4063-4683-b242-2fc0a4fbf34a",
    "timestamp": 1783208012591
  },
  {
    "data": {
      "of": 3,
      "kept": 3
    },
    "event": "filter",
    "nodeId": "passthrough",
    "timestamp": 1783208012591
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "5f955606-4063-4683-b242-2fc0a4fbf34a",
    "timestamp": 1783208012591
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "fd0f902f-4d16-4bad-8ed0-7fe02e8e879b",
    "timestamp": 1783208012593
  },
  {
    "data": {
      "inputKeys": [
        "0"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783208012593
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "fd0f902f-4d16-4bad-8ed0-7fe02e8e879b",
    "timestamp": 1783208012593
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "7dd9646c-3172-4b53-82c8-4df7fd5f53ea",
    "timestamp": 1783208012595
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "airtable",
      "latencyMs": 0,
      "operation": "get",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783208012595
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "7dd9646c-3172-4b53-82c8-4df7fd5f53ea",
    "timestamp": 1783208012595
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "8a4c49f9-0c14-46ea-a475-a0d83eb9d688",
    "timestamp": 1783208012596
  },
  {
    "data": {
      "of": 1,
      "kept": 1
    },
    "event": "filter",
    "nodeId": "passthrough",
    "timestamp": 1783208012596
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "8a4c49f9-0c14-46ea-a475-a0d83eb9d688",
    "timestamp": 1783208012596
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "1d2fe867-f3d1-4702-b35e-f730f20b7251",
    "timestamp": 1783208012597
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783208012597
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "1d2fe867-f3d1-4702-b35e-f730f20b7251",
    "timestamp": 1783208012597
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "ea081c31-2721-4e6c-820a-2f0da33495ac",
    "timestamp": 1783208012599
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783208012599
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783208012599
  },
  {
    "data": {
      "model": "gemini-2.5-flash",
      "costUsd": 0.0001695,
      "provider": "openai",
      "latencyMs": 548,
      "promptTokens": 190,
      "completionTokens": 45
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783208013147
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "ea081c31-2721-4e6c-820a-2f0da33495ac",
    "timestamp": 1783208013147
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "5e7cc69c-8f58-4ac8-9263-1ad206609295",
    "timestamp": 1783208013152
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "gmail",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783208013152
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "5e7cc69c-8f58-4ac8-9263-1ad206609295",
    "timestamp": 1783208013152
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "6fb2d964-dc0b-45d9-8307-6da16fba769e",
    "timestamp": 1783208013154
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783208013154
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783208013154
  },
  {
    "data": {
      "model": "gemini-2.5-flash",
      "costUsd": 0.000445,
      "provider": "openai",
      "latencyMs": 955,
      "promptTokens": 200,
      "completionTokens": 154
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783208014109
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "6fb2d964-dc0b-45d9-8307-6da16fba769e",
    "timestamp": 1783208014109
  },
  {
    "data": {
      "nodeType": "code"
    },
    "event": "node_start",
    "nodeId": "6558328c-30cf-4f37-a0cb-d5f9f6efa7b2",
    "timestamp": 1783208014109
  },
  {
    "event": "execution error (simulated): Cannot read properties of undefined (reading 'sender')",
    "nodeId": "code",
    "timestamp": 1783208014113
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "code",
      "latencyMs": 0,
      "operation": "exec-failed",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783208014113
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "code"
    },
    "event": "node_end",
    "nodeId": "6558328c-30cf-4f37-a0cb-d5f9f6efa7b2",
    "timestamp": 1783208014115
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "8ddfe273-3fda-4b71-a972-5001d4fa71c1",
    "timestamp": 1783208014118
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "http",
      "latencyMs": 0,
      "operation": "fixture",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783208014118
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "8ddfe273-3fda-4b71-a972-5001d4fa71c1",
    "timestamp": 1783208014118
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "50d396fd-d3b0-4fea-99d7-18bd4773cb20",
    "timestamp": 1783208014119
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "gmail",
      "latencyMs": 0,
      "operation": "addLabels",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783208014119
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "50d396fd-d3b0-4fea-99d7-18bd4773cb20",
    "timestamp": 1783208014119
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "81d1dec6-aacc-480d-8cb4-1832ff27de92",
    "timestamp": 1783208014121
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "airtable",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783208014622
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "81d1dec6-aacc-480d-8cb4-1832ff27de92",
    "timestamp": 1783208014622
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "7a788a4f-f0a8-4fe8-b21d-b114a65313b1",
    "timestamp": 1783208014627
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "gmail",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783208014627
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "7a788a4f-f0a8-4fe8-b21d-b114a65313b1",
    "timestamp": 1783208014627
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "20242505-c57e-424c-a215-2b2effac1d94",
    "timestamp": 1783208014631
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "gmail",
      "latencyMs": 0,
      "operation": "addLabels",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783208014631
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "20242505-c57e-424c-a215-2b2effac1d94",
    "timestamp": 1783208014631
  }
]