AI Outlook Email Categorization and Processing with Ollama

2450f183-0076-4727-b902-462e183627ca

Latency
31335ms
Cost
$0.0003
Tokens
533
Status
partial
gemini-2.5-flash

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "manualTrigger"
    },
    "event": "node_start",
    "nodeId": "30f5203b-469d-4f0c-8493-e8f08e14e4fe",
    "timestamp": 1783205545922
  },
  {
    "data": {
      "initialData": {
        "id": "12345abcde",
        "body": {
          "content": "Dear Sales Team,\n\nWe are a growing e-commerce business looking to expand our product offerings. We are particularly interested in your line of sustainable home goods. Could you please send over your latest catalog and pricing information? We are also interested in understanding your wholesale terms and minimum order quantities.\n\nOur company name is 'Green Living Solutions' and our website is https://www.greenlivingsolutions.com.\n\nWe look forward to hearing from you.\n\nSincerely,\nJane Doe\nProcurement Manager\nGreen Living Solutions"
        },
        "data": {
          "replace": "true"
        },
        "from": {
          "emailAddress": "jane.doe@greenlivingsolutions.com"
        },
        "isRead": false,
        "output": {
          "category": "Sales Lead",
          "subCategory": "New Inquiry"
        },
        "sender": {
          "emailAddress": "jane.doe@greenlivingsolutions.com"
        },
        "subject": "Inquiry about Sustainable Home Goods - Green Living Solutions",
        "category": "Inbox",
        "categories": [
          "Inbox"
        ],
        "importance": "Normal",
        "toJsonString": "true",
        "output.replace": "true"
      }
    },
    "event": "triggered",
    "nodeId": "manualTrigger",
    "timestamp": 1783205545922
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "manualTrigger"
    },
    "event": "node_end",
    "nodeId": "30f5203b-469d-4f0c-8493-e8f08e14e4fe",
    "timestamp": 1783205545922
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "9d79875f-148e-46ef-967a-95c07298456d",
    "timestamp": 1783205545925
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/qwen2.5:14b",
    "nodeId": "llm",
    "timestamp": 1783205545925
  },
  {
    "data": {
      "model": "qwen2.5:14b",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783205545925
  },
  {
    "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": "9d79875f-148e-46ef-967a-95c07298456d",
    "timestamp": 1783205571451
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "0583e196-37a5-43db-8c0a-aa624029c926",
    "timestamp": 1783205571457
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783205571457
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "getAll",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205571709
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "0583e196-37a5-43db-8c0a-aa624029c926",
    "timestamp": 1783205571709
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "0a19d15c-0cd3-4f26-9be2-4914522751fb",
    "timestamp": 1783205571714
  },
  {
    "data": {
      "of": 1,
      "kept": 1
    },
    "event": "filter",
    "nodeId": "passthrough",
    "timestamp": 1783205571714
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "0a19d15c-0cd3-4f26-9be2-4914522751fb",
    "timestamp": 1783205571714
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "bcf92a71-ff5f-46a7-bec3-cedb5be2bf98",
    "timestamp": 1783205571720
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783205571720
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "move",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205571973
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "bcf92a71-ff5f-46a7-bec3-cedb5be2bf98",
    "timestamp": 1783205571973
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "100db1cb-3819-43c7-a74b-5c087ad4f2da",
    "timestamp": 1783205571979
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205572481
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "100db1cb-3819-43c7-a74b-5c087ad4f2da",
    "timestamp": 1783205572481
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "d4969259-a3ae-473d-82ef-0c9f7933c899",
    "timestamp": 1783205572486
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783205572486
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "d4969259-a3ae-473d-82ef-0c9f7933c899",
    "timestamp": 1783205572486
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "524f6be3-7708-4aae-b9ab-e0ef8180a627",
    "timestamp": 1783205572490
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205572992
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "524f6be3-7708-4aae-b9ab-e0ef8180a627",
    "timestamp": 1783205572992
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "72cb54f3-4e4e-4ad2-8845-11a38fc29f1a",
    "timestamp": 1783205572997
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783205572997
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "move",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205573248
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "72cb54f3-4e4e-4ad2-8845-11a38fc29f1a",
    "timestamp": 1783205573248
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "e4446e84-c05e-4d04-b415-7608e39024ee",
    "timestamp": 1783205573255
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205573757
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "e4446e84-c05e-4d04-b415-7608e39024ee",
    "timestamp": 1783205573757
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "3ee05cfe-a528-472e-aa3d-c890fd88b6c4",
    "timestamp": 1783205573764
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783205573764
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "move",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205574016
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "3ee05cfe-a528-472e-aa3d-c890fd88b6c4",
    "timestamp": 1783205574016
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "2fcecd9e-95cc-489a-b874-699c54518e44",
    "timestamp": 1783205574022
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205574524
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "2fcecd9e-95cc-489a-b874-699c54518e44",
    "timestamp": 1783205574524
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "41a39309-1a94-461f-9308-63dd5b9a94a7",
    "timestamp": 1783205574530
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783205574530
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "move",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205574782
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "41a39309-1a94-461f-9308-63dd5b9a94a7",
    "timestamp": 1783205574782
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "ebf606f9-099c-4218-b23b-66e2487262d0",
    "timestamp": 1783205574787
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783205574787
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "ebf606f9-099c-4218-b23b-66e2487262d0",
    "timestamp": 1783205574787
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "ff447dd5-3ef6-4a02-8453-3489af8bf6b5",
    "timestamp": 1783205574791
  },
  {
    "data": {
      "inputKeys": [
        "0"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783205574791
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "ff447dd5-3ef6-4a02-8453-3489af8bf6b5",
    "timestamp": 1783205574791
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "198524cb-c9f0-4261-8c38-7c878efe7457",
    "timestamp": 1783205574795
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205575297
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "198524cb-c9f0-4261-8c38-7c878efe7457",
    "timestamp": 1783205575297
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "ec73629c-59ac-4f0e-a432-2c06934952ab",
    "timestamp": 1783205575303
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205575805
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "ec73629c-59ac-4f0e-a432-2c06934952ab",
    "timestamp": 1783205575805
  },
  {
    "data": {
      "nodeType": "if"
    },
    "event": "node_start",
    "nodeId": "96e6e31c-6306-44a8-a57a-2b5216636b00",
    "timestamp": 1783205575811
  },
  {
    "event": "false branch",
    "nodeId": "if",
    "timestamp": 1783205575811
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "if"
    },
    "event": "node_end",
    "nodeId": "96e6e31c-6306-44a8-a57a-2b5216636b00",
    "timestamp": 1783205575811
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "8a6e0118-abe3-45e2-aefc-94640348b2ec",
    "timestamp": 1783205575815
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205576317
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "8a6e0118-abe3-45e2-aefc-94640348b2ec",
    "timestamp": 1783205576317
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "e2d8e7b5-4447-4327-9f4e-b8d52765667e",
    "timestamp": 1783205576322
  },
  {
    "data": {
      "inputKeys": [],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783205576322
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "e2d8e7b5-4447-4327-9f4e-b8d52765667e",
    "timestamp": 1783205576322
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "17f6ac43-51e4-4bee-b0d8-13deb3bf3cc9",
    "timestamp": 1783205576325
  },
  {
    "data": {
      "inputKeys": [],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783205576325
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "17f6ac43-51e4-4bee-b0d8-13deb3bf3cc9",
    "timestamp": 1783205576325
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "a9540e6b-929b-4460-8972-93e4d19cd934",
    "timestamp": 1783205576328
  },
  {
    "data": {
      "inputKeys": [
        "0"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783205576328
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "a9540e6b-929b-4460-8972-93e4d19cd934",
    "timestamp": 1783205576328
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "c75b9d38-79a7-4be2-a90b-a99da1bbd745",
    "timestamp": 1783205576331
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783205576331
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "move",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205576584
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "c75b9d38-79a7-4be2-a90b-a99da1bbd745",
    "timestamp": 1783205576584
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "85ff0348-16dc-46e6-bf70-48a10fe0ded8",
    "timestamp": 1783205576591
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783205576591
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783205576591
  },
  {
    "data": {
      "model": "gemini-2.5-flash",
      "costUsd": 0.00028529999999999994,
      "provider": "openai",
      "latencyMs": 654,
      "promptTokens": 476,
      "completionTokens": 57
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783205577246
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "85ff0348-16dc-46e6-bf70-48a10fe0ded8",
    "timestamp": 1783205577246
  },
  {
    "data": {
      "nodeType": "merge"
    },
    "event": "node_start",
    "nodeId": "93e7be79-9035-4b58-9a83-b9182a0515f8",
    "timestamp": 1783205577251
  },
  {
    "data": {
      "inputCount": 7
    },
    "event": "merged 7 inputs",
    "nodeId": "merge",
    "timestamp": 1783205577251
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "merge"
    },
    "event": "node_end",
    "nodeId": "93e7be79-9035-4b58-9a83-b9182a0515f8",
    "timestamp": 1783205577251
  },
  {
    "data": {
      "nodeType": "switch"
    },
    "event": "node_start",
    "nodeId": "cbaeaed1-cb09-4614-93f1-3fe349cd0e4e",
    "timestamp": 1783205577257
  },
  {
    "event": "no rule matched -> default",
    "nodeId": "switch",
    "timestamp": 1783205577257
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "switch"
    },
    "event": "node_end",
    "nodeId": "cbaeaed1-cb09-4614-93f1-3fe349cd0e4e",
    "timestamp": 1783205577257
  }
]