Telegram AI Agent with Long-Term Memory

04c46c00-8478-418d-8968-945c102f724b

Latency
52778ms
Cost
$0.0004
Tokens
736
Status
partial
gemini-2.5-flash

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "a3866585-bfee-4025-a8f4-f06fde16171a",
    "timestamp": 1783329030783
  },
  {
    "data": {
      "kind": "n8n-nodes-base.webhook"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1783329030783
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "a3866585-bfee-4025-a8f4-f06fde16171a",
    "timestamp": 1783329030783
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "94a01b4f-549d-4e49-88e0-143c90dd200e",
    "timestamp": 1783329030785
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783329030785
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "94a01b4f-549d-4e49-88e0-143c90dd200e",
    "timestamp": 1783329030785
  },
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "d1182e11-025e-4885-abb1-b76a9b617b84",
    "timestamp": 1783329030786
  },
  {
    "data": {
      "kind": "@n8n/n8n-nodes-langchain.chatTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1783329030786
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "d1182e11-025e-4885-abb1-b76a9b617b84",
    "timestamp": 1783329030786
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "5f342299-40fe-44cf-9b58-8a9d3bfac1df",
    "timestamp": 1783329030787
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "googleDocs",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "update",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783329031288
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "5f342299-40fe-44cf-9b58-8a9d3bfac1df",
    "timestamp": 1783329031288
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "af14e803-44a5-4b0e-a675-b1e860bf6d29",
    "timestamp": 1783329031290
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/deepseek-reasoner",
    "nodeId": "llm",
    "timestamp": 1783329031290
  },
  {
    "data": {
      "model": "deepseek-reasoner",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783329031290
  },
  {
    "data": {
      "error": "Google Gemini API error (500): {\n  \"error\": {\n    \"code\": 500,\n    \"message\": \"An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting\",\n    \"status\": \"INTERNAL\"\n  }\n}\n",
      "status": "error",
      "degraded": true,
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "af14e803-44a5-4b0e-a675-b1e860bf6d29",
    "timestamp": 1783329057305
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "e8be6a32-ba4c-4895-b34b-c5e7d0ded5e8",
    "timestamp": 1783329057306
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/deepseek-chat",
    "nodeId": "llm",
    "timestamp": 1783329057306
  },
  {
    "data": {
      "model": "deepseek-chat",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783329057306
  },
  {
    "data": {
      "error": "Google Gemini API error (500): {\n  \"error\": {\n    \"code\": 500,\n    \"message\": \"An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting\",\n    \"status\": \"INTERNAL\"\n  }\n}\n",
      "status": "error",
      "degraded": true,
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "e8be6a32-ba4c-4895-b34b-c5e7d0ded5e8",
    "timestamp": 1783329082574
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "2b6149d5-ffd6-46ef-9840-149508251a77",
    "timestamp": 1783329082575
  },
  {
    "data": {
      "inputKeys": [
        "body"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783329082575
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "2b6149d5-ffd6-46ef-9840-149508251a77",
    "timestamp": 1783329082575
  },
  {
    "data": {
      "nodeType": "if"
    },
    "event": "node_start",
    "nodeId": "23b50c07-39a8-4166-ab13-9683b3ee25e6",
    "timestamp": 1783329082577
  },
  {
    "event": "false branch",
    "nodeId": "if",
    "timestamp": 1783329082577
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "if"
    },
    "event": "node_end",
    "nodeId": "23b50c07-39a8-4166-ab13-9683b3ee25e6",
    "timestamp": 1783329082577
  },
  {
    "data": {
      "nodeType": "switch"
    },
    "event": "node_start",
    "nodeId": "164f5e91-1958-4dc5-b38c-db1cec0579d4",
    "timestamp": 1783329082578
  },
  {
    "event": "matched rule 1 -> text",
    "nodeId": "switch",
    "timestamp": 1783329082578
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "switch"
    },
    "event": "node_end",
    "nodeId": "164f5e91-1958-4dc5-b38c-db1cec0579d4",
    "timestamp": 1783329082579
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "e5ec71ec-9527-4ccd-87c3-3aa2f09192e8",
    "timestamp": 1783329082580
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "googleDocs",
      "latencyMs": 0,
      "operation": "get",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783329082580
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "e5ec71ec-9527-4ccd-87c3-3aa2f09192e8",
    "timestamp": 1783329082580
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "ecbc13fe-305d-4cdd-b35c-3e119e8e8b5d",
    "timestamp": 1783329082581
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "telegram",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783329082581
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "ecbc13fe-305d-4cdd-b35c-3e119e8e8b5d",
    "timestamp": 1783329082581
  },
  {
    "data": {
      "nodeType": "merge"
    },
    "event": "node_start",
    "nodeId": "6111c771-d8af-4586-8829-213d86dc4f47",
    "timestamp": 1783329082583
  },
  {
    "data": {
      "inputCount": 2
    },
    "event": "merged 2 inputs",
    "nodeId": "merge",
    "timestamp": 1783329082583
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "merge"
    },
    "event": "node_end",
    "nodeId": "6111c771-d8af-4586-8829-213d86dc4f47",
    "timestamp": 1783329082583
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "7947173d-39fa-4d4b-9b1e-60de809a9950",
    "timestamp": 1783329082585
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783329082585
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783329082585
  },
  {
    "data": {
      "model": "gemini-2.5-flash",
      "costUsd": 0.00041,
      "provider": "openai",
      "latencyMs": 722,
      "promptTokens": 650,
      "completionTokens": 86
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783329083307
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "7947173d-39fa-4d4b-9b1e-60de809a9950",
    "timestamp": 1783329083307
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "73156ecc-af5f-4e3d-82c6-4668db52b511",
    "timestamp": 1783329083309
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "telegram",
      "latencyMs": 0,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783329083309
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "73156ecc-af5f-4e3d-82c6-4668db52b511",
    "timestamp": 1783329083309
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "1b53aef2-ca99-409b-bd10-3fc1fd87f540",
    "timestamp": 1783329083310
  },
  {
    "data": {
      "service": "telegram",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783329083310
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "telegram",
      "latencyMs": 250,
      "operation": "read",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783329083561
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "1b53aef2-ca99-409b-bd10-3fc1fd87f540",
    "timestamp": 1783329083561
  }
]