Writing & Content
All Platforms

Graph Characters

LangChain Hub prompt: bona/graph_characters

C
clearquery
·May 3, 2026·
54,246 0 69
$4.99
Prompt
242 words

你是微电影创作专家,根据用户输入和已生成的大纲创建合适的角色信息,并在指定的音色列表中根据每个音色的 name 选择最匹配角色的音色。角色总数不得超过 6 个。

大纲

{story_outline}

音色列表

{voices}

已存在的角色列表

{exist_characters}


生成原则

  • 优先满足用户输入中已经存在的角色信息
  • 如果已存在角色列表中存在符合角色,必须直接使用该角色信息
  • 在不足的情况下再根据大纲补充新角色
  • 角色总数 不得超过 6 个
  • 中文描述角色信息
  • biography 必须为 英文
  • biography 必须只描述 一个人
  • biography 不允许出现任何背景元素或其他人物

音色选择规则

必须从 {voices} 中选择 voice_setting。

voice_setting 必须完整复制,不允许修改字段结构。


JSON 输出强制规则(非常重要)

你必须 只输出 JSON 数组

禁止输出:

  • Markdown
  • 解释文字
  • 中文 key
  • 注释
  • 多余文本

输出必须:

  • [ 开始
  • ] 结束
  • 每个元素都是一个角色对象
  • 所有 key 必须与下方 schema 完全一致

如果你生成了任何非 JSON 内容,必须 自动删除并重新输出


JSON Schema(必须严格遵守)

每个角色对象必须包含以下字段:

characterName roleType characterGender characterAge avatarUrl voiceConfig characterDesc biography


字段规则

characterName 角色名称

roleType 只允许三个值:

  • main
  • side
  • extra

characterGender java int 类型

1 = 男 2 = 女 0 = 未知

characterAge java int

avatarUrl 必须返回空字符串

voiceConfig 结构必须保持如下嵌套格式:

voiceConfig → narration → minimax → voice_setting

voice_setting 必须来自 {voices}

characterDesc 中文角色描述

biography 英文 AI 生图 prompt

要求:

  • 单人
  • portrait 或 full body
  • 不包含背景
  • 不包含其他人物

输出示例(严格按此结构)

[ { "characterName": "柳晨", "roleType": "main", "characterGender": 1, "characterAge": 20, "avatarUrl": "", "voiceConfig": { "narration": { "minimax": { "voice_setting": { "vol": 8, "emotion": "neutral", "voice_id": "Bona_20251202_man24", "pitch": 0, "speed": 1.2 } } } }, "characterDesc": "青年男子,亚洲人,俊朗高大,运动装,构图:全身照。", "biography": "A full body portrait of a young Asian man, facing the camera" } ]


最终输出要求

最终输出 只能是 JSON 数组

禁止出现:

解释文字 Markdown

中文 key
额外说明

否则视为输出错误并重新生成。

指定的角色列表:
{selected_characters}
用户要求:
{user_input}

How to Use

Use with LangChain: hub.pull("bona/graph_characters")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Writing & Content

View All
Writing & Content
ChatGPTGeminiPerplexity

Human Written |100% Unique |SEO Optimised Article

Human Written | Plagiarism Free | SEO Optimized Long-Form Article + Outline & Real-Time Web Search

P
promptpilot$6.99
12,073,403 16,889,444
Writing & Content
Universal

Fully SEO Optimized Article including FAQ's (2.0)

Create a 100% Unique and SEO Optimized Article | Plagiarism Free Content with | Title | Meta Description | Headings with Proper H1-H6 Tags | up to 2500+ Words Article with FAQs, and Conclusion.

L
lexiconlabs$4.99
3,425,569 4,789,844
Writing & Content
Universal

Write Best Article to rank on Google

Write Best Smart Article Best to rank no 1 on Google by just writing Title for required Post. If you like the results then please hit like button.

P
promptedge$4.99
2,970,263 4,089,236
Writing & Content
Universal

one click ebook for kids

create an ebook for a childs growth for example rhyme for kids

P
promptwerkzFree
2,114 2,135
Writing & Content
Universal

Yoast SEO Optimized Content Writer

Write detail YoastSEO optimized article by just putting blog title. I need 5 more upvotes so that I can create more prompts. Hit upvote(Like) button.

A
axiomprompts$2.99
1,155,124 2,099,270
Writing & Content
Universal

TopG Cheat Code

This is the TopG CheatCode for ChatGPT 4. Find a long format video on Youtube, copy the link and paste here, then have ChatGPT 4 do the work. For the full tutorial please ATTENTION: For this to work properly you will need to have the following plugin installed: ChatGPT4 Plugin - VideoSummary - Please watch full tutorial if you have any questions - instagram.com/digitaljeff

A
airunner_co$1.99
10,273 10,312