Route Telegram conversations between Hermes and your main workflows
Ready for 3.0What this workflow does
This workflow has 42 nodes and runs on a schedule (every 10 seconds) (plus 4 other triggers). It uses only n8n's built-in nodes. It also calls host.docker.internal:8642 and api.telegram.org over HTTP.
How it runs
Trigger: On a schedule (every 10 seconds) (plus 4 other triggers).
- Get offset (Data table): get
- Store task (Data table): uses Data table
- Get task for prompt (Data table): get
- Get task for submit (Data table): get
- Get task for hermes message (Data table): get
- Fetch Telegram updates (HTTP Request): calls an HTTP API
- Clear old tasks (Data table): delete rows
- Build context (Code): runs custom JavaScript code
- Build submission (Code): runs custom JavaScript code
- Append hermes message (Code): runs custom JavaScript code
…plus 27 more steps. See the full node list below.
HTTP calls to: host.docker.internal:8642, api.telegram.org
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Data table
n8n-nodes-base.dataTable - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Switch
n8n-nodes-base.switch - Respond to Webhook
n8n-nodes-base.respondToWebhook - If
n8n-nodes-base.if
From the author
Quick overview Facilitates determinism and offloads memory management for small, locally hosted agents. Acts as a generic proxy between a main n8n workflow, Hermes, and Telegram. Deterministically stores chat history, prompts, and JSON return schema. To be…