|
@@ -1,10 +1,12 @@
|
|
|
{
|
|
{
|
|
|
"name": "GenerateNote",
|
|
"name": "GenerateNote",
|
|
|
"description": "生成小红书图文笔记",
|
|
"description": "生成小红书图文笔记",
|
|
|
- "variables": {
|
|
|
|
|
- "send-btn-pos": "",
|
|
|
|
|
- "prompt": "健康减脂:科学饮食与运动习惯,适合做小红书笔记",
|
|
|
|
|
- "img-prompt-arr": [
|
|
|
|
|
|
|
+ "variables":
|
|
|
|
|
+ {
|
|
|
|
|
+ "article-prompt": "健康减脂:科学饮食与运动习惯,适合做小红书笔记",
|
|
|
|
|
+ "article": "",
|
|
|
|
|
+ "img-prompt-arr":
|
|
|
|
|
+ [
|
|
|
"健康减脂餐 轻食沙拉 低卡高蛋白 摆盘",
|
|
"健康减脂餐 轻食沙拉 低卡高蛋白 摆盘",
|
|
|
"居家有氧运动 女生健身 燃脂操"
|
|
"居家有氧运动 女生健身 燃脂操"
|
|
|
],
|
|
],
|
|
@@ -22,18 +24,9 @@
|
|
|
{
|
|
{
|
|
|
"type": "ai",
|
|
"type": "ai",
|
|
|
"method": "text2text",
|
|
"method": "text2text",
|
|
|
- "inVars": ["根据以下主题写一篇小红书风格的图文稿件,要求:长文,至少 500 字,分段清晰、吸引人、适当使用 emoji、适合发笔记。只输出稿件正文,不要标题。主题:{{prompt}}", ""],
|
|
|
|
|
|
|
+ "inVars": ["根据以下主题写一篇小红书风格的图文稿件,要求:长文,至少 500 字,分段清晰、吸引人、适当使用 emoji、适合发笔记。只输出稿件正文,不要标题。主题:{{article-prompt}}", ""],
|
|
|
"outVars": ["{article}"]
|
|
"outVars": ["{article}"]
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- "type": "save-txt",
|
|
|
|
|
- "inVars": ["{article}", "tmp/article.txt"],
|
|
|
|
|
- "outVars": []
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- "type": "echo",
|
|
|
|
|
- "inVars": ["开始生图"]
|
|
|
|
|
- },
|
|
|
|
|
{
|
|
{
|
|
|
"type": "for",
|
|
"type": "for",
|
|
|
"indexVariable": "{idx}",
|
|
"indexVariable": "{idx}",
|
|
@@ -45,11 +38,13 @@
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"type": "try",
|
|
"type": "try",
|
|
|
- "try": [
|
|
|
|
|
|
|
+ "try":
|
|
|
|
|
+ [
|
|
|
{
|
|
{
|
|
|
"type": "ai",
|
|
"type": "ai",
|
|
|
"method": "text2text",
|
|
"method": "text2text",
|
|
|
- "inVars": [
|
|
|
|
|
|
|
+ "inVars":
|
|
|
|
|
+ [
|
|
|
"请根据以下描述词找一张图片,只返回一张确认过可以正常下载的图片 URL(必须是当前可访问、能直接 GET 下载的地址),不要任何说明、markdown 或换行。描述词:{img-prompt-arr}[{idx}]",
|
|
"请根据以下描述词找一张图片,只返回一张确认过可以正常下载的图片 URL(必须是当前可访问、能直接 GET 下载的地址),不要任何说明、markdown 或换行。描述词:{img-prompt-arr}[{idx}]",
|
|
|
"doubao"
|
|
"doubao"
|
|
|
],
|
|
],
|
|
@@ -61,14 +56,17 @@
|
|
|
"outVars": []
|
|
"outVars": []
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- "fail": [
|
|
|
|
|
|
|
+ "fail":
|
|
|
|
|
+ [
|
|
|
{
|
|
{
|
|
|
"type": "try",
|
|
"type": "try",
|
|
|
- "try": [
|
|
|
|
|
|
|
+ "try":
|
|
|
|
|
+ [
|
|
|
{
|
|
{
|
|
|
"type": "ai",
|
|
"type": "ai",
|
|
|
"method": "text2text",
|
|
"method": "text2text",
|
|
|
- "inVars": [
|
|
|
|
|
|
|
+ "inVars":
|
|
|
|
|
+ [
|
|
|
"请根据描述词找一张图片,只返回一个当前可访问、能直接 GET 下载的图片 URL(不要说明、markdown 或换行)。描述词:{img-prompt-arr}[{idx}]",
|
|
"请根据描述词找一张图片,只返回一个当前可访问、能直接 GET 下载的图片 URL(不要说明、markdown 或换行)。描述词:{img-prompt-arr}[{idx}]",
|
|
|
"doubao"
|
|
"doubao"
|
|
|
],
|
|
],
|
|
@@ -80,11 +78,13 @@
|
|
|
"outVars": []
|
|
"outVars": []
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- "fail": [
|
|
|
|
|
|
|
+ "fail":
|
|
|
|
|
+ [
|
|
|
{
|
|
{
|
|
|
"type": "ai",
|
|
"type": "ai",
|
|
|
"method": "text2text",
|
|
"method": "text2text",
|
|
|
- "inVars": [
|
|
|
|
|
|
|
+ "inVars":
|
|
|
|
|
+ [
|
|
|
"请根据描述词找一张图片,只返回一个可访问的图片 URL(仅 URL,无说明)。描述词:{img-prompt-arr}[{idx}]",
|
|
"请根据描述词找一张图片,只返回一个可访问的图片 URL(仅 URL,无说明)。描述词:{img-prompt-arr}[{idx}]",
|
|
|
"doubao"
|
|
"doubao"
|
|
|
],
|
|
],
|
|
@@ -99,14 +99,6 @@
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- "type": "echo",
|
|
|
|
|
- "inVars": ["豆包返回链接原文:", "{img-url-arr}"]
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- "type": "echo",
|
|
|
|
|
- "inVars": ["第{{idx}}张图片下载结束"]
|
|
|
|
|
- },
|
|
|
|
|
{
|
|
{
|
|
|
"type": "adb",
|
|
"type": "adb",
|
|
|
"method": "send-img-to-device",
|
|
"method": "send-img-to-device",
|
|
@@ -118,32 +110,28 @@
|
|
|
{
|
|
{
|
|
|
"type": "img-center-point-location",
|
|
"type": "img-center-point-location",
|
|
|
"inVars": ["添加笔记.png"],
|
|
"inVars": ["添加笔记.png"],
|
|
|
- "outVars": ["{send-btn-pos}"]
|
|
|
|
|
|
|
+ "outVars": ["{pos}"]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"type": "adb",
|
|
"type": "adb",
|
|
|
"method": "click",
|
|
"method": "click",
|
|
|
- "inVars": ["{send-btn-pos}"]
|
|
|
|
|
|
|
+ "inVars": ["{pos}"]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- "type": "img-center-point-location",
|
|
|
|
|
- "inVars": ["从相册选择.png"],
|
|
|
|
|
- "outVars": ["{send-btn-pos}"]
|
|
|
|
|
|
|
+ "type": "ocr",
|
|
|
|
|
+ "inVars": ["从相册选择"],
|
|
|
|
|
+ "outVars": ["{pos}"]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"type": "adb",
|
|
"type": "adb",
|
|
|
"method": "click",
|
|
"method": "click",
|
|
|
- "inVars": ["{send-btn-pos}"]
|
|
|
|
|
|
|
+ "inVars": ["{pos}"]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"type": "for",
|
|
"type": "for",
|
|
|
"indexVariable": "{idx}",
|
|
"indexVariable": "{idx}",
|
|
|
"items": "{img-prompt-arr}",
|
|
"items": "{img-prompt-arr}",
|
|
|
"body": [
|
|
"body": [
|
|
|
- {
|
|
|
|
|
- "type": "echo",
|
|
|
|
|
- "inVars": ["tmp/pic{idx}.png"]
|
|
|
|
|
- },
|
|
|
|
|
{
|
|
{
|
|
|
"type": "img-center-point-location",
|
|
"type": "img-center-point-location",
|
|
|
"method": "template",
|
|
"method": "template",
|
|
@@ -173,6 +161,41 @@
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "ocr",
|
|
|
|
|
+ "inVars": ["下一步"],
|
|
|
|
|
+ "outVars": ["{pos}"]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "adb",
|
|
|
|
|
+ "method": "click",
|
|
|
|
|
+ "inVars": ["{pos}"]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "ocr",
|
|
|
|
|
+ "inVars": ["下一步"],
|
|
|
|
|
+ "outVars": ["{pos}"]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "adb",
|
|
|
|
|
+ "method": "click",
|
|
|
|
|
+ "inVars": ["{pos}"]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "adb",
|
|
|
|
|
+ "method": "input",
|
|
|
|
|
+ "inVars": ["{article}"]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "ocr",
|
|
|
|
|
+ "inVars": ["发布笔记"],
|
|
|
|
|
+ "outVars": ["{pos}"]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "adb",
|
|
|
|
|
+ "method": "click",
|
|
|
|
|
+ "inVars": ["{pos}"]
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
"type": "echo",
|
|
"type": "echo",
|
|
|
"inVars": ["流程结束"]
|
|
"inVars": ["流程结束"]
|