AI automation(Telegram,Gmail, Open AI) Telegram Bot Stops Responding When Asking for Email Summary (Used to Work Before)

Hi everyone,

I’m currently running an n8n workflow that connects Telegram, Gmail, OpenAI, and optionally sends replies back through Telegram. The idea is simple:

  • I message my Telegram bot something like:
    “Check my latest email and send me a summary”
  • n8n grabs the latest Gmail email
  • Sends it to the AI Agent (OpenAI) for summarization
  • Then replies back to me on Telegram with the summary

This used to work fine once before, but now it only responds to basic messages like “hi”, “hello”, “how are you”, or commands like “send an email to X”.

Whenever I ask it to check Gmail and summarize, I don’t get any response.

Here’s what I’ve checked:

  • Telegram chat is working
  • Gmail node is fetching emails correctly
  • OpenAI node works when tested in isolation
  • AI Agent node sometimes returns [undefined] or fails silently
  • Simple Memory is set up with the key: {{ $json["message"]["chat"]["id"] }}

Could this be a data-passing issue between nodes or something related to the memory context?

Any suggestions on how to debug this or rebuild it more reliably?

Thanks a lot in advance!




here’s the system