gmailTrigger.json•3.66 kB
{
"nodeType": "n8n-nodes-base.gmailTrigger",
"displayName": "Gmail Trigger",
"description": "Fetches emails from Gmail and starts the workflow on specified polling intervals.",
"version": [
1,
1.1,
1.2,
1.3
],
"properties": [
{
"name": "authentication",
"displayName": "Authentication",
"type": "options",
"default": "oAuth2",
"options": [
{
"name": "OAuth2 (recommended)",
"value": "oAuth2"
},
{
"name": "Service Account",
"value": "serviceAccount"
}
]
},
{
"name": "event",
"displayName": "Event",
"type": "options",
"default": "messageReceived",
"options": [
{
"name": "Message Received",
"value": "messageReceived"
}
]
},
{
"name": "simple",
"displayName": "Simplify",
"type": "boolean",
"default": true,
"description": "Whether to return a simplified version of the response instead of the raw data"
},
{
"name": "filters",
"displayName": "Filters",
"type": "collection",
"default": {},
"description": "Whether to include messages from SPAM and TRASH in the results",
"placeholder": "Add Filter",
"options": [
{
"name": "includeSpamTrash",
"displayName": "Include Spam and Trash",
"type": "boolean",
"default": false,
"description": "Whether to include messages from SPAM and TRASH in the results"
},
{
"name": "includeDrafts",
"displayName": "Include Drafts",
"type": "boolean",
"default": false,
"description": "Whether to include email drafts in the results"
}
]
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Prefix for name of the binary property to which to write the attachment. An index starting with 0 will be added. So if name is 'attachment_' the first attachment is saved to 'attachment_0'.",
"placeholder": "Add option",
"options": [
{
"name": "dataPropertyAttachmentsPrefixName",
"displayName": "Attachment Prefix",
"type": "string",
"default": "attachment_",
"description": "Prefix for name of the binary property to which to write the attachment. An index starting with 0 will be added. So if name is 'attachment_' the first attachment is saved to 'attachment_0'."
},
{
"name": "downloadAttachments",
"displayName": "Download Attachments",
"type": "boolean",
"default": false,
"description": "Whether the email's attachments will be downloaded"
}
],
"displayOptions": {
"hide": {
"simple": [
true
]
}
}
}
],
"credentialsConfig": [
{
"name": "googleApi",
"required": true
},
{
"name": "authentication",
"required": false
},
{
"name": "event",
"required": false
},
{
"name": "simple",
"required": false
},
{
"name": "sender",
"required": false
},
{
"name": "options",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": [
"Main"
]
}
}