I’m working on a Telegram bot workflow in n8n where user messages trigger an OpenAI Assistant (OpenAI4 node) before responding via Telegram. However, the chatId (user ID) does not pass through OpenAI4 correctly, causing the Telegram node to fail when trying to send a response.
I have verified that the chatId reaches OpenAI4, but instead of returning the expected text response, OpenAI4 outputs a threadId. This causes the Telegram node to receive the wrong data structure, leading to a “Bad Request: chat not found” error.