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": "Weekly Digest Generator",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "0 9 * * 1"
}
]
}
},
"name": "Weekly Schedule",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT id, title, url, source, published_at, category, summary FROM articles WHERE published_at >= NOW() - INTERVAL '7 days' ORDER BY category, published_at DESC"
},
"name": "Fetch Articles",
"type": "n8n-nodes-base.postgres",
"typeVersion": 1,
"position": [
500,
300
]
},
{
"parameters": {
"jsCode": "const articles = $input.all();\nconst grouped = {};\nfor (const item of articles) {\n const cat = item.json.category || 'general';\n if (!grouped[cat]) grouped[cat] = [];\n grouped[cat].push(item.json);\n}\nlet md = '# AI News Weekly Digest\\n\\n';\nfor (const [cat, items] of Object.entries(grouped)) {\n md += `### ${cat.toUpperCase()}\\n\\n`;\n for (const a of items) {\n md += `- **[${a.title}](${a.url})**\\n ${a.summary?.slice(0,200) || ''}\\n *${a.source}*\\n\\n`;\n }\n}\nreturn [{ json: { markdown: md } }];"
},
"name": "Generate Markdown",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
750,
300
]
}
],
"connections": {
"Weekly Schedule": {
"main": [
[
{
"node": "Fetch Articles",
"type": "main",
"index": 0
}
]
]
},
"Fetch Articles": {
"main": [
[
{
"node": "Generate Markdown",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Weekly Digest Generator. Uses postgres. Scheduled trigger; 3 nodes.
Source: https://github.com/statnyk/ai-digest-rag/blob/f331ffcc6cc959966718c37e9241e5faec038e62/n8n-workflows/weekly-digest.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.
W8 - OPS (Feedback Cron + Errors + Alerts). Uses scheduleTrigger, postgres, errorTrigger, splitInBatches. Scheduled trigger; 31 nodes.
Automated Gmail Email Processing System
This n8n workflow automatically fetches monthly financial statements, normalizes the data, performs KPI calculations and trend analysis, detects anomalies, generates AI-powered executive insights and
Use cases are many: Automate your personal trading strategy, monitor a portfolio for significant trend changes, or provide automated analysis highlights for a trading community or client group.
LRAC-031 · Reporte semanal ejecutivo Gemini Pro. Uses postgres, httpRequest, googleDrive, gmail. Scheduled trigger; 8 nodes.