What are Instructions?
Instructions are text prompts that tell your agent:- Who it is - Role and identity
- How to behave - Personality and tone
- What to do - Tasks and responsibilities
- What not to do - Boundaries and limitations
Writing Effective Instructions
Be Specific
Set Boundaries
Include Examples
Instruction Priority
Instructions are loaded in this priority order:- Direct parameter -
instructions="..."in AgentSession (highest) - Environment variable -
KURALIT_AGENT_INSTRUCTIONS - Default - Generated default instructions (lowest)
Best Practices
Do’s
- ✅ Be specific - Clearly define the agent’s role
- ✅ Set boundaries - Define what the agent should and shouldn’t do
- ✅ Include examples - Show desired response style
- ✅ Keep it concise - Long instructions can be less effective
- ✅ Test and iterate - Refine instructions based on results
Don’ts
- ❌ Don’t be too vague - “Be helpful” is not enough
- ❌ Don’t contradict yourself - Avoid conflicting instructions
- ❌ Don’t make it too long - Keep focused and relevant
- ❌ Don’t forget context - Consider how tools affect behavior
Examples
Customer Support Agent
Personal Assistant
Technical Support Agent
Next Steps
- Creating Agents → - Learn how to create agents
- Context → - Understand conversation context
- Tools → - Add capabilities to your agents

