How to get all Today gmail with content and attachments

Describe the problem/error/question

Hi everyone,

I’m trying to build an n8n workflow to retrieve all my Gmail messages from today, including:

Full email content

All attachments

URLs found in the message

Sender and recipient email addresses

Below is what I’d like the workflow to do:

  1. Be manually triggered

  2. Grab all emails received today

  3. Collect all relevant information (content, attachments, URLs, sender/receiver)

I’ve built a test flow below, but unfortunately, the output is missing both the attachments and the email body content.

Would really appreciate any ideas or suggestions on how to fix this or improve the setup.

Thanks in advance!

What is the error message (if any)?

there are no attachment and content in the output

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

hey @andyw here is an example on how u can get all that:

in your workflow you have set


Simplify to true, which will cut body of email to few lines.
you have to disable it and in options

Thanks @moosa

I tested the node, and as you can see, it only extracts one email. However, I’m certain there are two or more emails received since September 11th.

Thanks

This will only get mails from inbox and important mails.
Try adding other categories or just delete label Names or ids filter to get from all categories.

If it helps mark my response an solution:)

2 Likes

Thanks @moosa it works now. Thanks

1 Like

please mark my reply as solution.
marking your own response as solution is misleading.

1 Like

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