oharu121 commited on
Commit
fea87dc
·
1 Parent(s): ea2cb47

chore(n8n): sync workflow 'pick-news-and-send-mail' [auto-sync]

Browse files
Files changed (1) hide show
  1. workflows/pick-news-and-send-mail.json +376 -20
workflows/pick-news-and-send-mail.json CHANGED
@@ -1,5 +1,10 @@
1
  {
 
 
 
2
  "name": "pick-news-and-send-mail",
 
 
3
  "nodes": [
4
  {
5
  "parameters": {
@@ -12,7 +17,7 @@
12
  208,
13
  0
14
  ],
15
- "id": "a6e17402-cbb8-409a-99cc-e3d361c9224a",
16
  "name": "RSS Read"
17
  },
18
  {
@@ -25,7 +30,7 @@
25
  416,
26
  0
27
  ],
28
- "id": "b385313e-6b07-4ee6-ab4d-9bb3c8bd1b9e",
29
  "name": "Limit"
30
  },
31
  {
@@ -42,7 +47,7 @@
42
  -16,
43
  208
44
  ],
45
- "id": "2032ce64-e103-4388-923f-d853dad0be5b",
46
  "name": "AI Agent"
47
  },
48
  {
@@ -55,11 +60,11 @@
55
  -16,
56
  384
57
  ],
58
- "id": "dfa14deb-2682-455e-aa8e-e5db80b1e322",
59
  "name": "Google Gemini Chat Model",
60
  "credentials": {
61
  "googlePalmApi": {
62
- "id": "5hIbERo5Dcc78b8s",
63
  "name": "Google Gemini(PaLM) Api account"
64
  }
65
  }
@@ -81,7 +86,7 @@
81
  336,
82
  208
83
  ],
84
- "id": "a1a84bc9-74bd-4656-a2f6-ef56b6769dcf",
85
  "name": "Aggregate"
86
  },
87
  {
@@ -96,7 +101,7 @@
96
  576,
97
  208
98
  ],
99
- "id": "92a93890-80dc-44d7-90bc-7a8f7ce10caf",
100
  "name": "Markdown"
101
  },
102
  {
@@ -114,12 +119,12 @@
114
  784,
115
  208
116
  ],
117
- "id": "34103591-9f2b-4a56-aa65-4f9bb9378cfc",
118
  "name": "Send a message",
119
  "webhookId": "aa508e8b-fac2-4e37-a0ee-8f3e5bfb5e3b",
120
  "credentials": {
121
  "gmailOAuth2": {
122
- "id": "tYnFQAtq88aj3pgq",
123
  "name": "Gmail account"
124
  }
125
  }
@@ -135,7 +140,7 @@
135
  656,
136
  0
137
  ],
138
- "id": "b06e1e6e-01cc-41a0-9a6e-b35e8cc70dd9",
139
  "name": "HTTP Request"
140
  },
141
  {
@@ -160,7 +165,7 @@
160
  832,
161
  0
162
  ],
163
- "id": "b1db2471-be2e-44dd-bac1-98b362861403",
164
  "name": "HTML"
165
  },
166
  {
@@ -194,7 +199,7 @@
194
  992,
195
  0
196
  ],
197
- "id": "46cc2970-9ddc-40d8-b75a-a1e0b4847df6",
198
  "name": "If"
199
  },
200
  {
@@ -211,11 +216,10 @@
211
  0,
212
  0
213
  ],
214
- "id": "356ac770-c228-4f9a-a807-0f67ad99d5c5",
215
  "name": "Schedule Trigger"
216
  }
217
  ],
218
- "pinData": {},
219
  "connections": {
220
  "RSS Read": {
221
  "main": [
@@ -328,15 +332,367 @@
328
  ]
329
  }
330
  },
331
- "active": true,
332
  "settings": {
333
- "executionOrder": "v1"
 
 
 
 
 
 
334
  },
