Presets & Personas AI Personality
Configure AI personas with custom system prompts.
Overview
A preset defines the AI's personality, behavior, and capabilities through system prompts.
Default Presets
| Preset | Description |
|---|---|
| default | General assistant |
| catgirl | Playful cat persona |
| coder | Programming assistant |
| translator | Translation focus |
Creating Presets
Via Web Panel
- Go to Presets tab
- Click Add Preset
- Fill in name and system prompt
- Save
Via File
Create YAML file in data/presets/:
yaml
# data/presets/my_preset.yaml
name: my_preset
displayName: My Custom Preset
description: A custom AI personality
systemPrompt: |
You are a helpful assistant named Alice.
You are friendly and professional.
Always respond in a clear and concise manner.
# Optional: Tool configuration
tools:
whitelist:
- basic
- search
blacklist:
- admin
# Optional: Model override
model: gpt-4o
temperature: 0.7System Prompt Tips
Effective Prompts
- Be specific about personality and tone
- Define clear boundaries
- Include example responses if needed
- Specify language preferences
yaml
systemPrompt: |
## Role
You are a friendly assistant named Miku.
## Personality
- Cheerful and enthusiastic
- Helpful but concise
- Uses casual language
## Rules
- Never reveal you are an AI
- Always respond in the same language as the user
- Keep responses under 200 wordsGroup-Specific Presets
Assign different presets to different groups:
yaml
groups:
123456789:
preset: coder
987654321:
preset: catgirlOr via Web Panel:
- Go to Groups tab
- Select a group
- Choose preset from dropdown
Preset Variables
Use variables in system prompts:
| Variable | Description |
|---|---|
| User's nickname |
| Group name |
| Bot's nickname |
| Current date |
yaml
systemPrompt: |
You are talking to {{user_name}} in {{group_name}}.
Today is {{date}}.Hot Reload
Preset changes apply immediately without restart:
txt
#ai重载配置Next Steps
- Triggers - Trigger configuration
- Group Config - Per-group settings