Authoring Instructions
The system prompt defines your agent's personality, behavior, and domain knowledge.
Flue-native
Set instructions via createAgent:
import { createAgent } from '@flue/runtime'
export default createAgent({
instructions: 'You are a helpful order support agent. Always cite order numbers.',
})Eve-style (declarative)
Create agent/instructions.md:
You are a helpful order support agent. Always cite order numbers.Run npx flue-eve init to inline these instructions into the generated Flue
agent definition.
Best practices
- Be specific about the agent's role and domain
- List what the agent should do and should not do
- Mention available tools and when to use them
- Keep it under 2,000 characters for optimal response quality
See authoring model for how the two authoring styles relate.