/cgi-bin/message/custom/send{
"operation": {
"method": "none"
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | Filter | 消息过滤机制 | object | — | Required | 消息过滤机制 |
| 1.1 | msgType | 允许接受的消息类型 | string | text | Required | 多个类型使用,隔开 |
| 1.2 | fromUserName | 允许接受的用户ID清单 | string | — | Optional | 允许接受的用户ID清单 |
| 1.3 | rejectedMsg | 被拒绝用户回复的消息 | string | 不被允许授权使用 | Optional | 被拒绝用户回复的消息 |
| 2 | EventMsgReply | 事件动作回复机制 | object | — | Required | 事件动作回复机制 |
| 2.1 | subscribe | 关注时回复的消息 | string | Required | 关注时回复的消息 | |
| 2.2 | notSupportedType | 不支持的消息类型回复 | string | 小青助理暂不支持这类消息类型.? 你可以向我发送文字或者说语音哦~! | Optional | 不支持的消息类型回复 |
| 2.3 | textTooLongLength | 最大的文本长度 | int | 128 | Optional | 最大的文本长度 |
| 2.4 | textTooLongMsg | 文本太长回复的消息 | string | 小青最多能够接受最大的文本长度是128个字符。你说的太多了我理解不了。 (???其实是ChatGPT tokens 消耗太大承受不起~) | Optional | 文本太长回复的消息 |
| 2.5 | textTooShortLength | 最小的文本长度 | int | 3 | Optional | 最小的文本长度 |
| 2.6 | textTooShortMsg | 文本太短回复的消息 | string | 小青助理?是一个聪明的智能助理,不屑于回答简单的问题.?建议你这边呢多打两个字 | Optional | 文本太短回复的消息 |
| 3 | Robot | 助理人格参数 | object | — | Required | 助理人格参数 |
| 3.1 | name | 姓名 | string | 小青 | Optional | 姓名 |
| 3.2 | company | 公司简称 | string | 轻易云 | Optional | 公司简称 |
| 3.3 | companyInfo | 公司介绍 | string | Optional | 公司介绍 | |
| 3.4 | personality | 预设性格 | string | 你的个性:可爱活泼的青年女生,同时又具备理性的专业知识,喜欢插科打诨的小趣味,说话间偶然夹杂emoji而显得非常调皮可爱。 | Optional | 预设性格 |
| 3.5 | duty | 工作职责 | string | Optional | 工作职责 | |
| 4 | OpenAI | OpenAI | object | — | Required | OpenAI |
| 4.1 | chatGPTApiModel | GPT模型 | string | gpt-3.5-turbo | Required | GPT模型 |
| 4.2 | chatGPTApiName | 接口名 | string | /v1/chat/completions | Optional | 接口名 |
| 4.3 | chatGPTApiUrl | 中转代理地址 | string | http://43.153.22.37:38391/api/qeasy-ai/exec?at=v43K0L9xVjn8DJE5pPlf3jcH5NFQ3ds | Optional | 中转代理地址 |
| 5 | ChatConfig | 会话参数 | object | — | Required | 会话参数 |
| 5.1 | chatTime | 一段会话保持的时间长度(秒) | int | 86400 | Optional | 一段会话保持的时间长度(秒) |
| 5.2 | chatTimes | 一段会话的最大次数 | int | 8 | Optional | 一段会话的最大次数 |
| 5.3 | chatAnswerLength | 会话中助手回复回答的内容截取长度 | int | 90 | Optional | 会话中助手回复回答的内容截取长度 |
| 6 | KnowledgeBase | 知识库 | object | — | Required | 知识库 |
| 6.1 | k1 | k1 | object | — | Optional | k1 |
| 6.1.1 | trigger | 触发关键字 | string | 小屁孩 | Optional | 触发关键字 |
| 6.1.2 | preset | 预设知识 | string | 有人说你是小屁孩时不要客气,怼他! | Optional | 预设知识 |
| 7 | SpeechRecognition | 语音回复接口 | object | — | Optional | 语音回复接口 |
No parameter reference available
The 微信公众号GPT-资产建模 API (/cgi-bin/message/custom/send) of 微信公众号 is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 微信公众号 version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.