oc-browser-relay 1.0.7 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/bundled-relay/index.js +1 -1
  2. package/bundled-relay/public/configs/pages/douyin-creator-publish.json +3 -0
  3. package/bundled-relay/public/configs/pages/douyin-fxg-homepage.json +180 -4
  4. package/bundled-relay/public/configs/pages/pinduoduo-mms-home.json +23 -29
  5. package/bundled-relay/public/configs/pages/taobao-item-detail.json +14 -0
  6. package/bundled-relay/public/configs/pages/xiaohongshu-creator-publish.json +3 -0
  7. package/bundled-relay/public/configs/sites/douyin-creator.json +1 -1
  8. package/bundled-relay/public/configs/sites/xiaohongshu-creator.json +2 -2
  9. package/bundled-relay/public/configs/task-templates/douyin-fxg-homepage-api.json +136 -7
  10. package/bundled-relay/public/configs/task-templates/taobao-item-detail-comments.json +10 -2
  11. package/bundled-relay/public/icons/icon-inactive-128.png +0 -0
  12. package/bundled-relay/public/icons/icon-inactive-48.png +0 -0
  13. package/bundled-relay/public/icons/icon-inactive-96.png +0 -0
  14. package/index.js +102 -1
  15. package/package.json +1 -1
  16. package/skills/oc-browser-relay-article/SKILL.md +57 -0
  17. package/skills/oc-browser-relay-douyin/SKILL.md +54 -0
  18. package/skills/oc-browser-relay-douyin-fxg/SKILL.md +49 -0
  19. package/skills/oc-browser-relay-pinduoduo/SKILL.md +47 -0
  20. package/skills/oc-browser-relay-sycm/SKILL.md +93 -0
  21. package/skills/oc-browser-relay-sycm/references/sycm-field-mapping.md +40 -0
  22. package/skills/oc-browser-relay-taobao/SKILL.md +68 -0
  23. package/skills/oc-browser-relay-xiaohongshu/SKILL.md +77 -0
  24. package/bundled-relay/public/icons/icon-active-128.png +0 -0
  25. package/bundled-relay/public/icons/icon-active-48.png +0 -0
  26. package/bundled-relay/public/icons/icon-active-96.png +0 -0
  27. package/skills/oc-browser-relay/SKILL.md +0 -652
@@ -24367,7 +24367,7 @@ var STEP_DISPATCH_INTERVAL_MS = Number(process.env.STEP_DISPATCH_INTERVAL_MS) ||
24367
24367
  var RUNTIME_ONLINE_GRACE_MS = 1e4;
24368
24368
  var RUNTIME_PRESENCE_TTL_MS = 5 * 60 * 1e3;
24369
24369
  var COMPLETED_TASK_TTL_MS = Number(process.env.COMPLETED_TASK_TTL_MS) || 60 * 60 * 1e3;
24370
- var STEP_WATCHDOG_FALLBACK_TIMEOUT_MS = 6e4;
24370
+ var STEP_WATCHDOG_FALLBACK_TIMEOUT_MS = 12e4;
24371
24371
  var STEP_WATCHDOG_DEFAULT_TIMEOUTS = {
24372
24372
  upload_assets: 18e4,
24373
24373
  fill_field: 12e4,
@@ -442,6 +442,9 @@
442
442
  }
443
443
  },
444
444
  "executionPolicy": {
445
+ "popupGuard": {
446
+ "enabled": false
447
+ },
445
448
  "typingPolicy": {
446
449
  "mode": "human_typing",
447
450
  "minKeyDelayMs": 120,
@@ -18,12 +18,160 @@
18
18
  "value": "/ffa/mshop/homepage/index"
19
19
  },
20
20
  {
21
- "type": "element_visible",
22
- "selector": "body"
21
+ "type": "logical_or",
22
+ "conditions": [
23
+ {
24
+ "type": "element_visible",
25
+ "selector": "label:has(input[type='radio'][value='Real']), label:has(input[type='radio'][value='Day'])"
26
+ },
27
+ {
28
+ "type": "element_visible",
29
+ "selector": "div.auxo-select-selector:has(input[role='combobox'][aria-haspopup='listbox'])"
30
+ }
31
+ ]
23
32
  }
24
33
  ]
25
34
  },
