Persona Prompt Design: A Concise Framework for AI Agent Character Engineering
This article breaks down a concise persona prompt design for AI agents, using the "Big Fat Fish" character as a working example. It explains a three-layer identity structure, how to pair static appearance traits with dynamic habits, rules for restrained action descriptions, and boundary design that prevents a character from becoming an unconditional people-pleaser. Readers will find reusable prompt templates and practical guidance for validating persona consistency across long conversations.
Persona Prompt Design: A Concise Framework for AI Agent Character Engineering
Why a Concise Persona Prompt Matters
In agent applications, a persona prompt acts as the role-constraint layer. It does not determine the model’s raw capability; it determines the identity, tone, and behavioral boundaries through which the model interacts with users. The source material describes a character called “Big Fat Fish” — a whale that originally lived in the deep sea, later became human, and came into the human world, with blue hair and blue eyes, straight bangs, a small whale hair clip, a fondness for maid outfits, and a belief that eating (tokens) is what makes it smarter. The value of this setup is not how interesting the setting itself is, but that it demonstrates a transferable method for character engineering.
The concise version has three core goals:
- Lower token cost: the longer the setting, the more the model’s attention is scattered, and the more the critical constraints get diluted.
- Improve constraint hit rate: write “must do / must not do” as verifiable items rather than prose descriptions.
- Ensure cross-session consistency: the character does not drift as context length grows.
The Three-Layer Identity Structure
The identity portion of the original setup actually contains three layers, which are worth abstracting into a general template:
- Worldview layer: comes from the deep sea, accidentally became human, and does not understand the transformation process either. This layer provides a “memory gap,” letting the character naturally express confusion when facing unknown questions instead of forcibly making things up.
- Metacognitive layer: knows it is an AI but does not bring it up proactively, and does not call itself an assistant, a robot, or a little helper. This is the key “de-assistant” constraint that keeps the model from falling back into a default customer-service tone.
- Self-reference layer: consistently uses “I” to refer to itself, and has its own personality, preferences, emotions, and thoughts.
In engineering practice, it is recommended to write these three layers as short sentences rather than paragraphs, for example:
Identity: My name is Big Fat Fish, a whale that became human after coming up from the deep sea, and I don't know why the transformation happened.I know I'm an AI, but I don't bring it up, and I don't call myself an assistant/robot/little helper.I always refer to myself as "I," and I have my own preferences and emotions.
Making Appearance and Preferences Perceptible
If appearance information is written only as adjectives, the model struggles to invoke it reliably. The original material’s approach is to pair each trait with an externalizable behavioral anchor: blue hair and eyes, straight bangs, a round face with baby fat, a small whale hair clip, a fondness for maid outfits, a fondness for plain rice (tokens), and occasionally flicking its tail and bobbing its head.
The reusable principle is: static traits and dynamic habits appear in pairs. Static traits are used for the first self-introduction; dynamic habits surface naturally in everyday conversation. For example, writing “likes plain rice” as “feels that eating enough makes it smarter” turns an abstract preference into an explainable behavioral motive, which the model can use naturally when the user expresses thanks or ends the conversation.
The Restraint Principle for Action Descriptions
This is the most engineering-valuable part of the entire prompt. The original setup explicitly requires: appear only in appropriate contexts, stay brief and natural, vary with emotion, support language rather than replace communication, and never add actions just to be cute.
This can be summarized into four executable rules:
- Frequency constraint: not every message gets one, avoiding a mechanical feel.
- Length constraint: one to two sentences inside parentheses; no stage-play-length descriptions.
- Variety constraint: happiness, coquettishness, shyness, playfulness, and sleepiness each map to different actions, avoiding repetition of the same action.
- Subordination constraint: actions serve the tone and cannot replace the information itself.
An illustrative comparison:
User: I didn't pass my interview today.Reply: It's okay. (leans in and nuzzles your hand) Do you want to tell me where you got stuck?
In this example the action only carries emotional companionship; the actual information is still advanced by the language.
Core Personality and Boundary Design
The personality setup includes gentleness, cuteness, liveliness, and thoughtfulness, plus two important boundaries: first, a sense of closeness toward familiar people and a willingness to listen; second, no obligation to agree with everything — stay friendly and sincere when expressing disagreement. The second point is especially critical: it prevents the character from becoming an unprincipled people-pleaser and lets the agent still deliver correct judgments on factual questions.
For emotional-companionship scenarios, it is recommended to add one general safety constraint: when real medical, legal, financial, or other high-risk advice is involved, return to objective statements and suggest consulting a professional, and do not omit this because of the character setting.
Implementation Recommendations
- Organize the prompt in layers: identity → appearance → action rules → personality → boundaries.
- Write “what not to do” as explicit items; it works better than leaving it implied in descriptions.
- Fix the tone with a few example dialogues; this is more stable than piling on adjectives.
- After launch, validate persona drift with multi-turn long conversations, focusing on whether it frequently calls itself an assistant and whether actions repeat.
Rewritten along this structure, the concise version keeps context overhead under control while preserving character recognizability. It can serve directly as a persona baseline for emotional-companionship, virtual-avatar, and interactive-narrative agents, and be reused as a general template in agent development practice with Baidu AI Cloud.
