Skip to content

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 ​

PresetDescription
defaultGeneral assistant
catgirlPlayful cat persona
coderProgramming assistant
translatorTranslation focus

Creating Presets ​

Via Web Panel ​

  1. Go to Presets tab
  2. Click Add Preset
  3. Fill in name and system prompt
  4. 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.7

System 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 words

Group-Specific Presets ​

Assign different presets to different groups:

yaml
groups:
  123456789:
    preset: coder
  987654321:
    preset: catgirl

Or via Web Panel:

  1. Go to Groups tab
  2. Select a group
  3. Choose preset from dropdown

Preset Variables ​

Use variables in system prompts:

VariableDescription
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 ​

Released under the MIT License