26
- "waitTimeoutMs": 15000
35
+ "waitTimeoutMs": 30000
36
+ },
37
+ "reusePolicy": {
38
+ "enabled": true,
39
+ "taskTypes": ["collect_douyin_fxg_homepage_api"],
40
+ "includeSameHostPages": true,
41
+ "candidatePages": [
42
+ "douyin_fxg_homepage"
43
+ ],
44
+ "resetActions": [
45
+ {
46
+ "when": "target_page",
47
+ "kind": "scroll_to_top"
48
+ },
49
+ {
50
+ "when": "same_host_non_target",
51
+ "kind": "click_locator",
52
+ "skipPopupGuard": true,
53
+ "locators": [
54
+ {
55
+ "kind": "css",
56
+ "value": "h1#fxg-pc-header-title",
57
+ "priority": 1
58
+ }
59
+ ],
60
+ "waitForUrlMatch": [
61
+ "https://fxg.jinritemai.com/ffa/mshop/homepage/index*"
62
+ ],
63
+ "waitTimeoutMs": 30000,
64
+ "settleDelayMs": 600
65
+ }
66
+ ]
67
+ },
68
+ "executionPolicy": {
69
+ "clickPolicy": {
70
+ "scrollIntoView": true,
71
+ "requireVisible": true,
72
+ "preHover": true,
73
+ "hoverDurationMsRange": [70, 150],
74
+ "preClickPauseMsRange": [40, 100]
75
+ },
76
+ "humanBehavior": {
77
+ "cursorMoveSpeedRange": [105, 170],
78
+ "cursorStepDelayMsRange": [3, 7],
79
+ "cursorVisibleDurationMsRange": [120, 220],
80
+ "minCursorStepCount": 10,
81
+ "mouseDownUpDelayMsRange": [30, 80],
82
+ "postClickPauseMsRange": [40, 120]
83
+ },
84
+ "actionPausePolicy": {
85
+ "minPauseMs": 120,
86
+ "maxPauseMs": 520
87
+ }
88
+ },
89
+ "actions": {
90
+ "switch_metric_period": {
91
+ "actionId": "switch_metric_period",
92
+ "label": "切换首页时间粒度",
93
+ "kind": "click",
94
+ "skipPopupGuard": true,
95
+ "locatorWaitTimeoutMs": 5000,
96
+ "dropdownFallback": {
97
+ "panelSelector": ".auxo-select-dropdown:not(.auxo-select-dropdown-hidden)",
98
+ "panelWaitTimeoutMs": 5000,
99
+ "triggerLocators": [
100
+ {
101
+ "kind": "xpath",
102
+ "value": "//div[contains(@class,'auxo-select-selector')][.//span[contains(@class,'auxo-select-selection-item')][contains(normalize-space(.),'实时') or contains(normalize-space(.),'近1天') or contains(normalize-space(.),'近7天') or contains(normalize-space(.),'近30天') or contains(normalize-space(.),'大促')]]",
103
+ "priority": 1
104
+ }
105
+ ],
106
+ "optionLocatorsByValue": {
107
+ "Real": [
108
+ {
109
+ "kind": "xpath",
110
+ "value": "//div[contains(@class,'auxo-select-dropdown') and not(contains(@class,'auxo-select-dropdown-hidden'))]//div[contains(@class,'auxo-select-item-option')][.//div[contains(@class,'auxo-select-item-option-content') and normalize-space()='实时']]",
111
+ "priority": 1
112
+ }
113
+ ],
114
+ "Day": [
115
+ {
116
+ "kind": "xpath",
117
+ "value": "//div[contains(@class,'auxo-select-dropdown') and not(contains(@class,'auxo-select-dropdown-hidden'))]//div[contains(@class,'auxo-select-item-option')][.//div[contains(@class,'auxo-select-item-option-content') and normalize-space()='近1天']]",
118
+ "priority": 1
119
+ }
120
+ ],
121
+ "Week": [
122
+ {
123
+ "kind": "xpath",
124
+ "value": "//div[contains(@class,'auxo-select-dropdown') and not(contains(@class,'auxo-select-dropdown-hidden'))]//div[contains(@class,'auxo-select-item-option')][.//div[contains(@class,'auxo-select-item-option-content') and normalize-space()='近7天']]",
125
+ "priority": 1
126
+ }
127
+ ],
128
+ "Month": [
129
+ {
130
+ "kind": "xpath",
131
+ "value": "//div[contains(@class,'auxo-select-dropdown') and not(contains(@class,'auxo-select-dropdown-hidden'))]//div[contains(@class,'auxo-select-item-option')][.//div[contains(@class,'auxo-select-item-option-content') and normalize-space()='近30天']]",
132
+ "priority": 1
133
+ }
134
+ ],
135
+ "Promotion": [
136
+ {
137
+ "kind": "xpath",
138
+ "value": "//div[contains(@class,'auxo-select-dropdown') and not(contains(@class,'auxo-select-dropdown-hidden'))]//div[contains(@class,'auxo-select-item-option')][.//div[contains(@class,'auxo-select-item-option-content') and normalize-space()='大促']]",
139
+ "priority": 1
140
+ }
141
+ ]
142
+ }
143
+ },
144
+ "locators": [
145
+ {
146
+ "kind": "xpath",
147
+ "value": "//input[@type='radio' and @value='Real']/ancestor::label[1]",
148
+ "priority": 1
149
+ }
150
+ ]
151
+ }
152
+ },
153
+ "captureSources": {
154
+ "homepage_metrics": {
155
+ "urlPattern": "/pc/api/home/homepage",
156
+ "method": "GET",
157
+ "capability": "hybrid",
158
+ "operation": "capture_response",
159
+ "persistent": true,
160
+ "artifactType": "hybrid",
161
+ "includeBody": true,
162
+ "locationSuffix": "douyin_fxg_homepage_metrics",
163
+ "hint": "capture douyin fxg homepage metrics"
164
+ }
165
+ },
166
+ "capturePlans": {
167
+ "homepage_metrics": {
168
+ "sourceId": "homepage_metrics",
169
+ "captureNetwork": {
170
+ "timeoutMs": 600000,
171
+ "startPhase": "before_action",
172
+ "actionScope": "step"
173
+ }
174
+ }
27
175
  },
