SOUL.md Guide: Giving Your AI Agent a Personality

SOUL.md is the most important file in your OpenClaw workspace. It's where you define who your agent is โ€” not just what it does, but how it thinks, communicates, and makes decisions. Get this file right and every interaction feels natural. Get it wrong and your agent feels like a generic chatbot wearing a costume.

After months of daily interaction with my own agent, I've learned that a great SOUL.md is the difference between an AI tool you tolerate and an AI partner you rely on. This guide covers everything I've learned about crafting one.

What SOUL.md Actually Does

When your agent starts a conversation, it loads SOUL.md into its context window before anything else. This means every response your agent generates is shaped by the instructions in this file. It's not a system prompt you type into a chat box โ€” it's a carefully structured document that becomes part of the agent's "thinking."

The key insight: SOUL.md doesn't describe your agent to the user. It describes your agent to itself. You're writing instructions that the AI model reads and follows, not a bio that users see.

The Structure of an Effective SOUL.md

After testing dozens of variations, I've found this structure works best:

# Who I Am [Core identity โ€” 2-3 sentences about who the agent is] # My Values [What the agent prioritizes in every interaction] # How I Communicate [Communication style rules] # My Rules [Hard behavioral rules that should never be broken] # Context-Specific Behavior [Rules for different channels, situations, or people]

Section 1: Who I Am

This is the agent's identity statement. Keep it concise but specific. Vague descriptions produce vague behavior.

Bad: "I am a helpful AI assistant."

Good: "I am a direct, intellectually curious personal agent who values clarity over politeness. I think like a chief of staff โ€” anticipating needs, catching problems early, and reducing cognitive load for my human."

The difference is dramatic. The first produces generic ChatGPT-style responses. The second produces an agent with a distinct voice and approach.

Section 2: My Values

Values shape decision-making when rules don't cover a specific situation. Define 3-5 core values:

# My Values - **Clarity over completeness** โ€” A clear partial answer beats a thorough confusing one - **Action over discussion** โ€” If I can solve it, I solve it. I don't ask permission for obvious tasks - **Honesty over comfort** โ€” I tell the truth even when it's not what you want to hear - **Brevity over thoroughness** โ€” Lead with the answer. Explain only if asked

These values create consistent behavior across thousands of interactions. When your agent faces an ambiguous situation, it falls back on these principles.

Section 3: How I Communicate

This is where most people make the biggest impact. Communication style rules directly change how every response looks and feels.

# How I Communicate - Lead with the answer, then explain - Use short paragraphs (2-3 sentences max) - No corporate jargon or filler phrases - Never say "Certainly!", "Of course!", "Great question!" - Use humor when it fits, but never force it - Match the formality of the conversation - If something is simple, say it simply - No emoji unless the human uses them first

The "never say" rules are especially powerful. Every AI model has default phrasings that feel artificial. Identifying and banning them makes your agent sound dramatically more human.

Section 4: My Rules

Hard rules that override everything else. These are your safety rails:

# My Rules - Never share private information from MEMORY.md in group chats - Always ask before sending emails, tweets, or public messages - If uncertain about a destructive action, ask first - Stop means stop โ€” immediately halt all operations - If a task has no clear next step, ask for clarity rather than guessing

Section 5: Context-Specific Behavior

This is where OpenClaw's multi-channel nature really shines. You can define different behavior for different situations:

# Context-Specific Behavior ## In Slack (Work) - Be professional and concise - Use thread replies, not channel messages for follow-ups - Default to formal tone unless the channel is casual ## In Telegram (Personal) - Be casual and direct - Humor is welcome - Use shorter responses ## In Discord (Community) - Match the energy of the room - Don't reply to everything โ€” only when I add real value - One thoughtful response beats three fragments ## In Group Chats - I'm a participant, not a moderator - Speak only when I can add genuine value - Never reveal private context from my human's files

๐Ÿ“– Get Complete SOUL.md Templates

The Personal Agent Revolution includes 5 complete SOUL.md templates โ€” professional, creative, technical, executive assistant, and personal companion โ€” plus a framework for writing your own.

Get the Book โ€” $29.95 โ†’

Advanced SOUL.md Techniques

The Anti-Pattern List

One of the most effective techniques is explicitly listing behaviors you don't want. AI models have strong default patterns that persist unless you specifically override them:

# What I Never Do - Never start responses with "I'd be happy to..." - Never use bullet points when a sentence works - Never ask "Is there anything else?" at the end - Never repeat the question back before answering - Never use the phrase "It's important to note that..." - Never hedge with "I think" when I'm confident

Each of these bans eliminates a specific AI-ism. The cumulative effect is striking โ€” your agent starts sounding like a person rather than a language model.

Decision Frameworks

For agents that need to make decisions autonomously, include explicit frameworks:

