N8n is ignoring to reply to cc receiptents

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

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.


:white_check_mark: Step-by-Step Solution in n8n

This process ensures the reply includes all original CC recipients from the incoming email.


:repeat_button: Workflow Overview


:wrench: Step 1: Gmail Trigger — Turn OFF “Simplify”

In your Gmail Trigger:

  • Event: Message Received
  • Simplify: OFF (:warning: Required for accessing full raw structure, including cc)

:camera_with_flash: See Screenshot:

After fetching a test event, you’ll see this:

"cc": {
  "value": [
    { "address": "[email protected]" },
    { "address": "[email protected]" }
  ]
}

:brain: 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.

:puzzle_piece: 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
  }
};

:camera_with_flash: See Screenshot:

This results in a JSON output like:

{
  "cc": "[email protected], [email protected]"
}

:outbox_tray: 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

:wrench: Then add:

  • Option → CC:
    Use {{ $json.cc }} to include the addresses we built in the Code node.

:camera_with_flash: See Screenshot:


:white_check_mark: Final Result

Your reply email will go to:

  • The original sender (automatically handled by Gmail node)
  • All original CC recipients, restored dynamically

:white_check_mark: 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

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