微信自动化N8N示例-每日新闻—+rss

自动化微信

此工作流是基于项目https://github.com/danni-cool/docker-wechatbot-webhook

可以复制代码一键粘贴或复制到N8N,你需要修改基于项目所搭建的URL及微信群

一、微信群每日早报

下载:https://noise.lanzoul.com/i0qxY1apekxe

代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"name": "微信群每日早报",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "38 21 * * *"
}
]
}
},
"id": "349619e3-2a17-4b29-91c7-762f5ee24d50",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.1,
"position": [
740,
420
]
},
{
"parameters": {
"url": "https://news.topurl.cn/api?count=15",
"options": {}
},
"id": "98cba6da-ab7c-467e-9d14-6984659e4647",
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
960,
420
]
},
{
"parameters": {
"method": "POST",
"url": "https://example.com/your/url",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "to",
"value": "群名称"
},
{
"name": "type",
"value": "text"
},
{
"name": "content",
"value": "=上午好,今天是 {{ $json.data.calendar.lYear }}年{{ $json.data.calendar.cMonth }}月 {{$json.data.calendar.cDay }}日 {{ $json.data.calendar.ncWeek }}\n今天的新闻有:\n一、{{ $json.data.newsList[0].title }} {{ $json.data.newsList[0].url }}\n二、{{ $json.data.newsList[1].title }} {{ $json.data.newsList[1].url }}\n三、{{ $json.data.newsList[2].title }} {{ $json.data.newsList[2].url }}\n四、{{ $json.data.newsList[3].title }} {{ $json.data.newsList[3].url }}\n五、{{ $json.data.newsList[4].title }} {{ $json.data.newsList[4].url }}\n六、{{ $json.data.newsList[5].title }} {{ $json.data.newsList[5].url }}\n七、{{ $json.data.newsList[6].title }} {{ $json.data.newsList[6].url }}\n八、{{ $json.data.newsList[7].title }} {{ $json.data.newsList[7].url }}\n九、{{ $json.data.newsList[8].title }} {{ $json.data.newsList[8].url }}\n十、{{ $json.data.newsList[9].title }} {{ $json.data.newsList[9].url }}\n十一、{{ $json.data.newsList[10].title }} {{ $json.data.newsList[10].url }}\n十二、{{ $json.data.newsList[11].title }} {{ $json.data.newsList[11].url }} \n十三、{{ $json.data.newsList[12].title }} {{ $json.data.newsList[12].url }} \n十四、{{ $json.data.newsList[13].title }} {{ $json.data.newsList[13].url }} \n十五、{{ $json.data.newsList[14].title }} {{ $json.data.newsList[14].url }}\n祝您今日生活愉快,工作顺利! "
},
{
"name": "isRoom",
"value": "{{true}}"
}
]
},
"options": {}
},
"id": "cd5d3ba1-3787-4c1a-ae62-781ca1e66a7b",
"name": "HTTP Request1",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
1180,
420
]
}
],
"pinData": {},
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "ed63a25b-d041-4e7e-9003-6ff8400652e4",
"id": "7AACKLiiyLYDrNbW",
"meta": {
"instanceId": "b564d2dcbbb6903bd7687a31d9c30a4a86cf0c12471162842806a07cd3a87483"
},
"tags": []
}

二、微信群RSS订阅推送

下载:https://noise.lanzoul.com/ifd3C1apel0h

代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"name": "微信rss推送",
"nodes": [
{
"parameters": {
"method": "POST",
"url": "https://example.com/your/url",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "to",
"value": "群昵称"
},
{
"name": "type",
"value": "text"
},
{
"name": "content",
"value": "={{ $json.title }}\n{{ $json.link }}\n📫来自RSS订阅推送"
},
{
"name": "isRoom",
"value": "{{true}}"
}
]
},
"options": {}
},
"id": "f5c735ee-ebee-4385-8bb2-0db9f4a0a942",
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
1060,
380
]
},
{
"parameters": {
"url": "https://example.com/your/url",
"options": {}
},
"id": "479580f3-7d8f-427e-85e8-bcd0caec06a9",
"name": "RSS Read",
"type": "n8n-nodes-base.rssFeedRead",
"typeVersion": 1,
"position": [
840,
380
]
},
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours"
}
]
}
},
"id": "a41ab53f-aa35-4b34-bb41-5fc6c11d34df",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.1,
"position": [
660,
400
]
}
],
"pinData": {},
"connections": {
"RSS Read": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "RSS Read",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "621606c4-783e-45e9-ac6a-0666ec91a25f",
"id": "8msZnmJH1IiwFIya",
"meta": {
"instanceId": "b564d2dcbbb6903bd7687a31d9c30a4a86cf0c12471162842806a07cd3a87483"
},
"tags": []
}