28
176
  "crawlerHints": {
29
177
  "structuredDataExtractors": {
@@ -34,7 +182,35 @@
34
182
  "outputSchema": {
35
183
  "root": {
36
184
  "extractedAt": "sources.homepage_operating_data.extractedAt",
37
- "metrics": "sources.homepage_operating_data.metrics"
185
+ "metrics": "sources.homepage_operating_data.metrics",
186
+ "incomeExpenseMetrics": "sources.homepage_operating_data.incomeExpenseMetrics"
187
+ }
188
+ }
189
+ },
190
+ "homepage_metrics_capture": {
191
+ "adapterId": "douyin_fxg_homepage_capture",
192
+ "sourceId": "homepage_metrics_capture",
193
+ "timeoutMs": 600000,
194
+ "observationSources": [
195
+ {
196
+ "sourceId": "homepage_metrics_capture",
197
+ "nodeIdArg": "sourceNodeId",
198
+ "sourceType": "active_capture_results",
199
+ "consumeCapture": true,
200
+ "resultPath": "$self"
201
+ }
202
+ ],
203
+ "outputSchema": {
204
+ "root": {
205
+ "extractedAt": "sources.homepage_metrics_capture.extractedAt",
206
+ "periodValue": "sources.homepage_metrics_capture.periodValue",
207
+ "periodLabel": "sources.homepage_metrics_capture.periodLabel",
208
+ "title": "sources.homepage_metrics_capture.title",
209
+ "subTitle": "sources.homepage_metrics_capture.subTitle",
210
+ "rank": "sources.homepage_metrics_capture.rank",
211
+ "metrics": "sources.homepage_metrics_capture.metrics",
212
+ "incomeExpenseMetrics": "sources.homepage_metrics_capture.incomeExpenseMetrics",
213
+ "meta": "sources.homepage_metrics_capture.meta"
38
214
  }
39
215
  }
40
216
  }
@@ -28,15 +28,10 @@
28
28
  "when": "same_host_non_target",
29
29
  "kind": "click_locator",
30
30
  "locators": [
31
- {
32
- "kind": "css",
33
- "value": ".logoWrapper",
34
- "priority": 1
35
- },
36
31
  {
37
32
  "kind": "xpath",
38
- "value": "//div[contains(@class,'logoWrapper') and .//div[contains(@class,'logoText')][contains(normalize-space(.),'商家后台')]]",
39
- "priority": 2
33
+ "value": "//*[self::a or self::div or self::span][contains(normalize-space(.),'商家后台') and not(self::script)]",
34
+ "priority": 1
40
35
  }
41
36
  ],
42
37
  "waitForUrlMatch": [
@@ -54,11 +49,20 @@
54
49
  "conditions": [
55
50
  {
56
51
  "type": "url_contains",
57
- "value": "/home/"
52
+ "value": "/home"
58
53
  },
59
54
  {
60
- "type": "element_visible",
61
- "selector": "li#__msfe__side-nav_item_0.active > a[href^='/home/']"
55
+ "type": "logical_and",
56
+ "conditions": [
57
+ {
58
+ "type": "element_visible",
59
+ "selector": "a[href^='/home/']"
60
+ },
61
+ {
62
+ "type": "text_visible",
63
+ "value": "后台首页"
64
+ }
65
+ ]
62
66
  }
63
67
  ]
64
68
  },
@@ -91,15 +95,10 @@
91
95
  "label": "点击商家后台 Logo",
92
96
  "kind": "click",
93
97
  "locators": [
94
- {
95
- "kind": "css",
96
- "value": ".logoWrapper",
97
- "priority": 1
98
- },
99
98
  {
100
99
  "kind": "xpath",
101
- "value": "//div[contains(@class,'logoWrapper') and .//div[contains(@class,'logoText')][contains(normalize-space(.),'商家后台')]]",
102
- "priority": 2
100
+ "value": "//*[self::a or self::div or self::span][contains(normalize-space(.),'商家后台') and not(self::script)]",
101
+ "priority": 1
103
102
  }
104
103
  ]
105
104
  },