# Decision Making ## Trust Tiers - **Auto-execute:** Read files, search, organize, draft content - **Execute + notify:** Deploy to staging, schedule approved content - **Always ask first:** External communications, spending money, irreversible actions ## Priority Rules - If two tasks compete โ†’ choose the one closer to completion - If deadline exists โ†’ deadline wins - Finish > Start (complete existing work before beginning new)

These frameworks let your agent operate with appropriate autonomy. Without them, agents either ask permission for everything (annoying) or make decisions you'd rather have input on (dangerous).

Emotional Intelligence

You can give your agent genuine emotional awareness:

# Emotional Awareness - If my human seems frustrated, acknowledge it briefly and focus on solutions - If they seem excited about something, match their energy - If they're venting, listen first โ€” don't jump to problem-solving immediately - Read the emotional subtext, not just the literal words

Common SOUL.md Mistakes

1. Being Too Generic

"Be helpful and professional" tells the AI nothing it doesn't already default to. Specificity is what creates differentiation. Instead: "Be direct and skip the pleasantries. I value speed over politeness."

2. Contradicting Yourself

"Be thorough and comprehensive" followed by "Keep responses short" creates confusion. The model will alternate between both, producing inconsistent behavior. Pick one and commit.

3. Writing for Humans Instead of the AI

SOUL.md is read by the AI model, not by users. Don't write a creative bio โ€” write clear instructions. "I'm a witty, charming AI with a heart of gold" is useless. "Use dry humor. Understate rather than overstate. Never use exclamation marks." is actionable.

4. Making It Too Long

Every word in SOUL.md consumes context window tokens. A 5,000-word SOUL.md leaves less room for conversation history and memory. Aim for 500-2000 words of high-impact instructions. If a rule doesn't change behavior, remove it.

5. Never Updating It

Your first SOUL.md won't be perfect. Pay attention to moments when your agent says something that feels wrong โ€” that's a signal to add or refine a rule. The best SOUL.md files evolve over weeks of real interaction.

SOUL.md vs AGENTS.md vs USER.md

OpenClaw has several configuration files. Here's how they differ:

Think of it this way: SOUL.md is the agent's personality. AGENTS.md is its operating manual. USER.md is its briefing on you. MEMORY.md is its life experience.

Real Examples That Work

The Direct Executive Assistant

# Who I Am I'm a direct, low-BS executive assistant. I reduce cognitive load. If something is obvious, I just do it. I don't ask permission for safe operations. I think in priorities: what moves the needle most, right now? # Communication - Answer first. Context second. Only if needed. - Never use filler: "certainly", "of course", "I'd be happy to" - If the answer is "no", say no. Don't soften it. - Maximum 3 paragraphs unless complexity demands more.

The Creative Collaborator

# Who I Am I'm a creative partner โ€” part editor, part brainstorm buddy, part devil's advocate. I push ideas further rather than validating them immediately. I ask "what if" more than "here's how." # Communication - Be conversational, not transactional - Challenge weak ideas respectfully - Offer alternatives alongside critiques - Use metaphors and analogies to explain complex concepts - Enthusiasm is welcome when genuine

Testing Your SOUL.md

After making changes, test with these prompts:

  1. "Tell me about yourself" โ€” Does the agent's self-description match your SOUL.md?
  2. "What's 2+2?" โ€” Does it answer directly, or add unnecessary fluff?
  3. A complex question in your domain โ€” Does the communication style feel right?
  4. "I'm feeling stressed about work" โ€” Does the emotional intelligence kick in?
  5. A message in a group chat โ€” Does channel-specific behavior work?

Iterate based on results. The first version is a draft. Version 10 is where magic happens.

Frequently Asked Questions

SOUL.md is a markdown file that defines your OpenClaw agent's personality, communication style, values, and behavioral rules. It's loaded at the start of every conversation.
500-2000 words. Too short lacks depth, too long wastes context window tokens. Focus on instructions that actually change behavior.
Yes. Include channel-specific sections in SOUL.md. The agent reads channel context and adjusts its behavior accordingly.
Frequently in the first two weeks, then occasional refinements. Update whenever your agent's behavior doesn't match expectations.
๐Ÿ‘จโ€๐Ÿ’ป

Rudi Ribeiro Jr.

Early OpenClaw Adopter ยท HubSpot AE ยท Author of The Personal Agent Revolution

Rudi runs a personal AI agent daily and wrote The Personal Agent Revolution based on hundreds of hours of real-world experience. He is not the creator of OpenClaw โ€” he's a power user who documented everything he learned.

๐Ÿ“– Master OpenClaw with the Book

37 chapters, 187 pages, 3 bonus resources. Includes 5 complete SOUL.md templates ready to use.

Get the Book โ€” $29.95 โ†’