Telegram AI Assistant with Command Processing

6e383d2b-5127-491c-9328-1229f85df956

Latency
10407ms
Cost
$0.0012
Tokens
499
Status
success
gemini-3-flash-preview

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "ea71a467-a646-4aca-b72e-cef1249c74e2",
    "timestamp": 1780740583099
  },
  {
    "data": {
      "kind": "n8n-nodes-base.telegramTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1780740583099
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "ea71a467-a646-4aca-b72e-cef1249c74e2",
    "timestamp": 1780740583099
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "730a51ac-223e-4956-be7f-166eadb6ed81",
    "timestamp": 1780740583102
  },
  {
    "data": {
      "inputKeys": [],
      "mergeKeys": [
        "string"
      ]
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1780740583102
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "730a51ac-223e-4956-be7f-166eadb6ed81",
    "timestamp": 1780740583102
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "2aa961b8-f0af-4d5c-a6af-1be56ea4b2e6",
    "timestamp": 1780740583105
  },
  {
    "data": {
      "inputKeys": [
        "string"
      ],
      "mergeKeys": [
        "number",
        "string"
      ]
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1780740583105
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "2aa961b8-f0af-4d5c-a6af-1be56ea4b2e6",
    "timestamp": 1780740583105
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "30321276-ebe1-41ac-b420-9dab8daa405b",
    "timestamp": 1780740583109
  },
  {
    "data": {
      "service": "telegram",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780740583109
  },
  {
    "data": {
      "url": "https://api.telegram.org/bot8601839237:AAEoFA4ys16Txlcu68Orq7B6q_QPBOVBDvs/getUpdates?limit=5",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780740583109
  },
  {
    "data": {
      "status": 200
    },
    "event": "telegram.read",
    "nodeId": "integration",
    "timestamp": 1780740583268
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "telegram",
      "latencyMs": 159,
      "operation": "sendChatAction"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780740583268
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "30321276-ebe1-41ac-b420-9dab8daa405b",
    "timestamp": 1780740583268
  },
  {
    "data": {
      "nodeType": "merge"
    },
    "event": "node_start",
    "nodeId": "7d7ff2e8-b0ca-4638-a056-f7b4e2e6273d",
    "timestamp": 1780740583271
  },
  {
    "data": {
      "inputCount": 2
    },
    "event": "merged 2 inputs",
    "nodeId": "merge",
    "timestamp": 1780740583271
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "merge"
    },
    "event": "node_end",
    "nodeId": "7d7ff2e8-b0ca-4638-a056-f7b4e2e6273d",
    "timestamp": 1780740583271
  },
  {
    "data": {
      "nodeType": "switch"
    },
    "event": "node_start",
    "nodeId": "1cbe43d4-ea8b-4178-bc10-4bfad7abe143",
    "timestamp": 1780740583274
  },
  {
    "event": "routed:  -> default",
    "nodeId": "switch",
    "timestamp": 1780740583275
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "switch"
    },
    "event": "node_end",
    "nodeId": "1cbe43d4-ea8b-4178-bc10-4bfad7abe143",
    "timestamp": 1780740583275
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "088cffee-5720-488b-a4ec-cfdccbf77e75",
    "timestamp": 1780740583278
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4",
    "nodeId": "llm",
    "timestamp": 1780740583278
  },
  {
    "data": {
      "model": "gpt-4",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780740583278
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0001055,
      "provider": "openai",
      "latencyMs": 1222,
      "promptTokens": 10,
      "completionTokens": 41
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780740584501
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "088cffee-5720-488b-a4ec-cfdccbf77e75",
    "timestamp": 1780740584501
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "41248697-6474-4a8f-a8b8-038c96465948",
    "timestamp": 1780740584509
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780740584509
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780740584509
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.000053700000000000004,
      "provider": "openai",
      "latencyMs": 1141,
      "promptTokens": 29,
      "completionTokens": 18
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780740585651
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "41248697-6474-4a8f-a8b8-038c96465948",
    "timestamp": 1780740585651
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "ca2111d2-463a-4ef0-9436-ee09598dbf07",
    "timestamp": 1780740585657
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780740585657
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780740585657
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0010003,
      "provider": "openai",
      "latencyMs": 3123,
      "promptTokens": 1,
      "completionTokens": 400
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780740588782
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "ca2111d2-463a-4ef0-9436-ee09598dbf07",
    "timestamp": 1780740588782
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "e91d616b-1d5e-40e8-8468-2d0b2dda4cf7",
    "timestamp": 1780740588788
  },
  {
    "data": {
      "service": "telegram",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780740588788
  },
  {
    "data": {
      "url": "https://api.telegram.org/bot8601839237:AAEoFA4ys16Txlcu68Orq7B6q_QPBOVBDvs/getUpdates?limit=5",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780740588788
  },
  {
    "data": {
      "status": 200
    },
    "event": "telegram.read",
    "nodeId": "integration",
    "timestamp": 1780740589638
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "telegram",
      "latencyMs": 850,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780740589638
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "e91d616b-1d5e-40e8-8468-2d0b2dda4cf7",
    "timestamp": 1780740589638
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "20c2e7fa-5d65-441b-8d1d-a8d46c624964",
    "timestamp": 1780740589644
  },
  {
    "data": {
      "service": "telegram",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780740589644
  },
  {
    "data": {
      "url": "https://api.telegram.org/bot8601839237:AAEoFA4ys16Txlcu68Orq7B6q_QPBOVBDvs/getUpdates?limit=5",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780740589644
  },
  {
    "data": {
      "status": 200
    },
    "event": "telegram.read",
    "nodeId": "integration",
    "timestamp": 1780740592789
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "telegram",
      "latencyMs": 3145,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780740592789
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "20c2e7fa-5d65-441b-8d1d-a8d46c624964",
    "timestamp": 1780740592789
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "125e27d2-b03b-4f02-9dd1-8fc81ecf0b6b",
    "timestamp": 1780740592793
  },
  {
    "data": {
      "service": "telegram",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780740592793
  },
  {
    "data": {
      "url": "https://api.telegram.org/bot8601839237:AAEoFA4ys16Txlcu68Orq7B6q_QPBOVBDvs/sendMessage",
      "method": "POST"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780740592793
  },
  {
    "data": {
      "status": 200
    },
    "event": "telegram.send",
    "nodeId": "integration",
    "timestamp": 1780740593506
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "telegram",
      "latencyMs": 713,
      "operation": "sendPhoto"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780740593506
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "125e27d2-b03b-4f02-9dd1-8fc81ecf0b6b",
    "timestamp": 1780740593506
  }
]