Discord AI Bot for Message Categorization

c5556770-6289-46f1-b924-83e1bc7af5a4

Latency
1368ms
Cost
$0.0003
Tokens
385
Status
success
gemini-3-flash-preview

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "manualTrigger"
    },
    "event": "node_start",
    "nodeId": "6f188270-2c08-491f-bf52-c4a152b33aa0",
    "timestamp": 1783204936214
  },
  {
    "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": 1783204936214
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "manualTrigger"
    },
    "event": "node_end",
    "nodeId": "6f188270-2c08-491f-bf52-c4a152b33aa0",
    "timestamp": 1783204936214
  },
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "e4839de2-fc04-40b0-b6bc-596455ad93fe",
    "timestamp": 1783204936218
  },
  {
    "data": {
      "kind": "n8n-nodes-base.webhook"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1783204936218
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "e4839de2-fc04-40b0-b6bc-596455ad93fe",
    "timestamp": 1783204936218
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "0d28fe8e-da80-458b-9a75-d316019cb3ae",
    "timestamp": 1783204936220
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 500
    },
    "event": "calling openai/gpt-4",
    "nodeId": "llm",
    "timestamp": 1783204936220
  },
  {
    "data": {
      "model": "gpt-4",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783204936220
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0003311,
      "provider": "openai",
      "latencyMs": 1341,
      "promptTokens": 287,
      "completionTokens": 98
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783204937563
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "0d28fe8e-da80-458b-9a75-d316019cb3ae",
    "timestamp": 1783204937563
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "839cc38d-b393-4fc1-a068-47a8fcf55e3f",
    "timestamp": 1783204937568
  },
  {
    "data": {
      "inputKeys": [
        "text",
        "model",
        "usage"
      ],
      "mergeKeys": [
        "string"
      ]
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783204937568
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "839cc38d-b393-4fc1-a068-47a8fcf55e3f",
    "timestamp": 1783204937568
  },
  {
    "data": {
      "nodeType": "switch"
    },
    "event": "node_start",
    "nodeId": "ce1c4198-ce21-4436-9ccb-4a2a078cd06e",
    "timestamp": 1783204937571
  },
  {
    "event": "routed:  -> default",
    "nodeId": "switch",
    "timestamp": 1783204937571
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "switch"
    },
    "event": "node_end",
    "nodeId": "ce1c4198-ce21-4436-9ccb-4a2a078cd06e",
    "timestamp": 1783204937571
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "4c150439-89af-42bd-bbdc-905d13ada76b",
    "timestamp": 1783204937574
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "discord",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204937574
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "4c150439-89af-42bd-bbdc-905d13ada76b",
    "timestamp": 1783204937574
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "9a5e5335-9e6c-4f1f-a0f0-b1b022956549",
    "timestamp": 1783204937577
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "discord",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204937577
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "9a5e5335-9e6c-4f1f-a0f0-b1b022956549",
    "timestamp": 1783204937577
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "d6d6250a-3a24-49f1-a597-47ebc179949c",
    "timestamp": 1783204937579
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "discord",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204937579
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "d6d6250a-3a24-49f1-a597-47ebc179949c",
    "timestamp": 1783204937579
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "15dcafe1-6361-4775-ace0-e34fd2a143b4",
    "timestamp": 1783204937582
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783204937582
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "15dcafe1-6361-4775-ace0-e34fd2a143b4",
    "timestamp": 1783204937582
  }
]