Telegram AI Agent with Long-Term Memory and Docs

709ad5bd-897f-4da0-95f5-1d99ea372348

Latency
10395ms
Cost
$0.0032
Tokens
2,054
Status
partial
gemini-3-flash-preview

2 nodes ran as pass-throughs

n8n-nodes-base.googleDocsTool, n8n-nodes-base.googleDocsTool

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "20a2d959-5412-447b-a2c4-7736b6b758b3",
    "timestamp": 1780641581111
  },
  {
    "data": {
      "kind": "@n8n/n8n-nodes-langchain.chatTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1780641581111
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "20a2d959-5412-447b-a2c4-7736b6b758b3",
    "timestamp": 1780641581111
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "8b30f207-8204-4548-8f51-38c387d98ae9",
    "timestamp": 1780641581114
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780641581114
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780641581114
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0010278,
      "provider": "openai",
      "latencyMs": 3125,
      "promptTokens": 1,
      "completionTokens": 411
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780641584240
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "8b30f207-8204-4548-8f51-38c387d98ae9",
    "timestamp": 1780641584240
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "1064a2bf-bf74-44cd-ba8a-48f93700e887",
    "timestamp": 1780641584244
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1780641584244
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "1064a2bf-bf74-44cd-ba8a-48f93700e887",
    "timestamp": 1780641584244
  },
  {
    "data": {
      "nodeType": "unsupported"
    },
    "event": "node_start",
    "nodeId": "280fe3b1-faca-41b6-be0e-2ab906cd1662",
    "timestamp": 1780641584247
  },
  {
    "data": {
      "type": "n8n-nodes-base.googleDocsTool"
    },
    "event": "unsupported_node",
    "nodeId": "unsupported",
    "timestamp": 1780641584247
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "unsupported"
    },
    "event": "node_end",
    "nodeId": "280fe3b1-faca-41b6-be0e-2ab906cd1662",
    "timestamp": 1780641584247
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "7d5d1466-b4c9-4055-a634-ea7025dc370a",
    "timestamp": 1780641584250
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/deepseek-chat",
    "nodeId": "llm",
    "timestamp": 1780641584250
  },
  {
    "data": {
      "model": "deepseek-chat",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780641584250
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0017653,
      "provider": "openai",
      "latencyMs": 4671,
      "promptTokens": 1,
      "completionTokens": 706
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780641588923
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "7d5d1466-b4c9-4055-a634-ea7025dc370a",
    "timestamp": 1780641588923
  },
  {
    "data": {
      "nodeType": "unsupported"
    },
    "event": "node_start",
    "nodeId": "87c88d31-811d-4265-b44e-ab30a45ff88b",
    "timestamp": 1780641588927
  },
  {
    "data": {
      "type": "n8n-nodes-base.googleDocsTool"
    },
    "event": "unsupported_node",
    "nodeId": "unsupported",
    "timestamp": 1780641588927
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "unsupported"
    },
    "event": "node_end",
    "nodeId": "87c88d31-811d-4265-b44e-ab30a45ff88b",
    "timestamp": 1780641588927
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "37baa147-120a-40a8-b92f-df319fc4bc46",
    "timestamp": 1780641588929
  },
  {
    "data": {
      "service": "googleDocs",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780641588929
  },
  {
    "data": {
      "url": "https://docs.googleapis.com/v1/documents/1HvKeYG1b14O00p5pzv7MmHupSE2BO-HacKAGT2aq-Fg",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780641588929
  },
  {
    "data": {
      "status": 200
    },
    "event": "docs.read",
    "nodeId": "integration",
    "timestamp": 1780641589156
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "googleDocs",
      "latencyMs": 227,
      "operation": "get"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780641589156
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "37baa147-120a-40a8-b92f-df319fc4bc46",
    "timestamp": 1780641589156
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "0002a227-4240-4d3c-9a45-fc6e23fdc7f5",
    "timestamp": 1780641589159
  },
  {
    "data": {
      "service": "googleDocs",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780641589159
  },
  {
    "data": {
      "url": "https://docs.googleapis.com/v1/documents/1HvKeYG1b14O00p5pzv7MmHupSE2BO-HacKAGT2aq-Fg",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780641589159
  },
  {
    "data": {
      "status": 200
    },
    "event": "docs.read",
    "nodeId": "integration",
    "timestamp": 1780641589316
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "googleDocs",
      "latencyMs": 157,
      "operation": "get"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780641589316
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "0002a227-4240-4d3c-9a45-fc6e23fdc7f5",
    "timestamp": 1780641589316
  },
  {
    "data": {
      "nodeType": "merge"
    },
    "event": "node_start",
    "nodeId": "48d576fc-870a-441e-a7be-3056ef7e1d7a",
    "timestamp": 1780641589319
  },
  {
    "data": {
      "inputCount": 2
    },
    "event": "merged 2 inputs",
    "nodeId": "merge",
    "timestamp": 1780641589319
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "merge"
    },
    "event": "node_end",
    "nodeId": "48d576fc-870a-441e-a7be-3056ef7e1d7a",
    "timestamp": 1780641589319
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "88f7024c-87d4-48b4-b6bb-f68c88202f56",
    "timestamp": 1780641589322
  },
  {
    "data": {
      "count": 1
    },
    "event": "aggregate",
    "nodeId": "passthrough",
    "timestamp": 1780641589322
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "88f7024c-87d4-48b4-b6bb-f68c88202f56",
    "timestamp": 1780641589322
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "68303b67-2203-41e8-b370-220d884d2945",
    "timestamp": 1780641589326
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1780641589326
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1780641589326
  },
  {
    "data": {
      "model": "gemini-3-flash-preview",
      "costUsd": 0.0004367,
      "provider": "openai",
      "latencyMs": 1459,
      "promptTokens": 864,
      "completionTokens": 71
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1780641590786
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "68303b67-2203-41e8-b370-220d884d2945",
    "timestamp": 1780641590786
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "15bb5fd5-7dfe-4da9-830c-e1d905831640",
    "timestamp": 1780641590790
  },
  {
    "data": {
      "service": "telegram",
      "resolved": true
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1780641590790
  },
  {
    "data": {
      "url": "https://api.telegram.org/bot8601839237:AAEoFA4ys16Txlcu68Orq7B6q_QPBOVBDvs/getUpdates?limit=5",
      "method": "GET"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1780641590790
  },
  {
    "data": {
      "status": 200
    },
    "event": "telegram.read",
    "nodeId": "integration",
    "timestamp": 1780641591503
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "telegram",
      "latencyMs": 713,
      "operation": "read"
    },
    "event": "integration_call",
    "nodeId": "integration",
    "timestamp": 1780641591503
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "15bb5fd5-7dfe-4da9-830c-e1d905831640",
    "timestamp": 1780641591503
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "50271e59-6dd2-4f54-9b28-dd4a9f33ddc5",
    "timestamp": 1780641591506
  },
  {
    "data": {
      "inputKeys": [
        "text",
        "model",
        "usage"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1780641591506
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "50271e59-6dd2-4f54-9b28-dd4a9f33ddc5",
    "timestamp": 1780641591506
  }
]