This workflow follows the Executecommand → 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": "Daily Documentation Update (Nightly)",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "0 2 * * *"
}
]
}
},
"name": "Every Day at 2 AM",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.1,
"position": [
250,
300
],
"id": "node-1"
},
{
"parameters": {
"command": "cd /home/justin/Code/ai-rag-stack && make update-docs"
},
"name": "Update Documentation",
"type": "n8n-nodes-base.executeCommand",
"typeVersion": 1,
"position": [
450,
300
],
"id": "node-2"
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json.exitCode}}",
"operation": "equals",
"value2": "0"
}
]
}
},
"name": "Check if Updates Found",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
650,
300
],
"id": "node-3"
},
{
"parameters": {
"functionCode": "// Only send notification if updates were found (nightly mode = quiet unless needed)\nconst output = $input.item.json.stdout;\nconst updatedMatch = output.match(/Repositories updated: (\\d+)/);\nconst updatedCount = parseInt(updatedMatch ? updatedMatch[1] : '0');\n\nif (updatedCount > 0) {\n return {\n json: {\n message: `\ud83c\udf19 Nightly Documentation Update\\n\\n\u2713 ${updatedCount} repositories updated and re-ingested.\\n\\nTimestamp: ${new Date().toLocaleString()}`,\n shouldNotify: true\n }\n };\n}\n\nreturn { json: { shouldNotify: false } };"
},
"name": "Format Notification",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
850,
200
],
"id": "node-4"
},
{
"parameters": {
"authentication": "headerAuth",
"url": "https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK",
"options": {},
"bodyParametersJson": "={\n \"text\": \"{{$json.message}}\",\n \"username\": \"AI RAG Documentation Bot\",\n \"icon_emoji\": \":crescent_moon:\"\n}"
},
"name": "Send Slack Notification (Only if Updated)",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
1050,
200
],
"id": "node-5"
}
],
"connections": {
"Every Day at 2 AM": {
"main": [
[
{
"node": "Update Documentation",
"type": "main",
"index": 0
}
]
]
},
"Update Documentation": {
"main": [
[
{
"node": "Check if Updates Found",
"type": "main",
"index": 0
}
]
]
},
"Check if Updates Found": {
"main": [
[
{
"node": "Format Notification",
"type": "main",
"index": 0
}
]
]
},
"Format Notification": {
"main": [
[
{
"node": "Send Slack Notification (Only if Updated)",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [
{
"name": "automation",
"id": "1"
},
{
"name": "nightly",
"id": "3"
}
],
"triggerCount": 0,
"updatedAt": "2025-10-17T00:00:00.000Z",
"versionId": "1"
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Daily Documentation Update (Nightly). Uses executeCommand, httpRequest. Scheduled trigger; 5 nodes.
Source: https://github.com/jconover/nexus-cortex/blob/6b8f6f05d5ebdc85e2d686c7a9d681b49810acec/n8n-workflows/daily-doc-update.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.
Track Changes Of Product Prices. Uses htmlExtract, functionItem, httpRequest, writeBinaryFile. Scheduled trigger; 25 nodes.
This workflow automatically tracks changes on specific websites, typically in e-commerce where you want to get information about price changes. Basic knowledge of HTML and JavaScript Execute Command n
OpenAQ-AirNow-GIBS-and-Fetcher. Uses httpRequest, s3, executeCommand. Scheduled trigger; 13 nodes.
Chinese Drama Auto Downloader Extended. Uses httpRequest, executeCommand. Scheduled trigger; 12 nodes.
Testflow1. Uses httpRequest, readBinaryFiles, executeCommand, writeBinaryFile. Scheduled trigger; 11 nodes.