335
- "versionId": "5ebb037f-9cde-4a88-937f-7752b7005e8c",
336
  "meta": {
337
- "templateCredsSetupCompleted": true,
338
- "instanceId": "0a359baf2407cd199a0588a4f62990392e2aa3e0c1b2aa4fa4a56f7661fb3a1c"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
  },
340
- "id": "4ClurJJsVM2kdvQg",
341
  "tags": []
342
  }
 
1
  {
2
+ "updatedAt": "2025-12-30T14:57:54.856Z",
3
+ "createdAt": "2025-12-30T13:12:16.546Z",
4
+ "id": "NIgES2bUaGVQH4Yk",
5
  "name": "pick-news-and-send-mail",
6
+ "active": true,
7
+ "isArchived": false,
8
  "nodes": [
9
  {
10
  "parameters": {
 
17
  208,
18
  0
19
  ],
20
+ "id": "4d40615c-e0a4-49f8-8eea-4c417bbdc35e",
21
  "name": "RSS Read"
22
  },
23
  {
 
30
  416,
31
  0
32
  ],
33
+ "id": "51aaf6c4-bd5c-4062-899a-0354099a3d6a",
34
  "name": "Limit"
35
  },
36
  {
 
47
  -16,
48
  208
49
  ],
50
+ "id": "453bd1cf-de02-4411-83fe-e862051c09d8",
51
  "name": "AI Agent"
52
  },
53
  {
 
60
  -16,
61
  384
62
  ],
63
+ "id": "bae1199b-118e-44db-ad1e-8692a818ddf4",
64
  "name": "Google Gemini Chat Model",
65
  "credentials": {
66
  "googlePalmApi": {
67
+ "id": "kqJk9HBPKYFAwIoH",
68
  "name": "Google Gemini(PaLM) Api account"
69
  }
70
  }
 
86
  336,
87
  208
88
  ],
89
+ "id": "f2dbf2be-0e62-4089-a18b-5899401713d0",
90
  "name": "Aggregate"
91
  },
92
  {
 
101
  576,
102
  208
103
  ],
104
+ "id": "a429879f-3463-4cf9-85c4-94e1d17bc022",
105
  "name": "Markdown"
106
  },
107
  {
 
119
  784,
120
  208
121
  ],
122
+ "id": "e190fd30-c505-46ff-bfa3-f1938de751fc",
123
  "name": "Send a message",
124
  "webhookId": "aa508e8b-fac2-4e37-a0ee-8f3e5bfb5e3b",
125
  "credentials": {
126
  "gmailOAuth2": {
127
+ "id": "WH9s8y68liwRNhZR",
128
  "name": "Gmail account"
129
  }
130
  }
 
140
  656,
141
  0
142
  ],
143
+ "id": "74eb0c7a-70e6-4ac1-b7c3-ba1b89c81372",
144
  "name": "HTTP Request"
145
  },
146
  {
 
165
  832,
166
  0
167
  ],
168
+ "id": "6ff34163-1dc4-4d23-a50f-1ccaaf1d4265",
169
  "name": "HTML"
170
  },
171
  {
 
199
  992,
200
  0
201
  ],
202
+ "id": "eb286888-b19e-4896-a8e1-79929081e19e",
203
  "name": "If"
204
  },
205
  {
 
216
  0,
217
  0
218
  ],
219
+ "id": "598a2b06-407e-4045-adf5-2a813983110a",
220
  "name": "Schedule Trigger"
221
  }
222
  ],
 
223
  "connections": {
224
  "RSS Read": {
225
  "main": [
 
332
  ]
333
  }
334
  },
 
335
  "settings": {
336
+ "executionOrder": "v1",
337
+ "availableInMCP": false
338
+ },
339
+ "staticData": {
340
+ "node:Schedule Trigger": {
341
+ "recurrenceRules": []
342
+ }
343
  },
 
