What is a System Prompt?
A system prompt is a set of instructions sent to the AI model before every conversation. It defines:- Role & Personality: Who the agent is and how it should communicate
- Capabilities: What the agent can and cannot do
- Guidelines: Rules and best practices for the agent to follow
- Context: Background information and domain knowledge
Default System Prompt
Kortix agents start with a comprehensive default prompt:The full default prompt is defined in
backend/core/prompts/core_prompt.py and includes detailed guidance on tool usage, file operations, and communication protocols.Customizing System Prompts
Basic Customization
1
Access Prompt Editor
Navigate to your agent’s configuration page and click Edit System Prompt.
2
Define Agent Role
Start with a clear role definition:
3
Add Capabilities
Specify what the agent can do:
4
Set Guidelines
Define how the agent should behave:
Advanced Prompt Engineering
- Domain Knowledge
- Output Formatting
- Conditional Logic
- Tool Usage Guidance
Inject specific knowledge into your prompt:
Prompt Templates
Customer Support Agent
Data Analyst Agent
Code Review Agent
Summary
[Brief overview of changes and overall quality]Critical Issues
[Issues that must be fixed before merging]Suggestions
[Improvements and optimizations]Positive Highlights
[Good practices worth noting]Testing Your Prompts
1
Make Changes
Update your system prompt in the agent builder.
2
Start Test Conversation
Create a new thread to test the updated behavior.
3
Evaluate Responses
Check if the agent:
- Follows the instructions
- Uses the right tone and style
- Applies domain knowledge correctly
- Uses tools appropriately
4
Iterate
Refine your prompt based on test results. Common adjustments:
- Add more specific examples
- Clarify ambiguous instructions
- Add constraints for edge cases
- Improve formatting and structure
Prompt Best Practices
Be Specific and Clear
Be Specific and Clear
Bad: “Be helpful and nice”Good: “Greet users warmly, ask clarifying questions before providing solutions, and always verify if the solution worked before ending the conversation.”Specificity prevents ambiguity and ensures consistent behavior.
Use Examples
Use Examples
Show the agent exactly what you want:Examples are more effective than abstract descriptions.
Structure with Headings
Structure with Headings
Use markdown headings to organize your prompt:Structure helps the model parse and follow instructions.
Avoid Over-Constraining
Avoid Over-Constraining
Too Restrictive: “Only answer questions about feature X. Never discuss anything else.”Better: “Your primary expertise is feature X. For questions about other features, provide basic guidance and suggest consulting the relevant specialist.”Allow flexibility while maintaining focus.
Update Based on Usage
Update Based on Usage
Monitor agent conversations and update prompts when you notice:
- Repeated mistakes or misunderstandings
- Missing information in responses
- Inconsistent tone or style
- Misuse of tools or integrations
API Integration
Update system prompts programmatically:System prompt changes automatically create a new agent version.
Common Patterns
Chain of Thought
Encourage step-by-step reasoning:Self-Correction
Teach agents to verify their work:Uncertainty Handling
Define how to handle unknown information:Next Steps
Agent Builder
Configure agents in the UI
Workflows
Automate agents with triggers