|
| 1 | +import { defineTool } from '@tool/type'; |
| 2 | +import { FlowNodeInputTypeEnum, WorkflowIOValueTypeEnum } from '@tool/type/fastgpt'; |
| 3 | +import { ToolTagEnum } from '@tool/type/tags'; |
| 4 | + |
| 5 | +export default defineTool({ |
| 6 | + name: { |
| 7 | + 'zh-CN': 'SEO关键词挖掘工具', |
| 8 | + en: 'SEO Keyword Miner' |
| 9 | + }, |
| 10 | + tags: [ToolTagEnum.enum.tools], |
| 11 | + description: { |
| 12 | + 'zh-CN': '基于5118 API的海量长尾关键词挖掘工具,获取关键词搜索量和指数数据', |
| 13 | + en: 'Massive long-tail keyword mining tool based on 5118 API,获取 keyword search volume and index data' |
| 14 | + }, |
| 15 | + toolDescription: |
| 16 | + 'A powerful SEO tool for mining long-tail keywords using 5118 API. Provides search volume data and keyword metrics for SEO optimization.', |
| 17 | + secretInputConfig: [ |
| 18 | + { |
| 19 | + key: 'apiKey', |
| 20 | + label: '5118 API Key', |
| 21 | + description: |
| 22 | + '在 5118 控制台获取 API Key。文档:https://www.5118.com/apistore/detail/8cf3d6ed-2b12-ed11-8da8-e43d1a103141/-1', |
| 23 | + required: true, |
| 24 | + inputType: 'secret' |
| 25 | + } |
| 26 | + ], |
| 27 | + versionList: [ |
| 28 | + { |
| 29 | + value: '1.0.0', |
| 30 | + description: '5118 SEO关键词挖掘', |
| 31 | + inputs: [ |
| 32 | + { |
| 33 | + key: 'keyword', |
| 34 | + label: '种子关键词', |
| 35 | + description: '输入要挖掘的关键词', |
| 36 | + renderTypeList: [FlowNodeInputTypeEnum.input, FlowNodeInputTypeEnum.reference], |
| 37 | + valueType: WorkflowIOValueTypeEnum.string, |
| 38 | + required: true, |
| 39 | + placeholder: '请输入关键词', |
| 40 | + toolDescription: '输入要挖掘的关键词' |
| 41 | + }, |
| 42 | + { |
| 43 | + key: 'pageIndex', |
| 44 | + label: '页码', |
| 45 | + description: '当前分页,默认第1页', |
| 46 | + renderTypeList: [FlowNodeInputTypeEnum.input, FlowNodeInputTypeEnum.reference], |
| 47 | + valueType: WorkflowIOValueTypeEnum.number, |
| 48 | + placeholder: '请输入页码', |
| 49 | + toolDescription: '当前分页,默认第1页' |
| 50 | + }, |
| 51 | + { |
| 52 | + key: 'pageSize', |
| 53 | + label: '每页数量', |
| 54 | + description: '每页返回数据的数量,最大100条,默认100条', |
| 55 | + renderTypeList: [FlowNodeInputTypeEnum.input, FlowNodeInputTypeEnum.reference], |
| 56 | + valueType: WorkflowIOValueTypeEnum.number, |
| 57 | + placeholder: '请输入每页数量', |
| 58 | + toolDescription: '每页返回数据的数量,最大100条,默认100条' |
| 59 | + }, |
| 60 | + { |
| 61 | + key: 'sortFields', |
| 62 | + label: '排序字段', |
| 63 | + description: |
| 64 | + '排序字段(2:竞价公司数量,3:长尾词数量,4:流量指数,5:百度移动指数,6:360好搜指数,7:PC日检索量,8:移动日检索量,9:竞争激烈程度)', |
| 65 | + renderTypeList: [FlowNodeInputTypeEnum.input, FlowNodeInputTypeEnum.reference], |
| 66 | + valueType: WorkflowIOValueTypeEnum.number, |
| 67 | + placeholder: '请输入排序字段', |
| 68 | + toolDescription: |
| 69 | + '排序字段(2:竞价公司数量,3:长尾词数量,4:流量指数,5:百度移动指数,6:360好搜指数,7:PC日检索量,8:移动日检索量,9:竞争激烈程度)', |
| 70 | + list: [ |
| 71 | + { |
| 72 | + label: '竞价公司数量', |
| 73 | + value: '2' |
| 74 | + }, |
| 75 | + { |
| 76 | + label: '长尾词数量', |
| 77 | + value: '3' |
| 78 | + }, |
| 79 | + { |
| 80 | + label: '流量指数', |
| 81 | + value: '4' |
| 82 | + }, |
| 83 | + { |
| 84 | + label: '百度移动指数', |
| 85 | + value: '5' |
| 86 | + }, |
| 87 | + { |
| 88 | + label: '360好搜指数', |
| 89 | + value: '6' |
| 90 | + }, |
| 91 | + { |
| 92 | + label: 'PC日检索量', |
| 93 | + value: '7' |
| 94 | + }, |
| 95 | + { |
| 96 | + label: '移动日检索量', |
| 97 | + value: '8' |
| 98 | + }, |
| 99 | + { |
| 100 | + label: '竞争激烈程度', |
| 101 | + value: '9' |
| 102 | + } |
| 103 | + ] |
| 104 | + }, |
| 105 | + { |
| 106 | + key: 'sortType', |
| 107 | + label: '排序方式', |
| 108 | + description: '升序或降序(asc:升序,desc:降序)', |
| 109 | + renderTypeList: [FlowNodeInputTypeEnum.input, FlowNodeInputTypeEnum.reference], |
| 110 | + valueType: WorkflowIOValueTypeEnum.string, |
| 111 | + placeholder: '请输入排序方式', |
| 112 | + toolDescription: '升序或降序(asc:升序,desc:降序)', |
| 113 | + list: [ |
| 114 | + { |
| 115 | + label: '升序', |
| 116 | + value: 'asc' |
| 117 | + }, |
| 118 | + { |
| 119 | + label: '降序', |
| 120 | + value: 'desc' |
| 121 | + } |
| 122 | + ] |
| 123 | + }, |
| 124 | + { |
| 125 | + key: 'filter', |
| 126 | + label: '快捷过滤', |
| 127 | + description: |
| 128 | + '过滤条件(1:所有词,2:所有流量词,3:流量指数词,4:移动指数词,5:360指数词,6:流量特点词,7:PC日检索量词,8:移动日检索量,9:存在竞价的词)', |
| 129 | + renderTypeList: [FlowNodeInputTypeEnum.input, FlowNodeInputTypeEnum.reference], |
| 130 | + valueType: WorkflowIOValueTypeEnum.number, |
| 131 | + placeholder: '请输入快捷过滤', |
| 132 | + toolDescription: |
| 133 | + '过滤条件(1:所有词,2:所有流量词,3:流量指数词,4:移动指数词,5:360指数词,6:流量特点词,7:PC日检索量词,8:移动日检索量,9:存在竞价的词)', |
| 134 | + list: [ |
| 135 | + { |
| 136 | + label: '所有词', |
| 137 | + value: '1' |
| 138 | + }, |
| 139 | + { |
| 140 | + label: '所有流量词', |
| 141 | + value: '2' |
| 142 | + }, |
| 143 | + { |
| 144 | + label: '流量指数词', |
| 145 | + value: '3' |
| 146 | + }, |
| 147 | + { |
| 148 | + label: '移动指数词', |
| 149 | + value: '4' |
| 150 | + }, |
| 151 | + { |
| 152 | + label: '360指数词', |
| 153 | + value: '5' |
| 154 | + }, |
| 155 | + { |
| 156 | + label: '流量特点词', |
| 157 | + value: '6' |
| 158 | + }, |
| 159 | + { |
| 160 | + label: 'PC日检索量词', |
| 161 | + value: '7' |
| 162 | + }, |
| 163 | + { |
| 164 | + label: '移动日检索量', |
| 165 | + value: '8' |
| 166 | + }, |
| 167 | + { |
| 168 | + label: '存在竞价的词', |
| 169 | + value: '9' |
| 170 | + } |
| 171 | + ] |
| 172 | + }, |
| 173 | + { |
| 174 | + key: 'filterDate', |
| 175 | + label: '筛选日期', |
| 176 | + description: '筛选日期(格式:yyyy-MM-dd),可选', |
| 177 | + renderTypeList: [FlowNodeInputTypeEnum.input, FlowNodeInputTypeEnum.reference], |
| 178 | + valueType: WorkflowIOValueTypeEnum.string, |
| 179 | + placeholder: '请输入筛选日期', |
| 180 | + toolDescription: '筛选日期(格式:yyyy-MM-dd),可选' |
| 181 | + } |
| 182 | + ], |
| 183 | + outputs: [ |
| 184 | + { |
| 185 | + valueType: WorkflowIOValueTypeEnum.string, |
| 186 | + key: 'keywords', |
| 187 | + label: '关键词列表', |
| 188 | + description: '挖掘到的相关关键词及其数据(JSON格式)' |
| 189 | + }, |
| 190 | + { |
| 191 | + valueType: WorkflowIOValueTypeEnum.number, |
| 192 | + key: 'total', |
| 193 | + label: '总数量', |
| 194 | + description: '找到的关键词总数' |
| 195 | + }, |
| 196 | + { |
| 197 | + valueType: WorkflowIOValueTypeEnum.number, |
| 198 | + key: 'pageCount', |
| 199 | + label: '总页数', |
| 200 | + description: '分页的总页数' |
| 201 | + }, |
| 202 | + { |
| 203 | + valueType: WorkflowIOValueTypeEnum.number, |
| 204 | + key: 'pageIndex', |
| 205 | + label: '当前页码', |
| 206 | + description: '当前返回的页码' |
| 207 | + }, |
| 208 | + { |
| 209 | + valueType: WorkflowIOValueTypeEnum.number, |
| 210 | + key: 'pageSize', |
| 211 | + label: '每页数量', |
| 212 | + description: '每页返回的关键词数量' |
| 213 | + } |
| 214 | + ] |
| 215 | + } |
| 216 | + ] |
| 217 | +}); |
0 commit comments