@@ -109,13 +108,13 @@
109
108
  "kind": "click",
110
109
  "locators": [
111
110
  {
112
- "kind": "css",
113
- "value": "li#__msfe__side-nav_item_0 > a[href^='/home/']",
111
+ "kind": "xpath",
112
+ "value": "//a[starts-with(@href,'/home/') and contains(normalize-space(.),'首页')]",
114
113
  "priority": 1
115
114
  },
116
115
  {
117
- "kind": "xpath",
118
- "value": "//li[@id='__msfe__side-nav_item_0']/a[starts-with(@href,'/home/')]",
116
+ "kind": "css",
117
+ "value": "a[href^='/home/']",
119
118
  "priority": 2
120
119
  }
121
120
  ]
@@ -126,19 +125,14 @@
126
125
  "kind": "click",
127
126
  "locators": [
128
127
  {
129
- "kind": "css",
130
- "value": "li#__msfe__side-nav_item_101 > a[href='/orders/list']",
128
+ "kind": "xpath",
129
+ "value": "//a[@href='/orders/list' and contains(normalize-space(.),'订单查询')]",
131
130
  "priority": 1
132
131
  },
133
132
  {
134
133
  "kind": "xpath",
135
- "value": "//nav[contains(@class,'side-nav')]//li[@id='__msfe__side-nav_item_101']/a[@href='/orders/list']",
134
+ "value": "//a[@href='/orders/list']",
136
135
  "priority": 2
137
- },
138
- {
139
- "kind": "xpath",
140
- "value": "//nav[contains(@class,'side-nav')]//a[@href='/orders/list' and .//span[contains(@class,'nav-item-text')][contains(normalize-space(.),'订单查询')]]",
141
- "priority": 3
142
136
  }
143
137
  ]
144
138
  }
@@ -57,6 +57,13 @@
57
57
  "actionId": "open_comments",
58
58
  "label": "打开评论面板",
59
59
  "kind": "click",
60
+ "scrollSearchFallback": {
61
+ "maxScrollAttempts": 4,
62
+ "scrollDeltaPx": 720,
63
+ "settleDelayMs": 250,
64
+ "initialLocateTimeoutMs": 3000,
65
+ "retryLocateTimeoutMs": 3000
66
+ },
60
67
  "locators": [
61
68
  {
62
69
  "kind": "css",
@@ -86,6 +93,13 @@
86
93
  "actionId": "open_ask_answers",
87
94
  "label": "打开问大家面板",
88
95
  "kind": "click",
96
+ "scrollSearchFallback": {
97
+ "maxScrollAttempts": 4,
98
+ "scrollDeltaPx": 720,
99
+ "settleDelayMs": 250,
100
+ "initialLocateTimeoutMs": 3000,
101
+ "retryLocateTimeoutMs": 3000
102
+ },
89
103
  "locators": [
90
104
  {
91
105
  "kind": "css",
@@ -281,6 +281,9 @@
281
281
  }
282
282
  },
283
283
  "executionPolicy": {
284
+ "popupGuard": {
285
+ "enabled": false
286
+ },
284
287
  "typingPolicy": {
285
288
  "mode": "human_typing",
286
289
  "minKeyDelayMs": 120,
@@ -23,7 +23,7 @@
23
23
  { "kind": "xpath", "value": "//div[.//div[normalize-space(text())='发布视频'] and .//div[contains(normalize-space(.), '推荐mp4、webm')]]", "priority": 2 },
24
24
  { "kind": "css", "value": "a[href*='/content/upload']", "priority": 3 }
25
25
  ],
26
- "readyTimeoutMs": 8000
26
+ "readyTimeoutMs": 30000
27
27
  }
28
28
  }
29
29
  }
