99 lines
3.2 KiB
JSON
99 lines
3.2 KiB
JSON
{
|
|
"name": "Newsletter Compressor",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"rule": {"interval": [{"field": "cronExpression", "expression": "15 7 * * *"}]},
|
|
"timezone": "Australia/Perth"
|
|
},
|
|
"id": "cron",
|
|
"name": "Daily 07:15 AWST",
|
|
"type": "n8n-nodes-base.scheduleTrigger",
|
|
"typeVersion": 1.2,
|
|
"position": [220, 300]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"httpMethod": "POST",
|
|
"path": "newsletter-compressor-run",
|
|
"responseMode": "onReceived",
|
|
"options": {}
|
|
},
|
|
"id": "webhook",
|
|
"name": "Webhook Execute (POST)",
|
|
"type": "n8n-nodes-base.webhook",
|
|
"typeVersion": 2,
|
|
"position": [220, 460]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"name": "wakeText",
|
|
"type": "string",
|
|
"value": "Create a morning newsletter compressor briefing for Anthony. Collect latest unread/recent newsletter-style items (AI/news/tech), cluster into themes, and send a concise Telegram brief to telegram:1793951355 with: (1) Top 5 bullets, (2) Why it matters in one line each, (3) One recommended read. Keep it tight and useful. If nothing meaningful, send NO_REPLY."
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"id": "set",
|
|
"name": "Set Prompt",
|
|
"type": "n8n-nodes-base.set",
|
|
"typeVersion": 3.4,
|
|
"position": [470, 380]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "http://openclaw.kangaroo-eel.ts.net:18789/api/wake",
|
|
"authentication": "genericCredentialType",
|
|
"genericAuthType": "httpHeaderAuth",
|
|
"sendBody": true,
|
|
"contentType": "json",
|
|
"bodyParameters": {
|
|
"parameters": [
|
|
{"name": "text", "value": "={{$json.wakeText}}"},
|
|
{"name": "mode", "value": "now"}
|
|
]
|
|
},
|
|
"options": {"timeout": 15000}
|
|
},
|
|
"id": "wake",
|
|
"name": "Trigger OpenClaw Briefing",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.2,
|
|
"position": [730, 380],
|
|
"retryOnFail": true,
|
|
"maxTries": 3,
|
|
"waitBetweenTries": 2000
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "http://runtipi.kangaroo-eel.ts.net:8129/message?token=AGKnHafW3FGzBlt",
|
|
"sendBody": true,
|
|
"contentType": "json",
|
|
"bodyParameters": {
|
|
"parameters": [
|
|
{"name": "title", "value": "📰 Newsletter Compressor Triggered"},
|
|
{"name": "message", "value": "Morning newsletter compression job was triggered via n8n."},
|
|
{"name": "priority", "value": "3"}
|
|
]
|
|
}
|
|
},
|
|
"id": "gotify",
|
|
"name": "Gotify Status",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.2,
|
|
"position": [980, 380]
|
|
}
|
|
],
|
|
"connections": {
|
|
"Daily 07:15 AWST": {"main": [[{"node": "Set Prompt", "type": "main", "index": 0}]]},
|
|
"Webhook Execute (POST)": {"main": [[{"node": "Set Prompt", "type": "main", "index": 0}]]},
|
|
"Set Prompt": {"main": [[{"node": "Trigger OpenClaw Briefing", "type": "main", "index": 0}]]},
|
|
"Trigger OpenClaw Briefing": {"main": [[{"node": "Gotify Status", "type": "main", "index": 0}]]}
|
|
},
|
|
"settings": {"executionOrder": "v1"},
|
|
"active": false
|
|
}
|