返回提交历史
Added
samples/workflows/wecom-multiple-contacts-auto-reply.json
+180
-0
Added
samples/workflows/wecom-multiple-contacts-auto-reply.xfeworkflow
+0
-0
XFEstudio/XFEWorkflow
添加新版企业微信多联系人引用回复工作流样例
389a9e0
代码差异
2 个文件
+180
-0
@@ -0,0 +1,180 @@
1
{
2
"schemaVersion": 1,
3
"id": "5291eab1d20942c7aee4cc6122f35532",
4
"name": "企业微信 · 多联系人 · 引用回复 1",
5
"description": "收到消息后,使用系统条件分支筛选多个联系人。选中“筛选多个联系人”,将左值 left 的空数组 [] 改为允许的完整联系人 ID 字符串数组,例如 [\"联系人ID1\",\"联系人ID2\"];比较保留 contains,右值 right 已连接发送者 ID。任意一个 ID 精确匹配后,在原会话引用该消息回复 1,否则结束。不限定群聊或消息类型。导入默认关闭,空列表不会回复;连接企业微信、填写列表并保存后,在工作流列表开启。",
6
"enabled": false,
7
"priority": 0,
8
"kind": "Graph",
9
"graph": {
10
"nodes": [
11
{
12
"id": "receive",
13
"capabilityId": "xfe.wecom.message.received",
14
"name": "收到消息",
15
"x": 160,
16
"y": 180,
17
"parameters": {},
18
"code": "",
19
"trigger": {
20
"id": "receive",
21
"kind": "Plugin",
22
"enabled": true,
23
"intervalSeconds": 300,
24
"dailyTime": "09:00",
25
"path": "",
26
"filter": "*",
27
"capabilityId": "xfe.wecom.message.received",
28
"parameters": {},
29
"inputBindings": {},
30
"sourceWorkflowId": "",
31
"completionStatus": "Succeeded"
32
},
33
"children": {},
34
"timeoutSeconds": 0,
35
"retryCount": 0,
36
"retryDelayMilliseconds": 500
37
},
38
{
39
"id": "allowed-contacts",
40
"capabilityId": "core.if",
41
"name": "筛选多个联系人",
42
"x": 640,
43
"y": 260,
44
"parameters": {
45
"left": [],
46
"operator": "contains",
47
"normalizeText": false,
48
"ignoreCase": false
49
},
50
"code": "",
51
"trigger": null,
52
"children": {},
53
"timeoutSeconds": 0,
54
"retryCount": 0,
55
"retryDelayMilliseconds": 500
56
},
57
{
58
"id": "reply",
59
"capabilityId": "xfe.wecom.quoteReply",
60
"name": "引用原消息回复 1",
61
"x": 1120,
62
"y": 260,
63
"parameters": {
64
"content": "1",
65
"quoteOriginal": true,
66
"dryRun": false
67
},
68
"code": "",
69
"trigger": null,
70
"children": {},
71
"timeoutSeconds": 0,
72
"retryCount": 0,
73
"retryDelayMilliseconds": 500
74
},
75
{
76
"id": "done",
77
"capabilityId": "core.end",
78
"name": "完成回复",
79
"x": 1600,
80
"y": 260,
81
"parameters": {},
82
"code": "",
83
"trigger": null,
84
"children": {},
85
"timeoutSeconds": 0,
86
"retryCount": 0,
87
"retryDelayMilliseconds": 500
88
},
89
{
90
"id": "skip",
91
"capabilityId": "core.end",
92
"name": "忽略其他联系人",
93
"x": 1120,
94
"y": 840,
95
"parameters": {
96
"result": {
97
"status": "Skipped",
98
"reason": "发送者不在允许的联系人列表中"
99
}
100
},
101
"code": "",
102
"trigger": null,
103
"children": {},
104
"timeoutSeconds": 0,
105
"retryCount": 0,
106
"retryDelayMilliseconds": 500
107
}
108
],
109
"edges": [
110
{
111
"id": "receive-filter",
112
"fromNode": "receive",
113
"fromPort": "next",
114
"toNode": "allowed-contacts",
115
"toPort": "in",
116
"kind": "Execution"
117
},
118
{
119
"id": "match-reply",
120
"fromNode": "allowed-contacts",
121
"fromPort": "true",
122
"toNode": "reply",
123
"toPort": "in",
124
"kind": "Execution"
125
},
126
{
127
"id": "no-match-skip",
128
"fromNode": "allowed-contacts",
129
"fromPort": "false",
130
"toNode": "skip",
131
"toPort": "in",
132
"kind": "Execution"
133
},
134
{
135
"id": "reply-done",
136
"fromNode": "reply",
137
"fromPort": "next",
138
"toNode": "done",
139
"toPort": "in",
140
"kind": "Execution"
141
},
142
{
143
"id": "sender-to-filter",
144
"fromNode": "receive",
145
"fromPort": "senderId",
146
"toNode": "allowed-contacts",
147
"toPort": "right",
148
"kind": "Data"
149
},
150
{
151
"id": "message-to-reply",
152
"fromNode": "receive",
153
"fromPort": "message",
154
"toNode": "reply",
155
"toPort": "message",
156
"kind": "Data"
157
},
158
{
159
"id": "reply-result",
160
"fromNode": "reply",
161
"fromPort": "result",
162
"toNode": "done",
163
"toPort": "result",
164
"kind": "Data"
165
}
166
]
167
},
168
"code": "",
169
"generatedCodeHash": "",
170
"previousCode": "",
171
"inputs": [],
172
"outputs": [],
173
"inputDefaults": {},
174
"variables": {},
175
"pluginVersions": {
176
"xfe.wecom": "3.0.0"
177
},
178
"triggers": [],
179
"modifiedAt": "2026-10-12T06:59:00.4969505+00:00"
180
}
二进制文件已变更,无法进行逐行预览。