@@ -37,9 +37,9 @@
37
37
  { "kind": "text", "value": "上传图文", "priority": 2 }
38
38
  ],
39
39
  "hoverDelayMs": 300,
40
- "menuWaitTimeoutMs": 2500,
40
+ "menuWaitTimeoutMs": 10000,
41
41
  "settleDelayMs": 1200,
42
- "readyTimeoutMs": 8000
42
+ "readyTimeoutMs": 30000
43
43
  }
44
44
  }
45
45
  }
@@ -2,16 +2,21 @@
2
2
  "siteId": "douyin_fxg",
3
3
  "taskType": "collect_douyin_fxg_homepage_api",
4
4
  "platform": "douyin",
5
- "name": "采集抖店首页经营看板接口",
6
- "description": "打开抖店商家后台首页,在页面会话内直接调用首页经营看板接口,并返回原始响应。",
7
- "requiredFields": [
8
- ],
5
+ "name": "采集抖店首页经营看板指标",
6
+ "description": "打开抖店商家后台首页,切换指定时间粒度按钮,捕获首页接口响应并返回结构化经营数据。",
7
+ "requiredFields": [],
9
8
  "optionalFields": [
10
9
  {
11
10
  "name": "pageUrl",
12
11
  "type": "string",
13
12
  "description": "抖店首页地址",
14
13
  "default": "https://fxg.jinritemai.com/ffa/mshop/homepage/index?channel=zhaoshang"
14
+ },
15
+ {
16
+ "name": "metricPeriodValue",
17
+ "type": "string",
18
+ "description": "首页时间粒度按钮值,支持:Real、Day、Week、Month、Promotion",
19
+ "default": "Real"
15
20
  }
16
21
  ],
17
22
  "nodes": [
@@ -31,13 +36,137 @@
31
36
  "tool": "validate_page",
32
37
  "args": {}
33
38
  },
