About this integration
Google's email service — send, read, organize, and search messages, threads, and drafts. Use it from the workflow canvas with no custom glue script required.
This integration exposes 1 trigger, 6 search modules and 14 actions as workflow nodes. Authentication uses oauth authentication.
How to connect
The credential form asks for Client ID and Client Secret.
OAuth asks you to approve https://www.googleapis.com/auth/gmail.modify and https://www.googleapis.com/auth/gmail.compose before access is granted.
Sign in and approve access — your password is never shared with WEXTL®, and you can revoke access from the provider at any time.
You’ll be redirected to sign in and approve access — your password is never shared with WEXTL.
Connecting Gmail to WEXTL®
| Field | Type | Help |
|---|---|---|
Client ID | text | Optional. Your own OAuth Client ID from Google Cloud Console (enable the API, then Credentials → OAuth client). Leave empty to use the platform app. |
Client Secret | password | Optional. Client Secret for the same OAuth client. Leave empty to use the platform app. |
- https://www.googleapis.com/auth/gmail.modify
- https://www.googleapis.com/auth/gmail.compose
Use it in workflow automation
Start with Watch Email Messages, then add Batch Delete Email Message.
The canvas below runs Watch Email Messages into Batch Delete Email Message — watch the video, then drop a node onto the canvas.
Select the Watch Email Messages trigger and the workflow fires automatically when the event occurs — no polling required.
Then add Create a Draft Email as the next node. Branch, filter, or hand off to other integrations from there.
The integration includes 15 ready-made modules for communication work — each run logs its inputs and outputs for debugging.
Gmail workflow on the canvas: Watch Email Messages then Create a Draft Email
Triggers, searches and actions
Use the tables below to inspect Gmail's 1 trigger, 6 search modules, and 14 actions.
Triggers
1 trigger fire automatically when specified events occur — no polling or cron job needed.
- Watch Email Messages
Searches
Fetch data on demand using 6 search modules that query the app during a run.
- List Draft Emails
- List Messages
- List Threads
- Retrieve a Draft Email
- Retrieve an Email Message
Actions
14 action modules cover the full range of create, update, and delete operations.
- Batch Delete Email Message
- Create a Draft Email
- Delete a Draft Email
- Delete an Email Message
- Delete a Thread
Explore the fields available for each Gmail trigger, search, and action.
Triggers
| Field | Type |
|---|---|
ID | text |
Thread ID | text |
Label ids | array |
Snippet | text |
History ID | text |
Internal date | date |
Payload | object |
Part ID | text |
Mime type | text |
Filename | text |
Headers | array |
Body | object |
Parts | array |
Size estimate | number |
Raw | text |
Classification label values | array |
Searches
| Field | Type |
|---|---|
Query | text |
Include Spam and Trash | boolean |
Limit | number |
| Field | Type |
|---|---|
ID | text |
Message | object |
ID | text |
Thread ID | text |
Label ids | array |
Snippet | text |
History ID | text |
Internal date | date |
Payload | object |
Size estimate | number |
Raw | text |
Classification label values | array |
| Field | Type |
|---|---|
Query | text |
Label IDs | choice |
Include Spam and Trash | boolean |
Limit | number |
| Field | Type |
|---|---|
ID | text |
Thread ID | text |
Label ids | array |
Snippet | text |
History ID | text |
Internal date | date |
Payload | object |
Part ID | text |
Mime type | text |
Filename | text |
Headers | array |
Body | object |
Parts | array |
Size estimate | number |
Raw | text |
Classification label values | array |
| Field | Type |
|---|---|
Query | text |
Label IDs | choice |
Include Spam and Trash | boolean |
Limit | number |
| Field | Type |
|---|---|
ID | text |
Snippet | text |
History ID | text |
Messages | array |
| Field | Type |
|---|---|
IDRequired | choice |
FormatRequired | choice |
| Field | Type |
|---|---|
ID | text |
Message | object |
ID | text |
Thread ID | text |
Label ids | array |
Snippet | text |
History ID | text |
Internal date | date |
Payload | object |
Size estimate | number |
Raw | text |
Classification label values | array |
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
ID | text |
Thread ID | text |
Label ids | array |
Snippet | text |
History ID | text |
Internal date | date |
Payload | object |
Part ID | text |
Mime type | text |
Filename | text |
Headers | array |
Body | object |
Parts | array |
Size estimate | number |
Raw | text |
Classification label values | array |
| Field | Type |
|---|---|
IDRequired | choice |
FormatRequired | choice |
| Field | Type |
|---|---|
ID | text |
Snippet | text |
History ID | text |
Messages | array |
Actions
| Field | Type |
|---|---|
Message IDsRequired | choice |
| Field | Type |
|---|---|
Email ContentRequired | text |
Recipient EmailRequired | |
Sender EmailRequired | |
Email SubjectRequired | text |
| Field | Type |
|---|---|
ID | text |
Message | object |
ID | text |
Thread ID | text |
Label ids | array |
Snippet | text |
History ID | text |
Internal date | date |
Payload | object |
Size estimate | number |
Raw | text |
Classification label values | array |
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
URLRequired | text |
MethodRequired | choice |
Headers | array |
Header | object |
Query String | array |
Parameter | object |
Body | text |
| Field | Type |
|---|---|
Body | text |
Headers | object |
Status code | number |
| Field | Type |
|---|---|
Email ContentRequired | text |
Recipient Email | |
Sender Email | |
Email Subject | text |
| Field | Type |
|---|---|
ID | text |
Thread ID | text |
Label ids | array |
Snippet | text |
History ID | text |
Internal date | date |
Payload | object |
Part ID | text |
Mime type | text |
Filename | text |
Headers | array |
Body | object |
Parts | array |
Size estimate | number |
Raw | text |
Classification label values | array |
| Field | Type |
|---|---|
ToRequired | |
FromRequired | |
SubjectRequired | text |
Email ContentRequired | text |
| Field | Type |
|---|---|
ID | text |
Thread ID | text |
Label ids | array |
Snippet | text |
History ID | text |
Internal date | date |
Payload | object |
Part ID | text |
Mime type | text |
Filename | text |
Headers | array |
Body | object |
Parts | array |
Size estimate | number |
Raw | text |
Classification label values | array |
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
ID | text |
Thread ID | text |
Label ids | array |
Snippet | text |
History ID | text |
Internal date | date |
Payload | object |
Part ID | text |
Mime type | text |
Filename | text |
Headers | array |
Body | object |
Parts | array |
Size estimate | number |
Raw | text |
Classification label values | array |
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
ID | text |
Snippet | text |
History ID | text |
Messages | array |
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
ID | text |
Thread ID | text |
Label ids | array |
Snippet | text |
History ID | text |
Internal date | date |
Payload | object |
Part ID | text |
Mime type | text |
Filename | text |
Headers | array |
Body | object |
Parts | array |
Size estimate | number |
Raw | text |
Classification label values | array |
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
ID | text |
Snippet | text |
History ID | text |
Messages | array |
| Field | Type |
|---|---|
IDRequired | choice |
Raw MessageRequired | text |
Recipient EmailRequired | |
Sender EmailRequired | |
Email SubjectRequired | text |
Email ContentRequired | text |
| Field | Type |
|---|---|
ID | text |
Message | object |
ID | text |
Thread ID | text |
Label ids | array |
Snippet | text |
History ID | text |
Internal date | date |
Payload | object |
Size estimate | number |
Raw | text |
Classification label values | array |
| Field | Type |
|---|---|
IDRequired | choice |
Add Label IDs | array |
Label ID | text |
Remove Label IDs | array |
Label ID | text |
| Field | Type |
|---|---|
ID | text |
Snippet | text |
History ID | text |
Messages | array |



