Gmail Fetch Emails Tool
The Gmail Fetch Emails Tool retrieves emails from Gmail using advanced search queries.
It is useful for workflows that need to process, summarize, or analyze email content.
- Inputs
- Outputs
- Node Type
query
¹ (string): Gmail search query using Gmail search operators (e.g.,"in:inbox newer_than:7d"
).googleClientId
(string, user config): Google OAuth2 Client ID.
You must create an OAuth2 client in Google Cloud Console before using this tool.accessToken
(OAuth, user config): Gmail Authentication.
This field will be auto-filled if you use the CONNECT GMAIL button.maxResults
(integer, user config): Maximum number of emails to fetch (default: 5, min: 1, max: 50)
(1) Provided by the AI Data Processing Node as a result of processing it's input.
subject
: Subject of the emailfrom
: Sender's email addressto
: Recipient(s) email addressdate
: Date of the emailsnippet
: Short snippet of the email bodyid
: Unique email ID
Example Output:
[
{
"subject": "Meeting Reminder",
"from": "alice@example.com",
"to": "bob@example.com",
"date": "2024-06-10T09:00:00Z",
"snippet": "Don't forget our meeting at 10am.",
"id": "17c8a2b1e2a3b4c5"
}
]
ai-tool
toolSubtype
:gmail-fetch-emails