Each email in Gmail
Go through the messages matching the Find emails (Gmail) filters, one per turn: id, thread_id, from, to, subject, date, snippet, unread, labels, received, or the whole email.
Loop type in the Google Workspace toolkit · id ooa.google/gmail_messages · 14 inputs (1 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | Yes | Google OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Query | String | No | Gmail search text; all messages when empty. | |
| Label | String | No | Only messages with this label, e.g. INBOX or Invoices. | |
| Status | String | No | any | Only unread or only read messages. |
| From contains | String | No | Sender contains this text; separate several with ; to match any of them. | |
| Subject contains | String | No | Subject contains these words; separate several with ; to match any of them. | |
| Since | DateTime | No | Received on or after this time (UTC). | |
| Before | DateTime | No | Received before this time (UTC). | |
| Has attachments only | Boolean | No | false | Only messages with attachments. |
| Maximum results | Number | No | 100 | Stop after this many messages. |
| With body | Boolean | No | false | Give each email whole: text, HTML, recipients and attachment names (one more request per email); the email stays unread. Without it each email has id, from, subject, received, unread and has_attachments. |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. | |
| Oldest first | Boolean | No | false | The oldest messages first (G5). |
| Local time | Boolean | No | false | received in the runner's time zone instead of UTC (G5). |