This workflow corresponds to n8n.io template #9938 — we link there as the canonical source.
This workflow follows the Agent → Gmail 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 →
{
"meta": {
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "973fd2bf-7a9f-4bbe-bd4d-dabda2f671e6",
"name": "Every Day 6 AM",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-80,
128
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "0b2cdacc-fad0-4b4b-95d1-66db9e82c3bb",
"name": "Get X Accounts",
"type": "n8n-nodes-base.googleSheets",
"position": [
224,
128
],
"parameters": {},
"typeVersion": 4.7
},
{
"id": "fc3b853a-3752-4840-9f5c-d641ae5cdc19",
"name": "Select Fields",
"type": "n8n-nodes-base.set",
"position": [
544,
128
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "86292944-864a-41ba-9e7d-4b79a15a5969",
"name": "Get many messages",
"type": "n8n-nodes-base.gmail",
"position": [
224,
576
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2.1
},
{
"id": "549aaaa9-7398-4b90-8abd-967a6d46fccc",
"name": "Get Newsletters",
"type": "n8n-nodes-base.googleSheets",
"position": [
-96,
576
],
"parameters": {},
"executeOnce": false,
"typeVersion": 4.7
},
{
"id": "ede82169-407d-4838-920b-4e570bb277ac",
"name": "Filter String",
"type": "n8n-nodes-base.set",
"position": [
64,
576
],
"parameters": {},
"executeOnce": true,
"typeVersion": 3.4
},
{
"id": "8fe6cde4-0065-46a4-a87c-6a660173ea69",
"name": "Get a message",
"type": "n8n-nodes-base.gmail",
"position": [
416,
576
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "ccc80bbe-549e-4a6c-a319-274ecdfab8fa",
"name": "Select Fields1",
"type": "n8n-nodes-base.set",
"position": [
576,
576
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "915b42b0-4fd8-4289-91c1-32c2affa2807",
"name": "Aggregate Tweets",
"type": "n8n-nodes-base.aggregate",
"position": [
864,
128
],
"parameters": {},
"typeVersion": 1
},
{
"id": "1ba8d717-bf5b-41b6-907d-12574e846cdf",
"name": "Aggregate Emails",
"type": "n8n-nodes-base.aggregate",
"position": [
736,
576
],
"parameters": {},
"typeVersion": 1
},
{
"id": "249d93bc-7560-409a-9186-e4da5ebd1187",
"name": "Query",
"type": "n8n-nodes-base.airtopTool",
"position": [
576,
1200
],
"parameters": {},
"typeVersion": 1
},
{
"id": "1a423a71-85e0-461b-9379-463173121956",
"name": "Load URL",
"type": "n8n-nodes-base.airtopTool",
"position": [
704,
1200
],
"parameters": {},
"typeVersion": 1
},
{
"id": "872eca5a-87f1-4e5f-9efe-a17532e1fa35",
"name": "Browser Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
400,
1008
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 1.8,
"waitBetweenTries": 5000
},
{
"id": "c902ede5-d41a-43fe-b56b-66633e33da8e",
"name": "Get Websites",
"type": "n8n-nodes-base.googleSheets",
"position": [
224,
1008
],
"parameters": {},
"typeVersion": 4.7
},
{
"id": "66e33868-6b35-4537-84f0-f425ffedaa11",
"name": "Simple Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
448,
1200
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "ce467f67-8ec4-4b77-987e-fc8d8dfcd802",
"name": "OpenAI",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
320,
1200
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "d426c158-cbfe-49f1-bef1-0577f6c68578",
"name": "Session",
"type": "n8n-nodes-base.airtop",
"position": [
-96,
1008
],
"parameters": {},
"executeOnce": true,
"typeVersion": 1
},
{
"id": "b882189c-e295-404d-a6c1-559c25deb636",
"name": "Window",
"type": "n8n-nodes-base.airtop",
"position": [
64,
1008
],
"parameters": {},
"executeOnce": true,
"typeVersion": 1
},
{
"id": "48fa0b38-5c06-4745-83e3-66f801084275",
"name": "Terminate a session",
"type": "n8n-nodes-base.airtop",
"position": [
864,
1008
],
"parameters": {},
"typeVersion": 1
},
{
"id": "de5580d9-21a5-4cb3-a2dc-9b656a593d28",
"name": "Aggregate Websites",
"type": "n8n-nodes-base.aggregate",
"position": [
704,
1008
],
"parameters": {},
"typeVersion": 1
},
{
"id": "eb3bed4f-2ae8-40a6-962f-4f65ef8cd271",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-96,
1600
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "e5205200-a381-4037-aca5-f0d038dd4f7d",
"name": "Perplexity AI",
"type": "n8n-nodes-base.perplexityTool",
"position": [
48,
1792
],
"parameters": {},
"typeVersion": 1
},
{
"id": "7af5d289-8f13-407d-8272-0c2b7575f909",
"name": "GPT",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-80,
1792
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "62248662-965b-49be-a169-ed64445c4ea1",
"name": "JSON",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
176,
1792
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "32281e42-c212-44d7-aa8d-7cd9e21ac29c",
"name": "Filter",
"type": "n8n-nodes-base.filter",
"position": [
704,
128
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "c88f0bd1-ef88-4f09-9fd6-bf96ae2ffe26",
"name": "Split Out",
"type": "n8n-nodes-base.splitOut",
"position": [
272,
1600
],
"parameters": {},
"typeVersion": 1
},
{
"id": "06204939-354e-4abe-9e4d-52dce970bb6d",
"name": "JSON1",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
832,
1200
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "d3daab64-fc51-4a08-9238-4bded4728059",
"name": "Get Tweets",
"type": "n8n-nodes-base.httpRequest",
"position": [
384,
128
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "b4f5d671-2537-4cb8-bafe-3cfd5eb45ce3",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-128,
32
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "968eb9d3-2812-46d5-824d-9fea3a3a6ddb",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-144,
480
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b02f5224-d3ee-4d1f-a6a4-ac9533ed3ee5",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-144,
928
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0f679ca3-98c3-4b8e-a68d-008ace7ae975",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-128,
1520
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b37cb4d9-c6de-4e9a-94b3-26ad3cfa03f0",
"name": "Save",
"type": "n8n-nodes-base.googleSheets",
"position": [
448,
1600
],
"parameters": {},
"typeVersion": 4.7
},
{
"id": "6ad4ef16-37ce-435d-a02e-a60ceab7d832",
"name": "Your Instructions",
"type": "n8n-nodes-base.set",
"position": [
80,
128
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "c709dcec-67c9-423e-95c2-3bf622e1c873",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1072,
32
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"connections": {
"GPT": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"JSON": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"JSON1": {
"ai_outputParser": [
[
{
"node": "Browser Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Query": {
"ai_tool": [
[
{
"node": "Browser Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Filter": {
"main": [
[
{
"node": "Aggregate Tweets",
"type": "main",
"index": 0
}
]
]
},
"OpenAI": {
"ai_languageModel": [
[
{
"node": "Browser Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Window": {
"main": [
[
{
"node": "Get Websites",
"type": "main",
"index": 0
}
]
]
},
"Session": {
"main": [
[
{
"node": "Window",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"Load URL": {
"ai_tool": [
[
{
"node": "Browser Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "Save",
"type": "main",
"index": 0
}
]
]
},
"Get Tweets": {
"main": [
[
{
"node": "Select Fields",
"type": "main",
"index": 0
}
]
]
},
"Get Websites": {
"main": [
[
{
"node": "Browser Agent",
"type": "main",
"index": 0
}
]
]
},
"Browser Agent": {
"main": [
[
{
"node": "Aggregate Websites",
"type": "main",
"index": 0
}
]
]
},
"Filter String": {
"main": [
[
{
"node": "Get many messages",
"type": "main",
"index": 0
}
]
]
},
"Get a message": {
"main": [
[
{
"node": "Select Fields1",
"type": "main",
"index": 0
}
]
]
},
"Perplexity AI": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Select Fields": {
"main": [
[
{
"node": "Filter",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "Browser Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Every Day 6 AM": {
"main": [
[
{
"node": "Your Instructions",
"type": "main",
"index": 0
}
]
]
},
"Get X Accounts": {
"main": [
[
{
"node": "Get Tweets",
"type": "main",
"index": 0
}
]
]
},
"Select Fields1": {
"main": [
[
{
"node": "Aggregate Emails",
"type": "main",
"index": 0
}
]
]
},
"Get Newsletters": {
"main": [
[
{
"node": "Filter String",
"type": "main",
"index": 0
}
]
]
},
"Aggregate Emails": {
"main": [
[
{
"node": "Session",
"type": "main",
"index": 0
}
]
]
},
"Aggregate Tweets": {
"main": [
[
{
"node": "Get Newsletters",
"type": "main",
"index": 0
}
]
]
},
"Get many messages": {
"main": [
[
{
"node": "Get a message",
"type": "main",
"index": 0
}
]
]
},
"Your Instructions": {
"main": [
[
{
"node": "Get X Accounts",
"type": "main",
"index": 0
}
]
]
},
"Aggregate Websites": {
"main": [
[
{
"node": "Terminate a session",
"type": "main",
"index": 0
}
]
]
},
"Terminate a session": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This n8n workflow automates the daily monitoring of trends across X (Twitter), newsletters, and websites. It runs on a schedule, fetches data from configured sources in Google Sheets, processes it using AI agents for extraction and analysis (including browser automation and web…
Source: https://n8n.io/workflows/9938/ — 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 n8n automation workflow automates the creation, scripting, production, and posting of YouTube videos. It leverages AI (OpenAI), image generation (PIAPI), video rendering (Shotstack), and platform
Created by: Peyton Leveillee Last updated: October 2025
SEO Blog Article Generation Workflow. Uses outputParserStructured, httpRequest, agent, lmChatOpenAi. Scheduled trigger; 56 nodes.
This workflow was born out of a very real problem.
Most blogs publish words. This system publishes experiences.