Hi everyone, I’m working on an Email Agent workflow that integrates with Gmail via n8n. At one point, everything was working as intended: Send Email — Worked perfectly Reply to Email— Was functioning reliably Summarise Emails — Also worked well Delete Email — Never worked correctly (wrong message deleted once, then failed) My goal is to restore full functionality for Send, Reply, and Summarise and only troubleshoot Delete later. Current Setup The workflow uses the following Gmail nodes: Get Many Messages (returns 3 emails, limit set, not simplified) Send Email (fields dynamically populated by AI) Reply to Email (uses ID extracted from Get Many Messages) Delete Email (same, but currently deprioritized) Tool routing and inputs are managed via a separate GPT-powered “main agent” that: Routes the user’s request to this Email Agent Dynamically generates fields like to, subject, body, and id using AI What Changed? Recently, summarizing and replying both started failing with: “Bad request - please check your parameters” or “OpenAI: Rate limit reached” The send function was still working… until even that failed during our latest testing. I suspect the issue is either: Tool names mismatching between system message and n8n node labels Message id not being passed correctly between GetManyMessages and the reply/delete nodes Or AI not generating required fields under some conditions What I’ve Tried: Confirmed correct settings: Return All = Off Limit = 3 Simplify = Off Sender filter = removed completely Ensured Send Email uses: js CopyEdit To: {{ $json.to }} Subject: {{ $json.subject || 'No Subject' }} Message: {{ $json.body || 'No message provided.' }} Ensured Reply and Delete use: js CopyEdit Message ID: {{ $json.id }} All inputs are generated via AI; no hardcoded expressions like $json.response[0].id What I Need Help With Why summarize and reply are failing even when Get Many Messages returns emails correctly How best to pass id from GetManyMessages → ReplyToEmail