创建时间: 2026-06-12 12:20 | 步骤: 6 个
根据用户输入的城市或景点,自动消歧识别准确省市,查询实时天气,提炼城市地标并设计构图,融合天气、地标、日期及指定风格生成专业提示词,最终生成精美的城市天气宣传画报
{
"workflow_id": "city_weather_poster_generator",
"input": {
"style": {
"field_name": "style",
"default": "水墨画",
"description": "绘画风格(可选值:吉卜力漫画、水墨画、浪漫主义、扁平插画)",
"example": "水墨画",
"type": "string",
"required": false
},
"ratio": {
"field_name": "ratio",
"default": "9:16",
"description": "画面宽高比(可选值:1:1、3:4、4:3、16:9、9:16)",
"example": "9:16",
"type": "string",
"required": false
},
"city": {
"field_name": "city",
"default": "",
"description": "城市名或景点名(建议输入格式:省份+城市,如'陕西西安',以避免歧义;若仅输入城市名如'西安',系统将自动消歧识别)",
"example": "西安",
"type": "string",
"required": true
}
},
"steps": [
{
"id": "step_1_city_disambiguate",
"point_code": "",
"result": [],
"api_code": "city_disambiguate",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "城市消歧与补全",
"action": "run",
"params": {
"city": "{{@input.city}}"
}
},
{
"id": "step_2_get_weather",
"point_code": "2",
"result": [],
"api_code": "9",
"backend_type": "sys_api",
"status": "PENDING",
"name": "查询城市天气",
"action": "run",
"params": {
"area": "{{@step_1_city_disambiguate.result.data.standard_city_name}}"
},
"depends_on": [
"step_1_city_disambiguate"
]
},
{
"id": "step_3_landmark_composition",
"point_code": "",
"result": [],
"api_code": "landmark_composition_design",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "地标提炼与构图设计",
"action": "run",
"params": {
"city_name": "{{@step_1_city_disambiguate.result.data.city_name}}",
"province": "{{@step_1_city_disambiguate.result.data.province}}"
},
"depends_on": [
"step_1_city_disambiguate"
]
},
{
"id": "step_4_generate_poster_prompt",
"point_code": "",
"result": [],
"api_code": "poster_prompt_generate",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "画报提示词生成",
"action": "run",
"params": {
"composition_layout": "{{@step_3_landmark_composition.result.data.composition_layout}}",
"city_name": "{{@step_1_city_disambiguate.result.data.city_name}}",
"landmarks": "{{@step_3_landmark_composition.result.data.result}}",
"style": "{{@input.style}}",
"temp_max": "{{@step_2_get_weather.result.data.f1.day_air_temperature}}",
"transition_elements": "{{@step_3_landmark_composition.result.data.transition_elements}}",
"temp_min": "{{@step_2_get_weather.result.data.f1.night_air_temperature}}",
"weather_condition": "{{@step_2_get_weather.result.data.now.weather}}",
"date": "{{@step_2_get_weather.result.data.f1.day}}"
},
"depends_on": [
"step_2_get_weather",
"step_3_landmark_composition"
]
},
{
"id": "step_5_generate_image",
"point_code": "1",
"result": [],
"api_code": "3373",
"backend_type": "sys_api",
"status": "PENDING",
"name": "生成画报图像",
"action": "run",
"params": {
"prompt": "{{@step_4_generate_poster_prompt.result.data.result}}",
"aspect_ratio": "{{@input.ratio}}"
},
"depends_on": [
"step_4_generate_poster_prompt"
]
},
{
"id": "step_6_poll_image_status",
"point_code": "",
"result": [],
"api_code": "polling",
"backend_type": "sys_api",
"status": "PENDING",
"name": "轮询画报生成状态",
"action": "run",
"params": {
"result_url": "{{@step_5_generate_image.result.data.result_url}}"
},
"depends_on": [
"step_5_generate_image"
],
"polling": {
"interval_seconds": 6,
"timeout_seconds": 600,
"success_condition": "{{@step_6_poll_image_status.result.data.task_status}} === 'SUCCEEDED'"
}
}
],
"output": {
"city_name": {
"field_name": "city_name",
"description": "消歧后的标准城市名(省份+城市)",
"value": "{{@step_1_city_disambiguate.result.data.standard_city_name}}",
"type": "string"
},
"poster_prompt": {
"field_name": "poster_prompt",
"description": "生成画报所用的专业提示词",
"value": "{{@step_4_generate_poster_prompt.result.data.result}}",
"type": "string"
},
"weather_condition": {
"field_name": "weather_condition",
"description": "当前天气状况",
"value": "{{@step_2_get_weather.result.data.now.weather}}",
"type": "string"
},
"temperature_range": {
"field_name": "temperature_range",
"description": "今日最低温~最高温(℃)",
"value": "{{@step_2_get_weather.result.data.f1.night_air_temperature}}℃~{{@step_2_get_weather.result.data.f1.day_air_temperature}}℃",
"type": "string"
},
"poster_image_url": {
"field_name": "poster_image_url",
"description": "生成的城市天气宣传画报图片URL",
"value": "{{@step_6_poll_image_status.result.data.result_url}}",
"type": "string"
}
}
} 提交后立即返回 task_id,系统每 2 秒自动轮询一次运行状态并可视化执行步骤,适合耗时较长的 Skill。
stylestring绘画风格(可选值:吉卜力漫画、水墨画、浪漫主义、扁平插画)
ratiostring画面宽高比(可选值:1:1、3:4、4:3、16:9、9:16)
city必填string城市名或景点名(建议输入格式:省份+城市,如'陕西西安',以避免歧义;若仅输入城市名如'西安',系统将自动消歧识别)
把这个 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