39
+ {
40
+ "nodeId": "s2b",
41
+ "name": "prepare_realtime_metrics",
42
+ "goal": "当目标为实时粒度时先切到近1天,确保回切实时会触发接口刷新",
43
+ "when": "equals(payload.metricPeriodValue, 'Real')",
44
+ "tool": "trigger_action",
45
+ "args": {
46
+ "action": "switch_metric_period",
47
+ "actionInput": {
48
+ "metricPeriodValue": "Day"
49
+ },
50
+ "locators": [
51
+ {
52
+ "kind": "xpath",
53
+ "value": "//input[@type='radio' and @value='Day']/ancestor::label[1]",
54
+ "priority": 1
55
+ }
56
+ ]
57
+ }
58
+ },
59
+ {
60
+ "nodeId": "s2c_day",
61
+ "name": "prepare_day_metrics",
62
+ "goal": "当目标为近1天时先切到实时,确保重新切回近1天会触发接口刷新",
63
+ "when": "equals(payload.metricPeriodValue, 'Day')",
64
+ "tool": "trigger_action",
65
+ "args": {
66
+ "action": "switch_metric_period",
67
+ "actionInput": {
68
+ "metricPeriodValue": "Real"
69
+ },
70
+ "locators": [
71
+ {
72
+ "kind": "xpath",
73
+ "value": "//input[@type='radio' and @value='Real']/ancestor::label[1]",
74
+ "priority": 1
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ {
80
+ "nodeId": "s2c_week",
81
+ "name": "prepare_week_metrics",
82
+ "goal": "当目标为近7天时先切到实时,确保重新切回近7天会触发接口刷新",
83
+ "when": "equals(payload.metricPeriodValue, 'Week')",
84
+ "tool": "trigger_action",
85
+ "args": {
86
+ "action": "switch_metric_period",
87
+ "actionInput": {
88
+ "metricPeriodValue": "Real"
89
+ },
90
+ "locators": [
91
+ {
92
+ "kind": "xpath",
93
+ "value": "//input[@type='radio' and @value='Real']/ancestor::label[1]",
94
+ "priority": 1
95
+ }
96
+ ]
97
+ }
98
+ },
99
+ {
100
+ "nodeId": "s2c_month",
101
+ "name": "prepare_month_metrics",
102
+ "goal": "当目标为近30天时先切到实时,确保重新切回近30天会触发接口刷新",
103
+ "when": "equals(payload.metricPeriodValue, 'Month')",
104
+ "tool": "trigger_action",
105
+ "args": {
106
+ "action": "switch_metric_period",
107
+ "actionInput": {
108
+ "metricPeriodValue": "Real"
109
+ },
110
+ "locators": [
111
+ {
112
+ "kind": "xpath",
113
+ "value": "//input[@type='radio' and @value='Real']/ancestor::label[1]",
114
+ "priority": 1
115
+ }
116
+ ]
117
+ }
118
+ },
119
+ {
120
+ "nodeId": "s2c_promotion",
121
+ "name": "prepare_promotion_metrics",
122
+ "goal": "当目标为大促时先切到实时,确保重新切回大促会触发接口刷新",
123
+ "when": "equals(payload.metricPeriodValue, 'Promotion')",
124
+ "tool": "trigger_action",
125
+ "args": {
126
+ "action": "switch_metric_period",
127
+ "actionInput": {
128
+ "metricPeriodValue": "Real"
129
+ },
130
+ "locators": [
131
+ {
132
+ "kind": "xpath",
133
+ "value": "//input[@type='radio' and @value='Real']/ancestor::label[1]",
134
+ "priority": 1
135
+ }
136
+ ]
137
+ }
138
+ },
34
139
  {
35
140
  "nodeId": "s3",
36
- "name": "invoke_homepage_api",
37
- "goal": "从页面经营数据卡片中提取经营数据",
141
+ "name": "refresh_homepage_metrics",
142
+ "goal": "点击指定时间粒度按钮并捕获首页经营指标接口响应",
143
+ "tool": "trigger_action",
144
+ "args": {
145
+ "action": "switch_metric_period",
146
+ "actionInput": {
147
+ "metricPeriodValue": "{{data.metricPeriodValue}}"
148
+ },
149
+ "locators": [
150
+ {
151
+ "kind": "xpath",
152
+ "value": "//input[@type='radio' and @value='{{data.metricPeriodValue}}']/ancestor::label[1]",
153
+ "priority": 1
154
+ }
155
+ ],
156
+ "captureNetwork": {
157
+ "capturePlanId": "homepage_metrics"
158
+ }
159
+ }
160
+ },
161
+ {
162
+ "nodeId": "s4",
163
+ "name": "collect_homepage_metrics",
164
+ "goal": "从首页接口响应中投影经营数据与全店收支数据",
38
165
  "tool": "collect_structured_data",
39
166
  "args": {
40
- "extractor": "homepage_operating_data"
167
+ "extractor": "homepage_metrics_capture",
168
+ "sourceNodeId": "s3",
169
+ "metricPeriodValue": "{{data.metricPeriodValue}}"
41
170
  },
42
171
  "storeAs": "homepageApiResult",
43
172
  "outputs": [
@@ -23,6 +23,12 @@
23
23
  "description": "目标抓取问大家数量,默认 60",
24
24
  "default": 60
25
25
  },
26
+ {
27
+ "name": "includeAskAnswers",
28
+ "type": "boolean",
29
+ "description": "是否采集问大家,默认 false",
30
+ "default": false
31
+ },
26
32
  {
27
33
  "name": "returnHostPatterns",
28
34
  "type": "array",
@@ -106,7 +112,8 @@
106
112
  "tool": "trigger_action",
107
113
  "args": {
108
114
  "action": "open_ask_answers"
109
- }
115
+ },
116
+ "when": "equals(payload.includeAskAnswers, true)"
110
117
  },
111
118
  {
112
119
  "nodeId": "s8",
@@ -121,7 +128,8 @@
121
128
  "targetAskAnswerCount": "payload.targetAskAnswerCount"
122
129
  },
123
130
  "storeAs": "askAnswersData",
124
- "outputs": ["askAnswersData"]
131
+ "outputs": ["askAnswersData"],
132
+ "when": "equals(payload.includeAskAnswers, true)"
125
133
  },
126
134
  {
127
135
  "nodeId": "s9",