# Plugin 插件(aigc-agent-service-smzdm-com)
Path: /api/plugin
Method: POST
接口描述: 201 输入风控校验未通过 202 输出风控校验未通过 203 未找到数据 204 AI模型错误 205 参数缺失 206 业务校验失败
// 全网数据
{
"keyword": "",
"data_type": 1, // 1.商品搜索 2.好价
"title": "",
"price": "",
"price_1": "",
"mall_name": "",
"url": "",
"focus_pic_url": "",
"internal_picture_url": "",
"prom_info": [""],
"mall_id": 0,
"comment_cnt": 0,
"sales_cnt": 0,
"index": 0
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 好价数据
{
"keyword": "",
"data_type": 1, // 1.商品搜索 2.好价
"id": "0",
"title": "",
"focus_pic_url": "",
"mall": "",
"pubdate": "",
"article_url":"",
"page_price": "",
"subtitle": ""
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
主站APP source:3,source_id:"smzdmapp" 主站APP品牌小值 source:9,source_id:"app_with_brand"
# 插件列表
插件名称 | 描述 |
---|---|
plugin_rec_v2 | 商品搜索 |
plugin_base_model | 常规问答 |
plugin_com_goods | 商品对比 |
plugin_get_answer | 全网总结 |
plugin_brand_get_answer | 品牌全网总结 |
plugin_share_order | 晒单 |
plugin_goods_wiki_model | 商品百科 |
plugin_com_price | 商品对比 |
plugin_text_to_img | 动漫头像 |
plugin_agent_intro | AI介绍 |
plugin_go_url | gourl |
plugin_customer_service | 小值客服问答 |
# 请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 |
Body Body
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
brand_id | integer | 非必须 | 当source等于9 APP品牌来源时,需要传递brand_id参数 | ||
interest_id | string | 非必须 | 当source等于5 APP兴趣页来源时,需要传递interest_id参数 | ||
is_replay | integer | 非必须 | 控制重新回答 is_replay=1 重新回答 | ||
jump_check_risk | boolean | 非必须 | 是否跳过风控 true 跳过 | ||
keyword | string | 非必须 | 问题分词 | ||
plugin_name | string | 必须 | 插件名称 | ||
question | string | 非必须 | 问题;如果只调用插件,此字段为必填。 | ||
question_id | integer | 非必须 | 问题id;如果只调用插件可填默认值:0 | ||
question_type | integer | 必须 | 内容类型,1:text 2:voice 3:picture | 枚举: 1,2,3 | |
session_id | integer | 非必须 | 会话ID;如果只调用插件可填默认值:0 | ||
source | integer | 必须 | 1:句子 2:小程序 3:主站 4:PC | ||
source_id | string | 必须 | 来源ID,如BotId或小程序Key | ||
user_id | string | 必须 | 用户ID | ||
username | string | 必须 | 用户昵称 | ||
article_url | string | 必须 | source为11的时候传 | ||
article_title | string | 必须 | source为11的时候传 |
# 返回数据
# 返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object [] | 非必须 | 返回数据 | item 类型: object | |
├─ answer_msg | string | 非必须 | 问题回答内容 | ||
├─ answer_type | string | 非必须 | 问题回答类型,answer_type_img=图片,answer_type_static_text=固定文案,answer_type_error_text=报错输出,answer_type_url=url信息,answer_type_llm_text=大模型输出文本 | ||
error_code | integer | 非必须 | 响应Code | ||
error_msg | string | 非必须 | 响应message | ||
extend_data | 非必须 | 拓展数据:如商品搜索需要返回原始数据 | |||
extend_data_v2 | 非必须 |