Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions modules/tool/packages/wechatOfficialAccount/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,62 @@

按照如图所示的方式获取密钥
![](./assets/get-secrets.jpg)

在 FastGPT 云服务版本使用时
海外版用户(cloud.fastgpt.io)可以填写下面的 IP 白名单:

```
35.240.227.100
34.124.237.188
34.143.240.160
34.87.51.146
34.87.79.202
35.247.163.68
34.87.102.86
35.198.192.104
34.126.163.205
34.124.189.116
34.143.149.171
34.87.173.252
34.142.157.52
34.87.180.104
34.87.20.189
34.87.110.152
34.87.44.74
34.87.152.33
35.197.149.75
35.247.161.35
```

国内版用户(fastgpt.cn)可以填写下面的 IP 白名单:

```
47.97.1.240
121.43.105.217
121.41.178.7
121.40.65.187
47.97.59.172
101.37.205.32
120.55.195.90
120.26.229.115
120.55.193.112
47.98.190.173
112.124.41.79
121.196.235.183
121.41.75.88
121.43.108.48
112.124.12.6
121.43.52.222
121.199.162.43
121.199.162.102
120.55.94.163
47.99.59.223
112.124.46.5
121.40.46.247
120.26.145.73
120.26.147.199
121.43.125.163
121.196.228.45
121.43.126.202
120.26.144.37
```
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,143 @@ export default defineTool({
toolDescription:
'将 Markdown 内容转换为微信公众号图文消息格式,自动处理图片上传和封面图,然后保存到草稿箱。支持标题、作者、摘要等信息的自定义配置。',
versionList: [
{
value: '0.2.0',
description: '批量上传版本(支持多篇文档)',
inputs: [
{
key: 'accessToken',
label: '访问令牌',
description: '微信公众号 API 访问令牌(可选,与 appId/appSecret 二选一)',
renderTypeList: [FlowNodeInputTypeEnum.input, FlowNodeInputTypeEnum.reference],
valueType: WorkflowIOValueTypeEnum.string,
required: false
},
{
key: 'markdownContent',
label: 'Markdown 内容',
description: '要转换的 Markdown 格式文章内容,支持单个字符串或字符串数组(多篇文档)',
renderTypeList: [
FlowNodeInputTypeEnum.reference,
FlowNodeInputTypeEnum.textarea,
FlowNodeInputTypeEnum.JSONEditor
],
valueType: WorkflowIOValueTypeEnum.string,
toolDescription: 'markdown format content or array of markdown contents',
required: true
},
{
key: 'coverImage',
label: '封面图',
description:
'封面图片 URL 或 media_id,如果是 URL 将自动上传为永久素材。支持单个字符串或字符串数组(多篇文档对应多个封面图)',
renderTypeList: [
FlowNodeInputTypeEnum.input,
FlowNodeInputTypeEnum.reference,
FlowNodeInputTypeEnum.JSONEditor
],
valueType: WorkflowIOValueTypeEnum.string,
required: true,
toolDescription: 'cover image url or media_id or array of cover images'
},
{
key: 'title',
label: '文章标题',
description:
'图文消息的标题,支持单个字符串或字符串数组。如果不填写将尝试从 Markdown 中提取',
renderTypeList: [
FlowNodeInputTypeEnum.input,
FlowNodeInputTypeEnum.reference,
FlowNodeInputTypeEnum.JSONEditor
],
valueType: WorkflowIOValueTypeEnum.string,
required: true,
toolDescription: 'article title or array of article titles'
},
{
key: 'author',
label: '作者',
description: '文章作者信息,支持单个字符串或字符串数组',
renderTypeList: [
FlowNodeInputTypeEnum.input,
FlowNodeInputTypeEnum.reference,
FlowNodeInputTypeEnum.JSONEditor
],
valueType: WorkflowIOValueTypeEnum.string,
required: false,
toolDescription: 'article author or array of authors'
},
{
key: 'digest',
label: '文章摘要',
description: '文章摘要信息,如果不填写将自动从内容中提取。支持单个字符串或字符串数组',
renderTypeList: [
FlowNodeInputTypeEnum.reference,
FlowNodeInputTypeEnum.textarea,
FlowNodeInputTypeEnum.JSONEditor
],
valueType: WorkflowIOValueTypeEnum.string,
required: false,
toolDescription:
'article digest or array of digests, optional, less than 120 characters each'
},
{
key: 'contentSourceUrl',
label: '原文链接',
description: '原文阅读链接地址,支持单个字符串或字符串数组',
renderTypeList: [
FlowNodeInputTypeEnum.input,
FlowNodeInputTypeEnum.reference,
FlowNodeInputTypeEnum.JSONEditor
],
valueType: WorkflowIOValueTypeEnum.string,
required: false,
toolDescription: 'original article link or array of links'
},
{
key: 'needOpenComment',
label: '开启评论',
description: '是否开启评论功能,0 表示关闭,1 表示开启。支持单个数字或数字数组',
renderTypeList: [
FlowNodeInputTypeEnum.input,
FlowNodeInputTypeEnum.reference,
FlowNodeInputTypeEnum.JSONEditor
],
valueType: WorkflowIOValueTypeEnum.number,
required: false
},
{
key: 'onlyFansCanComment',
label: '仅粉丝评论',
description:
'是否仅允许粉丝评论,0 表示所有人可评论,1 表示仅粉丝可评论。支持单个数字或数字数组',
renderTypeList: [
FlowNodeInputTypeEnum.input,
FlowNodeInputTypeEnum.reference,
FlowNodeInputTypeEnum.JSONEditor
],
valueType: WorkflowIOValueTypeEnum.number,
required: false
}
],
outputs: [
{
valueType: WorkflowIOValueTypeEnum.string,
key: 'media_id',
label: '素材ID',
description: '草稿箱中图文消息的媒体标识符'
},
{
valueType: WorkflowIOValueTypeEnum.string,
key: 'error_message',
label: '错误信息',
description: '处理过程中的错误信息'
}
]
},
{
value: '0.1.0',
description: 'Default version',
description: '单篇文章上传版本',
inputs: [
{
key: 'accessToken',
Expand Down
Loading