Iām building out some automations for a clientās self-hosted n8n instance, and Iāve come across a super weird problem
.
For background, Iām an experienced workflow developer with ~50 production n8n workflows/agents under my belt, and I have a number of Telegram-based n8n AI agents that I use on my own self-hosted instances on a daily basis.
I have a very simple sample workflow that is working, where I get a message from Telegram, and reply with a Telegram Message..
This is working as expected:
However, as soon as I add an AI Agent node into the mix, it errors out:
Every time I execute this workflow, the workflow shows as failing instantly, before the trigger node even finishes firing, with a Error: Cannot read properties of undefined (reading 'executeā) error. See below:
Iām pretty perplexed about this one. Havenāt experienced something similar on any of the other n8n instances or Telegram bots Iāve worked on.
For debugging I used an AI agent node just with the āChat Triggerā, it works as expected.
And the Telegram nodes with an OpenAI Message a model node also works fine.
So itās something about how the AI Agent Node is interacting with the Telegram nodes.
The weirdest part is that the same error happens, even if the AI Node is disconnected from the Telegram nodes, and is also deactivated. Example, the workflow below falis in the same way.
Any help or insight would be greatly appreciated!!




