AI Outlook Email Categorization and Processing with Ollama

1441e913-1787-4956-91ab-33b7db0d7b88

Latency
7173ms
Cost
$0.0016
Tokens
504
Status
success
gpt-4o-mini

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "manualTrigger"
    },
    "event": "node_start",
    "nodeId": "30f5203b-469d-4f0c-8493-e8f08e14e4fe",
    "timestamp": 1782941163093
  },
  {
    "data": {
      "initialData": {
        "id": "msg-12345abcde",
        "body": {
          "content": "Hi team, I'm experiencing a critical issue with the new reporting module. The data is not loading, and it's blocking our daily operations. Can someone please assist immediately? The error message is 'Data retrieval failed: 500 Internal Server Error'.\n\nThanks,\nAlex"
        },
        "data": {
          "replace": "Initial"
        },
        "from": {
          "emailAddress": "alex.smith@example.com"
        },
        "isRead": false,
        "output": {
          "replace": "Processed",
          "category": "Urgent Inquiry",
          "subCategory": "Technical Support"
        },
        "sender": {
          "emailAddress": "alex.smith@example.com"
        },
        "subject": "URGENT: Reporting Module Data Loading Issue",
        "category": "Support",
        "categories": [
          "Support",
          "Critical"
        ],
        "importance": "High",
        "toJsonString": "true"
      }
    },
    "event": "triggered",
    "nodeId": "manualTrigger",
    "timestamp": 1782941163093
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "manualTrigger"
    },
    "event": "node_end",
    "nodeId": "30f5203b-469d-4f0c-8493-e8f08e14e4fe",
    "timestamp": 1782941163093
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "9d79875f-148e-46ef-967a-95c07298456d",
    "timestamp": 1782941163094
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/qwen2.5:14b",
    "nodeId": "llm",
    "timestamp": 1782941163094
  },
  {
    "data": {
      "model": "qwen2.5:14b",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1782941163094
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.0001075,
      "provider": "openai",
      "latencyMs": 1011,
      "promptTokens": 7,
      "completionTokens": 9
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1782941164106
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "9d79875f-148e-46ef-967a-95c07298456d",
    "timestamp": 1782941164106
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "0583e196-37a5-43db-8c0a-aa624029c926",
    "timestamp": 1782941164107
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782941164107
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "getAll",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941164359
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "0583e196-37a5-43db-8c0a-aa624029c926",
    "timestamp": 1782941164359
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "0a19d15c-0cd3-4f26-9be2-4914522751fb",
    "timestamp": 1782941164361
  },
  {
    "data": {
      "of": 1,
      "kept": 1
    },
    "event": "filter",
    "nodeId": "passthrough",
    "timestamp": 1782941164361
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "0a19d15c-0cd3-4f26-9be2-4914522751fb",
    "timestamp": 1782941164361
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "bcf92a71-ff5f-46a7-bec3-cedb5be2bf98",
    "timestamp": 1782941164363
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782941164363
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "move",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941164613
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "bcf92a71-ff5f-46a7-bec3-cedb5be2bf98",
    "timestamp": 1782941164613
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "100db1cb-3819-43c7-a74b-5c087ad4f2da",
    "timestamp": 1782941164615
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941165118
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "100db1cb-3819-43c7-a74b-5c087ad4f2da",
    "timestamp": 1782941165118
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "d4969259-a3ae-473d-82ef-0c9f7933c899",
    "timestamp": 1782941165122
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1782941165122
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "d4969259-a3ae-473d-82ef-0c9f7933c899",
    "timestamp": 1782941165122
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "524f6be3-7708-4aae-b9ab-e0ef8180a627",
    "timestamp": 1782941165124
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941165625
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "524f6be3-7708-4aae-b9ab-e0ef8180a627",
    "timestamp": 1782941165625
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "72cb54f3-4e4e-4ad2-8845-11a38fc29f1a",
    "timestamp": 1782941165629
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782941165629
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "move",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941165880
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "72cb54f3-4e4e-4ad2-8845-11a38fc29f1a",
    "timestamp": 1782941165880
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "e4446e84-c05e-4d04-b415-7608e39024ee",
    "timestamp": 1782941165885
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941166386
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "e4446e84-c05e-4d04-b415-7608e39024ee",
    "timestamp": 1782941166386
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "3ee05cfe-a528-472e-aa3d-c890fd88b6c4",
    "timestamp": 1782941166388
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782941166388
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "move",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941166639
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "3ee05cfe-a528-472e-aa3d-c890fd88b6c4",
    "timestamp": 1782941166639
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "2fcecd9e-95cc-489a-b874-699c54518e44",
    "timestamp": 1782941166642
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941167142
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "2fcecd9e-95cc-489a-b874-699c54518e44",
    "timestamp": 1782941167142
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "41a39309-1a94-461f-9308-63dd5b9a94a7",
    "timestamp": 1782941167147
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782941167147
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "move",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941167398
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "41a39309-1a94-461f-9308-63dd5b9a94a7",
    "timestamp": 1782941167398
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "ebf606f9-099c-4218-b23b-66e2487262d0",
    "timestamp": 1782941167405
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1782941167405
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "ebf606f9-099c-4218-b23b-66e2487262d0",
    "timestamp": 1782941167405
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "ff447dd5-3ef6-4a02-8453-3489af8bf6b5",
    "timestamp": 1782941167408
  },
  {
    "data": {
      "inputKeys": [
        "0"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1782941167408
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "ff447dd5-3ef6-4a02-8453-3489af8bf6b5",
    "timestamp": 1782941167408
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "198524cb-c9f0-4261-8c38-7c878efe7457",
    "timestamp": 1782941167410
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941167912
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "198524cb-c9f0-4261-8c38-7c878efe7457",
    "timestamp": 1782941167912
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "ec73629c-59ac-4f0e-a432-2c06934952ab",
    "timestamp": 1782941167917
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941168418
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "ec73629c-59ac-4f0e-a432-2c06934952ab",
    "timestamp": 1782941168418
  },
  {
    "data": {
      "nodeType": "if"
    },
    "event": "node_start",
    "nodeId": "96e6e31c-6306-44a8-a57a-2b5216636b00",
    "timestamp": 1782941168424
  },
  {
    "event": "false branch",
    "nodeId": "if",
    "timestamp": 1782941168424
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "if"
    },
    "event": "node_end",
    "nodeId": "96e6e31c-6306-44a8-a57a-2b5216636b00",
    "timestamp": 1782941168424
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "8a6e0118-abe3-45e2-aefc-94640348b2ec",
    "timestamp": 1782941168426
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "outlook",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941168927
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "8a6e0118-abe3-45e2-aefc-94640348b2ec",
    "timestamp": 1782941168927
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "e2d8e7b5-4447-4327-9f4e-b8d52765667e",
    "timestamp": 1782941168931
  },
  {
    "data": {
      "inputKeys": [],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1782941168931
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "e2d8e7b5-4447-4327-9f4e-b8d52765667e",
    "timestamp": 1782941168931
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "17f6ac43-51e4-4bee-b0d8-13deb3bf3cc9",
    "timestamp": 1782941168934
  },
  {
    "data": {
      "inputKeys": [],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1782941168934
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "17f6ac43-51e4-4bee-b0d8-13deb3bf3cc9",
    "timestamp": 1782941168934
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "a9540e6b-929b-4460-8972-93e4d19cd934",
    "timestamp": 1782941168937
  },
  {
    "data": {
      "inputKeys": [
        "0"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1782941168937
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "a9540e6b-929b-4460-8972-93e4d19cd934",
    "timestamp": 1782941168937
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "c75b9d38-79a7-4be2-a90b-a99da1bbd745",
    "timestamp": 1782941168939
  },
  {
    "data": {
      "service": "outlook",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1782941168939
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "outlook",
      "latencyMs": 250,
      "operation": "move",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1782941169189
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "c75b9d38-79a7-4be2-a90b-a99da1bbd745",
    "timestamp": 1782941169189
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "85ff0348-16dc-46e6-bf70-48a10fe0ded8",
    "timestamp": 1782941169193
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1782941169193
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1782941169193
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.0014525,
      "provider": "openai",
      "latencyMs": 1048,
      "promptTokens": 457,
      "completionTokens": 31
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1782941170259
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "85ff0348-16dc-46e6-bf70-48a10fe0ded8",
    "timestamp": 1782941170259
  },
  {
    "data": {
      "nodeType": "merge"
    },
    "event": "node_start",
    "nodeId": "93e7be79-9035-4b58-9a83-b9182a0515f8",
    "timestamp": 1782941170263
  },
  {
    "data": {
      "inputCount": 7
    },
    "event": "merged 7 inputs",
    "nodeId": "merge",
    "timestamp": 1782941170263
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "merge"
    },
    "event": "node_end",
    "nodeId": "93e7be79-9035-4b58-9a83-b9182a0515f8",
    "timestamp": 1782941170263
  },
  {
    "data": {
      "nodeType": "switch"
    },
    "event": "node_start",
    "nodeId": "cbaeaed1-cb09-4614-93f1-3fe349cd0e4e",
    "timestamp": 1782941170266
  },
  {
    "event": "no rule matched -> default",
    "nodeId": "switch",
    "timestamp": 1782941170266
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "switch"
    },
    "event": "node_end",
    "nodeId": "cbaeaed1-cb09-4614-93f1-3fe349cd0e4e",
    "timestamp": 1782941170266
  }
]