创建时间: 2026-06-23 11:11 | 步骤: 8 个
依托用户上传的食品包装标签原图,通过意图解析、OCR深度提取、合规判定、健康评分、过敏原与儿童指引生成、构图提示词构建及异步图像生成,产出8K高清矢量质感的专业食品配料检测分析图文报告图,完整覆盖国标合规判定、风险标注、过敏原警示、儿童指引、添加剂拆解、健康评分、主料解析与营养解读。
{
"workflow_id": "smart_food_label_inspection_report",
"input": {
"image": {
"field_name": "image",
"default": "",
"description": "食品外包装标签原图,需完整包含配料表、营养成分、过敏原、储存、生产厂家等文字区域。传入标准Base64编码字符串(或普通URL)",
"example": "https://oss.showapi.com/doc/4888/16/7264cb136cb1_1780386250785.jpg?x-oss-process=image/resize,p_100",
"type": "base64",
"required": true
},
"aspect_ratio": {
"field_name": "aspect_ratio",
"default": "3:4",
"description": "成品报告图宽高比例,可选枚举:1:1、3:4、4:3、16:9、9:16",
"example": "4:3",
"type": "string",
"required": false
}
},
"steps": [
{
"id": "step_1_intent_analyzer",
"point_code": "",
"result": [],
"api_code": "intent_analyzer",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "食品检测意图深度解析",
"action": "run",
"params": {
"user_requirement": "智能食品配料检查:上传食品包装标签原图,自动识别提取全部配料、营养成分、添加剂、致敏物质信息,生成合规专业检测分析图文报告图。完整覆盖国标合规判定、风险成分标注、过敏原提醒、儿童食用指引、各类添加剂拆解、健康评分、主料解析、营养构成解读。严格依据GB 7718判定合规性,风险标注客观有据不夸大;分类拆解防腐剂、人工色素、合成甜味剂不混杂;健康评分算法统一稳定;儿童建议贴合配料客观给出;致敏成分高亮警示。构图约束:模块化分区规整排版依次设置8大板块,8K高清矢量质感,干净低饱和商务配色,重点风险醒目突出。",
"aspect_ratio": "{{@input.aspect_ratio}}"
}
},
{
"id": "step_2_food_label_ocr_extract",
"point_code": "",
"result": [],
"api_code": "food_label_ocr_extract",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "食品标签原图深度OCR与结构化提取",
"action": "run",
"params": {
"img_list": [
{
"url": "{{@input.image}}"
}
],
"user_prompt": "完整识别图中食品包装标签全部文字信息,包括配料表、营养成分表(含每项数值与NRV%)、添加剂列表、过敏原提示、储存条件、生产厂家信息,结构化输出为JSON格式,不遗漏不篡改任何原始文字数据"
}
},
{
"id": "step_3_ingredient_compliance_analyze",
"point_code": "",
"result": [],
"api_code": "ingredient_compliance_analyze",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "食品配料合规判定与添加剂分类拆解",
"action": "run",
"params": {
"additives_list": "{{@step_2_food_label_ocr_extract.result.data.additives_list}}",
"detection_standards": "{{@step_1_intent_analyzer.result.data.detection_standards}}",
"raw_ingredients_list": "{{@step_2_food_label_ocr_extract.result.data.raw_ingredients_list}}"
},
"depends_on": [
"step_1_intent_analyzer",
"step_2_food_label_ocr_extract"
]
},
{
"id": "step_4_health_score_nutrition_interpret",
"point_code": "",
"result": [],
"api_code": "health_score_nutrition_interpret",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "食品健康评分计算与营养解读",
"action": "run",
"params": {
"nutrition_data": "{{@step_2_food_label_ocr_extract.result.data.nutrition_data}}",
"additive_classification": "{{@step_3_ingredient_compliance_analyze.result.data.additive_classification}}",
"risk_ingredients": "{{@step_3_ingredient_compliance_analyze.result.data.risk_ingredients}}",
"scoring_rules": "{{@step_1_intent_analyzer.result.data.scoring_rules}}"
},
"depends_on": [
"step_1_intent_analyzer",
"step_2_food_label_ocr_extract",
"step_3_ingredient_compliance_analyze"
]
},
{
"id": "step_5_allergen_child_guidance_generate",
"point_code": "",
"result": [],
"api_code": "allergen_child_guidance_generate",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "食品过敏原警示与儿童食用指引生成",
"action": "run",
"params": {
"additive_classification": "{{@step_3_ingredient_compliance_analyze.result.data.additive_classification}}",
"risk_ingredients": "{{@step_3_ingredient_compliance_analyze.result.data.risk_ingredients}}",
"raw_ingredients_list": "{{@step_2_food_label_ocr_extract.result.data.raw_ingredients_list}}",
"allergens_list": "{{@step_2_food_label_ocr_extract.result.data.allergens_list}}"
},
"depends_on": [
"step_2_food_label_ocr_extract",
"step_3_ingredient_compliance_analyze"
]
},
{
"id": "step_6_report_composite_prompt_build",
"point_code": "",
"result": [],
"api_code": "report_composite_prompt_build",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "食品检测报告构图提示词生成",
"action": "run",
"params": {
"additive_classification": "{{@step_3_ingredient_compliance_analyze.result.data.additive_classification}}",
"compliance_status": "{{@step_3_ingredient_compliance_analyze.result.data.compliance_status}}",
"allergen_warnings": "{{@step_5_allergen_child_guidance_generate.result.data.allergen_warnings}}",
"main_ingredients_analysis": "{{@step_4_health_score_nutrition_interpret.result.data.main_ingredients_analysis}}",
"risk_ingredients": "{{@step_3_ingredient_compliance_analyze.result.data.risk_ingredients}}",
"health_score": "{{@step_4_health_score_nutrition_interpret.result.data.health_score}}",
"child_consumption_advice": "{{@step_5_allergen_child_guidance_generate.result.data.child_consumption_advice}}",
"nutrition_composition_interpretation": "{{@step_4_health_score_nutrition_interpret.result.data.nutrition_composition_interpretation}}",
"aspect_ratio": "{{@input.aspect_ratio}}"
},
"depends_on": [
"step_3_ingredient_compliance_analyze",
"step_4_health_score_nutrition_interpret",
"step_5_allergen_child_guidance_generate"
]
},
{
"id": "step_7_generate_report_image",
"point_code": "1",
"result": [],
"api_code": "3373",
"backend_type": "sys_api",
"status": "PENDING",
"name": "启动检测报告图像生成任务",
"action": "run",
"params": {
"prompt": "{{@step_6_report_composite_prompt_build.result.data.optimized_image_prompt}}",
"aspect_ratio": "{{@input.aspect_ratio}}"
},
"depends_on": [
"step_6_report_composite_prompt_build"
]
},
{
"id": "step_8_poll_report_image_status",
"point_code": "",
"result": [],
"api_code": "polling",
"backend_type": "sys_api",
"status": "PENDING",
"name": "轮询检测报告图像生成状态",
"action": "run",
"params": {
"result_url": "{{@step_7_generate_report_image.result.data.result_url}}"
},
"depends_on": [
"step_7_generate_report_image"
],
"polling": {
"interval_seconds": 5,
"timeout_seconds": 600,
"success_condition": "{{@step_8_poll_report_image_status.result.data.task_status}} === 'SUCCEEDED'"
}
}
],
"output": {
"compliance_status": {
"field_name": "compliance_status",
"description": "国标合规判定总体状态",
"value": "{{@step_3_ingredient_compliance_analyze.result.data.compliance_status.overall_status}}",
"type": "string"
},
"health_score": {
"field_name": "health_score",
"description": "食品健康综合评分(0-100分制)",
"value": "{{@step_4_health_score_nutrition_interpret.result.data.health_score.total_score}}",
"type": "integer"
},
"report_image_url": {
"field_name": "report_image_url",
"description": "最终生成的8K高清食品配料检测分析图文报告图URL",
"value": "{{@step_8_poll_report_image_status.result.data.result_url}}",
"type": "string"
}
}
} 提交后立即返回 task_id,系统每 2 秒自动轮询一次运行状态并可视化执行步骤,适合耗时较长的 Skill。
image必填base64食品外包装标签原图,需完整包含配料表、营养成分、过敏原、储存、生产厂家等文字区域。传入标准Base64编码字符串(或普通URL)
aspect_ratiostring成品报告图宽高比例,可选枚举:1:1、3:4、4:3、16:9、9:16
把这个 Skill 接入你的应用或 AI Agent —— 自带 REST API、OpenAPI 规范与 Agent 技能包。
下载技能包导入 AI Agent 客户端,即可作为技能使用
appKey={AppKey},与 API 文档一致。Agent 技能包接入教程 帮助文档
不知道如何接入?跟随图文步骤一步步完成配置
不同 Agent 客户端对技能包名称格式有不同要求,请选择你使用的客户端下载对应版本。
WorkBuddy
腾讯 Agent 客户端
DuMate
EN百度智能体 · 英文名称
阿里悟空
EN阿里 Agent · 英文名称
QoderWork CN
EN编程智能体 · 英文名称
QwenPaw
通义千问 Agent
Trae Work
字节跳动 Agent
有道 LobsterAI
网易有道智能体
智谱 AutoClaw
智谱 AI Agent
CodeX
ENCodex AI Agent
标注 EN 的客户端要求 Skill 英文命名,其余使用中文命名版本。

7*24小时服务
保证您的售后无忧

1v1专属服务
保证服务质量

担保交易
全程担保交易保证资金安全

服务全程监管
全周期保证商品服务质量
© 2015-2023 WWW.SHOWAPI.COM ALL RIGHTS RESERVED.昆明秀派科技有限公司
本网站所列接口及文档全部由SHOWAPI网站提供,并对其拥有最终解释权 POWERED BY SHOWAPI