Telegram AI Agent with Long-Term Memory

6f136c59-2352-4669-b724-509624ecaae3

Latency
16615ms
Cost
$0.0037
Tokens
2,024
Status
success
gemini-3-flash-preview

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "a3866585-bfee-4025-a8f4-f06fde16171a",
    "timestamp": 1780860151028
  },
  {
    "data": {
      "kind": "n8n-nodes-base.webhook"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1780860151028
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "a3866585-bfee-4025-a8f4-f06fde16171a",
    "timestamp": 1780860151028
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "94a01b4f-549d-4e49-88e0-143c90dd200e",
    "timestamp": 1780860151032
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1780860151032
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "94a01b4f-549d-4e49-88e0-143c90dd200e",
    "timestamp": 1780860151032
  },
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "d1182e11-025e-4885-abb1-b76a9b617b84",
    "timestamp": 1780860151035
  },
  {
    "data": {
      "kind": "@n8n/n8n-nodes-langchain.chatTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1780860151035
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "d1182e11-025e-4885-abb1-b76a9b617b84",
    "timestamp": 1780860151035
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "5f342299-40fe-44cf-9b58-8a9d3bfac1df",
    "timestamp": 1780860151038
  },
  {
    "data": {
      "service": "googleDocs",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780860151038
  },
  {
    "data": {
      "url": "https://docs.googleapis.com/v1/documents/1HvKeYG1b14O00p5pzv7MmHupSE2BO-HacKAGT2aq-Fg:batchUpdate",
      "method": "POST"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780860151039
  },
  {
    "data": {
      "status": 200
    },
    "event": "docs.append",
    "nodeId": "integration",
    "timestamp": 1780860151406
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "googleDocs",
      "latencyMs": 368,
      "operation": "update"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780860151406
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "5f342299-40fe-44cf-9b58-8a9d3bfac1df",
    "timestamp": 1780860151406
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "af14e803-44a5-4b0e-a675-b1e860bf6d29",
    "timestamp": 1780860151409
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/deepseek-reasoner",
    "nodeId": "llm",
    "timestamp": 1780860151409
  },
  {
    "data": {
      "model": "deepseek-reasoner",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780860151409
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0021278,
      "provider": "openai",
      "latencyMs": 4911,
      "promptTokens": 1,
      "completionTokens": 851
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780860156323
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "af14e803-44a5-4b0e-a675-b1e860bf6d29",
    "timestamp": 1780860156323
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "e8be6a32-ba4c-4895-b34b-c5e7d0ded5e8",
    "timestamp": 1780860156328
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/deepseek-chat",
    "nodeId": "llm",
    "timestamp": 1780860156328
  },
  {
    "data": {
      "model": "deepseek-chat",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780860156328
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0012378,
      "provider": "openai",
      "latencyMs": 3428,
      "promptTokens": 1,
      "completionTokens": 495
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780860159758
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "e8be6a32-ba4c-4895-b34b-c5e7d0ded5e8",
    "timestamp": 1780860159758
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "2b6149d5-ffd6-46ef-9840-149508251a77",
    "timestamp": 1780860159765
  },
  {
    "data": {
      "inputKeys": [],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1780860159765
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "2b6149d5-ffd6-46ef-9840-149508251a77",
    "timestamp": 1780860159765
  },
  {
    "data": {
      "nodeType": "if"
    },
    "event": "node_start",
    "nodeId": "23b50c07-39a8-4166-ab13-9683b3ee25e6",
    "timestamp": 1780860159770
  },
  {
    "event": "false branch",
    "nodeId": "if",
    "timestamp": 1780860159770
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "if"
    },
    "event": "node_end",
    "nodeId": "23b50c07-39a8-4166-ab13-9683b3ee25e6",
    "timestamp": 1780860159770
  },
  {
    "data": {
      "nodeType": "switch"
    },
    "event": "node_start",
    "nodeId": "164f5e91-1958-4dc5-b38c-db1cec0579d4",
    "timestamp": 1780860159773
  },
  {
    "event": "no rule matched -> default",
    "nodeId": "switch",
    "timestamp": 1780860159773
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "switch"
    },
    "event": "node_end",
    "nodeId": "164f5e91-1958-4dc5-b38c-db1cec0579d4",
    "timestamp": 1780860159773
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "e5ec71ec-9527-4ccd-87c3-3aa2f09192e8",
    "timestamp": 1780860159774
  },
  {
    "data": {
      "service": "googleDocs",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780860159774
  },
  {
    "data": {
      "url": "https://docs.googleapis.com/v1/documents/1HvKeYG1b14O00p5pzv7MmHupSE2BO-HacKAGT2aq-Fg",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780860159774
  },
  {
    "data": {
      "status": 200
    },
    "event": "docs.read",
    "nodeId": "integration",
    "timestamp": 1780860160080
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "googleDocs",
      "latencyMs": 306,
      "operation": "get"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780860160081
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "e5ec71ec-9527-4ccd-87c3-3aa2f09192e8",
    "timestamp": 1780860160081
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "ecbc13fe-305d-4cdd-b35c-3e119e8e8b5d",
    "timestamp": 1780860160085
  },
  {
    "data": {
      "service": "telegram",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780860160085
  },
  {
    "data": {
      "url": "https://api.telegram.org/bot8601839237:AAEoFA4ys16Txlcu68Orq7B6q_QPBOVBDvs/getUpdates?limit=5",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780860160085
  },
  {
    "data": {
      "status": 200
    },
    "event": "telegram.read",
    "nodeId": "integration",
    "timestamp": 1780860163231
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "telegram",
      "latencyMs": 3147,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780860163232
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "ecbc13fe-305d-4cdd-b35c-3e119e8e8b5d",
    "timestamp": 1780860163232
  },
  {
    "data": {
      "nodeType": "merge"
    },
    "event": "node_start",
    "nodeId": "6111c771-d8af-4586-8829-213d86dc4f47",
    "timestamp": 1780860163237
  },
  {
    "data": {
      "inputCount": 2
    },
    "event": "merged 2 inputs",
    "nodeId": "merge",
    "timestamp": 1780860163237
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "merge"
    },
    "event": "node_end",
    "nodeId": "6111c771-d8af-4586-8829-213d86dc4f47",
    "timestamp": 1780860163237
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "7947173d-39fa-4d4b-9b1e-60de809a9950",
    "timestamp": 1780860163243
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780860163243
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780860163243
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0002996,
      "provider": "openai",
      "latencyMs": 1099,
      "promptTokens": 632,
      "completionTokens": 44
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780860164343
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "7947173d-39fa-4d4b-9b1e-60de809a9950",
    "timestamp": 1780860164343
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "73156ecc-af5f-4e3d-82c6-4668db52b511",
    "timestamp": 1780860164350
  },
  {
    "data": {
      "service": "telegram",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780860164350
  },
  {
    "data": {
      "url": "https://api.telegram.org/bot8601839237:AAEoFA4ys16Txlcu68Orq7B6q_QPBOVBDvs/getUpdates?limit=5",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780860164350
  },
  {
    "data": {
      "status": 200
    },
    "event": "telegram.read",
    "nodeId": "integration",
    "timestamp": 1780860164493
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "telegram",
      "latencyMs": 143,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780860164493
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "73156ecc-af5f-4e3d-82c6-4668db52b511",
    "timestamp": 1780860164493
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "1b53aef2-ca99-409b-bd10-3fc1fd87f540",
    "timestamp": 1780860164500
  },
  {
    "data": {
      "service": "telegram",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780860164500
  },
  {
    "data": {
      "url": "https://api.telegram.org/bot8601839237:AAEoFA4ys16Txlcu68Orq7B6q_QPBOVBDvs/getUpdates?limit=5",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780860164500
  },
  {
    "data": {
      "status": 200
    },
    "event": "telegram.read",
    "nodeId": "integration",
    "timestamp": 1780860167643
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "telegram",
      "latencyMs": 3143,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780860167643
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "1b53aef2-ca99-409b-bd10-3fc1fd87f540",
    "timestamp": 1780860167643
  }
]