Email agent duplicates messages

Describe the problem/error/question

I have a workflow with a agent the creates draft emails. Works fine when 1 item is pulled via the gmail trigger node.

The problem is when 2 or more items is pulled from gmail. Then the first email body is created for all emails.

It is super weird because when I look in the create draft node the input email body is different for run 1 and 2, but still email body from run 1 is used for run 2 also (see attached images).

You can also see in the images that the output from the create draft node looks different in run 1 and 2, even doe the input is “subject” and “emailbody” in both?

Workflow

Information on your n8n setup

1.74.1
Database (default: SQLite)
n8n EXECUTIONS_PROCESS setting default: own
Running n8n via Docker
Operating system: windows 10


It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

1.74.1
Database (default: SQLite)
n8n EXECUTIONS_PROCESS setting default: own
Running n8n via Docker
Operating system: windows 10

I have the same issue. Adding the draft email creating as a node instead of the tool solved it for me. but i think this bug should be fixed asap because it’s not clean to do it like this and your error margin becomes bigger.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.