DOCS/workflow/04_scheduler/scheduled_daily_briefing.json
2026-03-18 23:49:20 +09:00

70 lines
2.1 KiB
JSON

{
"name": "robeing-scheduled-daily-briefing",
"nodes": [
{
"parameters": {
"rule": {
"cronExpression": "0 9 * * 1-5"
}
},
"id": "sched-brief-001",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [220, 220]
},
{
"parameters": {
"method": "POST",
"url": "=http://192.168.219.52:8505/api/v1/briefing",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\"mode\":\"daily_briefing\",\"company_id\":\"companyx\",\"topic\":\"business\",\"limit\":10}",
"options": {
"response": {
"response": {
"fullResponse": true
}
}
}
},
"id": "sched-brief-002",
"name": "Call skill-news",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [470, 220]
},
{
"parameters": {
"jsCode": "const body = $json.body || {};\nreturn { channel: 'C_DAILY_BRIEFING', text: body.message || body.summary || '브리핑 결과가 비어 있습니다.' };"
},
"id": "sched-brief-003",
"name": "Build Slack Message",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [700, 220]
},
{
"parameters": {
"resource": "message",
"operation": "post",
"channel": "={{ $json.channel }}",
"text": "={{ $json.text }}",
"otherOptions": {}
},
"id": "sched-brief-004",
"name": "Post to Slack",
"type": "n8n-nodes-base.slack",
"typeVersion": 2,
"position": [940, 220]
}
],
"connections": {
"Schedule Trigger": { "main": [[{ "node": "Call skill-news", "type": "main", "index": 0 }]] },
"Call skill-news": { "main": [[{ "node": "Build Slack Message", "type": "main", "index": 0 }]] },
"Build Slack Message": { "main": [[{ "node": "Post to Slack", "type": "main", "index": 0 }]] }
},
"pinData": {},
"meta": { "templateCredsSetupCompleted": true, "instanceId": "robeing-scheduler" }
}