{
"versionNote": "string",
"canonicalSpec": {
"meta": {
"name": "文案生成模板",
"description": "根据提示词生成一句短文案",
"primaryOutputType": "text"
},
"steps": [
{
"stepId": "stp_txt001",
"displayName": "生成文案",
"executionUnit": "text-generate",
"instruction": "根据用户输入生成一句简短中文营销文案。",
"defaultModelRef": {
"modelKey": "google/gemini-2.5-flash"
},
"allowModelOverride": true
}
],
"inputSchema": {
"fields": [
{
"key": "prompt",
"label": "提示词",
"description": "希望模型参考的原始需求",
"required": true,
"valueType": "string",
"order": 1,
"sourceKind": "inline_text"
},
{
"key": "text_model",
"label": "文本生成模型(可选)",
"description": "留空时使用默认模型",
"required": false,
"valueType": "string",
"order": 2,
"sourceKind": "model_id"
}
],
"instructions": [
"每行代表一次文案生成任务。",
"模型列留空时使用模板默认模型。"
],
"sampleRows": [
{
"values": {
"prompt": "为一盏极简白色台灯写一句商品海报文案",
"text_model": ""
}
}
]
},
"fieldBindings": [
{
"fieldKey": "prompt",
"stepId": "stp_txt001",
"paramKey": "prompt",
"bindMode": "replace"
},
{
"fieldKey": "text_model",
"stepId": "stp_txt001",
"paramKey": "model",
"bindMode": "replace"
}
]
}
}