
根据用户输入的主题、年级和画面比例,自动生成符合A4打印标准的手抄报黑白线稿模板。深度解析合规约束(如国庆节禁用国旗国徽)与排版策略,精准构建生图提示词,生成高清线稿图并缩放适配A4打印尺寸,孩子只需涂色和填字即可完成。
{
"workflow_id": "handwritten_newspaper_template_generator",
"input": {
"ratio": {
"field_name": "ratio",
"default": "4:3",
"description": "画面宽高比,可选值:4:3、3:4、16:9、1:1",
"example": "4:3",
"required": false,
"type": "string"
},
"theme": {
"field_name": "theme",
"default": "",
"description": "手抄报主题(如国庆节、中秋节、植树节、消防日等)",
"example": "国庆节",
"required": true,
"type": "string"
},
"grade": {
"field_name": "grade",
"default": "低年级",
"description": "年级段(低/中/高年级),决定排版复杂度与留白比例",
"example": "低年级",
"required": true,
"type": "string"
}
},
"steps": [
{
"id": "step_0_prompt_guardian",
"point_code": "1",
"api_code": "prompt_guardian",
"backend_type": "sys_api",
"status": "PENDING",
"name": "合规校验优化",
"action": "run",
"params": []
},
{
"id": "step_1_intent_analyze",
"point_code": "",
"result": [],
"api_code": "handwritten_newspaper_intent_analyze",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "手抄报意图解析与排版策略生成",
"action": "run",
"params": {
"theme": "{{@input.theme}}",
"grade": "{{@input.grade}}"
}
},
{
"id": "step_2_prompt_generate",
"point_code": "",
"result": [],
"api_code": "handwritten_newspaper_prompt_generate",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "手抄报黑白线稿生图提示词生成",
"action": "run",
"params": {
"decorative_elements": "{{@step_1_intent_analyze.result.data.decorative_elements}}",
"title_text": "{{@step_1_intent_analyze.result.data.title_text}}",
"compliance_constraints": "{{@step_1_intent_analyze.result.data.compliance_constraints}}",
"layout_strategy": "{{@step_1_intent_analyze.result.data.layout_strategy}}"
},
"depends_on": [
"step_1_intent_analyze"
]
},
{
"id": "step_3_start_image_task",
"point_code": "1",
"result": [],
"api_code": "3373",
"backend_type": "sys_api",
"status": "PENDING",
"name": "启动手抄报线稿图像生成任务",
"action": "run",
"params": {
"prompt": "{{@step_2_prompt_generate.result.data.positive_prompt}}, {{@step_2_prompt_generate.result.data.negative_prompt}}",
"aspect_ratio": "{{@input.ratio}}"
},
"depends_on": [
"step_2_prompt_generate"
]
},
{
"point_code": "",
"id": "step_4_poll_image_status",
"result": [],
"backend_type": "sys_api",
"api_code": "polling",
"name": "轮询手抄报线稿图像生成状态",
"action": "run",
"params": {
"result_url": "{{@step_3_start_image_task.result.data.result_url}}"
},
"depends_on": [
"step_3_start_image_task"
],
"polling": {
"interval_seconds": 5,
"timeout_seconds": 1200,
"success_condition": "{{@step_4_poll_image_status.result.data.task_status}} === 'SUCCEEDED'"
}
},
{
"id": "step_5_resize_for_a4",
"point_code": "8",
"result": [],
"api_code": "1",
"backend_type": "sys_api",
"status": "PENDING",
"name": "A4打印尺寸适配缩放",
"action": "run",
"params": {
"height": "2400",
"width": "3200",
"src_img_url": "{{@step_4_poll_image_status.result.data.result_url}}",
"type": "size",
"keepRate": "1"
},
"depends_on": [
"step_4_poll_image_status"
]
}
],
"output": {
"title_text": {
"field_name": "title_text",
"description": "模板中的标题文字信息(包含简体中文内容及艺术字风格)",
"value": "{{@step_1_intent_analyze.result.data.title_text}}",
"type": "object"
},
"compliance_constraints": {
"field_name": "compliance_constraints",
"description": "合规约束信息(包含禁用元素及替换建议)",
"value": "{{@step_1_intent_analyze.result.data.compliance_constraints}}",
"type": "object"
},
"layout_strategy": {
"field_name": "layout_strategy",
"description": "根据年级生成的排版策略(包含留白框数量、插画比例等)",
"value": "{{@step_1_intent_analyze.result.data.layout_strategy}}",
"type": "object"
},
"template_image_url": {
"field_name": "template_image_url",
"description": "最终生成的A4打印适配手抄报黑白线稿模板图URL",
"value": "{{@step_5_resize_for_a4.result.data.des_pic_url}}",
"type": "string"
}
}
} 提交后立即返回 task_id,系统每 2 秒自动轮询一次运行状态并可视化执行步骤,适合耗时较长的 Skill。
ratiostring画面宽高比,可选值:4:3、3:4、16:9、1:1
theme必填string手抄报主题(如国庆节、中秋节、植树节、消防日等)
grade必填string年级段(低/中/高年级),决定排版复杂度与留白比例
把这个 Skill 接入你的应用或 AI Agent —— 自带 REST API、OpenAPI 规范与 Skill 技能包。
下载技能包导入 AI Agent 客户端,即可作为技能使用
appKey={AppKey},与 API 文档一致。Skill 技能包接入教程 帮助文档
不知道如何接入?跟随图文步骤一步步完成配置
不同 Agent 客户端对技能包名称格式有不同要求,请选择你使用的客户端下载对应版本。
WorkBuddy
腾讯 Agent 客户端
DuMate
EN百度智能体 · 英文名称
阿里悟空
EN阿里 Agent · 英文名称
QoderWork CN
EN编程智能体 · 英文名称
QwenPaw
通义千问 Agent
Trae Work
字节跳动 Agent
有道 LobsterAI
网易有道智能体
智谱 AutoClaw
智谱 AI Agent
Codex
Codex AI Agent
标注 EN 的客户端要求 Skill 英文命名,其余使用中文命名版本。

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

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

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

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