344
  "meta": {
345
+ "templateCredsSetupCompleted": true
346
+ },
347
+ "pinData": {},
348
+ "versionId": "4e57c83c-9605-464f-a345-3200a16fd4e0",
349
+ "activeVersionId": "4e57c83c-9605-464f-a345-3200a16fd4e0",
350
+ "triggerCount": 1,
351
+ "shared": [
352
+ {
353
+ "updatedAt": "2025-12-30T13:12:16.546Z",
354
+ "createdAt": "2025-12-30T13:12:16.546Z",
355
+ "role": "workflow:owner",
356
+ "workflowId": "NIgES2bUaGVQH4Yk",
357
+ "projectId": "1yHpLTrY34GY4WHm"
358
+ }
359
+ ],
360
+ "activeVersion": {
361
+ "updatedAt": "2025-12-30T14:59:29.819Z",
362
+ "createdAt": "2025-12-30T14:57:55.156Z",
363
+ "versionId": "4e57c83c-9605-464f-a345-3200a16fd4e0",
364
+ "workflowId": "NIgES2bUaGVQH4Yk",
365
+ "nodes": [
366
+ {
367
+ "parameters": {
368
+ "url": "https://hnrss.org/newest?points=100",
369
+ "options": {}
370
+ },
371
+ "type": "n8n-nodes-base.rssFeedRead",
372
+ "typeVersion": 1.2,
373
+ "position": [
374
+ 208,
375
+ 0
376
+ ],
377
+ "id": "4d40615c-e0a4-49f8-8eea-4c417bbdc35e",
378
+ "name": "RSS Read"
379
+ },
380
+ {
381
+ "parameters": {
382
+ "maxItems": 3
383
+ },
384
+ "type": "n8n-nodes-base.limit",
385
+ "typeVersion": 1,
386
+ "position": [
387
+ 416,
388
+ 0
389
+ ],
390
+ "id": "51aaf6c4-bd5c-4062-899a-0354099a3d6a",
391
+ "name": "Limit"
392
+ },
393
+ {
394
+ "parameters": {
395
+ "promptType": "define",
396
+ "text": "={{ $json.articleText }}",
397
+ "options": {
398
+ "systemMessage": "# 指令\n\n你是一位專業的新聞編輯,專長是從雜亂的原始文本中提取核心資訊。\n\n## 任務\n\n我會提供一段從網站爬取的原始���本,其中可能包含廣告、導航連結和無關的程式碼。請你執行以下步驟:\n\n1. **識別核心內容**:從原始文本中找出主要的新聞文章內容。\n2. **忽略雜訊**:完全忽略廣告、頁首/頁尾、社群分享按鈕和「相關文章」等所有非核心內容。\n3. **整理成簡報**:將核心內容整理成以下格式的重點摘要。\n\n## 輸出格式\n\n請嚴格遵循以下 Markdown 格式,並且只輸出這個格式的內容:\n\n### **標題**\n*此處是文章的標題*\n\n**摘要**\n*此處是一段約 50-80 字的簡潔摘要*\n\n**重點**\n- *此處是第一個關鍵重點*\n- *此處是第二個關鍵重點*\n- *此處是第三個關鍵重點*\n\n---\n**[重要規則]**\n- 你的所有回覆**只能**是最終的 Markdown 格式簡報。\n- **絕對不要**包含任何對話性文字,例如「好的,這是您的簡報:」。\n- 直接以「### **標題**」開始你的回覆。\n- 簡報內容必須使用**繁體中文**。"
399
+ }
400
+ },
401
+ "type": "@n8n/n8n-nodes-langchain.agent",
402
+ "typeVersion": 2.2,
403
+ "position": [
404
+ -16,
405
+ 208
406
+ ],
407
+ "id": "453bd1cf-de02-4411-83fe-e862051c09d8",
408
+ "name": "AI Agent"
409
+ },
410
+ {
411
+ "parameters": {
412
+ "options": {}
413
+ },
414
+ "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
415
+ "typeVersion": 1,
416
+ "position": [
417
+ -16,
418
+ 384
419
+ ],
420
+ "id": "bae1199b-118e-44db-ad1e-8692a818ddf4",
421
+ "name": "Google Gemini Chat Model",
422
+ "credentials": {
423
+ "googlePalmApi": {
424
+ "id": "kqJk9HBPKYFAwIoH",
425
+ "name": "Google Gemini(PaLM) Api account"
426
+ }
427
+ }
428
+ },
429
+ {
430
+ "parameters": {
431
+ "fieldsToAggregate": {
432
+ "fieldToAggregate": [
433
+ {
434
+ "fieldToAggregate": "output"
435
+ }
436
+ ]
437
+ },
438
+ "options": {}
439
+ },
440
+ "type": "n8n-nodes-base.aggregate",
441
+ "typeVersion": 1,
442
+ "position": [
443
+ 336,
444
+ 208
445
+ ],
446
+ "id": "f2dbf2be-0e62-4089-a18b-5899401713d0",
447
+ "name": "Aggregate"
448
+ },
449
+ {
450
+ "parameters": {
451
+ "mode": "markdownToHtml",
452
+ "markdown": "={{ $json.output.join(\"\\n\\n\") }}",
453
+ "options": {}
454
+ },
455
+ "type": "n8n-nodes-base.markdown",
456
+ "typeVersion": 1,
457
+ "position": [
458
+ 576,
459
+ 208
460
+ ],
461
+ "id": "a429879f-3463-4cf9-85c4-94e1d17bc022",
462
+ "name": "Markdown"
463
+ },
464
+ {
465
+ "parameters": {
466
+ "sendTo": "jefflin1201@gmail.com",
467
+ "subject": "熱門新聞彙總",
468
+ "message": "={{ $json.data }}",
469
+ "options": {
470
+ "appendAttribution": false
471
+ }
472
+ },
473
+ "type": "n8n-nodes-base.gmail",
474
+ "typeVersion": 2.1,
475
+ "position": [
476
+ 784,
477
+ 208
478
+ ],
479
+ "id": "e190fd30-c505-46ff-bfa3-f1938de751fc",
480
+ "name": "Send a message",
481
+ "webhookId": "aa508e8b-fac2-4e37-a0ee-8f3e5bfb5e3b",
482
+ "credentials": {
483
+ "gmailOAuth2": {
484
+ "id": "WH9s8y68liwRNhZR",
485
+ "name": "Gmail account"
486
+ }
487
+ }
488
+ },
489
+ {
490
+ "parameters": {
491
+ "url": "={{ $json.link }}",
492
+ "options": {}
493
+ },
494
+ "type": "n8n-nodes-base.httpRequest",
495
+ "typeVersion": 4.2,
496
+ "position": [
497
+ 656,
498
+ 0
499
+ ],
500
+ "id": "74eb0c7a-70e6-4ac1-b7c3-ba1b89c81372",
501
+ "name": "HTTP Request"
502
+ },
503
+ {
504
+ "parameters": {
505
+ "operation": "extractHtmlContent",
506
+ "extractionValues": {
507
+ "values": [
508
+ {
509
+ "key": "articleText",
510
+ "cssSelector": "body"
511
+ }
512
+ ]
513
+ },
514
+ "options": {
515
+ "trimValues": true,
516
+ "cleanUpText": true
517
+ }
518
+ },
519
+ "type": "n8n-nodes-base.html",
520
+ "typeVersion": 1.2,
521
+ "position": [
522
+ 832,
523
+ 0
524
+ ],
525
+ "id": "6ff34163-1dc4-4d23-a50f-1ccaaf1d4265",
526
+ "name": "HTML"
527
+ },
528
+ {
529
+ "parameters": {
530
+ "conditions": {
531
+ "options": {
532
+ "caseSensitive": true,
533
+ "leftValue": "",
534
+ "typeValidation": "strict",
535
+ "version": 2
536
+ },
537
+ "conditions": [
538
+ {
539
+ "id": "a61dd238-e1a1-4406-aea2-7502f6a785cf",
540
+ "leftValue": "={{ $json.articleText }}",
541
+ "rightValue": "",
542
+ "operator": {
543
+ "type": "string",
544
+ "operation": "notEmpty",
545
+ "singleValue": true
546
+ }
547
+ }
548
+ ],
549
+ "combinator": "and"
550
+ },
551
+ "options": {}
552
+ },
553
+ "type": "n8n-nodes-base.if",
554
+ "typeVersion": 2.2,
555
+ "position": [
556
+ 992,
557
+ 0
558
+ ],
559
+ "id": "eb286888-b19e-4896-a8e1-79929081e19e",
560
+ "name": "If"
561
+ },
562
+ {
563
+ "parameters": {
564
+ "rule": {
565
+ "interval": [
566
+ {}
567
+ ]
568
+ }
569
+ },
570
+ "type": "n8n-nodes-base.scheduleTrigger",
571
+ "typeVersion": 1.2,
572
+ "position": [
573
+ 0,
574
+ 0
575
+ ],
576
+ "id": "598a2b06-407e-4045-adf5-2a813983110a",
577
+ "name": "Schedule Trigger"
578
+ }
579
+ ],
580
+ "connections": {
581
+ "RSS Read": {
582
+ "main": [
583
+ [
584
+ {
585
+ "node": "Limit",
586
+ "type": "main",
587
+ "index": 0
588
+ }
589
+ ]
590
+ ]
591
+ },
592
+ "Limit": {
593
+ "main": [
594
+ [
595
+ {
596
+ "node": "HTTP Request",
597
+ "type": "main",
598
+ "index": 0
599
+ }
600
+ ]
601
+ ]
602
+ },
603
+ "Google Gemini Chat Model": {
604
+ "ai_languageModel": [
605
+ [
606
+ {
607
+ "node": "AI Agent",
608
+ "type": "ai_languageModel",
609
+ "index": 0
610
+ }
611
+ ]
612
+ ]
613
+ },
614
+ "AI Agent": {
615
+ "main": [
616
+ [
617
+ {
618
+ "node": "Aggregate",
619
+ "type": "main",
620
+ "index": 0
621
+ }
622
+ ]
623
+ ]
624
+ },
625
+ "Aggregate": {
626
+ "main": [
627
+ [
628
+ {
629
+ "node": "Markdown",
630
+ "type": "main",
631
+ "index": 0
632
+ }
633
+ ]
634
+ ]
635
+ },
636
+ "Markdown": {
637
+ "main": [
638
+ [
639
+ {
640
+ "node": "Send a message",
641
+ "type": "main",
642
+ "index": 0
643
+ }
644
+ ]
645
+ ]
646
+ },
647
+ "HTTP Request": {
648
+ "main": [
649
+ [
650
+ {
651
+ "node": "HTML",
652
+ "type": "main",
653
+ "index": 0
654
+ }
655
+ ]
656
+ ]
657
+ },
658
+ "HTML": {
659
+ "main": [
660
+ [
661
+ {
662
+ "node": "If",
663
+ "type": "main",
664
+ "index": 0
665
+ }
666
+ ]
667
+ ]
668
+ },
669
+ "If": {
670
+ "main": [
671
+ [
672
+ {
673
+ "node": "AI Agent",
674
+ "type": "main",
675
+ "index": 0
676
+ }
677
+ ]
678
+ ]
679
+ },
680
+ "Schedule Trigger": {
681
+ "main": [
682
+ [
683
+ {
684
+ "node": "RSS Read",
685
+ "type": "main",
686
+ "index": 0
687
+ }
688
+ ]
689
+ ]
690
+ }
691
+ },
692
+ "authors": "Yuchen Lin",
693
+ "name": "Version 4e57c83c",
694
+ "description": "",
695
+ "autosaved": false
696
  },
 
697
  "tags": []
698
  }