Discord AI Bot for Message Categorization

4cc82587-0114-4e66-811a-d43503324154

Latency
1804ms
Cost
$0.0016
Tokens
377
Status
success
gpt-4o-mini

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "manualTrigger"
    },
    "event": "node_start",
    "nodeId": "6f188270-2c08-491f-bf52-c4a152b33aa0",
    "timestamp": 1783204931466
  },
  {
    "data": {
      "initialData": {
        "body": {
          "feedback": "The new onboarding process for new hires is confusing. Several people have asked me where to find the documentation for setting up their email accounts. It seems like the link provided in the initial welcome email is broken or leads to an outdated page."
        },
        "message": {
          "content": "The new onboarding process for new hires is confusing. Several people have asked me where to find the documentation for setting up their email accounts. It seems like the link provided in the initial welcome email is broken or leads to an outdated page."
        },
        "gpt_reply": {
          "category": "IT Support",
          "instruction": "Categorize the following user feedback into one of the following departments: User Success Dept, IT Dept, Helpdesk. Provide a concise category name."
        }
      }
    },
    "event": "triggered",
    "nodeId": "manualTrigger",
    "timestamp": 1783204931466
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "manualTrigger"
    },
    "event": "node_end",
    "nodeId": "6f188270-2c08-491f-bf52-c4a152b33aa0",
    "timestamp": 1783204931466
  },
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "e4839de2-fc04-40b0-b6bc-596455ad93fe",
    "timestamp": 1783204931469
  },
  {
    "data": {
      "kind": "n8n-nodes-base.webhook"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1783204931469
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "e4839de2-fc04-40b0-b6bc-596455ad93fe",
    "timestamp": 1783204931469
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "0d28fe8e-da80-458b-9a75-d316019cb3ae",
    "timestamp": 1783204931472
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 500
    },
    "event": "calling openai/gpt-4",
    "nodeId": "llm",
    "timestamp": 1783204931472
  },
  {
    "data": {
      "model": "gpt-4",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783204931472
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.00158,
      "provider": "openai",
      "latencyMs": 1776,
      "promptTokens": 292,
      "completionTokens": 85
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783204933249
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "0d28fe8e-da80-458b-9a75-d316019cb3ae",
    "timestamp": 1783204933249
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "839cc38d-b393-4fc1-a068-47a8fcf55e3f",
    "timestamp": 1783204933255
  },
  {
    "data": {
      "inputKeys": [
        "text",
        "model",
        "usage"
      ],
      "mergeKeys": [
        "string"
      ]
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783204933255
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "839cc38d-b393-4fc1-a068-47a8fcf55e3f",
    "timestamp": 1783204933255
  },
  {
    "data": {
      "nodeType": "switch"
    },
    "event": "node_start",
    "nodeId": "ce1c4198-ce21-4436-9ccb-4a2a078cd06e",
    "timestamp": 1783204933259
  },
  {
    "event": "routed:  -> default",
    "nodeId": "switch",
    "timestamp": 1783204933259
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "switch"
    },
    "event": "node_end",
    "nodeId": "ce1c4198-ce21-4436-9ccb-4a2a078cd06e",
    "timestamp": 1783204933259
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "4c150439-89af-42bd-bbdc-905d13ada76b",
    "timestamp": 1783204933262
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "discord",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204933262
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "4c150439-89af-42bd-bbdc-905d13ada76b",
    "timestamp": 1783204933262
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "9a5e5335-9e6c-4f1f-a0f0-b1b022956549",
    "timestamp": 1783204933265
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "discord",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204933265
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "9a5e5335-9e6c-4f1f-a0f0-b1b022956549",
    "timestamp": 1783204933265
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "d6d6250a-3a24-49f1-a597-47ebc179949c",
    "timestamp": 1783204933268
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "discord",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204933268
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "d6d6250a-3a24-49f1-a597-47ebc179949c",
    "timestamp": 1783204933268
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "15dcafe1-6361-4775-ace0-e34fd2a143b4",
    "timestamp": 1783204933270
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783204933270
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "15dcafe1-6361-4775-ace0-e34fd2a143b4",
    "timestamp": 1783204933270
  }
]