Hi n8n community,
I’m using the Gmail node in n8n to send a reply to incoming emails. While the reply is being sent correctly to the main recipient, I’ve noticed that CC recipients are being ignored —they are not included in the reply.
I’m passing the id of the original message as required. Is there a way to ensure that CC recipients from the original email are retained or manually added when sending the reply?
Would appreciate any guidance or workaround on this!
1 Like
rbreen
August 4, 2025, 2:18pm
2
Hi @Kanhaiya_Gupta
The field that you are passing to the cc is probalby broken. Can you copy your workflow and paste it in a preformatted text box in this chat? I can take a look and see what is broken.
By default, the Gmail node does not auto-preserve CCs when replying — you must extract and re-add them manually .
Step-by-Step Solution in n8n
This process ensures the reply includes all original CC recipients from the incoming email.
Workflow Overview
Step 1: Gmail Trigger — Turn OFF “Simplify”
In your Gmail Trigger :
Event: Message Received
Simplify: OFF ( Required for accessing full raw structure, including cc)
See Screenshot:
After fetching a test event, you’ll see this:
"cc": {
"value": [
{ "address": "[email protected] " },
{ "address": "[email protected] " }
]
}
Step 2: Extract CCs via Code Node
Add a Function node after the trigger to transform the cc.value array into a comma-separated string.
Code:
// Get the cc.value array
const ccList = $input.item.json.cc?.value || [];
// Map only the email addresses
const ccAddresses = ccList.map(entry => entry.address).filter(Boolean);
// Join into a comma-separated string
const ccString = ccAddresses.join(', ');
return {
json: {
cc: ccString
}
};
See Screenshot:
This results in a JSON output like:
{
"cc": "[email protected] , [email protected] "
}
Step 3: Gmail Node — “Reply to a message” with CC
Add the Gmail node with:
Resource: Message
Operation: Reply
Message ID: From Trigger (e.g. {{ $("Gmail Trigger").item.json.id }})
Message: Your reply content
Then add:
Option → CC :
Use {{ $json.cc }} to include the addresses we built in the Code node.
See Screenshot:
Final Result
Your reply email will go to:
The original sender (automatically handled by Gmail node)
All original CC recipients , restored dynamically
Summary
To retain or manually include CC recipients in n8n Gmail replies:
Turn off Simplify in Gmail Trigger
Extract cc.value and join into a string in a Code node
Set that string to CC field in Gmail reply node
system
Closed
November 2, 2025, 3:02pm
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.