Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I Solved the Same Gmail Problem Two Ways Without Noticing

说明与用途

在 n8n 工作流中,Gmail 节点用其发送确认替换原始提交数据,导致后续步骤失去字段。通过在邮件后重建数据并将 Sheets 日志记录移到分类后立即执行,日志不再依赖邮件成功。

问题

The Gmail node in the n8n workflow replaced the original submission data with its own send confirmation, causing downstream steps to lose necessary fields such as Name, Email, and description.

结果

The workflow now logs every submission regardless of email success, eliminates duplicate logging, and corrects email routing errors.

工作流

  • 1. Classify submission into one of five categories via Switch node.
  • 2. For each category, send a category‑specific email using Gmail node.
  • 3. Rebuild the original submission object with a Set node after the email step (except in ambiguous/system_error branch where a rebuild node precedes the email).
  • 4. Log the submission to Google Sheets using a single shared Sheets node at the end of all branches.
  • 5. Move the Sheets logging to two points right after classification: one for successful classification and one for failure handling, running in parallel with the Switch.
  • 6. Verify email destinations by checking real inboxes and correct any swapped addresses.
  • 7. Test classification with both vague and explicit descriptions to confirm classifier behavior.

证据

When the Gmail node sends an email, the item it passes on is Gmail's own send confirmation, not the submission.

来源

I moved the Sheets connection to the two points right after classification: one for a successful classification and one for the failure handler.

来源

After the rewiring, I retested every branch individually and checked real inboxes, not just node output.

来源

  • 记录日期: 2026-11-01T17:13:56.545Z