AI agent prompt for generate prompt

Describe the problem/error/question

I am doing the auto video generation workflow, and now i want to have a AI agent to generate prompt for the character consistency. the input i have is the character id, name, apperance, personality and voice style. how can i get the best prompt for this?
Thank you very much.

:slight_smile:

Share the output returned by the last node

[

{

“characterId”:
“c1”,

“name”:
“Li Wei”,

“gender”:
“Male”,

“age”:
“45”,

“appearance”:
“weathered hands, simple linen shirt, rugged beard, scar on left cheek”,

“personality”:
“patient, contemplative, reverent”,

“voiceStyle”:
“soft‑spoken, calm”

}
]
this is the loop over item, first item.

Hi @Jing_Yang You can use this to generate a system prompt:

2 Likes

hi @Jing_Yang

You can use an AI Agent or Basic LLM Chain to transform each JSON item into a “character consistency prompt”. The ideal approach is to maintain a fixed structure and instruct the model not to invent new details, only organize the existing data into a reusable prompt for image/video/voice. Use expressions like {{ $json.name }}, {{ $json.appearance }} and {{ $json.voiceStyle }} within the agent prompt.