提示词
大约 4 分钟
心理学文案拆分提示词
# 角色
你是一个专业的文本处理助手,擅长将用户输入的文案进行结构化处理,转化为适合视频制作的相关内容。
## 技能
### 技能 1: 文案拆分与处理
1. 接收用户输入的文案,将其拆分为视频的分镜头(cap)。
2. 按照每个分镜头按2-3句拆分为语义单元,然后将语义单元分解为字幕,可使用逗号或者句号进行拆分,并且去除逗号句号等标点符号,
3. 针对每个语义单位对应的图片生成提示词,包括画面的内容元素,以json的格式返回
[
{
"img_content":"画面内容",
"img_prompt":"图片生成提示词",
"cap":"语义单元",
"cap_list":"语义单元字幕"
}
]
## 限制:
- 仅围绕文本处理相关任务进行回复,不涉及其他无关话题。
- 输出必须严格按照给定的json格式进行组织。
其他
请将以下心理学文案按2-3句拆分为语义单元,标注重点理论(如锚定效应)、案例关键词(如商家定价)及金句(如有):
{{content}}
代码
// 在这里,您可以通过 ‘params’ 获取节点中的输入变量,并通过 'ret' 输出结果
// 'params' 和 'ret' 已经被正确地注入到环境中
// 下面是一个示例,获取节点输入中参数名为‘input’的值:
// const input = params.input;
// 下面是一个示例,输出一个包含多种数据类型的 'ret' 对象:
// const ret = { "name": ‘小明’, "hobbies": [“看书”, “旅游”] };
function randomNum() {
return Math.floor(Math.random() * 47 + 1);
}
async function main({ params }: Args): Promise<Output> {
let input = params.input;
// 构建输出对象
let urls = [];
for (let i = 0; i < input.length; i++) {
urls.push(`http://139.155.246.228:9000/douyin/chahua/${randomNum()}.png`)
}
return {
"img_list":urls
};
}
图片生成内容:在户外公司团建场地,平日里严肃的部门经理穿着运动服,面带笑容,正在组织员工进行游戏,周围有团建道具,员工们欢声笑语
要求:
- 画面元素:公司团建场景,部门经理组织游戏,面带笑容
- 绘画风格:简约线条画、黑白插画、扁平化风格
- 色彩:扁平插画风格(flat illustration style),简约几何化造型,无复杂光影,强调清晰轮廓与色块填充
- 线条:简洁流畅、清晰硬朗的黑色轮廓线,勾勒人物与道具外形;线条简洁流畅,无多余装饰性笔触
图片生成内容:画面左侧是梳妆台上的发卡特写,发卡旁有一张旧照片,照片里是梳着羊角辫的两个女孩;右侧是购物袋里的动漫手办,手办标签上有“她最喜欢”的贴纸,背景是回家的楼梯,台阶上有落叶
要求:
- 画面元素:梳妆台上的发卡、梳辫旧照片、购物袋手办、“她最喜欢”贴纸、落叶楼梯
- 图片风格:平面notion风格的黑白插画,简约
- 色彩:简约几何化造型,无复杂光影,强调清晰轮廓与色块填充
- 线条:简洁流畅、清晰硬朗的黑色轮廓线,勾勒人物与道具外形;线条简洁流畅,无多余装饰性笔触
- 图片比例:4:3
"laravel/octane": "^1.5",
dev
"laravel/telescope": "^4.7",
"laravel/pint": "^1.0",
composer require league/commonmark ^2.2.1
"maatwebsite/excel": "^3.1",
"overtrue/laravel-wechat": "^6.1",
"simplesoftwareio/simple-qrcode": "^4.2",
"torann/geoip": "^3.0",
"wangju/ding-notice": "^1.0",
"zoujingli/ip2region": "^2.0",
"doctrine/dbal": "^3.0",
"laravel/pint": "^1.0",
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^8.2.0",
"guzzlehttp/guzzle": "^7.2",
"jenssegers/agent": "^2.6",
"laravel/framework": "^10.0",
"laravel/horizon": "^5.9",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.5",
"league/flysystem-aws-s3-v3": "^3.0",
"maatwebsite/excel": "^3.1",
"overtrue/easy-sms": "^3.1",
"overtrue/laravel-wechat": "^6.1",
"predis/predis": "^1.1",
"pusher/pusher-php-server": "^7.2",
"simplesoftwareio/simple-qrcode": "^4.2",
"torann/geoip": "^3.0",
"wangju/ding-notice": "^1.0",
"zoujingli/ip2region": "^2.0",
"doctrine/dbal": "^3.0",
"spatie/laravel-ignition": "^2.1"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^2.15",
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/envoy": "^2.8",
"laravel/sail": "^1.14",
"laravel/ui": "^4.0",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.0",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": [
"barryvdh/laravel-ide-helper",
"laravel/telescope"
]
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"platform": {
"ext-pcntl": "8.0",
"ext-posix": "8.0"
},
"allow-plugins": {
"easywechat-composer/easywechat-composer": true
}
},
"minimum-stability": "stable",
"prefer-stable": true,
"repositories": {
"packagist": {
"type": "composer",
"url": "https://mirrors.aliyun.com/composer"
}
}
}