This workflow follows the Gmail → HTTP Request recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "PPS \u2014 02 Gmail Sync",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "0 7,13,19 * * 1-5"
}
]
}
},
"id": "cron",
"name": "Cron 7/13/19 L-V",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
240,
300
]
},
{
"parameters": {
"operation": "getAll",
"returnAll": true,
"filters": {
"labelIds": [
"INBOX"
],
"q": "newer_than:14d -category:promotions -category:social -category:forums -from:noreply -from:no-reply -from:notifications -from:newsletter -from:updates -from:hello -from:team -from:security -from:billing -from:@openrouter.ai -from:@n8n.io -from:@supabase.io -from:@supabase.com -from:@baserow.io -from:@github.com -from:@google.com -from:@accounts.google.com -from:@docs.google.com -from:@accounts.youtube.com"
},
"options": {}
},
"id": "gmail-list",
"name": "Gmail: list recent",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
520,
300
],
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"jsCode": "return [{ json: { messages: $input.all().map(item => item.json) } }];"
},
"id": "code-payload",
"name": "Preparar payload Hermes",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
800,
300
]
},
{
"parameters": {
"method": "POST",
"url": "https://pps-hermes.n8n-blas.com.ar/tasks/sync_gmail_messages",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify($json) }}",
"options": {}
},
"id": "hermes-sync",
"name": "Hermes: sync gmail_hilos",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1080,
300
],
"credentials": {
"httpHeaderAuth": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"method": "POST",
"url": "https://pps-hermes.n8n-blas.com.ar/tasks/draft_pending_emails",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify({ limit: 10, only_missing: true }) }}",
"options": {}
},
"id": "hermes-drafts",
"name": "Hermes: preparar borradores",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1340,
300
],
"credentials": {
"httpHeaderAuth": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Cron 7/13/19 L-V": {
"main": [
[
{
"node": "Gmail: list recent",
"type": "main",
"index": 0
}
]
]
},
"Gmail: list recent": {
"main": [
[
{
"node": "Preparar payload Hermes",
"type": "main",
"index": 0
}
]
]
},
"Preparar payload Hermes": {
"main": [
[
{
"node": "Hermes: sync gmail_hilos",
"type": "main",
"index": 0
}
]
]
},
"Hermes: sync gmail_hilos": {
"main": [
[
{
"node": "Hermes: preparar borradores",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1",
"timezone": "America/Argentina/Buenos_Aires"
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
gmailOAuth2httpHeaderAuth
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
PPS — 02 Gmail Sync. Uses gmail, httpRequest. Scheduled trigger; 5 nodes.
Source: https://github.com/PPS-Psico/pps-psico.github.io/blob/4792ebc28b0756bd13b82c308bf5b021b4f27f62/n8n-workflows/02-gmail-sync.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow is an automated invoice payment tracking and reminder system for the Polish accounting service iFirma.pl. It monitors unpaid and overdue invoices, then automatically sends escalating rem
Automatically extract structured information from emails using AI-powered document analysis. This workflow processes emails from specified domains, classifies them by type, and extracts structured dat
What This Flow Does
This workflow automates a 3-step cold email sequence from Gmail using leads in Google Sheets, generates personalized copy with Anthropic Claude, enforces a gradual daily sending cap, schedules follow-
This n8n template allows you to automatically monitor your company's budget by comparing live Bexio accounting data against targets defined in Google Sheets, sending automated weekly email reports. It