fix: scheduled_daily_briefing scheduleTrigger+code만 유지 (options/stickyNote/httpRequest/slack 제거, n8n import 호환)
Made-with: Cursor
This commit is contained in:
parent
1588f7b34c
commit
3930a70f3b
@ -11,103 +11,77 @@
|
||||
"name": "09:10 Trigger",
|
||||
"type": "n8n-nodes-base.scheduleTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 220]
|
||||
"position": [220, 240]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "return [{\n json: {\n scheduler_source: 'scheduled_jobs.daily_headlines',\n cron_expression: '10 9 * * mon-fri',\n channel_id: 'C09C98KK2TT',\n runtime: 'rb8001 APScheduler + DB loader'\n }\n}];"
|
||||
"jsCode": "return [{ json: { step: 'scheduled_jobs.daily_headlines', cron: '10 9 * * mon-fri', channel_id: 'C09C98KK2TT' } }];"
|
||||
},
|
||||
"id": "sched-headlines-002",
|
||||
"name": "DB Job Config",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [470, 220]
|
||||
"position": [470, 240]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "return [{\n json: {\n step: 'app.scheduler.jobs.daily_headlines._run_headlines_with_logging(channel_id)',\n channel_id: $json.channel_id,\n description: 'DB scheduler가 rb8001 내부 래퍼 함수를 직접 호출'\n }\n}];"
|
||||
"jsCode": "return [{ json: { step: 'app.scheduler.jobs.daily_headlines._run_headlines_with_logging(channel_id)', channel_id: $json.channel_id } }];"
|
||||
},
|
||||
"id": "sched-headlines-003",
|
||||
"name": "daily_headlines Wrapper",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [720, 220]
|
||||
"position": [720, 240]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "return [{\n json: {\n workflow: 'run_headlines_workflow(channel_id)',\n state_store: '/code/state/headlines_graph.sqlite',\n steps: [\n 'fetch_naver',\n 'fetch_sea',\n 'extract_terms',\n 'format',\n 'send'\n ],\n channel_id: $json.channel_id\n }\n}];"
|
||||
"jsCode": "return [{ json: { step: 'run_headlines_workflow(channel_id)', state_store: '/code/state/headlines_graph.sqlite', nodes: ['fetch_naver', 'fetch_sea', 'extract_terms', 'format', 'send'], channel_id: $json.channel_id } }];"
|
||||
},
|
||||
"id": "sched-headlines-004",
|
||||
"name": "LangGraph Workflow",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [970, 220]
|
||||
"position": [970, 240]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"method": "POST",
|
||||
"url": "=http://192.168.219.52:8505/api/news/naver/startup-headlines",
|
||||
"sendBody": true,
|
||||
"specifyBody": "json",
|
||||
"jsonBody": "={\"format\":\"slack\"}",
|
||||
"options": {
|
||||
"response": {
|
||||
"response": {
|
||||
"fullResponse": true
|
||||
}
|
||||
}
|
||||
}
|
||||
"jsCode": "return [{ json: { step: 'skill-news POST /api/news/naver/startup-headlines', format: 'slack' } }];"
|
||||
},
|
||||
"id": "sched-headlines-005",
|
||||
"name": "skill-news Naver Headlines",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 4.2,
|
||||
"position": [1180, 140]
|
||||
"name": "Naver Headlines API",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [1220, 160]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"method": "POST",
|
||||
"url": "=http://192.168.219.52:8505/api/news/sea/headlines",
|
||||
"sendBody": true,
|
||||
"specifyBody": "json",
|
||||
"jsonBody": "={\"format\":\"json\"}",
|
||||
"options": {
|
||||
"response": {
|
||||
"response": {
|
||||
"fullResponse": true
|
||||
}
|
||||
}
|
||||
}
|
||||
"jsCode": "return [{ json: { step: 'skill-news POST /api/news/sea/headlines', format: 'json' } }];"
|
||||
},
|
||||
"id": "sched-headlines-006",
|
||||
"name": "skill-news SEA Headlines",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 4.2,
|
||||
"position": [1180, 300]
|
||||
"name": "SEA Headlines API",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [1220, 320]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "return [{\n json: {\n step: 'rb8001 headlines_workflow.format_node',\n channel_id: $item(0).$node['LangGraph Workflow'].json.channel_id,\n summary: [\n '네이버 Slack 텍스트 수신',\n '동남아 소식 섹션 삽입',\n '키워드 요약 미삽입',\n '클로징 후 명언, 마지막 빈줄 2줄'\n ],\n naver_endpoint: '/api/news/naver/startup-headlines',\n sea_endpoint: '/api/news/sea/headlines'\n }\n}];"
|
||||
"jsCode": "return [{ json: { step: 'rb8001 headlines_workflow.format_node', summary: ['네이버 Slack 텍스트 수신', '동남아 소식 섹션 삽입', '키워드 요약 미삽입', '클로징 후 명언, 마지막 빈줄 2줄'] } }];"
|
||||
},
|
||||
"id": "sched-headlines-007",
|
||||
"name": "Format Briefing Text",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [1460, 220]
|
||||
"position": [1470, 240]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "message",
|
||||
"operation": "post",
|
||||
"channel": "={{ $json.channel_id }}",
|
||||
"text": "={{ 'rb8001 headlines_workflow.send_node -> chat_postMessage' }}",
|
||||
"otherOptions": {}
|
||||
"jsCode": "return [{ json: { step: 'rb8001 headlines_workflow.send_node -> Slack chat_postMessage', channel_id: 'C09C98KK2TT' } }];"
|
||||
},
|
||||
"id": "sched-headlines-008",
|
||||
"name": "Slack Delivery",
|
||||
"type": "n8n-nodes-base.slack",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [1720, 220]
|
||||
"position": [1720, 240]
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
@ -148,19 +122,19 @@
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "skill-news Naver Headlines",
|
||||
"node": "Naver Headlines API",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "skill-news SEA Headlines",
|
||||
"node": "SEA Headlines API",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"skill-news Naver Headlines": {
|
||||
"Naver Headlines API": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
@ -171,7 +145,7 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"skill-news SEA Headlines": {
|
||||
"SEA Headlines API": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user