Telegram AI Agent with Long-Term Memory

1c8000ca-a1e9-4e38-9c54-949caa76027f

Latency
12071ms
Cost
$0.0041
Tokens
2,222
Status
success
gemini-3-flash-preview

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "a3866585-bfee-4025-a8f4-f06fde16171a",
    "timestamp": 1783329084846
  },
  {
    "data": {
      "kind": "n8n-nodes-base.webhook"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1783329084846
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "a3866585-bfee-4025-a8f4-f06fde16171a",
    "timestamp": 1783329084846
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "94a01b4f-549d-4e49-88e0-143c90dd200e",
    "timestamp": 1783329084848
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783329084848
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "94a01b4f-549d-4e49-88e0-143c90dd200e",
    "timestamp": 1783329084848
  },
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "d1182e11-025e-4885-abb1-b76a9b617b84",
    "timestamp": 1783329084849
  },
  {
    "data": {
      "kind": "@n8n/n8n-nodes-langchain.chatTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1783329084849
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "d1182e11-025e-4885-abb1-b76a9b617b84",
    "timestamp": 1783329084849
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "5f342299-40fe-44cf-9b58-8a9d3bfac1df",
    "timestamp": 1783329084851
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "googleDocs",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783329085352
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "5f342299-40fe-44cf-9b58-8a9d3bfac1df",
    "timestamp": 1783329085352
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "af14e803-44a5-4b0e-a675-b1e860bf6d29",
    "timestamp": 1783329085354
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/deepseek-reasoner",
    "nodeId": "llm",
    "timestamp": 1783329085354
  },
  {
    "data": {
      "model": "deepseek-reasoner",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783329085354
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0018778,
      "provider": "openai",
      "latencyMs": 5382,
      "promptTokens": 1,
      "completionTokens": 751
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783329090736
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "af14e803-44a5-4b0e-a675-b1e860bf6d29",
    "timestamp": 1783329090736
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "e8be6a32-ba4c-4895-b34b-c5e7d0ded5e8",
    "timestamp": 1783329090738
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/deepseek-chat",
    "nodeId": "llm",
    "timestamp": 1783329090738
  },
  {
    "data": {
      "model": "deepseek-chat",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783329090738
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0017828,
      "provider": "openai",
      "latencyMs": 4679,
      "promptTokens": 1,
      "completionTokens": 713
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783329095418
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "e8be6a32-ba4c-4895-b34b-c5e7d0ded5e8",
    "timestamp": 1783329095418
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "2b6149d5-ffd6-46ef-9840-149508251a77",
    "timestamp": 1783329095419
  },
  {
    "data": {
      "inputKeys": [
        "body"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783329095419
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "2b6149d5-ffd6-46ef-9840-149508251a77",
    "timestamp": 1783329095419
  },
  {
    "data": {
      "nodeType": "if"
    },
    "event": "node_start",
    "nodeId": "23b50c07-39a8-4166-ab13-9683b3ee25e6",
    "timestamp": 1783329095421
  },
  {
    "event": "false branch",
    "nodeId": "if",
    "timestamp": 1783329095421
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "if"
    },
    "event": "node_end",
    "nodeId": "23b50c07-39a8-4166-ab13-9683b3ee25e6",
    "timestamp": 1783329095421
  },
  {
    "data": {
      "nodeType": "switch"
    },
    "event": "node_start",
    "nodeId": "164f5e91-1958-4dc5-b38c-db1cec0579d4",
    "timestamp": 1783329095422
  },
  {
    "event": "matched rule 1 -> text",
    "nodeId": "switch",
    "timestamp": 1783329095422
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "switch"
    },
    "event": "node_end",
    "nodeId": "164f5e91-1958-4dc5-b38c-db1cec0579d4",
    "timestamp": 1783329095422
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "e5ec71ec-9527-4ccd-87c3-3aa2f09192e8",
    "timestamp": 1783329095423
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "googleDocs",
      "latencyMs": 0,
      "operation": "get",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783329095423
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "e5ec71ec-9527-4ccd-87c3-3aa2f09192e8",
    "timestamp": 1783329095423
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "ecbc13fe-305d-4cdd-b35c-3e119e8e8b5d",
    "timestamp": 1783329095425
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "telegram",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783329095425
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "ecbc13fe-305d-4cdd-b35c-3e119e8e8b5d",
    "timestamp": 1783329095425
  },
  {
    "data": {
      "nodeType": "merge"
    },
    "event": "node_start",
    "nodeId": "6111c771-d8af-4586-8829-213d86dc4f47",
    "timestamp": 1783329095426
  },
  {
    "data": {
      "inputCount": 2
    },
    "event": "merged 2 inputs",
    "nodeId": "merge",
    "timestamp": 1783329095426
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "merge"
    },
    "event": "node_end",
    "nodeId": "6111c771-d8af-4586-8829-213d86dc4f47",
    "timestamp": 1783329095426
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "7947173d-39fa-4d4b-9b1e-60de809a9950",
    "timestamp": 1783329095427
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783329095427
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783329095427
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.00046,
      "provider": "openai",
      "latencyMs": 1236,
      "promptTokens": 650,
      "completionTokens": 106
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783329096664
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "7947173d-39fa-4d4b-9b1e-60de809a9950",
    "timestamp": 1783329096664
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "73156ecc-af5f-4e3d-82c6-4668db52b511",
    "timestamp": 1783329096665
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "telegram",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783329096665
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "73156ecc-af5f-4e3d-82c6-4668db52b511",
    "timestamp": 1783329096665
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "1b53aef2-ca99-409b-bd10-3fc1fd87f540",
    "timestamp": 1783329096667
  },
  {
    "data": {
      "service": "telegram",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783329096667
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "telegram",
      "latencyMs": 250,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783329096917
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "1b53aef2-ca99-409b-bd10-3fc1fd87f540",
    "timestamp": 1783329096917
  }
]