Overview
Customize how your AI assistant behaves by modifying system prompts inlib/ai/prompts.ts.
System Prompt
The main system prompt defines your assistant’s personality, capabilities, and response format:Artifact Prompts
Artifact-specific instructions (for code, sheets, and text documents) are defined in the tool descriptions rather than as separate prompts. Seelib/ai/tools/ for the artifact tool implementations where these instructions are embedded.
Per-Project Prompts
When projects are enabled, users can set custom instructions per project that get appended to the system prompt. This allows different behavior for different use cases without modifying the base prompt.Best Practices
- Keep prompts focused and specific
- Include examples of desired output format when relevant
- Test changes with various inputs to ensure consistent behavior
- Use functions for prompts that need dynamic values